Oracle Data Access Layer - w/Enterprise Services

I'm looking for an example Oracle Data Access layer incorporating Enterprise Services with at least a simple window form inserting and updating data tables.
Can somepoint point me in the right direction?
Thanks,
Tony

Hi Tony,
I would recommed you hit some of the popular .Net Development sites on the Internet. For example, just googling on .Net Enterprise Services provides links where simple samples can be reviewed. These generic code samples can then be tweaked to include ODP code for data access. If your components or code will be enlisting in transactions with MTS, hence your class or aspx page is transactional, you will need to install the Oracle Services for MTS in addtion to the ODP driver.
HTH
Jenny

Similar Messages

  • Transfer Of Data from Sap to Oracle with the help of Enterprise Services.

    Hello,
    We want to transfer data from Sap to Oracle using standard Enterprise Services.Some fields were not available in the existing standard Enterprise Services,so we have enhanced the existing Services by writing code inside BADI available with Enterprise Services.Rest of the fields we have mapped with the existing fields available in standard Enterprise Services.But,the Oracle people want to fetch all data from Sap without entering any input as a mandatory field in the Enterprise Services.The existing standard Enterprise Services require to enter any field as mandatory and are not accepting the range in input for multiple records.e.g.All enterprise Services related to Sales Orders are displaying only one sales Order.We have searched all Enterprise Services for Sales Order(related to reading of data),but not able to find service which would display mutiple records without entering any input.ECC_SALESORDER009QR is the only service which is displaying multiple records without entering any input,but the required fields are not available in this service.So,kindly suggest what we need to do further.
    1.Should we go for customization of services completely,so that it would fulfil our requirement.
    2.Are there  standard Enterprise Services exists which would we give us data in range(all records).
    If they exists,please specify the names of Services for reading Purchase Order,Production Order,BOM etc.
    Thanks & Regards,
    Divya.

    Hi Vaibhav,
    Let me tell you the objective in detail.
    Objective.
    To develop a package solution which will work as a bridge between Oracle APS and SAP system so that customers using SAP will be able to use advantages of Oracle APS for their planning needs.
    This will consist of following major components:
    OA Templates is an Oracle utility to load data from any legacy system to Oracle APS using standard flat files.
    Oracle has developed an Application Integration Architecture which is a standard architecture used for integration of Oracle products with other systems.
    Enterprise services is an SAP utility to communicate with SAP.
    AIA canonicals are standard canonicals developed by Oracle where we have to map data fields from destination system (Oracle APS) and source system (SAP)
    Fusion middleware is being used to develop application interfaces following AIA standards.
    Tasks at stake:
    Mapping of Oracle APS fields and SAP Enterprise Service fields to AIA canonicals
    Technical work of developing middleware using Oracle Fusion
    From Sap side,we have to map fields which we have received from Oracle with the help of Enterprise Services,rest  consumption of these services is done by Oracle guys.So,suggest is there enterprise services available which would give us multiple records .
    Thanks & Regards,
    Divya.

  • Flex/Coldfusion data access layer

    Hi
    I'm researching ways to achieve a data access layer using flex/coldfusion.
    Currently it seems that I would need a RemoteObject on each flex component that will access ColdFusion (a cfc that will access a database).
    I'm not sure if it's possible to have a data access class, which will contain a single RemoteObject, and somehow I will be able to request data from a component and somehow retrieve it again. I have the feeling I'd have to dispatch events at the component level, and also include the result handling here too, which I'm not sure is ideal. I haven't been able to decide on a strategy yet.
    So far I've only found articles describing a need to have a layered structure when building a large data-centric application, however no examples of how this is actually acheived.
    If anyone has seen any examples of this please could you share them here.
    Thanks.

    I am looking for something similar, but I am not too
    sure how it would work.
    I have tried developing one myself, using the
    underlying interface classes, but I am unsure how to
    overcome the differences between SQL Server and
    Oracle when returning result sets. SQL Server is
    happy to return a DataSet from a stored procedure,
    but Oracle must be given a Ref Cursor variable
    parameter for each DataTable returned.
    This means that the calling code must differ between
    SQL Server and Oracle.
    If anyone can suggest a neat way to get over this,
    I'd appreciate it.
    Check out the DAABv3 from GotDotNet. It implements an abstract factory pattern for data providers. It works with Oracle, but not, I think, with ODP.NET. It's extensible, though, so ODP.NET support could be added.
    In addition the V2 of the .NET framework will have an abstract factory pattern for data providers built in.
    On the particular question of ref cursors and Sql Server, here's what I do. My Oracle procedures which return result sets always return only one, and, by convention, the ref cursor parameter is the last one. Then I use a helper method like FillDataTable, or ExecuteReader to interface with the database. The application is bound the SqlServer definition of the procedure, but in the Oracle version of the helper function I simply add another parameter to the end of the command parameters to receive the ref cursor.
    David

  • Data Access Layer

    Hi:
    Does anyone have a provider independent .net data access layer including odp.net?
    Thanks
    Ram

    I am looking for something similar, but I am not too
    sure how it would work.
    I have tried developing one myself, using the
    underlying interface classes, but I am unsure how to
    overcome the differences between SQL Server and
    Oracle when returning result sets. SQL Server is
    happy to return a DataSet from a stored procedure,
    but Oracle must be given a Ref Cursor variable
    parameter for each DataTable returned.
    This means that the calling code must differ between
    SQL Server and Oracle.
    If anyone can suggest a neat way to get over this,
    I'd appreciate it.
    Check out the DAABv3 from GotDotNet. It implements an abstract factory pattern for data providers. It works with Oracle, but not, I think, with ODP.NET. It's extensible, though, so ODP.NET support could be added.
    In addition the V2 of the .NET framework will have an abstract factory pattern for data providers built in.
    On the particular question of ref cursors and Sql Server, here's what I do. My Oracle procedures which return result sets always return only one, and, by convention, the ref cursor parameter is the last one. Then I use a helper method like FillDataTable, or ExecuteReader to interface with the database. The application is bound the SqlServer definition of the procedure, but in the Oracle version of the helper function I simply add another parameter to the end of the command parameters to receive the ref cursor.
    David

  • How to Install Oracle Data Access Components (ODAC) on Windows Server 2003?

    I recently installed "32-bit Oracle Data Access Components (ODAC) with Oracle Developer Tools for Visual Studio" on my computer (Windows 7, 64bit). Everything seems fine and I can develop and run my application in Visual Studio 2010 and IIS 7.
    Now, when I deploy my application to the Server, it raises error:
    Exception: System.TypeInitializationException: The type initializer for 'Oracle.DataAccess.Client.OracleCommand' threw an exception. ---> Oracle.DataAccess.Client.OracleException: The provider is not compatible with the version of Oracle client
    Obviously I need to install ODAC on the server, too. My server is:
    - Windows 2003 32 bit R2 (I know, I know!)
    - IIS 6
    So. I downloaded the same installation from Oracle website (ODAC 11.2 Release 5 and Oracle Developer Tools for Visual Studio [11.2.0.3.20]) and installed it on the server. But still getting the same error.
    PS: When I was installing, I chose Oracle Data Access Component for Oracle Client 11.2.0.3.20 in Oracle Universal Installer. hmmmm. Should I choose "Oracle Server" instead? Screenshot
    Edited by: 1000434 on Apr 17, 2013 6:35 AM
    Edited by: 1000434 on Apr 17, 2013 6:36 AM

    ODP.NET, Unmanaged Driver uses unmanaged dependencies in the Oracle Client. The error you see means you have another Oracle Client installed on the Win2003 machine and ODP.NET is attempting to load the incorrect Oracle Client version, rather than the version you installed ODP.NET with.
    What you need to do is direct ODP.NET where to find the correct version of its unamanaged Oracle Client dependencies. This will be generally the bin directory of your Oracle Client home that was installed with ODP.NET.
    You can learn more about DllPath here:
    http://docs.oracle.com/cd/E20434_01/doc/win.112/e23174/InstallODP.htm#sthref94
    If you're not familiar with how to set ODP.NET settings in the Registry or .NET config files, you can read how to do that here:
    http://docs.oracle.com/cd/E20434_01/doc/win.112/e23174/featConfig.htm#sthref106

  • How to check if Oracle Data Access Components  is installed?

    How to check if  Oracle Data Access Components is installed and version on my computer?
    Also How to check if Oracle Data Provider is installed and version?
    TIA
    Steve42

    Regedit HKLM->Software->Oracle.  See what's there...
    At the very least, that can give you paths and can check file versions from there.

  • Issue while Installing Oracle Data Access Software for Windows

    All,
    Iam getting the following error while installing Oracle Data Access Software for windows. Iam installing in WindowsXP, with Oracle 9i release 9.2.0.7.0 DB and client in the same Box.
    It shows
    The Specified Key key was not found while trying to GetValue
    * Stop installation of all Products
    * Stop installtion of this componenent only.
    Kindly let me know why this error is showing up.
    Regards
    Ramesh

    Most probably you have hit this issue:
    "If you have more than one Oracle Home installed on the same machine (e.g. Oracle8i client and Oracle9i Release 2 client), use the Oracle Home Selector to run your applications with Oracle9i Release 2 client. "
    As documented on the Oracle Data Access Software for Windows. Release 9.2.0.4.0
    ~ Madrid.

  • No Setup.exe in 64-bit Oracle Data Access Components (ODAC) Dowload

    Why is there no Setup.exe in the 64-bit Oracle Data Access Components (ODAC) Download? Are the only instructions for installing in the dowloaded readme file?

    You're probably looking at an XCOPY bundle.
    If you're looking for an x64 11.2 bundle installed via the Oracle Installer, you'd need to get either the 11201 full client on OTN, or the 11202 full client on My Oracle Support. The 11202 full client includes support for .NET 4 if you need that.
    Hope it helps,
    Greg

  • Data Access Layer In BPM

    Hi,
    I am using WLPI. I need to define the data access layer. As workflows deal in
    XML and for JDBC calls I need value objects. I have few questions:
    Is there any proffered way of communication between BPM and database?
    Does BEA/Sun/BPM Users recommend entity beans for data access thru BPM?
    Do I have to write XML to value object and vice versa logic for each type of communication?
    Please recommend a standard approach.
    Thanks,
    Parag

    My questions are:
    Is it proper to use AI Adaptors for normal database storage? and is there any
    way to store the XML into its db representation? I was thinking of calling business
    operation from BPM, passing the xml and parsing it in session bean and make jdbc
    calls in ejb. Looks like a lot of effort. Hence I am curious to know other solutions
    Thanks,
    Parag
    "Dharnidhar Vemuri" <[email protected]> wrote:
    Hi,
    Ways that I can think of are
    - using Application Integration, specifically views (it also
    uses
    EJB)
    - EJB classes
    - a java class
    I didn't get u what u meant by XML to value object. Can u be in more
    detail.
    Thanks
    Dhar
    "Parag" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I am using WLPI. I need to define the data access layer. As workflowsdeal
    in
    XML and for JDBC calls I need value objects. I have few questions:
    Is there any proffered way of communication between BPM and database?
    Does BEA/Sun/BPM Users recommend entity beans for data access thruBPM?
    Do I have to write XML to value object and vice versa logic for eachtype
    of communication?
    Please recommend a standard approach.
    Thanks,
    Parag

  • Issue trying to install Oracle Data Access Software for Windows

    I am trying to install the Data Access software on one of my many workstations and am having an issue with one of them. When the installer comes up it gives me an error:
    Invalid Inventory List and it exits.
    What do I have to do to get it to recognize my oracle home?

    Most probably you have hit this issue:
    "If you have more than one Oracle Home installed on the same machine (e.g. Oracle8i client and Oracle9i Release 2 client), use the Oracle Home Selector to run your applications with Oracle9i Release 2 client. "
    As documented on the Oracle Data Access Software for Windows. Release 9.2.0.4.0
    ~ Madrid.

  • Oracle Data Access with Delphi - Please help

    Hello: We would like to access Oracle Applications data using a third party tool. I understand we can use Delphi development environment to access Oracle data. Can somebody help, how do we do this? Any online tutorial or White paper. Basically we want some simple UI screens to fetch Oracle Applications data. Thanks for your help, in advance.

    Google: "Delphi" and "Oracle" and "connection"

  • Spring-iBatis-Oracle data access

    Hi all,
    I've just spent hours on a problem which appears unsolvable. Hope someone can clarify. I have constructed a view in my oracle database which uses data from other oracle databases.
    In SQLDeveloper the queries work fine. Now, I programmed my app with all the maps, implementations, interfaces, beans and everthing else that's required and all apears fine until I
    do a simple query to select all of the rows from the view. I always receive the same error despite many different attempts at defining all these components. Here´s the exact error:
    --- The error occurred in xx/xxxx/xxx/xxxxxx/sqlmaps/GaeVwcmDeri.xml. 
    --- The error occurred while applying a parameter map. 
    --- Check the GaeVwcmDeri.selectDeriDivsList-InlineParameterMap. 
    --- Check the statement (query failed). 
    --- Cause: java.sql.SQLDataException: ORA-01861: el literal no coincide con la cadena de formatoNow remember, I'm using Spring and iBatis for db access to oracle so I'll start with the view definition's underlying data types:
    COLUMN-NAME     DATA-TYPE     NULLABLE
    DERI_CODADIFD     NUMBER          No
    DERI_FECHAINI     DATE          No
    DERI_FECHAFIN     DATE          Yes
    DERI_PCT     NUMBER          No
    DERI_CODADIFP     NUMBER          Yes
    DERI_DESIG     VARCHAR2(40)     No
    DERI_CODCP     VARCHAR2(5)     Yes
    CCON_DESIG     CHAR(40)     Yes
    DIV_CODIGO     CHAR(4)          Yes
    DIV_DESIG     CHAR(30)     Yes
    EMP_CODIGO     NUMBER(10,0)     No
    EMP_DESIG     VARCHAR2(63)     NoSo here´s the sql-map definition (which i've tried with an explicit resultMap which you see here and I've also tried with with the implicit mapping to the bean and I´ve also tried
    selecting only 1 column or 2 and just about every permutation possible as well as usuing column names instead of columnIndexes, etc.. ad infititum):
    <sqlMap namespace="GaeVwcmDeri">
         <resultMap id="selectDeriDivsListResult" class="es.adif.gae.common.sql.beans.GaeVwcmDeri">
              <result property="deriCodadifd" columnIndex="1"/>
              <result property="deriFechaini" columnIndex="2" javaType="java.sql.Date" jdbcType="DATE" nullValue="0"/>
              <result property="deriFechafin" columnIndex="3" javaType="java.sql.Date" jdbcType="DATE" nullValue="0"/>
              <result property="deriPct" columnIndex="4"/>
              <result property="deriCodadifp" columnIndex="5"/>
              <result property="deriDesig" columnIndex="6" javaType="java.lang.String" jdbcType="VARCHAR" nullValue="NULL"/>
              <result property="deriCodcp" columnIndex="7" javaType="java.lang.String" jdbcType="VARCHAR" nullValue="NULL"/>
              <result property="cconDesig" columnIndex="8" javaType="java.lang.String" jdbcType="CHAR" nullValue="NULL"/>
              <result property="divCodigo" columnIndex="9" javaType="java.lang.String" jdbcType="CHAR" nullValue="NULL"/>
              <result property="divDesig" columnIndex="10" javaType="java.lang.String" jdbcType="CHAR" nullValue="NULL"/>
              <result property="empCodigo" columnIndex="11"/>
              <result property="empDesig" columnIndex="12" javaType="java.lang.String" jdbcType="VARCHAR" nullValue="NULL"/>
         </resultMap>
         <select id="selectDeriDivsList" resultMap="selectDeriDivsListResult">
              SELECT
                   DERI_CODADIFD,
                   DERI_FECHAINI,
                   DERI_FECHAFIN,
                   DERI_PCT,
                   DERI_CODADIFP,
                   DERI_DESIG,
                   DERI_CODCP,
                   CCON_DESIG,
                   DIV_CODIGO,
                   DIV_DESIG,
                   EMP_CODIGO,
                   EMP_DESIG
              FROM GAE_VWCM_DERI
         </select>
    </sqlMap>So here´s the bean variable definitions (with all the setters and getters left out for brevity):
         private long deriCodadifd;
         private Date deriFechaini;
         private Date deriFechafin;
         private float deriPct;
         private long deriCodadifp;
         private String deriDesig;
         private String deriCodcp;
         private String cconDesig;
         private String divCodigo;
         private String divDesig;
         private long empCodigo;
         private String empDesig;So where is the problem? I just don't see it and I think I've tried every possible way to get the data I want. The problem has nothing to do with, GRANTs, SYNONYMs or anything else
    strictly oracle related; as I've said, the query works fine in SQLDeveloper (I'll probably try it also in straight JDBC ANd ODBC to see if I can get anymore info). I think it's
    clear that the problem is somewhere in the iBatis interface to oracle but I'll be damned if I can find where but I have a feeling that it may have something to do with the NULLABLE
    columns which I abhor but can´t do anything about in this case as the underlying data comes from an external DB. Maybe I'll also try a stored procedure but I can't see how the
    results would be any different.
    If anyone could provide a reasonable suggestion, I'll be the happiest man on earth.
    HELP! I'm desperate.
    Thanks in advance for any reply,
    Bill

    Hi Bill,
    My guess is that your problem is in the view. Probably because of some unintended implicit data type conversion.
    Let's say you use TO_DATE on something already a DATE:
    SQL> select to_date(sysdate, 'FXYYYY/MM/DD') from dual;
    select to_date(sysdate, 'FXYYYY/MM/DD') from dual
    Error at line 1
    ORA-01861: literal does not match format stringProblem is impicit conversion of sysdate into varchar2, before applying to_date on the resulting string.
    This impplicit conversion is according to your nls settings (Which are session specific, hence the difference between SQL*Plus and iBatis)
    SQL> select * from nls_session_parameters
    where parameter = 'NLS_DATE_FORMAT'
    PARAMETER                      VALUE                                  
    NLS_DATE_FORMAT                YYYYMMDD                               
    1 row selected.Does this make sense?
    Regards
    Peter

  • Cannot connect to database using Oracle Data Access

    I have been able to connect to my database through SqlPlus, but I cannot make the connection to the database through my ASP.Net program.
    I set up my connection string following the following format:
    *"Data Source=(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = X.X.X.X)(PORT = X)))(CONNECT_DATA =(SERVICE_NAME = SID)(INSTANCE_NAME = SID))(HS = OK)); User Id=Blah; Password=Blah";*
    When the program tries to open the connetion, it through
    OracleException was caught
    Oracle.DataAccess.Client.OracleException was caught
    Message=""
    StackTrace:
    at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx pOpoSqlValCtx, Object src, String procedure)*
    at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
    at Oracle.DataAccess.Client.OracleConnection.Open()
    at GlobalIQ.Services.DatabaseLayer.SetUpConnection() in C:\GlobalIQ\GlobalIQ\Services\DatabaseLayer.cs:line 30
    InnerException:
    I do not know if this is because I didn't set something up correctly or that I am missing something. Thanks in advance

    user13488403 wrote:
    I have been able to connect to my database through SqlPlus, but I cannot make the connection to the database through my ASP.Net program. ODP, ASP-NET providers etc. forums are here
    http://forums.oracle.com/forums/category.jspa?categoryID=44
    >
    I set up my connection string following the following format:
    *"Data Source= ... (HS = OK)) ...Is the HS part really needed?

  • Oracle Data Access Components and Windows XP Professional x64

    To start I'm running Windows XP Professional x64, using IIS 6, and Visual Studio 2005. I have a web service project that uses ODAC 11g, which runs just fine when I run it in debugging mode. However when I publish the project and try to access it through IE, I get an application error saying that Oracle.Web or one of its dependencies could not be loaded. Now I suspect that this might be happening becuase I'm running on a 64-bit machine, but I'm not convinced. The web service worked just fine on a 32 bit windows running IIS 5. If anyone could shed some light on this that would be awesome. Thanks!

    hi ,
    i have more than one question indeed.
    1.i installed personal oracle v 8.1.7 for windows nt/2000 on
    windows xp profissional platform and it works great.When i
    tryed to install developer 2000 6i a microsoft runtime error
    is produced. is thier any solutions for such problem?
    2.when i tryed to install personal oracle on another machine with the following specs:
    -p4 1.4 ghz intell proccessor
    -gigabyte motherboard built-in sound
    -128 mb ram
    -S3 savage4 32mb vga card
    the oracle universal installer never runs.

  • Dynamic query with Data Access Layer

    I have a program that has a multiselect box (JSP form) to select certifications and then search to see which employee may have them.
    I have no issues when searching by only one, but if I select multiple certifications from the multiselect box, it doesn't work. I've tried and tried and I can't seem to figure this out.
    Below is the code for returning employees that match what certifications were chosen. Again, it works fine if only 1 was selected. I wish for it to return only the employees that match all selections.
    the arguments passed to the DataAccess Layer are an array of certification ID's and the size variable is how many certifications were chosen. The for loop is supposed to dynamically append to the end of the query an extra "AND" sql operator to match up. The 3 tables selected in the query are Employee (a list of employees and ID's), Certificates (a list of possible certificates and their ID's) and Employee_Certificate (a table that matches which employees have which certificates).
    What am I doing wrong?
    public List certSearch(int cert[], int size) throws Exception{
             // connection instance
             ArrayList list = new ArrayList();
             Connection connection=null;
             PreparedStatement pstatement = null;
             try
                    list.clear();
                    StringBuffer queryString = new StringBuffer("SELECT * from EMPLOYEE, EMPLOYEE_CERTIFICATE, CERTIFICATE" +
                                         " WHERE employee_certificate.employee_id = employee.employee_id " +
                                         "AND certificate.certificate_id = employee_certificate.certificate_id ");
                    for (int incr = 0; incr < size; incr++){
                        queryString.append("AND certificate.certificate_id = " + cert[incr] + " ");
                    String query;
                    query = queryString.toString();
                    // Send query to database and store results.
                    Class.forName(Driver);
                    //Establish network connection to the db
                    connection = (Connection) DriverManager.getConnection(url, username, password);
                    pstatement = (PreparedStatement) connection.prepareStatement(query);
                    ResultSet rs = pstatement.executeQuery();
                    while (rs.next())
                        Employee emp = new Employee();
                        int empID=Integer.parseInt(rs.getString("employee_id"));
                        String first=rs.getString("first_name");
                        String last=rs.getString("last_name");
                        emp.setID(empID);
                        emp.setFirstName(first);
                        emp.setLastName(last);
                        list.add(emp);
               catch(Exception readerr)
                    System.err.println("Error reading  "+ readerr);
               finally
                try
                    // close the connection so it can be returned to the
                    // connection pool then return the SubjectCounselor instance
                    connection.close();
                catch (SQLException ex)
                       System.err.println("Error reading employee data: " + ex);
                return list;
        }Edited by: Snadinator on Aug 1, 2009 1:35 PM

    You don't get it.
    This should work :
    public List certSearch(int cert[], int size) throws Exception{
             // connection instance
             ArrayList list = new ArrayList();
             Connection connection=null;
             PreparedStatement pstatement = null;
             try
                    list.clear();
                    String query = buildQuery(cert);
                    // Send query to database and store results.
                    Class.forName(Driver);
                    //Establish network connection to the db
                    connection = (Connection) DriverManager.getConnection(url, username, password);
                    pstatement = (PreparedStatement) connection.prepareStatement(query);
                    ResultSet rs = pstatement.executeQuery();
                    while (rs.next())
                        Employee emp = new Employee();
                        int empID=Integer.parseInt(rs.getString("employee_id"));
                        String first=rs.getString("first_name");
                        String last=rs.getString("last_name");
                        emp.setID(empID);
                        emp.setFirstName(first);
                        emp.setLastName(last);
                        list.add(emp);
               catch(Exception readerr)
                    System.err.println("Error reading  "+ readerr);
               finally
                try
                    // close the connection so it can be returned to the
                    // connection pool then return the SubjectCounselor instance
                    connection.close();
                catch (SQLException ex)
                       System.err.println("Error reading employee data: " + ex);
                return list;
        // I used the MySQL syntax; if it doesn't work : just enclose the values by single quotes
        private String buildQuery(int[] cert) {
            StringBuffer queryString = new StringBuffer("SELECT * from EMPLOYEE, EMPLOYEE_CERTIFICATE, CERTIFICATE" +
                    " WHERE employee_certificate.employee_id = employee.employee_id " +
                    "AND certificate.certificate_id = employee_certificate.certificate_id " +
                    "AND certificate.certificate_id IN ( ");
            queryString.append(cert[0]);
            for (int i = 1; i < cert.length; i++) {
                queryString.append(" ,");
                queryString.append(cert);
    queryString.append(" )");
    return queryString.toString();

Maybe you are looking for