Statement and ResultSet Interface type of Object

Hi,
Can any one explains me where exactly (in which Class) the implementation of the Statement and ResultSet Interface type of Object Instance be created
Regards
Krishna

I dont really understand what you are trying to ask but:
Your JDBC driver has concrete implementations of Statement and Resultset. If you want to know what classes are being used try something like:Connection con = ??;
Statement st = con.createStatement();
ResultSet rs = st.executeQuery( "???" );
System.out.println( "Connection class: " + con.getClass().getName() );
System.out.println( "Statement  class: " + st.getClass().getName() );
System.out.println( "ResultSet  class: " + rs.getClass().getName() );

Similar Messages

  • How to export & import interface type data object to memory

    Hi experts,
    My greetings to all.
    we have came across a situation where we need to pass interface type data object to memory
    and import same from memory.
    DATA context TYPE REF TO if_timecontext.
    its not possible with regular export statement.
    is their any other way to do it?
    Thanks in advanced,
    Sudhir

    Thank you saurabhmani & sandra.
    @ saurabhmani : i tried assigning object context to memory (field-symbol) and exporting it to memory, but got runtime error.
    @sandra : XML serialization & shared object concept sounds intresting but as you already checked that interface IF_TIMECONTEXT is missing the required IF_SERIALIZABLE_OBJECT interface.
    Istead of exporting context data object to memory we tried different approch and it worked out for our requirement
    Regards
    Sudhir

  • JDBC: Closing Connection does it close statement and resultset

    In my application I am facing ORA-0100 Maximum open cursors exceeded problem. We are executing quite a few queries and stored procedures before we close the connection object. But in few places statements and resultsets are not closed. Can these be a problem? Shouldn't they be automatically closed when the connection is closed?
    We are executing this block of code in a loop.

    in few places statements and
    resultsets are not closed. Can these be a problem?Yes.

  • Pooling Prepared Statement and Resultset

    Is their any mechanism in Weblogic by which we can pool prepared statements and
    resultset.

    Yes you can cache prepared statements. The connection pool will
    automatically cache the prepared statements (10 prepared statement was the
    limit in previous so you may want to write some startup class to load the
    imp prepared statements.). When you reuse the prepared statement the
    connection pool will pick it from its prepared statement cache. In 6.1 you
    can configure the number of prepared statements that you want to cache.
    But you cannot have multiple resultsets open for the same statement object.
    You can have cache rows though.
    Please search the bea newsgroups for more info. There are a bunch of posts
    that will be helpful to you.
    http://search.bea.com/weblogic/gonews/
    sree
    "hogan" <[email protected]> wrote in message
    news:3bd9cf88$[email protected]..
    >
    Is their any mechanism in Weblogic by which we can pool preparedstatements and
    resultset.

  • Closing Statements and ResultSets

    I just recently realized that you need to close Statements and ResultSets in order to avoid getting the "Too many cursors"-message.
    My question is:
    Do you need to close both Statements and ResultSets?
    - not that it's a problem...
    if so:
    Does it matter which one you close first?

    I usually place the stmt.close() code in my finally block, to ensure that the statement gets closed, even if a SQLException occurs during the query/update. The ResultSet does not explicitly have to be closed, ... it is automatically closed when the Statement is closed, or if a new query is run on the same statement.

  • Difference between tables statement and by using type statement

    Hi all,
    I need to know the difference between the two of the below statements
    Tables spfli.
    and
    data spfli type spfli with header line.
    As far as i know both seem same to me.
    Thanks in advance,
    Bala.

    >
    Bala Shanmuga Priyan wrote:
    > Hi all,
    >
    > I need to know the difference between the two of the below statements
    >
    >
    Tables spfli.
    this will create a work area (spfli), looks like DB table spfli, but the statement is obsolate
    Bala Shanmuga Priyan wrote:
    >
    data spfli type spfli with header line.
    this will result in a syntax error, because this would also create a work area, but they cannot have header lines, so you should leave the WITH HEADER LINE addition.
    To create work area use:
    DATA : gw_spfli TYPE spfli.
    To create internal table:
    DATA : gt_spfli TYPE TABLE OF spfli.

  • How to add new picklist value to states and countries to Address object

    Hi,
    I like to query and update picklists, state and country, in the address. What're the record type and filed name for them?
    I tried record type, Address and field name, State and Country, with no luck.
    Thanks

    Hi,
    As far as I know you cannot modify the address object at this point of time.
    If you want to add values or modify the picklists for State & Country, you would need to use custom fields and add all required values and then use those fields. (You can remove the Addres Object completely from the layout and then substitue it with the custom picklists that you have designed - possibly cascading picklists with Country as parent and State as child )
    Hope it helps.

  • Object type vs interface type

    Hello experts,
    can anyone tell me whats the difference between object type and interface type avilable in swo1 transaction.
    i also wnt to know, what is object ... object type and classes?
    waiting for reply..
    -Shweta

    Class is just like some folder holding all the objects related to this class, lets say youve a class comanies then this class should hold all the objects related to the company, like
    company id, company name , company address,, etc
    for the objects types there are 3 types of them
    Dimension
    Details
    Measure
    Dimension, is the indecator for this objects, like companyID, so this is a dimenions which is indecates the company
    Details, is the some extra information about some Dimension
    if you have a dimension CompanyID, you can put the CompanyAddress object as a detail object for the CompanyID dimension and also like CompanyFAX , CompanyPhone,, etc
    Measure, when you say measure that means something you use to measure things, when it comes to some measure in this company, like if we say a sales system, then the amount of the sales should be measure, coz you measure your company performance based on the sales amount same also for no of transactions, cost,,,, etc
    and they always be aggregated to some aggregate function
    like SUM, AVG, MAX, MIN,,,, etc
    hope this was helpfull
    good luck

  • Object-oriented programming: state and behaivor

    First of all, sorry for my level english.
    In Object-Oriented programming, should an object save always some state?
    What about session stateless bean service? What is the sense?
    These objects have only behaivour and not state.
    Perhaps, the sense is that you can send a message to this object, in oposite of a static methods in utility class?
    Thanks and regards.

    I suppose you could argue that if it doesn't have any state, then it's not really an "object" in the OOP sense, but who cares, really.
    Personally, I use state and behavior as a way to help clarify the responsibilities of various classes in the system, and if I see a codebase with a lot of objects with state but no behavior or behavior but no state, then it's a a red flag that it's a messy, poorly-thought-out design (and it usually turns out to be exactly that). The whole point of OOP (IMHO) is encapsulation, and bundling state and behavior together makes things encapsulated (you can prove that state changes only in certain areas in certain circumstances). Encapsulation makes for more easily maintainable code.
    It's easy to spot the blue squares in a Mondrian. It's difficult to spot the blue bits in a Pollock. The former is well-encapsulated OOP and the latter is poorly-encapsulated spaghetti code.
    That said, it's not the end of the world if you have a static utility class here and there.

  • How to clear the RX and TX rate stats of an interface

    On a catalyst switch when I use the command "show interfaces summary" I get great stats on the interfaces.  Issuing the command "clear counters" clears the numbers for these stats regarding dropped packets (and a lot of other things, I know), but it doesn't clear the tx and rx rate stats.  So my question is:
    1) is there a way I can clear them
    2) how are they calculated in the first place
    Thanks,  Mike

    I believe tx and rx rate stats are not cumulative counters.  If you have no traffic (and your refresh rate is 30 seconds) then those values will be 0.

  • EEWB :  how to determine the business object and the extension type ?

    Hi,
    I ask myself how to determine the business object and the extension type to use to add new fields in a new tab of a specific transaction ? what means each business object, does that correspond to a specific transaction ?
    I need to add a new tab in the ‘BaMI’ business activity in transaction CRMD_ORDER just after the tab 'Actions' at header level.
    Could you help me please to determine which business object and extension type I have to select during creation of the project and which business object category I have to select during creation of the extension (wizard) ?
    Thanks for your help,
    Marie

    Marie,
    In order to determine what type of transaction you are extending, you will need to look at the customizing for the transaction.
    In the IMG:
    Goto:
    Customer Relationship Management->Transactions->Basic Settings->Define Transaction Types.
    You will then choose the transaction defined that you want to extend.  If you display the details of the transaction you will find an attribute called:
    "Leading Transaction Category".  This tells you the general context in which the transaction is used.  The other item to view is the assignment of business transaction categories found in the maintenance screen.
    This information general corresponds to one of the options that the EEWB will give you on the transaction type.
    As far as extensions go, my recommendation is the following:
    - Use CUSTOMER_H Customer Header Extensions for any new fields at the header level.
    - Use CUSTOMER_I Customer Item Extensions for any new fields at the item level.
    Unless you have a specific requirement to extend a segment of the transaction, I recommend placing all new fields in these segments.  The CUSTOMER_H & CUSTOMER_I segments are considered "standard" segments, that are already built into all the necessary API structures. 
    Let me know if you have any further questions.
    Good luck,
    Stephen

  • How to find out resultset,statements and connections are not closed

    Hello,
    In Jdeveloper 10.1.2 how can I find out that in my code,
    I have resultset,statements and connections are not being closed.
    Any help is highly appreciable.
    Thanks

    Hello Vijay,
    On MSSQL truncation of transaction log does not shrink the size of the transaction log. It simply removes the content within the transaction log and writes it to the backup.
    Meaning the free percentage within the transaction log will increase.
    If you want to Resize the transaction log size, you need to do something else.
    The shrinking procedure is given here:
    http://support.microsoft.com/kb/907511
    Regards,
    Siddhesh

  • Authorisation objects for RV and DR document types

    Dear Consultants
    Could any one tell me that, what are the authorization objects for Document types RV and DR?
    we need to  give the base line date  change authorization for the documents which has been posted through RV and DR document types for  some particular users
    early reply will be highly appreciated
    Regards

    Maintained a role with that Authorization Object F_BKPF_BLA for
    Auth Group (0001). And gave activity Nil. ie do not want to
    allow any activity by that Group. Maintained Organizational
    Level Values for Co Code. Generated a profile. Assigned the
    Profile and Role in the User Master.Try running a trace using ST01 and confirming that F_BKPF_BLA is the
    only object for which the user is passing the authorization check (RC 0). It's possible that other authorization objects are granting access
    That need to be configured in customizing.
    Trx OBA7 or IMG path Financial Accounting / Accounts Receivable and Accounts Payable / Business Transactions / Incoming Invoices/Credit Memos / Carry Out and Check Document Settings / Define Document Types,use table TBRG
    use F_BKPF_BLA. Check if it is possible to have
    the t-codes in question check this object in su24

  • TopLink and ResultSet: ojdbc14 vs. ojdbc6 - Closed command

    Hi all,
    I have problem with ojdbc library. We updated our ojdbc library from ojdbc14 to ojdbc6. But now, we have problem with SQLExcpetion: "java.sql.SQLException Closed statement".
    We have following code:
    Object result = session.executeQuery(query, args);
    Map map = (Map)((Vector)result).firstElement();
    // the data is in data type OracleResultSetImpl !!!
    OracleResultSet out_data = (OracleResultSet) map.get(EmtasConstant.GRID_PROCEDURE_DATA_OUT);
    OracleResultSetMetaData metadata = (OracleResultSetMetaData) out_data.getMetaData();
    If we used library "ojdbc14.jar" everything works fine, we get metadata, read data from resultSet, etc... No problem!
    But if we using "ojsbc6.jar" and call getMetadata, then throws: "java.sql.SQLException: Closed command: getMetaData" .. or "ava.sql.SQLException: Closed command: next()" or whatever we call on OracleResultSet out_data (we try OracleResultSet and ResultSet too)..
    If we used "ojdbc14.jar" and I call out_data.close(), they throws same exception => Why is the ResultSet in library ojdbc6.jar closed??????
    Any idea? I'm really stuck and I all day trying to come to solve the problem, but I resolved nothing.
    Pls help!
    Thx!
    Best regards, KLD!
    Sry for my English ;)

    Yes, I have newest version of TopLink (11.1.1. ...) and Java (1.6_09).
    Or, is any option how to convert ResultSet to any "normal" java object (like hasmap,collection, list, ...)
    I returned multiple cursor objects from stored procedure, and I resolved it as follows:
    More output cursors with StoredProcedureCall?
    but now I have problem with ResultSet and i don't want call more times the procedure call (first option)...

  • How to create multiple TYPES of objects from one menu?

    Q: How can I create a single class to create objects of multiple 'object classes' in a way that is not a huge switch statement?
    Explaination:
    Let's say that I have an application that I am building, that manages five hundred object types. A properly-built object subclassing tree is created, and I want to be able to create objects of any 'leaf node' of this subclassing tree using a single 'objectCreate()' method in a 'factory object'. The purpos of this method will be to create an instance of the correct object, pass a handle to a few collections for properly sorting and storing these objects in groups.
    Usually, one could create a switch in this function, testing for the type of object that the user wants to create from the menu. But in the case of having hundreds of possible object choices, this becomes harder and harder code to maintain (let alone performance).
    Any suggestions?

    But if my menu has:
    1. German Shepard
    2. Doberman Pinscher
    3. Malamut
    4. Persian Long-hair
    5. Siamese
    6. Tabby
    And my object class tree goes:
                                  [ Animal ]
                 [ Cat ]                              [ Dog ]
      [ various breeds ]                         [ various breeds ]How do I code the menu class to respond to the input, so that it runs the correct [breed] object's constructor?
    The line:
    Animal choice = new xxxxxxxx();
    I can't use a variable to replace 'xxxxxxxx' in run-time, but having a ton of choices in code sounds/looks unreasonable.
    if (choice == "Doberman Pinscher")
    Animal choice = new doberman();
    else if (choice == "Tabby")
    Animal choice = new tabby();
    Do you see what I am trying to avoid? I am not experienced enough to instantly realize how to avoid the latter, and instead, do a single instantiation command for the correct constructor.

Maybe you are looking for

  • I want to know how to change schedule on Transport Requests

    Hi. I want to know how to change schedule Transport Requests. And the Transport requests has already approved by Transport Proposals. Now I tried to change schedule after re-creat Transport Request,it is same Transport Request Number. But I can't cha

  • Hi GIRU,How to check workflow status in a database

    Hi GURU, I am a DBA one user asked me to chke the workflow status for om order line in database.Any body help me how to check the status of workflow om order line in database.

  • What does the "Home Media" in my N82 do exactly???

    Hi guys, i found this "Home Media" thing in my N82 and didn't know what is it all about, what does it do or how can i use it?? i saw somwhere that you can share things from your PC to your phone or from Phone to PC or sth like that but couldn't under

  • Installing Snow Leopard over Mavericks

    I messed up my Mavericks installation by using CleanMyMac, and cannot user software update, download from the App Store, use Preview or a number of different apps. System Restore does not work for some reason, maybe CMM messed that up too. I am going

  • How do i play poker on unibet

    how do i play poker on unibet? how can I read an excel file in my é-mail