|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a connection to a specific database.
Method Summary | |
void |
close()
Close this connection. |
IDataSet |
createDataSet()
Creates a dataset corresponding to the entire database. |
IDataSet |
createDataSet(java.lang.String[] tableNames)
Creates a dataset containing only the specified tables from the database. |
ITable |
createQueryTable(java.lang.String resultName,
java.lang.String sql)
Creates a table with the result of the specified SQL statement. |
DatabaseConfig |
getConfig()
Returns this connection database configuration |
java.sql.Connection |
getConnection()
Returns a JDBC database connection. |
int |
getRowCount(java.lang.String tableName)
Returns the specified table row count. |
int |
getRowCount(java.lang.String tableName,
java.lang.String whereClause)
Returns the specified table row count according specified where clause. |
java.lang.String |
getSchema()
Returns the database schema name. |
IStatementFactory |
getStatementFactory()
Deprecated. Use getConfig() |
Method Detail |
public java.sql.Connection getConnection() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getSchema()
public void close() throws java.sql.SQLException
java.sql.SQLException
public IDataSet createDataSet() throws java.sql.SQLException
java.sql.SQLException
public IDataSet createDataSet(java.lang.String[] tableNames) throws java.sql.SQLException
java.sql.SQLException
public ITable createQueryTable(java.lang.String resultName, java.lang.String sql) throws DataSetException, java.sql.SQLException
resultName
- The name to be returned by ITableMetaData.getTableName()
.sql
- The SQL SELECT
statement
DataSetException
java.sql.SQLException
public int getRowCount(java.lang.String tableName) throws java.sql.SQLException
tableName
- the table name
java.sql.SQLException
public int getRowCount(java.lang.String tableName, java.lang.String whereClause) throws java.sql.SQLException
tableName
- the table namewhereClause
- the where clause
java.sql.SQLException
public DatabaseConfig getConfig()
public IStatementFactory getStatementFactory()
getConfig()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |