| java.lang.Object org.apache.derby.iapi.db.ConnectionInfo
ConnectionInfo | abstract public class ConnectionInfo (Code) | | 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.
|
lastAutoincrementValue | public static Long lastAutoincrementValue(String schemaName, String tableName, String columnName) throws SQLException(Code) | | 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().
Parameters: schemaName - Name of the schema. Parameters: tableName - Name of the table. Parameters: columnName - Name of the column. the last value to be inserted into the named autoincrementcolumn by this connection. Returns null if this connection has neverinserted into this column. exception: SQLException - if the current connection could not beestablished properly. |
nextAutoincrementValue | public static long nextAutoincrementValue(String schemaName, String tableName, String columnName) throws SQLException(Code) | | INTERNAL USE ONLY
(THIS METHOD MAY BE REMOVED IN A FUTURE RELEASE.)
throws: SQLException - on error |
|
|