JAVA API member selection question

We are doing a member selecion via the Java API and for the query option parameter we are specifying QUERY_OPTION_MEMBERSANDALIASES. After the member selection completes successfully we get an IEssIterator that gives us an iterator to a collection of IEssMembers. How do you we get the aliases that we queried in the member selection without having to call the IEssMembergetAlias.getAlias() method which is time consuming. Any help would be greatly appreciated.Thanks,Julio LopezU.S. Analytics

For the record, you've hit the nail on the head here. Some values (like name) are actually saved in the EssMember object and are retrieved from memory when accessed. Other values, like alias, are Facades for a call over the wire.Best as I can tell, the QUERY_OPTION_* options are essentially unused by the JAPI (except for maybe QUERY_OPTION_COUNTONLY but I've never found a need to try that) and just a legacy from the C API.

Similar Messages

  • Some question about mdm java api and portal content

    Hi Gurus,
    I am new to MDM. I am going to develop some web dynpro application using mdm java api.
    My question is regarding the relationship between MDM version and NW version:
    for example
    1.MDM5.5 JAVA api can be deployed to CE 7.11 server?
    2.MDM7.1 JAVA API can be deployed to CE 7.11 server? or can only be deployed to CE server.
    the same question for the MDM portal content.
    the possible dev environment  for our company would be:
    1.MDM7.1
    2.CE7.2(do we need another EP7 server for the UWL?)
    Best regards,
    John

    Hi,
    I am using Portal 7.0. MDM version is 7.1.
    My problem is ... i am trying to connect WebDynpro (JAVA) to MDM7.1. But am unable to do so. I have a WD Frame in which i have a WD iView and the MDM iView. But i am unable to pass parameters from the WD iView to MDM Item Details iView.
    Note:
    1. I have deployed MDM JAVA API on NWDS
    2. I have specified " * " as a parameter to pass from the URL in the Item Details iView.
    Please help.
    Every help that i have read talks about CE7.1 but not NW 7.0
    -Alpana

  • Java Api VS Ejb/Xml

    Hi, I need some information from all of you experts out there.
    Currently we are running an appserver, the way it works is that we use ejb/xml to talk to corba stubs which eventually will talk to the server objects.
    I am quite new to this technology, and currently considering of removing the use of ejb/xml layer and replace it with JAVA API. The idea is to get Webservice to talk to Corba stubs through JAVA API.
    My question is:
    1. Has anyone out there done this before? if so, what is your suggestion to this?
    2. Is there any performance issue?
    3. Is there any sample out there that does this?
    Any reply/opinion is highly appreciated.
    Thanks in advance.

    I don't think so. I believe they come in the "javadoc" format only,
    besides the HTML ones that are hosed online on java.sun.com.

  • Question using Java API in a multi threaded application for MDX queries

    Currently I’m building a web application that makes a lot of MDX calls using the Essbase Java API. Each time we run an MDX call we basically run the following code:
    IEssbase ess = IEssbase.Home.create(IEssbase.JAPI_VERSION);
    IEssDomain dom = ess.signOn(userName, password, false, null, "embedded");
    IEssCubeView cv = cv=dom.openCubeView("view", hostName, appName, cubeName);
    IEssOpMdxQuery op = cv.createIEssOpMdxQuery();
    op.setQuery(false,mdx,false,IEssOpMdxQuery.EEssMemberIdentifierType.NAME);
    cv.performOperation(op);
    IEssMdDataSet mddata = cv.getMdDataSet();
    cv.close();
    My questions is, is this the correct way to use the API in multi threaded environment where many users may be hitting the application at the same time? For every request do I need to create a separate IEssbase object and sign on to an IEssDomain? Or can I use a single IEssbase and IEssDomain object for the entire application? If not should I call the IEssDomain.signOff() method after each user’s request has completed? Which of the above objects are thread safe? I’m using Essabae 9.3.1. Any insight would be really appreciated.
    Thanks
    David

    Thanks for the input friend,
    I should have mentioned that in my application all
    connections to Essbase use the same user name and
    password so the filtering isn’t a concern. This is my
    first Java application using Essbase has a data
    source, I’m used to connecting to various SQL
    databases and I always use a connection pool, how is
    connection pooling handled in the Essbase java API?I'm not sure what happened to it since I never used it, but there used to be something called the High Availability Services or something that was essentially a connection pool for Essbase JAPI connections, but it required an extra license.
    Since you don't care about identity (everyone has full access to everything), you can create your own connection pool, but you'll have to manage your multithreading yourself. Its been this way since the beginning. The C API isn't/wasn't thread-safe either (we tried).

  • Two questions on dynamic parameter from java API point of view

    Hi,
    We have a requirement for dynamic parameters in crystal reports that need to be executed in java application. Since, crystal java framework do not support the dynamic parameter execution (please correct me if I am wrong), we plan to execute explicitly the query for getting the dynamic values of such dynamic parameters before listing the parameters in java application.
    The query for the dynamic parameter will be given in the field 'Prompt Group Text' of the parameter.
    I coudl not get hold of these details from java api. So please some one help me out.
    Environment - Crystal X1 R2 with java libraries
    1. How can we identify a parameter is a dynamic one?
    2. How to get the 'Prompt Group Text' field value?
    Any suggestions welcome.
    Thanks,
    Ratan.

    There are these two methods in the Business Objects Enterprise SDK Developer Libary:
    byte[]   getDynamicCascadePromptData()
               Returns a collection that contains dynamic cascading prompt data. 
    java.lang.String getDynamicCascadePromptGroupID()
                            Returns a dynamic cascade prompt group ID. 
    For more information on what is available through available SDK's, please refer to the following link:
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm

  • Question about Java API for XML schema?

    Hello, everyone!
    I am looking for a java api for XML schema. I hope the API is capable for parsing the structure of element
    or complextype declarations in XML schema. So for example, if I specify a name of an element or
    complextype defined in a schema, the name, dataype and other constraints of contained child elements can be returned.
    Does anyone know if there exists such a paser?
    Thanks very much!

    An implementation of DOM Level 3.

  • Access to Attribute Type via Java API

    Hi,
    I'm writing an aplication in Java to access out OLAP schema and display certain DIMENSION/LEVEL and ATTRIBUTE values. This is working out really well but I'm hitting one issue at the moment which has me stumped.
    When I display a Dimension value in a table I want to default the attribute we display to a sensible display value. In AWM there is a field "Attribute Type" which offers drop down selections for "User", .... "Member Short Description", "Member Long Description"...
    See the General Tab under Attributes for a particular Attribute. Looking at the Help text for the "Member Long Description" I see the following.
    "Long descriptive names typically used by Oracle Business Intelligence tools for displaying dimension members in selection lists, crosstabs, and graphs." Looks perfect for what I want. My Dataware house architect already has an Attribute for each hirearchy
    marked with this property so in theory I should be able to look for the Attribute in the Dimension with this property and bingo I have my default display Atttribute!
    The problem is I seem to be able to find api's to access every aspect of the MdmAttribute object except this particular property.
    Here is a snippet from the OLAP api sample code augmented with some println's of my own:
    if (mdmAttr.getName().equals(name)) {
         System.out.println("Attribute : " + mdmAttr.getID());
         System.out.println(" name : " + mdmAttr.getName());
         System.out.println(" desc : " + mdmAttr.getDescription());
         System.out.println(" s desc: " + mdmAttr.getShortDescription());
         System.out.println(" type : " + mdmAttr.getType());      
         System.out.println(" type id: " + mdmAttr.getType().getID());
    return mdmAttr;
    None of the avaiable APIs of MdmAttribute seem to fit the bill.
    The question is ... is there an API somewhere I can call on the MdmAttribute object or an associated object that will give me back the "Attribute Type" as listed in this dropdown. Note that getType returns DataType!String which denotes the fundemental type of the Attribute (int, String etc) rather than this abstract Attribute Type property we need. Not listed here is the getDataType() api which also returns DataType!String and seems to be equivalent to the getType api.
    Regards
    Fergal

    One small clarification if its not already obvious. We are using the OLAP Java api's directly ... not via BI Beans.
    Regards
    Fergal

  • BPM 11g: JAVA API and Webservice API

    Who knows BPM 11g: JAVA API and Webservice API?
    Customer want to call BPM 11g between Heterogeneous systems, such .net framework. One way is use webservice API, I think, but where can find it? thank you

    When you create a BPM application in 11g, you're actually creating a SOA composite application with a BPMN component in the composite. From within the BPMN editor, you can specify the interface (parameters) of each start node in the process. If you select a start node, look at the implementation tab, you'll see a properties group that lets you define the interface one property at a time, or by selecting an interface from the catalog.
    By defining these properties you're also defining the shape of the Web Service interface that will automatically be created in the composite. If you switch to the composite view, you'll see your BPMN process with a wire to it from a Web Service that's generated from the interface defined in the BPMN editor. The naming convention is the BPMN process name with ".service" appended. When you deploy the BPMN process, the web service will also be deployed, since it's also part of the composite. From Enterprise Manager (EM) you can test the service and get the WSDL, which could be used by other applications (e.g. .NET) to start and interact with a process instance.
    This is one of the advantages of the 11g architecture. The composite exposes services to consumers/clients. The implementation could have been BPEL, BPMN, a Mediator, Java/EJBs, or any combination working together. To the consumer, it's just a web service.
    In case your next question was about security ... you won't see properties about security in the BPMN editor. You use Web Service Manager to apply security or other constraints to the web service endpoint.

  • Member selection doesn't show lower levels

    When you are using member selection, it only shows the top level, no members are shown at all
    Any ideas?

    What about the Essbase version?
    The conflict comes in on the server. The Java API, since about v7.2, has been progressing towards using pure Java calls to the Essbase server. Earlier versions wrapped the C APIs on the server.
    Until recently, there was a setting to force the Java API to revert to using the C-APIs. Generally, we adjusted this setting only when the Essbase version and the Java API version were not exactly the same (and sometimes even then if we saw anything that didn't behave as we thought it should.
    The setting, olap.service.direct, is not in the 9.3.1 essbase.properties file. Further, the directory containing the C API files is no longer installed as part of the APS installation.
    Is APS also 9.3.1? Do you see anything in your APS logs? Note that, by default, APS no longer logs information to standard out (where error messages are sometimes printed). I posted a blog entry just an hour ago that shows how to setup APS to log stdout. It is on my blog at http://timtows-hyperion-blog.blogspot.com/
    Tim Tow
    Oracle ACE
    Applied OLAP, Inc

  • BPM Workshop Java Api

    Anyone knows a documentation reference and a library which I can approve or reject a requisition in BPM Workspace using Java API , I like to customize the application , is there another way to do this ?
    Thank you.

    When you create a BPM application in 11g, you're actually creating a SOA composite application with a BPMN component in the composite. From within the BPMN editor, you can specify the interface (parameters) of each start node in the process. If you select a start node, look at the implementation tab, you'll see a properties group that lets you define the interface one property at a time, or by selecting an interface from the catalog.
    By defining these properties you're also defining the shape of the Web Service interface that will automatically be created in the composite. If you switch to the composite view, you'll see your BPMN process with a wire to it from a Web Service that's generated from the interface defined in the BPMN editor. The naming convention is the BPMN process name with ".service" appended. When you deploy the BPMN process, the web service will also be deployed, since it's also part of the composite. From Enterprise Manager (EM) you can test the service and get the WSDL, which could be used by other applications (e.g. .NET) to start and interact with a process instance.
    This is one of the advantages of the 11g architecture. The composite exposes services to consumers/clients. The implementation could have been BPEL, BPMN, a Mediator, Java/EJBs, or any combination working together. To the consumer, it's just a web service.
    In case your next question was about security ... you won't see properties about security in the BPMN editor. You use Web Service Manager to apply security or other constraints to the web service endpoint.

  • Content Area - Java API

    Hi All,
    If there a Java API for the content area? I need to implement a portlet which will need to deal with the content area.
    Any insight will be greatly appreciated!
    Vince

    ignore my last question, I found an example on the internet.
    The whole reason why I have to write my own search portlet was that the search portlet came with oracle portal does not support search for selected content areas, it has to be one or all. When I look at the procedure call submit_search in the content area API, it also only supports searching in one/all area(s) according to the parameter ( I copied & pasted it from the doc):
    p_caid - The ID of the content area to be searched. Note: If you enter the value 0, all content areas are searched.
    Datatype: in number
    Default: 0
    It were an array of number instead of just number, then I could pass in the content area IDs to be searched. I couldn't do so, because it only accepts the specific ID or 0 (for all). Is there any workaround?
    Thanks,
    Vince
    null

  • Is there any way to view the Java API through Eclipse or any IDE?

    I usually use Eclipse to code and sometimes, when i'm typing a method it will show a small list of the methods available for that class. Does Eclipse (or any other IDE, but Eclipse especially), have the java API available for view somewhere in the program?
    Thanks.

    In Eclipse Select Window -> Show View -> JavaDoc. If you're JRE is set up correctly, it will show you the JavaDoc of the currently selected class/method/member variable in that view.
    If it isn't, then go to Window -> Preferences -> Java -> Installed JRE and edit the JavaDoc location of the rt.jar (for Java 6 http://java.sun.com/javase/6/docs/api/ is a good value, as long as you're online).

  • EWS JAVA API - 1.3 - cannot authenticate NTLM

    Just some line to report my experience with the library EWS JAVA API (ews-java-api found at github).
    I was trying to send email from my java test application via the EWS service published by an Exchange Server with only NTLM authentication enabled.
    The first tries were all unsuccessful, resulting in a authentication problem.
    In the end I found the post 14702764 at stackoverflow (how-to-use-ldap-authentication-for-the-exchange-web-services-connection-in-java) that solved my problem.
    Once I changed the inner class NTLM inside EwsJCIFSNTLMScheme.java as described in the link above, the problem of authentication via NTLM disappeared.
    Following is the error occuring before I changed the libary code:
    2014-09-21 01:19:48,818 INFO  [AuthChallengeProcessor] - NTLM authentication scheme selected
    2014-09-21 01:19:48,940 INFO  [HttpMethodDirector] - Failure authenticating with NTLM <any realm>@test.domail.com:443
    Exception in thread "main" microsoft.exchange.webservices.data.ServiceRequestException: The request failed. null
    at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:63)
    at microsoft.exchange.webservices.data.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:142)
    at microsoft.exchange.webservices.data.ExchangeService.internalCreateItems(ExchangeService.java:464)
    at microsoft.exchange.webservices.data.ExchangeService.createItem(ExchangeService.java:535)
    at microsoft.exchange.webservices.data.Item.internalCreate(Item.java:215)
    at microsoft.exchange.webservices.data.EmailMessage.internalSend(EmailMessage.java:125)
    at microsoft.exchange.webservices.data.EmailMessage.send(EmailMessage.java:253)
    at com.vodafone.spp.test.testews.Main.main(Main.java:40)
    Caused by: java.lang.NullPointerException
    at microsoft.exchange.webservices.data.SimpleServiceRequestBase.readResponse(SimpleServiceRequestBase.java:141)
    at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:50)
    ... 7 more
    This is the code fragment to replace in file EwsJCIFSNTLMScheme.java :
        private class NTLM {
        /** Character encoding */
        public static final String DEFAULT_CHARSET = "ASCII";
        * The character was used by 3.x's NTLM to encode the username and
        * password. Apparently, this is not needed in when passing username,
        * password from NTCredentials to the JCIFS library
        private String credentialCharset = DEFAULT_CHARSET;
        void setCredentialCharset(String credentialCharset) {
               this.credentialCharset = credentialCharset;
        private static final int TYPE_1_FLAGS = NtlmFlags.NTLMSSP_NEGOTIATE_NTLM
                     | NtlmFlags.NTLMSSP_NEGOTIATE_UNICODE
                     | NtlmFlags.NTLMSSP_NEGOTIATE_NTLM2;
        private String generateType1Msg(String host, String domain) {
               jcifs.ntlmssp.Type1Message t1m = new jcifs.ntlmssp.Type1Message(
                            TYPE_1_FLAGS, domain, host);
               return jcifs.util.Base64.encode(t1m.toByteArray());
        private String generateType3Msg(String username, String password,
                     String host, String domain, String challenge) {
               jcifs.ntlmssp.Type2Message t2m;
               try {
                     t2m = new jcifs.ntlmssp.Type2Message(
                                   jcifs.util.Base64.decode(challenge));
               } catch (IOException e) {
                     throw new RuntimeException("Invalid Type2 message", e);
               final int type2Flags = t2m.getFlags();
               final int type3Flags = type2Flags
                            & (0xffffffff ^ (NtlmFlags.NTLMSSP_TARGET_TYPE_DOMAIN | NtlmFlags.NTLMSSP_TARGET_TYPE_SERVER));
               jcifs.ntlmssp.Type3Message t3m = new jcifs.ntlmssp.Type3Message(
                            t2m, password, domain, username, host, type3Flags);
               return jcifs.util.Base64.encode(t3m.toByteArray());

    Hi Andrea
    Did you update to  the latest version of java ews api and see the results ?
    However after changing the inner class NTLM inside as mentioned 14702764  solved your issue.
    We need to check if the latest version of ews api has this value corrected.
    Thanks a lot  for posting the solution as well :)
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com

  • How can I create a new User with the Java API like OIDDAS do?

    Hello,
    I'm currently working on an BPEL based process. And i need to create an OCS user. So far I can create an user in the OID. But I cant find any documentation about given this user an email account,calendar and content function etc.
    Did anybody know if there are some OIDDAS Webservices? Or did anybody know how to do this using the Java APIs?

    You are asking about a Database User I hope.
    You can look into the Oracle 8i Documentation and find various privillages listed.
    In particular, you may find:
    Chapter 27 Privileges, Roles, and Security Policies
    an intresting chapter.
    You may want to do this with the various tools included with 8i - including the
    Oracle DBA Studio - expand the Security node and you can create USERS and ROLES.
    Or use SQL*Plus. To create a
    user / password named John / Smith, you would login to SQL*Plus as System/manager (or other) and type in:
    Create user John identified by Smith;
    Grant CONNECT to John;
    Grant SELECT ANY TABLE to John;
    commit;
    There is much more you can do
    depending on your needs.
    Please read the documentation.
    -John
    null

  • Java API for running entire ".sql" files on a remote DB ( mySQL or Oracle)?

    Hi,
    Would anyone happen to know if there's a java API for executing entire ".sql" files (containing several different SQL commands), on a remote database server ?
    It's enough if the API works with MySQL and/or Oracle.
    Just to demonstrate what i'm looking for:
    Suppose you've created sql file "c:/test.sql" with several script lines:
    -- test.sql:
    insert into TABLE1 values(3,3);
    insert into TABLE1 values(5,5);
    create table TABLE2 (name VARCHER) ENGINE innoDB; -- MYSQL specific
    Then the java API should look something like:
    // Dummy java code:
    String driver="com.mysql.jdbc.Driver";
    String url= "jdbc:mysql://localhost:3306/myDb";
    SomeAPI.executeScriptFile( "c:/test.sql", driver, url);
    Thanks.

    No such a API, but it's easy to parse all sqls in a file, then run those command:
    For instance:
    import java.sql.*;
    import java.util.Properties;
    /* A demo show how to load some sql statements. */
    public class testSQL {
    private final static Object[] getSQLStatements(java.util.Vector v) {
    Object[] statements = new Object[v.size()];
    Object temp;
    for (int i = 0; i < v.size(); i++) {
    temp = v.elementAt(i);
    if (temp instanceof java.util.Vector)
    statements[i] = getSQLStatements( (java.util.Vector) temp);
    else
    statements[i] = temp;
    return statements;
    public final static Object[] getSQLStatements(String sqlFile) throws java.
    io.IOException {
    java.util.Vector v = new java.util.Vector(1000);
    try {
    java.io.BufferedReader br = new java.io.BufferedReader(new java.io.
    FileReader(sqlFile));
    java.util.Vector batchs = new java.util.Vector(10);
    String temp;
    while ( (temp = br.readLine()) != null) {
    temp = temp.trim();
    if (temp.length() == 0)
    continue;
    switch (temp.charAt(0)) {
    case '*':
    case '"':
    case '\'':
    // System.out.println(temp);
    break; //Ignore any line which begin with the above character
    case '#': //Used to begin a new sql statement
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    break;
    case 'S':
    case 's':
    case '?':
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    v.addElement(temp);
    break;
    case '!': //Use it to get a large number of simple update statements
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    String part1 = temp.substring(1);
    String part2 = br.readLine();
    for (int i = -2890; i < 1388; i += 39)
    batchs.addElement(part1 + i + part2);
    for (int i = 1890; i < 2388; i += 53) {
    batchs.addElement(part1 + i + part2);
    batchs.addElement(part1 + i + part2);
    for (int i = 4320; i > 4268; i--) {
    batchs.addElement(part1 + i + part2);
    batchs.addElement(part1 + i + part2);
    for (int i = 9389; i > 7388; i -= 83)
    batchs.addElement(part1 + i + part2);
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    break;
    default:
    batchs.addElement(temp);
    break;
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    br.close();
    br = null;
    catch (java.io.FileNotFoundException fnfe) {
    v.addElement(sqlFile); //sqlFile is a sql command, not a file Name
    Object[] statements = new Object[v.size()];
    for (int i = 0; i < v.size(); i++)
    statements[i] = v.elementAt(i);
    return statements;
    public static void main(String argv[]) {
    try {
    String url;
    Object[] statements;
    switch (argv.length) {
    case 0: //Use it for the simplest test
    case 1:
    url = "jdbc:dbf:/.";
    if (argv.length == 0) {
    statements = new String[1];
    statements[0] = "select * from test";
    else
    statements = argv;
    break;
    case 2:
    url = argv[0];
    statements = getSQLStatements(argv[1]);
    break;
    default:
    throw new Exception(
    "Syntax Error: java testSQL url sqlfile");
    Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();
    //Please see Connecting to the Database section of Chapter 2. Installation in Development Document
    Properties properties = new Properties();
    Connection con = DriverManager.getConnection(url, properties);
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    //Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
    // stmt.setMaxRows(0);
    stmt.setFetchSize(10);
    final boolean serializeFlag = false;//A test switch to serialize/deserialize the resultSet
    ResultSet rs;
    for (int i = 0; i < statements.length; i++) {
    if (statements[i] instanceof java.lang.String) {
    String temp = (java.lang.String) statements;
    switch (temp.charAt(0)) {
    case 'S':
    case 's':
    case '?':
    System.out.println(temp);
    rs = stmt.executeQuery(temp);
    if (serializeFlag) {
    // serialize the resultSet
    try {
    java.io.FileOutputStream fileOutputStream = new
    java.io.FileOutputStream("testrs.tmp");
    java.io.ObjectOutputStream
    objectOutputStream = new java.io.
    ObjectOutputStream(fileOutputStream);
    objectOutputStream.writeObject(rs);
    objectOutputStream.flush();
    objectOutputStream.close();
    fileOutputStream.close();
    catch (Exception e) {
    System.out.println(e);
    e.printStackTrace();
    System.exit(1);
    rs.close(); //Let the CONCUR_UPDATABLE resultSet release its open files at once.
    rs = null;
    // deserialize the resultSet
    try {
    java.io.FileInputStream fileInputStream = new
    java.io.FileInputStream("testrs.tmp");
    java.io.ObjectInputStream objectInputStream = new
    java.io.ObjectInputStream(
    fileInputStream);
    rs = (ResultSet) objectInputStream.
    readObject();
    objectInputStream.close();
    fileInputStream.close();
    catch (Exception e) {
    System.out.println(e);
    e.printStackTrace();
    System.exit(1);
    ResultSetMetaData resultSetMetaData = rs.
    getMetaData();
    int iNumCols = resultSetMetaData.getColumnCount();
    for (int j = 1; j <= iNumCols; j++) {
    // System.out.println(resultSetMetaData.getColumnName(j));
    /* System.out.println(resultSetMetaData.getColumnType(j));
    System.out.println(resultSetMetaData.getColumnDisplaySize(j));
    System.out.println(resultSetMetaData.getPrecision(j));
    System.out.println(resultSetMetaData.getScale(j));
    System.out.println(resultSetMetaData.
    getColumnLabel(j)
    + " " +
    resultSetMetaData.getColumnTypeName(j));
    Object colval;
    rs.beforeFirst();
    long ncount = 0;
    while (rs.next()) {
    // System.out.print(rs.rowDeleted()+" ");
    ncount++;
    for (int j = 1; j <= iNumCols; j++) {
    colval = rs.getObject(j);
    System.out.print(colval + " ");
    System.out.println();
    rs.close(); //Let the resultSet release its open tables at once.
    rs = null;
    System.out.println(
    "The total row number of resultset: " + ncount);
    System.out.println();
    break;
    default:
    int updateCount = stmt.executeUpdate(temp);
    System.out.println(temp + " : " + updateCount);
    System.out.println();
    else if (statements[i] instanceof java.lang.Object[]) {
    int[] updateCounts;
    Object[] temp = (java.lang.Object[]) statements[i];
    try {
    for (int j = 0; j < temp.length; j++){
    System.out.println( temp[j]);
    stmt.addBatch( (java.lang.String) temp[j]);
    updateCounts = stmt.executeBatch();
    for (int j = 0; j < temp.length; j++)
    System.out.println((j+1)+":"+temp[j]);
    for (int j = 0; j < updateCounts.length; j++)
    System.out.println((j+1)+":" +updateCounts[j]);
    catch (java.sql.BatchUpdateException e) {
    updateCounts = e.getUpdateCounts();
    for (int j = 0; j < updateCounts.length; j++)
    System.out.println((j+1)+":"+updateCounts[j]);
    java.sql.SQLException sqle = e;
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" +
    sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    catch (java.sql.SQLException sqle) {
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" +
    sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    stmt.clearBatch();
    System.out.println();
    stmt.close();
    con.close();
    catch (SQLException sqle) {
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" + sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    catch (Exception e) {
    System.out.println(e.getMessage());
    e.printStackTrace();

Maybe you are looking for

  • How do I de-activate home sharing on dead computers? I have already used my allowed 5 spots, but only have 2 com puters!

    Over the years, I have authorized 5 computers for home sharing.  3 of the computers haved crashed, and are long gone.  I can't find any resolve to de-authorize those 3 computers from home sharing.  I am hoping to find the option, to de-authorize, and

  • Problem with iTunes hanging

    Hi all, My laptop's a few years old now and it's susceptible to overheating unless you keep the vents free and some air circulating around it. Today, I foolishly just had it sitting on my best and it overheated and turned off whilst iTunes was busy c

  • JFormattedTextField case in the case of e-mail adress

    Hi, How do I formate JFormattedTextField for e-mail adress as input? I know that in version 5.0, there was something called EmailFormatter, but now it's gone...Please help, I am tired of serching for a solution...

  • Change IBase component in Support Message

    Hi experts! I have the following problem: In SAP note [1080135|https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1080135&nlang=DE&smpsrv=https%3a%2f%2fwebsmp209%2esap-ag%2ede] you find a solution on how to prevent

  • Doing XOR with many byte values - am I stupid?

    Hi, I am having a problem by using the Java XOR Operator. Sonething, call it module, delivers me an array of bytes. It includes different byte values and in the last field the checksum. The checksum you can get by doing: (((1st Databyte XOR 2nd Datab