Who will implement jdbc api interface?

Hi Friends,
I have One doubt on jdbc api interface,
I will Explait it clearly
Through java if we want connect any database we need to use JDBC,
To conne to database,
We need to load the driver and
we need to establish the connection and
we need to execute some Query,ryte...
My exact doubt is...
the Connection class and the total JDBC API is interface,
to connect to the database,We need to use the above mentioned procedure but they are all interfaces,So those jdbc related interface must be implemented by someone.
But who is going to implement that interface?
I am very much confusing with this,
Can anybody help me out regarding this with an Example.........
Regards,
Anji.

Yes, the specific JDBC driver you use provides the implementation/concrete classes. So if you are using a oracle jdbc driver to connect to an oracle database, then as in your example:
Connection con= DriverManager.getConnetion("--------");will result in an Oracle Specific implementation connection class (say: OracleConnection) being associated with your connection. Since OracleConnection implements Connection, you can interact with it through this interface. If for some reason, you database changes to MySQL you can simply replace the JDBC driver and your call to "getConnection" will now return the MySQL implementation class without having to change all the code that uses the connection since the MySQL connection class uses the same interface.
In the same way, the JDBC driver has implementation classes for all the interfaces defined in the JDBC API (which you do not, and should not interact with directly). The driver will provide the correct implementation classes for your interfaces at runtime and you access them through their interface.

