Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.db
Class ConnectionInfo  view ConnectionInfo download ConnectionInfo.java

java.lang.Object
  extended byorg.apache.derby.iapi.db.ConnectionInfo

public abstract class ConnectionInfo
extends java.lang.Object

ConnectionInfo class provides static methods for getting information related to a JDBC connection. When called from within the query language, each method returns information about the connection from which it was called.

Use the methods of this class only within an SQL-J statement; do not call them directly.

IBM Corp. reserves the right to change, rename or remove this class or any of the methods in the class at any time.


Constructor Summary
private ConnectionInfo()
          no requirement for a constructor
 
Method Summary
static java.lang.Long lastAutoincrementValue(java.lang.String schemaName, java.lang.String tableName, java.lang.String columnName)
          Get the last autoincrement value inserted into the column by a statement in this connection.
static long nextAutoincrementValue(java.lang.String schemaName, java.lang.String tableName, java.lang.String columnName)
          INTERNAL USE ONLY (THIS METHOD MAY BE REMOVED IN A FUTURE RELEASE.)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionInfo

private ConnectionInfo()
no requirement for a constructor

Method Detail

lastAutoincrementValue

public static java.lang.Long lastAutoincrementValue(java.lang.String schemaName,
                                                    java.lang.String tableName,
                                                    java.lang.String columnName)
                                             throws java.sql.SQLException
Get the last autoincrement value inserted into the column by a statement in this connection.
In JDBC 3.0 an application should use the standard methods provided by JDBC 3.0 to obtain generated key values. See java.sql.Statement.getGeneratedKeys().


nextAutoincrementValue

public static long nextAutoincrementValue(java.lang.String schemaName,
                                          java.lang.String tableName,
                                          java.lang.String columnName)
                                   throws java.sql.SQLException
INTERNAL USE ONLY (THIS METHOD MAY BE REMOVED IN A FUTURE RELEASE.)