java.lang.Object
org.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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionInfo
private ConnectionInfo()
- no requirement for a constructor
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.)