Class Hierarchy    Previous  Next  Index

Class COM.cloudscape.database.ConnectionInfo

java.lang.Object
    |
    +----COM.cloudscape.database.ConnectionInfo

public class ConnectionInfo
extends java.lang.Object
Copyright © 1998-2000, Informix Software, Inc. All rights reserved.

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

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

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


Constructor Index

 o ConnectionInfo()
 

Method Index

 o lastAutoincrementValue(String, String, String)
Get the last autoincrement value inserted into the column by a statement in this connection.
 o nextAutoincrementValue(String, String, String)
 

Constructor Detail

 o ConnectionInfo
public ConnectionInfo()

Method Detail

 o 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.
Parameters:
schemaName - Name of the schema.
tableName - Name of the table.
columnName - Name of the column.
Returns:
the last value to be inserted into the named autoincrement column by this connection. Returns null if this connection has never inserted into this column.
Throws:
java.sql.SQLException - if the current connection could not be established properly.
 o nextAutoincrementValue
public static long nextAutoincrementValue(java.lang.String schemaName,
                                          java.lang.String tableName,
                                          java.lang.String columnName) throws java.sql.SQLException

  Class Hierarchy    Previous  Next  Index