Assignment Question with a DB

Hi
I have a mysql db.
After executinf a select query, with returned resultset
containing 2 columns, say date and x value,
- how do I assign each row using jdbc
to 2 independent arrays ?
- how do I find out the row sizes (ie # rows retrieved)
from the resultset ? cuz with that, then I could set
the array sizes that are assigned by resultSet.
Any help is appreciated.

There is no good way to detemine the size of a ResultSet without a fair bit of work (looping through the ResultSet can be time-consuming on larger result queries, and requerying the database is always time-intensive). Also, requerying the database could lead to problems... if someone else inserts a row between when you run your "COUNT" query and when you run your real query, you're gonna have an ArrayIndexOutOfBoundsException if you try to use the count variable to create the arrays ahead of time.
Using ArrayLists or Vectors, (or another datatype of that sort) usually works best for your situation. If you need to store multiple bits of information at each index, create another class that stores those variables (ie. name and date), and store those in the ArrayList.

Similar Messages

  • Can I assign subscriptions with Skype Manager?

    My company wants to implement Skype for cost reducing, but there is an important issue I couldn't find the answer for: can I assign subscriptions with Skype Manager? For example, I buy a 400-minutes subscription and assign this subscription for an user?
    If that is the case, can I take the subscription back from the user and give to someone else, or must I cancel it and buy a new one? And also, if an user is going to make 800 minutes in phone calls, in a land where there isn't a unlimited package, can I buy and assign him two 400 minutes subscriptions, or in fact as many subscriptions as I would like?
    The best solution for me would be to have subscriptions that I can assign to users when they need it, and if in a month they are going to use less minutes, I can take that subscription and give it to another user.
    Alternatively, I could have an account that many users would use, but at the same time and they would make calls at the same moment, and I don't know if Skype allows us to do this, both in computational terms as also in legal terms.
    Does anyone knows the answers to my questions or could give me a suggestion?
    Thank you for you time

    Assigning subscriptions with S.M. is very easy but unfortunately some countries are missing on the list. For example I need to assign a subscription for one of my users registered in SM, which allow make calls to cell phones to Ukraine at lower rates. It's not possible because there is no Ukraine on the drop down list. Could someone explain me why?

  • How do I reset my apple id security question with out a rescue email

    How do I reset my apple id security question with out a rescue email?

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (101013)

  • Enter a true account assignment object with revenues

    Hi there,
    At my current client site we implemented COPA - Costing Based. I mapped a few revenue accounts  to COPA. Now when I try to make a posting in to COPA using FB70 . The system issues a error Message "Enter a true account assignment object with revenues" . I know  the Prof Segment is the account assignment object  its looking for and the system is not deriving it  from the information I entered in the FB70 document. Am I missing somethig here? Did anyone out there face similar issue??
    You inputs are highly appreciated!
    Regards,
    Siva Padallaparthy

    Hi Siva,
    Please check note 373823 for this error. Also please go through the long text of error message KI166. The solution of the error is mentioned in the long text itself.
    Regards,
    Abhisek

  • Task 0085 for parallel SID assignment terminated with errors

    Hi,
    While activating the ODS object we are getting the following error
    Task 0085 for parallel SID assignment terminated with errors
    Can anyone help me on this issue.
    Thanks
    Sheela Datla

    Hi Sheela,
    Does the problem happen with activating the ODS object (definition) itself or with activating the data in the
    ODS? I think that there must be other errors apart from Task 0085. At the time of the error you should check in
    sm21 and st22 for additional error messages and dumps. If the problem is with the activation of data in the ODS
    you should also check sm37 for the job that is created for the ODS activation , you may find more detailed
    information in the job log. You should also check the activation step in the 'Details' TAB in the monitor for
    the load there may also be more detailed information here.
    In transaction rscusta2 (ODS customizing) you should try the following setting for the activation:
    No. of Par. Proc.    3          
    Min. No. Data Recs.  10000     
    Wait Time in Sec.      600
    Before changing the values you have in RSCUSTA2 please take note of the values you have already in
    case you want to change them back.
    Best Regards,
    Des.

  • Enter a true account assignment object with revenues while reversing FB08

    Hi All
    When I am reversing the document through FB08 I am getting the warning messege "Enter a true account assignment object with revenues"
    Message no. KI166
    Diagnosis
    You made an account assignment for 31211100, a revenue element, in controlling area 1000 to a cost center or profit center.
    System Response
    Cost centers and profit centers can carry revenues in the SAP system as statistics only. To ensure reconciliation between FI and CO for revenue element 31211100, a CO account assignment object must record the revenues as a real value. This object type is used for updating to the reconciliation ledger.
    In principle, it is possible for the SAP system to automatically derive this CO account assignment object, the reconciliation object. However, all postings made in CO for costing-based Profitability Analysis are logged in the reconciliation ledger under "reconciliation object". In this manner, the reconciliation ledger identifies the exact values flowing into the operating profit. If you post reconciliation objects during revenue postings to cost centers or profit centers, you must do so while keeping the interpretation of the reconciliation ledger reports in mind. The sums of revenue postings to profitability segments, cost centers, and profit centers cannot be broken down further.
    Procedure
    To avoid posting to reconciliation objects, make account assignments to a real CO account assignment object.
    If you want to post to reconciliation objects, you can change this message to a warning or a note for future users, or deactivate the message entirely. Use the Implementation Guide under "Controlling: General" and choose Change message control. Enter area KI and message number 166. If you do not enter an individual user here, the change is valid for all users.
    It is not allowing me to reverse the document already posted.
    Please guide
    Thanks in Advance
    Sonal

    Hi,
    Do you have this cost element maintained in OKB9 with a reference to an internal order or profitability segment? If yes, please look at the note 373823.
    Regards,
    Eli

  • Basic questions with respect to ABAP WebDynpro Application

    Hi All,
    I have two basic questions with respect to an ABAP WebDynpro application :
    a) If an ABAP WebDynpro application has been developed, how could it be made available to the end user?
    b) Can an ABAP WebDynpro application be developed in ECC or is it only applicable for version 4.6c?
    Thanks & Regards,
    Sushanth Hulkod

    Sushanth Hulkod wrote:
    > a) If an ABAP WebDynpro application has been developed, how could it be made available to the end user?
    >
    > b) Can an ABAP WebDynpro application be developed in ECC or is it only applicable for version 4.6c?
    a) If an ABAP WebDynpro application has been developed, how could it be made available to the end user?
    Answer - By providing direct link of the WD application created in SE80, creating iView for webdynpro abap application in the portal environment and  NWBC environment
    b) Can an ABAP WebDynpro application be developed in ECC or is it only applicable for version 4.6c?
    Answer - Yes it can be developed in ECC. Webdynpro ABAP is introduced in NW 2004s (SAP NetWeaver 7.0 or ECC 6.0)
    Thanks,
    Chandra

  • I am trying to find out how to assign files with particular extensions to the appropriate software. At the moment when I create a file using Word it is apparently given the extension .docx but Word doesn't recognise its own files. How do I alocate th

    I am trying to find out how to assign files with particular extensions to the appropriate software. At the moment when I create a file using Word it is apparently given the extension .docx but Word doesn't recognise its own files. How do I allocate the extension .docx to Word? There used to be a way of doing it, I think under "Preferences" but I can't seem to find it.

    Still in the same location:
    File > Get Info > Open with (select) > Change All (button)

  • Enter a true account assignment object with revenues - WARNING MESSAGE

    Hi All Experts,
    I am configuring PCA. Where my GL balances are not getting updated with having assignment of Profit Center. I am getting this below warning message :
    Enter a true account assignment object with revenues
    Message no. KI166
    Diagnosis
    You made an account assignment for 410000, a revenue element, in controlling area 8000 to a cost center or profit center.
    System Response
    Cost centers and profit centers can carry revenues in the SAP system as statistics only. To ensure reconciliation between FI and CO for revenue element 410000, a CO account assignment object must record the revenues as a real value. This object type is used for updating to the reconciliation ledger.
    In principle, it is possible for the SAP system to automatically derive this CO account assignment object, the reconciliation object. However, all postings made in CO for costing-based Profitability Analysis are logged in the reconciliation ledger under "reconciliation object". In this manner, the reconciliation ledger identifies the exact values flowing into the operating profit. If you post reconciliation objects during revenue postings to cost centers or profit centers, you must do so while keeping the interpretation of the reconciliation ledger reports in mind. The sums of revenue postings to profitability segments, cost centers, and profit centers cannot be broken down further.
    Procedure
    To avoid posting to reconciliation objects, make account assignments to a real CO account assignment object.
    If you want to post to reconciliation objects, you can change this message to a warning or a note for future users, or deactivate the message entirely. Use the Implementation Guide under "Controlling: General" and choose Change message control. Enter area KI and message number 166. If you do not enter an individual user here, the change is valid for all users.
    I dont understand when I am giving PC as CO Object assignment which is I think true assignment for revenue collecting over. Still system showing this warning message. I know this can be supressed by just pressing ENTER and I can save. By posting  in this way document even , I am not able to draw any report based on PC, neither KE5Z or F.01. All says No data found.
    What configuration piece I am missing ? Can any expert guide ?
    Regards,
    Revati Joshi.

    Just go to OKB9 and check the Cost Element, whether any default cost center or Profitability segment have been been assigned or
    not.
    If not, check if the Cost element is Revenue related, assign Profitability analisys. If not, check with settings of PCA.
    You shoukd never assign PC to a cost element ntil unless it is a Revenue element.
    Hope it helps
    Thanks

  • I cannot purchase anything at the itunes store because I am being ask for my security questions, but I don't remember them. How do you change you security questions with out knowing them?

    I cannot purchase anything at the itunes store because I am being ask for my security questions, but I don't remember the answers. I tried going to appleied.apple.com but I won't allow me to change my security answerswithout answering the original questions. How do you change you security questions with out knowing them? I need help.

    Welcome to the Apple Community.
    Start here, and reset your security questions, you will receive an email to your rescue address, use the link in the email and reset your security questions.
    If that doesn't help or you don't have a rescue address, you might try contacting Apple through iTunes Store Support

  • How do you resets your apple I'd security question with out calling apple

    How do you resets your apple I'd security question with out calling apple

    See Kappy's great User Tips.
    See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities https://discussions.apple.com/docs/DOC-4551
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us http://www.apple.com/emea/support/itunes/contact.html
    Call Apple Support in your country: Customer Service: Contacting Apple for support and service http://support.apple.com/kb/HE57
     Cheers, Tom

  • Account assignment question (for subcontracting item category)

    Hello
    Is it possible to have a account assignment category with a consumption posting indicator V work with a subcontracting item category L?
    Our scenario is that a SD item category TAB auto generates a Subcontracting PO with account assignment M and item category L.
    The problem with account assignment M is that it references sales order, and does not propose BOM component material/quantity, like a standalone subcontracting movement (541 reference to PO)
    We want to issue components to the subcontractor referencing a PO, and maintain visibility thru ME2O (Which account assignment M wont allow).
    Is this possible ?
    I tried tweaking the account assignment category M by changing the consumption posting indicator to V.
    This allowed me to do the subcontracting issue 541 movement referencing a PO.
    However, I got 2 accounting errors at MIGO.
    No direct postings possible to G/L account 03-010
    I then changed the FS00 settings to allow direct postings, but got the next error and was stuck. I guess if these accounts are postable, my problem is solved but I don’t know how to do that!
    Acct. 03-010 for trans./event key BSX, postable directly
    If anyone is knowledgeable on account assignments or knows how I can solve these, I would greatly appreciate your input.
    Regards
    Ken

    Thanks for replying again, Gopala.
    Let me clarify, the SAP error I am receiving is at MIGO, following the successful transfer posting at MB1B (mtype 541 referencing the PO number. If I can get the proper account postings at MIGO (as in a standalone MM subcon scenario) here, my problem is resolved.
    When I hit post at MIGO (Finished Product mov type +101/Component reduction is -543 O) I receive the error "Acct. 03-010 for trans./event key BSX, postable directly " I then goto FS00 (G/L accounts) and uncheck the 'post automatically only' box. But then when I goto re-post at MIGO, I get the message
    "No direct postings possible to G/L account 03-010"
    So I am stuck in this circular error.
    Is this correctable?
    Thanks Again
    Ken

  • I need some more interview question with answer on modeling,reporting.

    i need some more interview question with answer on modeling,reporting.

    Hi,
    You may find tons of topic about interview question. Please try to search forums before opening a post next time.Take a look at the link below.
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=bwinterviewquestions&adv=true&adv_sdn_all_sdn_author_name=
    Regards,
    ®

  • Investment order settlement- assignment field with order number in GL code

    We are settling the investment order to the concerned asset and in reco account of the concerned asset it has to update assignment field with Investment order number from which order settlement was happend.
    For example I am booking all the expences to 1000 GL account code for investment order and I am settling to 2000 GL code.
    Investment order number is coming in 1000 GL code in fbl3n and for 2000 asset class (Reco 2000 GL code) it it not showing IO number.
    We want IO number in 2000 GL code line item.
    Do the the need full.  It is very urgent..........
    Edited by: sudhakara reddy jakku on May 31, 2008 8:09 AM

    hi
    when u are seeing gl line item .onse u enterd inthat screen change layout screen tab will be ther u plz see the  IO filed and select that . to next saide it will give urs IO no.also

  • Assign Hotkeys with Oracle Form6i Triggers

    i have one problem in form6i.
    How to assign assign Hotkeys with Oracle Forms Triggers?
    hot to assign to assign F12 key with form trigger and what is the process?
    can you explain brifly?

    Hi User,
    Kindly follow the following link where I have summarized the usage of Oracle terminal.
    [Usage of Oracle terminal|http://gskaushik.blogspot.com/2009/05/oracle-terminal-reference-forms-6i.html|Click to follow link]
    Kindly revert for any clarifications
    regards
    Kaushik
    Kindly click Helpful if it helps or correct if the issue is solved

Maybe you are looking for