Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
Reality V15.0 ()
: Class RealCatalogQueryR82 (RealSQL-JDBC) (realcatalogqueryr82.html)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.northgateis.reality.realsql.RealCatalogQuery | +--com.northgateis.reality.realsql.RealCatalogQueryR82
This class is used to generate SQL catalog query statements for connections to an 8.2 (or later) Reality database.
RealSQLDatabaseMetaData
,
DatabaseMetaData
Fields inherited from class com.northgateis.reality.realsql.RealCatalogQuery |
dbmd,
debug,
sqlStatement
|
Constructor Summary | |
RealCatalogQueryR82(RealSQLDatabaseMetaData metadata,
int traceFlags) |
Method Summary | |
protected java.lang.String | createBestRowStatement(java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName,
int scope,
boolean nullable) Constructs an appropriate catalog command to implement getBestRowIdentifier() |
protected java.lang.String | createCatalogStatement() Constructs a psuedo catalog command to implement getCatalogs(). |
protected java.lang.String | createColumnStatement(java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName,
java.lang.String columnName) Constructs an appropriate catalog command to implement getColumns() |
protected java.lang.String | createIndexInfoStatement(java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName,
boolean unique,
boolean approximate) Constructs an appropriate catalog command to implement getIndexInfo() |
protected java.lang.String | createPrimaryKeyStatement(java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName) Constructs an appropriate catalog command to implement getPrimarKeys() |
protected java.lang.String | createSchemaStatement() Constructs an appropriate catalog command to implement getSchemas() |
protected java.lang.String | createTableStatement(java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName,
java.lang.String[] types) Constructs an appropriate psuedo catalog command to implement getTables() Reality supports the following table types : "TABLE", "SYSTEM TABLE". |
protected java.lang.String | createTableTypeStatement() Constructs an appropriate catalog command to implement getTableTypes() |
protected java.lang.String | createTypeInfoStatement() Constructs an appropriate catalog command to implement getTypeInfo() |
protected java.lang.String | createVersionColumnStatement(java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName) Constructs an appropriate catalog command to implement getVersionColumns() Reality does not support columns that are automatically updated when any value in a row is updated, therefore this query will always return a ResultSet containing zero rows. |
protected java.sql.ResultSet | executeCatalogQuery(RealSQLStatement catalogStatement,
java.lang.String sqlStatement) Executes the catalog query statement and returns the result set. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RealCatalogQueryR82(RealSQLDatabaseMetaData metadata, int traceFlags) throws RealSQLException
Method Detail |
protected java.sql.ResultSet executeCatalogQuery(RealSQLStatement catalogStatement, java.lang.String sqlStatement) throws java.sql.SQLException
catalogStatement
- the catalog object used for the statement generation.sqlStatement
- the completed SQL statement being passed to the Reality server.protected java.lang.String createTableStatement(java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName, java.lang.String[] types) throws RealSQLException
Reality supports the following table types : "TABLE", "SYSTEM TABLE".
catalogName
- a catalog name; "" retrieves those without a
catalog; null means drop catalog name from the selection criteria.schemaName
- a schema name pattern; "" retrieves those without a schema.tableName
- a table name pattern.types
- a list of table types to include; null returns all types.
protected java.lang.String createCatalogStatement() throws RealSQLException
protected java.lang.String createSchemaStatement() throws RealSQLException
protected java.lang.String createTableTypeStatement() throws RealSQLException
protected java.lang.String createColumnStatement(java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName, java.lang.String columnName) throws RealSQLException
catalogName
- a catalog name; "" retrieves those without a catalog; null means
drop catalog name from the selection criteria.schemaName
- a schema name pattern; "" retrieves those without a schema.tableName
- a table name pattern.columnName
- a column name pattern.protected java.lang.String createBestRowStatement(java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName, int scope, boolean nullable) throws RealSQLException
catalogName
- a catalog name; "" retrieves those without a catalog; null means
drop catalog name from the selection criteria.schemaName
- a schema name; "" retrieves those without a schema.tableName
- a table name.columnName
- a column name.scope
- - the scope of interest; use same values as SCOPEnullable
- - include columns that are nullable?protected java.lang.String createVersionColumnStatement(java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName) throws RealSQLException
Reality does not support columns that are automatically updated when any value in a row is updated, therefore this query will always return a ResultSet containing zero rows.
catalogName
- a catalog name; "" retrieves those without a catalog; null means
drop catalog name from the selection criteria.schemaName
- a schema name; "" retrieves those without a schema.tableName
- a table name.columnName
- a column name.protected java.lang.String createIndexInfoStatement(java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName, boolean unique, boolean approximate) throws RealSQLException
catalogName
- a catalog name; "" retrieves those without a catalog; null means
drop catalog name from the selection criteria.schemaName
- a schema name; "" retrieves those without a schema.tableName
- a table name.columnName
- a column name.unique
- - when true, return only indices for unique values; when false,
return indices regardless of whether unique or notapproximate
- - when true, result is allowed to reflect approximate or out of data
values; when false, results are requested to be accurateprotected java.lang.String createTypeInfoStatement() throws RealSQLException
protected java.lang.String createPrimaryKeyStatement(java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName) throws RealSQLException
catalogName
- a catalog name; "" retrieves those without a catalog; null means
drop catalog name from the selection criteria.schemaName
- a schema name; "" retrieves those without a schema.tableName
- a table name.columnName
- a column name.PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |