Should columns only be read once....
Good day,
I have a question about reading the resultset.
I was recently reading the java.sql API.
And in the description for the Resultset interface.
It mentions that "each column should be read only once"
Currently I don't call columns via results.getString("column") directly.
I usually set it to a variable and the use the variable as much as i need.
This method mainly helps me keep organized.
I was wondering if there are any real problems or issues that may arise from calling a column directly a numerous amount of times.
I don't plan on chaning my current method of going about resultsets, but i was just curious.
thanks,
alex
Hi,
You can scroll through the result set and read a column any number of time (provided proper resultSetType is set during statement creation).
see the scenario where such things will not work (but depends on the driver implementation). suppose u are retrieving rows in bulk (say >10k number of rows of large size).retrieving the bulk will give u out of memory etc exceptions. and if u set the fetchsize(int size)method things will become ok. but here u cant gurantee that u will get the column value on ur second visit to the same column (ie calling rs.getXX()method second time) .
so the rule thumb is retrieve the column value only once and store it in a variable- this is what u are doing rt now (if its a large value, process it on the spot according to ur need)
HTH,
-asharafkk
Similar Messages
-
Whenever I try to open Reader XI or open a .pdf file, it will allow me to open it one time after I start my computer. If I try to open another .pdf file or even open the first file again (after closing), Adobe Reader will not open. No error messages or anything. If I reboot my computer, I can access any document again....but again only one document and then subsequent documents will not open. So only one document per re-boot. I have deleted and re-installed reader along with all other Adobe products multiple times...nothing helps. Any help would be appreciated.
"Gump!...you're a G** D**N genius...you're gonna make General!". It worked. When I disabled Protected Mode, it said that would also influence "protected view" but after opening several other pdf's, I don think that should be an issue. Thanks a bunch!
-
Popup with window.open should arise only once onclick
i want a popup that should arise only once onclick but i am getting that popup how many times i am clicking
That's a JavaScript problem. This forum is about Java. Java and JavaScript don't have anything in common apart from the first 4 letters of the name and a superficial similarity in syntax.
You'll get better help in a JavaScript forum. -
Need to Add and Remove Columns of ADF Read Only table from Backing bean
I have a scenario where I am trying to Populate TransientVO which is shown has a ADF Read Only Table in page.
I have couple of Check Boxes Based on their selection I am trying to render and hide certain Columns.
But the Issue which I am facing is only the Column Header seems to change where as the Rows and Values doesnt..
even If I apply the expression language rendering condition on the outputText inside those columns.. ..
So I am thinking to add and remove VO Attribute columns to the table from backing bean.
Need some sample code snippet or a better design to achieve this. Its kind of urgent too...having an aggressive deadline :(
Please chip in People..
Thanks in Advance .
TKTable Code..
<af:table value="#{bindings.InventoryGridTrans.collectionModel}"
var="row"
rows="#{bindings.InventoryGridTrans.rangeSize}"
emptyText="#{bindings.InventoryGridTrans.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.InventoryGridTrans.rangeSize}"
rowBandingInterval="0" id="t4"
partialTriggers="::sbcSales ::sbcUsage ::cb1">
<af:column sortProperty="Period" sortable="false"
headerText="#{bindings.InventoryGridTrans.hints.Period.label}"
id="c38">
<af:outputText value="#{row.Period}" id="ot33"/>
</af:column>
<af:column sortProperty="Past12SalesCount"
sortable="false"
headerText="#{bindings.InventoryGridTrans.hints.Past12SalesCount.label}"
id="c29"
rendered="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}">
<af:outputText value="#{row.Past12SalesCount}"
id="ot40"
rendered="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}"
visible="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.InventoryGridTrans.hints.Past12SalesCount.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="Past12UsageCount"
sortable="false"
headerText="#{bindings.InventoryGridTrans.hints.Past12UsageCount.label}"
id="c40"
rendered="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}"
visible="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}">
<af:outputText value="#{row.Past12UsageCount}"
id="ot47"
rendered="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}"
visible="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.InventoryGridTrans.hints.Past12UsageCount.format}"/>
</af:outputText>
</af:column>
</af:column>
</af:table> -
Why is my ping so high in the first column only when i do a tracert?
When i do a tracert my ping is really high in the first column only on each hop and then it drops to a respectable level. Does anyone know why it is like this on my 4G LTE device? On my dsl when i do the same ping test its pretty even across on each hop. This is what im seeing when i do a ping test on my 4G LTE device.
tracert www.yahoo.com
Tracing route to ds-any-fp3-real.wa1.b.yahoo.com [98.139.183.24]
over a maximum of 30 hops:
1 9 ms 3 ms 3 ms
2 1101 ms 34 ms 38 ms 193.sub-66-174-20.myvzw.com [66.174.20.193]
3 169 ms 55 ms 52 ms 49.sub-69-83-13.myvzw.com [69.83.13.49]
4 52 ms 56 ms 54 ms 194.sub-69-83-13.myvzw.com [69.83.13.194]
5 179 ms 58 ms 57 ms 101.sub-66-174-17.myvzw.com [66.174.17.101]
6 168 ms 57 ms 60 ms TenGigE0-0-1-0.GW14.BOS4.ALTER.NET [152.179.2.97
7 181 ms 58 ms 57 ms 0.ge-0-3-0.XL3.BOS4.ALTER.NET [152.63.17.130]
8 170 ms 59 ms 58 ms 0.ae3.BR1.NYC1.ALTER.NET [152.63.18.222]
9 177 ms 67 ms 59 ms ae11.edge2.NewYork.Level3.net [4.68.62.41]
10 * * * Request timed out.
11 * * * Request timed out.
12 * * * Request timed out.
13 192 ms 49 ms 60 ms ae-4-90.edge4.NewYork1.Level3.net [4.69.155.210]
14 185 ms 51 ms 60 ms YAHOO-INC.edge4.NewYork1.Level3.net [4.28.130.82
15 380 ms 73 ms 129 ms ae-5.pat2.bfz.yahoo.com [216.115.96.67]
16 339 ms 69 ms 146 ms ae-4.msr2.bf1.yahoo.com [216.115.100.73]
17 215 ms 152 ms 80 ms xe-5-0-0.clr2-a-gdc.bf1.yahoo.com [98.139.128.11
18 289 ms 217 ms 217 ms et-17-1.fab6-1-gdc.bf1.yahoo.com [98.139.128.47]
19 187 ms 87 ms 79 ms po-14.bas2-7-prd.bf1.yahoo.com [98.139.129.227]
20 474 ms 314 ms 294 ms ir2.fp.vip.bf1.yahoo.com [98.139.183.24]
Trace complete.hi there
see you never got an answer from vzw
take it you still have the high ping or no ping in my cases
your doing better then i
seems the lte is getting bad with this problem over time as my connection times out causing half loaded web pages and lots of buffering in video playback
i have had 3 tickets in the past 3 month to try and get this fixed but they say cant find anything wrong
and noone else is having the problem here are a few things that seems to have helped me out
1 increase your TTL time till live
this tells your computer to wait a bit longer before giving up and requesting that a packet of info be resent
2 in your computers network settings and reg you can change packet size to a smaller number and add a stop bit to the packet with a time stamp on each packet back in the old days this was what v 90 modems did to get v92 speeds and did help with noisy copper wire dial up and seems to help here too
http://www.dslreports.com/drtcp
is a tool that will help you change your computer setting and reg
use drtcp and the results from this page
http://www.dslreports.com/tweaks
xp win 7 win 8 this will help. vista did it right and dynamically change these settings on the fly and all of step 2 is unnecessary
remember your original settings write them down so you can go back to them should you have problems
also make a restore point and backup your reg before tinkering with windows os
send a private message to me if you need more help or get a computer savvy friend to help you out if you need
3 if your signal noise is under 4G -100bd the lower the better, there is a way to set your android to lte only mode.
more likely to lose data and voice in weak signal areas but great if tethering or hotspotting at home
dail *#*#4636#*#* this is a back door to your android software and is open source code by android os not vzw
and will not unlock your phone voiding warranties. be warned though if you set things wrong in here
you can make more problems be very sure what you change and do one thing at a time so you remember and can dial in again and change it back should you disable something you need. fyi each time you dial in the number it resets to vzw default setting and may look like it did not save setting but it doz. till you dial in again.
good luck
ron
ps im not a vzw rep in any way other then a fellow customer not getting answers. -
Is it possible to add new columns with format "Text" once a table is linked to a form
Is it possible to add new columns with format "Text" once a table is linked to a form in Numbers for iPhone or is it impossible and thus a serious bug?(Rating stars and numeric vales seem to work.)
Those bugs happen both for new speadsheets as well as existing onces, like the demo. When you are in the form only the numeric keyboard shows up.
Pat from the Apple Store Rosenstrasse/Germany approved that it looks like a Bug during the Numbers Workshop I was in: It is not possible to add new columns with format "Text". I reported the error for Version 1.4 but there is no update nor do I get statement of understanding the issue.Hi Knochenhort,
I see what you are talking about now. Without knowing how the program actually works, I think this is what's going on:
When you add a new column to an already existing table (with already existing formats), the new cells come already formatted like the previous column. So when you add a column to the end of the demo table, the cells are already formatted like stars, and when you add a column to the beginning, they're already formatted like number.
I think this is why it's different when if you add columns to a table with blank (unformatted) columns. In that case, the new cells aren't already "tainted" with a set format, so you can change to text format without issue.
It seems like the problem is that you can't format cells that are already formatted as "number" as "text" format (even if it doesn't look like they are, because they are blank). IMO, this is a bug! This is why you don't see this issue when adding columns to a new table, because the new cells don't already come with a format.
To workaround, you can highlight the body cells after adding the new column, and delete the cells. This will "clear" the formatting, so you can then go in the inspector, format them as text, and the correct keyboard will pop up.
Hope that helps! -
Alternatives can only be used once?
Hi
In the Adobe form when creating an alternative I've discovered that it can only be used once.
Is this correct?
I've created an alternative e.g. name = FLAG_IS_X condition flag = X.
When I use the alternative 'FLAG_IS_X' the first time it works as required.
However, when I use it a second time on the form it does not work at all.
Does this mean that a different alternative with the same condition has to be created even though the condition you want to use is the same?
ThanksHey,
Well I stumble it seems on the same 'issue' . I have 3 master pages and have the requirement to put a watermark on it depending on the status. The first master is in portrait and contains the contact details, the second master page contains the line items and is in landscape and the third one contains the totals and is back portrait.
First I had only one alternative and used it on the 3 masterpage to check if the watermark had to be printed. In this case it was only correct for the first page (contact-info) the rest all received the mark although they should not.
Then I made 3 altenatives (one for each type of master page) all checking the same condition.
This way it was correct for page 1 (contacts), the first page of the items (the two others had the watermark although they should not - so not correct) and the last page with the totals.
In my case the contacts-page and totals-page can only have a page-count of 1 but I'm almost sure that if they could have a page count of 2 or more then only the first page would be correctly printed.
Is this a bug you think?
Faaiez,
Did you find in the end a workaround for this?
Otto.
Any suggestion of how I could handle this with scripting (no experience with scripting though)
Anyway tnx already for all the input !!
best regards,
Bart V. -
Is it possible to lock a 3G sim pay as you go so you can chose to only use it once all WIFI possibi
is it possible to lock a 3G sim card pay as you go so you can chose to only use it once all WIFI possibilities have been tested?
You can turn off Cell Data in the Settings. Your iPad should then not be able to connect to your cell service until you turn that setting back on.
Regards. -
Structure inside while should work only one time ?
Hi Everyone ,
I have coded a program that if i click a button ( switch untill released) . inside that structure should work only one times .
and i have coded and its working fine .. but its looks compilcated..
i need some simple solution . Plz help me guys
Attachments:
CODE.vi 10 KBsaran1988 wrote:
I have coded a program that if i click a button ( switch untill released) . inside that structure should work only one times .
and i have coded and its working fine .. but its looks compilcated..
i need some simple solution . Plz help me guys
Your code has very little to do with what you are describing.
There is no button with "switch until released" mechanical action. (OK is switch when released, stop is latch when released)
A case structure always "works". Are you saying that it should execute e.g. the true case only once whenever the outer case goes from false to true??
Your inner case goes true more than once per run of the program (whenever the OK goes true). If it should really only work once overall, use the "first call?" primitive. You need to formulate the problem using less ambiguous words.
There is no obvious starting state for the boolean that you read via local variables. How do you ensure that it start with a known value? Does it matter?
You seem to entirely deal with integers, so why are you using floating point representation for the numerics?
What is the purpose of the orange numeric indicator. Is it just a kludge for your logic or does its value mean anything?
Why does your loop not contain any wait?
At this point, you should learn about shift registers. It would eliminate all your local variables.
LabVIEW Champion . Do more with less code and in less time . -
"Only Get Delta Once" - How to use this correctly?
Hi folks,
we are currently facing the following situation:
We have a data source only being able to deliver full update.
That's why we proceed as follows:
1.) Full-Load with Infopackage to PSA
2.) Delta-Load with DTP from PSA to first-level-DSO (write-optimized)
3.) Delta-Load with DTP from first-level-DSO to second-level-DSO (standard-DSO). As the activation aggregates all duplicate entries, we are therefore able to deliver a delta to all following data targets (e.g. infocubes)
What we are now wondering about how to use the flag "Only Get Delta Once" which is available in all Delta-DTPs. The help explains it should be used when creating snapshot-scenarios like ours as each request is only delivered once, even if it gets deleted in the data target.
But what other benefit would we have when setting this flag? As I mentioned, the snapshot-scenario also works without this flag...
Could anyone perhaps provide me some more details about this flag and where it should be used?
Thanks & regards
bivisionHi,
If you select the option 'Only get delta once', then every request in the PSA will only be loaded into the Data target once. For example. If you load a full request into the PSA through an InfoPackage and then load it to the Cube. In a snapshot scenario, when the new full load comes to the PSA you will need to delete the previous request from the cube before loading the new request.
But if you delete the previous request from the cube, and not from the PSA - and if you haven't checked the 'Only get delta once' flag, when you execute the DTP, it will load both previous and the new requests from the PSA to the cube. In order to avoid this you have 2 options:
1. You can delete a request from the PSA after every successful load into the Cube OR
2. You can check the 'Only get delta once' flag in the DTP so that it won't load any request it has loaded into the cubes previously even if it was deleted from the cube.
Using the second option de-couples the PSA maintenance from your regular data loading and also saves you an additional step of deleting the PSA request in your process chain. -
Firefox just changed out of nowhere. I can only open firefox once... I used to have atleast 2 browsers up using them both on different sites, but now I can't have but one firefox browser up (not tabs, but firefox pages) Also when I am trying to upload images on ebay or any other site nothing happens... nothing pops up. I click it over and over and nothing even pops up. This is exactly what happens with the firefox browser in my first question... I can click the firefox icon a million times and nothing comes up. My tabs are all gone and it doesn't show anything like I had before this all changed? Did I reset everything some how? I do not recall clicking anything to go back... I do remember clicking an update because it kept poping up so I did it and that is the last thing I remember before this happened! UGHHH!
As I asked previously are you able to have tabs open as a window by using the right clicking option ?
When you close Firefox you should use
*'''Firefox button -> File -> Exit '''
Are you doing that ?
I suspect what may be happening is Firefox is hanging as it closes down.
* see [[Firefox hangs or is not responding - How to fix#w_firefox-hangs-when-you-quit-it]]_firefox-hangs-when-you-quit-it
* this explains how to check & if necessary kill the process [["Firefox is already running but is not responding" error message - How to fix it#w_end-firefox-processes]]_end-firefox-processes
A related possible problem is that you may have built up many copies of the restore files. These are stored in the Firefox profile. The easiest method of finding the profile location istouse
*use '''Firefox button -> Help -> Troubleshooting Information <br /> -> [Show Folder]'''
*see [[Profiles - Where Firefox stores your bookmarks, passwords and other user data]]
You need to look for the files ''sessionstore.js'' and numbered duplicates of that. Delete them.
* see http://kb.mozillazine.org/Firefox_hangs#Multiple_sessionstore.js_files -
Change DB_NAME failed with NID-00133: Database should have only consistent.
I have created two testing database for active data guard with Oracle 11g on Linux. I created standby DB by using rman backup from primary database. Now I want to change DB_NAME of standby database. I used DBNEWID utility
%> nid TARGET=SYS DBNAME=newname SETNAME=YES
It generated the error like this
NID-00133: Database should have only consistent datafiles
Change of database name failed during validation - database is intact
Many datafiles even system datafiles are not consistent. I shutdown DB and startup mount again and tried again. It all failed with the same errors. I searched solutions on Oracle Support web and other twchincal web and couldn't find
answers. Please help me to get the solutions. Thanks.Thank each of you so much for your inputs.
Yes, based on oracle document, primary and standby shouid use the same name. But they can have different db_unique_name or instance_name. I created standby by using Grid Control. It automatically assign the same DB_NAME.
I modified db_unique_name. However, our PeopleSoft admin needs to connect to two databases to do testing. PeopleSoft version only support the different DB Name and DB Name cannot be over 8 characters. This is why I tried to
change DB_NAME to meet PeopleSoft Admin's requirement. I think, in the real world for data guard configuration, primary and standby should have the same db_name. -
Condition type PR00 can only be used once
Hi Experts,
Im faced with a strange problem. Request your help in resolving it.
I tried to create my own pricing procedure by copying from RVAA01. Then i deleted all the steps and created my own steps. But when im trying to save the document, it says PR00 can only be used once. I deleted this condition type and tried to save it, it again says K004 can only be used once. Even after deleting all the earlier conditions which i copied from RVAA01, why am i getting this error.
Your help is most appreciated.
Warm regards,
Sarat.You have deleted a row (i.e. condition type, say PR00).
After that click icon "Save".
Then when you create condition type PR00, system shall accept it.
Currently, you are deleting a condition type (PR00) but it is still "in memory" of the pricing procedure. You can not create the same condition type more than once in a pricing procedure. Therefore you can not create PR00 again & you are getting the error message.
First remove PR00 from the memory of the pricing procedure by clicking "Save", & then you can re-enter the same cond type. -
How do i get my external hard drive permissions changed from read only to read and write?
Does anyone know how to get an external drive to unlock the permissions from read only to read and write? Without reformatting or buying an app?
Hey P,
If you single click on your external drive icon on the desktop and then goto
'File > Get Info' a window will display the information for that drive. At the
bottom of the window their should be a check box that either allows you
to recognise users of not. You probably want to uncheck this box.
Or... You can keep the user option and just change the permissions
using the same Get Info window.
A. -
Display a particular column only when certain criteria is satisfied
Hi Experts,
I have a requirement from a user with which i am struggling. The person wants to see an entire report but see a particular column only when certain criteria is satisfied. I am not talking about filtering the entire Query but just a certain column.
Ex.
Data in Cube
Req | Candidate | Candidate Status | Grade
1 | C01 | Draft | A
1 | C02 | Withdrawn | B
2 | C03 | Hired | B
3 | C04 | In Process | A
3 | C05 | Hired | C
Result in Query
Req | Candidate | Grade
1 | <Blank> | A
1 | <blank> | B
2 | C03 | B
3 | <blank> | A
3 | C05 | C
Basically, user wants to see candidate information only when Status is Hired. Rest of the time, it should be blank.
Is this possible ?Hi,
From My view this is not possible in Query.
You can do this in Backend or
You can create 2 Query
1.Query whith candidate name who is hired.
2.Query without candidate name whose status is not hired.
3.Merge these these report using Excel Macro.
Thanks and Regads,
MuraliManohar
Maybe you are looking for
-
Options are Everything.
If you are to change a feature in the OS; whether it is in the early preview builds or the full shipment, you should almost always give your consumers the option to use the older option. This means that if you are to change the start menu to the new,
-
Trying to update iTunes and I get the error - "errors occured while installing the updates. If the problem persists, choose Tools > Download only and try installing manually". Currently on version 10.5.3.3 trying to update to 11.0.2 on a Windows 7 64
-
Hi! Last week i bought Mega stick128 MP3 and now I have a few problems with the connection to usb of my computer. I have Windows XP Professional service Pack 1 with driver USB 2.0 but when I put the stick in the USB and I try to explore my folder
-
Hii all of u ... My client is 100% EOU and the total taxes are excempted under the Bond value. But the Exchange rate should be considered the Customes House Exch Rate in GR , for that only we will get excemption , the Customes House will have one exc
-
The "support" for app store (and itunes) is utter crap?
When I try to guy anything from the app store, I get a message telling me to complete the purchase through itunes support. there is no itunes support, and the link to this support forum from mac appstore support is broken. ***? I can download the