Similar Messages

  • WILL using JDBC API instead of LookUp APIs  hamper performance?????????????

    hi forum experts,
    i have done a JDBC call in a UDF in a message mapping to fetch some records from a database,
    i tried doing it with LookUp APIs,  but i think/found that LookUp APIs dont provide
    any method to execute DML statements, and moreover these APIs dont provide transactional behaviour....
    so i tried with JDBC APIs.......<<<<java.sql.*;>>>>.....where i used custom code to provide transactional behaviour........like explicitly using commit() methods. Where i m using Connection class...and in this case XI communication channels are not being used,,,....
    will using JDBC API instead of LookUp APIs hamper performance????????????

    Hi Sudeep,
    This will surely help u,
    /people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    /people/william.li/blog/2007/03/30/using-jdbc-connection-pool-in-xi-message-mapping
    According to help.sap
    Use of Lookup API - Calls to other application systems are sometimes necessary to meet the following requirements:
    &#9679;     To get <b>read </b>access to application system data in the mapping program
    &#9679;     To call existing mapping routines in the application system
    So DML statements couldnt be used
    Additional help
    /people/prasad.illapani/blog/2006/10/25/how-to-check-jdbc-sql-query-syntax-and-verify-the-query-results-inside-a-user-defined-function-of-the-lookup-api
    <i>[Reward if helpful]</i>
    Regards,
    Prateek

  • Jdbc oci interface and xdb API for oracle 9.2.0.7

    I have a Java application that uses the jdbc oci interface to connect to an Oracle database and insert some XML into an XMLType column using the XDB APIs provided in xdb.jar.
    OS : IBM AIX version 5.1
    JVM : IBM 32-bit SDK pour AIX, Java 2 Technology Edition, version 1.4.2
    libraries used :
    ojdbc14.jar
    nls_charset12.jar
    xdb.jar
    xmlparserv2.jar
    libocijdbc9.so
    with Oracle 9.2.0.1 the application worked correctly. However we have just upgraded from Oracle 9.2.0.1 to Oracle 9.2.0.7 and now the JVM crashes when the XMLType.createXML(java.sql.Connection, java.lang.String) API is called. The error message is :
    JVMDG217: Dump Handler is Processing Signal 11 - Please Wait.
    JVMDG303: JVM Requesting Java core file
    JVMDG304: Java core file written to /<snip>/javacore2375690.1152115549.txt
    JVMDG215: Dump Handler has Processed Exception Signal 11.
    start.shl: 2375690 Segmentation fault(coredump)
    In the javacore file we find the lines :
    1XHSIGRECV SIGSEGV received at 0xdd7b7d6c in /<snip>/libocijdbc9.so. Processing terminated.
    ... <snip> ...
    "Thread-2" (TID:0x3030B4D8, sys_thread_t:0x75A8B128, state:R, native ID:0xA0C) prio=5
    4XESTACKTRACE at oracle.xdb.XMLType.createXMLTypeFromStringNative(Native Method)
    4XESTACKTRACE at oracle.xdb.XMLType.<init>(XMLType.java:518)
    4XESTACKTRACE at oracle.xdb.XMLType.createXML(XMLType.java:593)
    Does anyone have any ideas? Changing the version from 9.2.0.7 is not an option.
    Thanks,
    Dave Gosling.

    The 9.2.0.5 patchset, and all patchsets, are available for download from Metalink.
    There should be a rather large variety of JDBC drivers that will connect to an 9.2.0.5 database if that's what you're asking about.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • JDBC API ( JSR 169 ) Implementation for accessing oracle lite database

    We are developing an application using IBM J9 (CDC and Foundation Profile) on Pocket PC 2003 environment with SWT as the front end development. We are using Oracle Lite 9i as the Client database.
    We have sucessfully installed Oracle Lite and was able to create tables in the database.. however we could not find the JDBC API (java.sql and javax.sql packages which is JSR 169 JDBC 2.0/3.0) inorder to load the JDBC driver(OLITE40.jar) and access the oracle Lite Database on Pocket PC.
    IBM J9 Micro Environement does not have this support.
    I am wondering if Oracle provides this implementation.
    If not is there a get around.
    the client database is crucial to the application and i would really appreciate an answer to our problem.

    Check out
    http://groups.google.com/groups?hl=en&lr=&threadm=cjgl3g%248hhm%241%40news.boulder.ibm.com&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26group%3Dibm.software.websphere.studio.device-developer
    I have had the same issue before.
    Regards,
    Ron

  • When we will go for an abstract class and when we will go for an interface?

    it's always some what confusing to choose an abstract class and an interface,can anybody post a suitable answer for this.

    jwenting wrote:
    with experience and the insight it brings, you will know which to use when.
    Without it, it can't be explained.
    More often than not there's no X OR Y anyway.It's fortunate that there are posters here who possess the insight and experience necessary to explain this. The principal differences between an abstract class and an interface are,
    1. An abstract class can carry implementation, whereas an interface cannot.
    2. An abstract class is singly inherited, wheras an interface is multiply inherited.
    So use an abstract class when the implementation it can carry outweights the fact that it cannot be multiply inherited That's the gist of it.
    The inheritance relationship where this happens is when the supertype is a general concept of which all potential subtypes are special cases. This is called a specialization (or sometimes a generalization) relationship. For example Apple and Banana are Fruit. Or Car and Bike are Vechicle. The Fruit and Vechicle supertypes are general concepts of which their subtypes are special cases. In this case make Fruit and Vechicle abstract classes because the subtypes will benefit from a shared implementation.
    If you don't have a clearcut specialization/generalization relationship make the supertype an interface. An example could be the Comparable supertype. The potential subtypes aren't supposed to be specializations of the Comparable concept, they're suppose to become Comparable (and make this property an integral part of their being). This is not a specialization/generalization relationship. Instead the supertype is intended to add character to the subtypes. The subtypes are unlikely to benefit from an inherited implementation. So make Comparable an interface.

  • About JDBC API

    "The JDBC API contains two major sets of interfaces:
    the first is the JDBC API for application writers,
    and the second is the lower-level JDBC driver API for driver writers.
    Applications and applets can access databases via the JDBC API using pure Java JDBC technology-based drivers."
    You can read this in the sun web site.
    When I have downloaded a jdbc driver for mysql database
    I have looked for source code and found those classes that implement the different interfaces belonging to package java.sql:
    at this point I imagine that this driver implements the first of the two interfaces in the previous sentence.
    I have not understood when the driver API for driver writers enter in this schema and if the second interface is anyway necessary for interact with the database: I would think that the second interface is necessary and is built with the driver API for driver writers, API that I have never seen.
    What do you think about this?

    I was thinking the same but now I am not so sure.
    Are you sure that API that belong to JDBC Driver API are not simply those concerning the driver manager?
    Anyway, when I download the driver in order to speak with the database, are there JDBC Driver API too?
    If you had reason, and the second volume of my official tutorial seems confirm this, the two interfaces would be completly separate.
    And I can not imagine a API that help me writing a driver for any database. Which type of help could give me?

  • Passing implementation of Java interfaces

    Hi
    I have a static function which I want to be supplied with a another class. Now the passed class needs to be an implementation of that class. How can I make sure?
    Thanks
    Saaransh

    an example:
    Lets say I have an interface :
    public interface foo
    //some methods
    Now thers a static function. Which I want should take in a parameter (an object) which has implemented the above interface.
    How do i do this?
    NOTE: I am making a framework API and thus the class making the object will not be known to me. It will be created by someone else and not me.
    Thanks

  • Public API/Interface name to import the payment information against invoice

    Hi,
    I want to get the Oracle supported Public API/Interface name to import the payment information against invoices(because there is a need to importing payment data against closed invoices from 11.5.5 to R12). Since I am not getting any standard oracle supported method, I am using the API AP_PAY_INVOICE_PKG.AP_PAY_INVOICE but while running it I am getting the following error:-
    Payment API Error =ORA-20001: APP-SQLAP-10000: ORA-28115: policy with check option violation
    occurred in
    AP_AIP_TABLE_HANDLER_PKG.Insert_Row <-AP_PAY_INVOICE_PKG.ap_pay_insert_invoice_payments<-AP_PAY_INVOICE_PKG.ap_pay_invoice<-.
    Regards,

    The below query will meet your requirement, but payment amount won't matches with some cases see below .
    1) Check Payment/EFT Payment for more than one invoice we will pay that time invoice amount is
    not equal to payment amount, Payment amount is greater than Invoice Amount.  This will be controlled in Report level.
    if you develop report using this query, there you can control this issue.
    SELECT aia.vendor_id, aps.vendor_name, aia.invoice_id, aia.invoice_num,
           aia.invoice_date, aia.invoice_currency_code, aia.payment_currency_code,
           aia.invoice_amount, aia.amount_paid, aia.payment_method_lookup_code,
           aia.payment_method_code, aia.SOURCE, aia.invoice_type_lookup_code,
           aia.voucher_num, aca.amount payment, aca.bank_account_name,
           aca.check_id, aca.check_number, aca.currency_code,
           aca.payment_method_lookup_code, aipa.accrual_posted_flag,
           aipa.cash_posted_flag, aipa.posted_flag
      FROM ap_invoices_all aia,
           ap_checks_all aca,
           ap_invoice_payments_all aipa,
           ap_suppliers aps
    WHERE aia.invoice_id = aipa.invoice_id
       AND aca.check_id = aipa.check_id
       AND aia.vendor_id = aps.vendor_id
    if it's meet your requirement pls check the Correct/Helpful Answer for your question.
    you can modify this query here and there as per your required fields.
    Thanks
    Hari

  • Who will do benefit enrollment? third party or In sap itself? who is the third party vendor?

    who will do benefit enrollment? third party or In sap itself? who is the third party vendor?

    Hi Rakesh,
    Who should handle benefit enrollement depends on client requirement.
    In SAP Benefit Administration module we do have enrollment function.
    Here is the document
    http://help.sap.com/saphelp_46c/helpdata/en/7e/8a5f51545711d1891c0000e8322f96/content.htm
    Client may chose to only store benefit related information and take help of other third party vendor and use interfaces to communicate it to SAP for payroll and master data maintenance.
    Aon Hewitt is one of the well known vendors. Might be more not sure of all names.
    Hope it answers your question.
    Regards,
    Jignya

  • Who will assign the prices for refurbished & faulty & on which basis

    Dear Friends
    while implementing this refurbishment process
    the pricing for c2 repaired & faulty c3 who will decide & on which basis
    since every time we cannot have same fault for c3 (sometimes winding burn ,sometimes bearing faulty then for all how it will have same value as c3)
    & in case of c2 what about depriciation
    can you focus more
    Regards
    chandrashekhar Ingole

    Dear Vinay & thagrajan
    Thanks for your reply
    Now it is clear that faulty c3 has the value low which pm person will assist to mm&fi people
    Regarding c2 which we be repaired but it has depriciated value as copmare to new .
    But how will utlimately give in sap wherther mmor fi whose work is this exactly
    I am rewarding you with points but answer to my question please
    Regads
    chanrda

  • Create AP Payments (Check, EFT,ACH, Manual ) through API/Interface

    We create invoices in our oracle EBS R12. But as we are child unit of a larger company, they make all the payments via PeopleSoft and send us a EDI file. So now, we want to develop an inegration application using the API/Inerface to apply all the payments for different payment methods in our EBS system.
    Firstly would it be possible to develop an application using API/Interface to solve the problem.
    Secondly what interface I should be using for payment not only for check payments.
    Thirdly whould using AP_PAY_INOVICE_PKG (which is not a API/Interface) will solve the problem.
    Should I be using this package? What other options are out there which let me automate the payment procedure in EBS.
    Thanks

    Hi Schwartz,
    You say you create invoices in your Oracle EBS R12 and pay in Peoplesoft. If that is the case, then you must send the invoice details to Peoplesoft. In which case, at the time you send them to Peoplesoft, from an EBS perspective you have effectively paid them. Why not just pay them in Oracle EBS and send the payment details to Peoplesoft so you can cross reference the payment numbers? Once they are paid in Peoplesoft, as long as you have paid them in the same way, then you could send the Peoplesoft payment number reference back to EBS and store in DFF on Oracle EBS Payment record or similar... the complication is then voided / unpresented cheques etc...
    Update: when I say "pay them in EBS" I mean process the payments, but don't create Checks / EFT etc.
    Regards,
    Gareth
    Edited by: gareth.roberts on Nov 2, 2009 7:58 PM

  • Create AP Payments (ACH, EFT, Check, Manual, Wire) through API/Interface

    We create invoices in our oracle EBS R12. But as we are child unit of a larger company, they make all the payments via PeopleSoft and send us a EDI file. So now, we want to develop an inegration application using the API/Inerface to apply all the payments for different payment methods in our EBS system.
    Firstly would it be possible to develop an application using API/Interface to solve the problem.
    Secondly what interface I should be using for payment not only for check payments.
    Thirdly whould using AP_PAY_INOVICE_PKG (which is not a API/Interface) will solve the problem.
    Should I be using this package? What other options are out there which let me automate the payment procedure in EBS.
    Thanks

    Hi Schwartz,
    You say you create invoices in your Oracle EBS R12 and pay in Peoplesoft. If that is the case, then you must send the invoice details to Peoplesoft. In which case, at the time you send them to Peoplesoft, from an EBS perspective you have effectively paid them. Why not just pay them in Oracle EBS and send the payment details to Peoplesoft so you can cross reference the payment numbers? Once they are paid in Peoplesoft, as long as you have paid them in the same way, then you could send the Peoplesoft payment number reference back to EBS and store in DFF on Oracle EBS Payment record or similar... the complication is then voided / unpresented cheques etc...
    Update: when I say "pay them in EBS" I mean process the payments, but don't create Checks / EFT etc.
    Regards,
    Gareth
    Edited by: gareth.roberts on Nov 2, 2009 7:58 PM

  • Can I use API Interface in forms6.0.., How???

    Hello friends,
    Here I want to use a simple API interface in my forms6.0.
    Like PageMaker6.5 Interface in forms6.0
    Is there any way of using the application, Like Internet Explorer can show Word Documents or PDF files directly.
    In the same way Can I show PageMaker files in Forms6.0
    A good suggesstion is appreciated.
    regards,
    Praveenkumar Talla (Pune, India)

    You can access devices connected to the USB port, but not in the same way as you would a GPIB or RS232 device. There are no USB drivers like there is VISA for GPIB or serial. Rather devices that plug into the USB appear to the systen as some sort of standard resource like a printer, disk drive or IO board. LabVIEW then interacts with these devices as it would any other device of the same type.Look at it this way, if you have a USB daq device you will access it through MAX the same as if it were a plugin card. Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Implementing an API in ColdFusion

    I need to implement an API that would allow a membership
    website
    written in CF to share data with a CRM database I use.
    The company makes available some API Sample implementations
    in asp, java, javascript, perl, php, & python - along
    with documentation.
    The company that wrote the CF membership site is not
    interested in
    doing any programming/support for this project.
    Not knowing anything about CF personally, can anyone tell me
    if
    this it possible, and if it is difficult?
    If it is possible, is there a place I can contact a CF
    programmer who
    would know how to do this?
    Thanks so much,
    Dave

    If the API is already written in ASP, then I am sure it is
    possible in ColdFusion.
    You may want to look into Rent a Coder to find a programmer (
    http://www.rentacoder.com)

  • Who's Implemented E-Recruiting in North America?

    I am looking for a list of all companies or client descriptions who have implemented/implementing E-Recruiting in North America.
    Here's a start...
    -Purdue University (Realization)ECC 5.0 / ER 6.0
    -Halliburton (Realization)4.6 / ER 3.0 SP11
    -Mentor Graphics (Live)
    -Manitoba Hydro (Live)
    -Mid Technology Manufacturing client (Prep) ECC 5.0
    Reward points will be given for each response.
    Extra points if you know the technical architecture (stand alone, integrated) and version of SAP (4.6, 5.0, etc.)
    An SAP consultant said only 8 companies in North America have either implemented or are implementing.  It was also mentioned that all implementations to date have been stand alone.  I have a hard time believing both of those statements.  I am looking for a company/client who has implemented an integrated solution to assist with technical architecture understanding.
    Thanks in advance,
    Jeff
    Message was edited by: Jeff Reva

    Hi Jeff,
    I have also heard eight, not including current ramp-up customers, in NA.  Worldwide, the number is closer to 30 but many more licenses have been sold.  I have no names to contribute but you might check with your SAP AE, if you haven't, as they can provide those who are referenceable.  Your SAP consultant should be able to contact the Product Managers for eRec and get as much of this information as is available to customers for you, as well. 
    I understand one customer is either live or implementing on one instance, but remember, this wasn't possible until ERP2004.  Also, customers may decide against this option for security reasons (perhaps not justified but they may feel better having external data on a separate instance.)
    I'm sorry I can't provide more information.
    Regards,
    Sharon

Maybe you are looking for