| java.lang.Object net.xoetrope.optional.data.sql.DataConnection
DataConnection | public class DataConnection (Code) | | An extended database connection that allows integration of a local database
and replication to/from a remote database.
Copyright (c) Xoetrope Ltd. 2001-2004
$Revision: 1.3 $
|
DataConnection | public DataConnection(String name)(Code) | | Construct a new connection
Parameters: name - the connection name |
DataConnection | public DataConnection(String name, boolean replicate)(Code) | | Construct a new connection
Parameters: name - the connection name Parameters: replicate - true to attempt use of the replication service |
executeQuery | public ResultSet executeQuery(String sql, String connName, boolean writable) throws SQLException(Code) | | Execute a SQL query.
Parameters: sql - the SQL statement Parameters: connName - the connection name Parameters: writable - true to attempt to create an updatable resultset the results of the query throws: SQLException - |
executeUpdate | public int executeUpdate(String sql) throws Exception(Code) | | Execute a SQL update statement.
Parameters: sql - the SQL statement to be executed the result of the update query throws: Exception - |
getMetaData | public ResultSet getMetaData(String tableName)(Code) | | Get a list of the fields in a table.
Parameters: tableName - the table name the meta data result set |
returnConnection | void returnConnection()(Code) | | Return the connection object to the pool
|
shutdown | public static void shutdown(String connParamName) throws Exception(Code) | | Execute a SHUTDOWN statement
Parameters: connParamName - the name of the connection on which the shutdownstatement is executed, or null for the default connection throws: Exception - |
|
|