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 RealCatalogQueryR81 (RealSQL-JDBC) (realcatalogqueryr81.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.RealCatalogQueryR81
This class is used to generate SQL catalog query statements for connections to an 8.1D Reality database.
RealSQLDatabaseMetaData
,
DatabaseMetaData
Fields inherited from class com.northgateis.reality.realsql.RealCatalogQuery |
dbmd,
debug,
sqlStatement
|
Constructor Summary | |
RealCatalogQueryR81(RealSQLDatabaseMetaData metadata,
int traceFlags) |
Method Summary | |
protected void | addWhereOrAnd() Appends a 'WHERE' or 'AND' clause to the SQL statement being generated. |
protected void | BuildTableRef(java.lang.String catalog,
java.lang.String schema,
java.lang.String table) This is employed by those catalog query methods that require to reference a specific catalog, schema, and or table name. |
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 query to implement getBestRowIdentifier() |
protected java.lang.String | createCatalogStatement() Constructs an appropriate catalog query 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 query 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 query to implement getIndexInfo() |
protected java.lang.String | createPrimaryKeyStatement(java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName) Constructs an appropriate catalog query to implement getPrimarKeys() This is not implemented on Reality databases prior to release 8.2A |
protected java.lang.String | createSchemaStatement() Constructs an appropriate catalog query 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 catalog query to implement getTables() Reality supports the following table types : "TABLE", "SYSTEM TABLE". |
protected java.lang.String | createTableTypeStatement() Constructs an appropriate catalog query to implement getTableTypes() |
protected java.lang.String | createTypeInfoStatement() Constructs an appropriate catalog query to implement getTypeInfo() |
protected java.lang.String | createVersionColumnStatement(java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName) Constructs an appropriate catalog query 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. |
protected void | parsePattern(java.lang.String pattern,
java.lang.String column_name,
int max_length) Parses a string pattern passed into one of the catalog queries. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RealCatalogQueryR81(RealSQLDatabaseMetaData metadata, int traceFlags)
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
This is not implemented on Reality databases prior to release 8.2A
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 void parsePattern(java.lang.String pattern, java.lang.String column_name, int max_length) throws RealSQLException
i.e. (WHERE|AND) column_name LIKE 'pattern'
pattern
- the pattern being applied.column_name
- the name of the table column being accessed.max_length
- maximum length of patternprotected void addWhereOrAnd()
whereFlag
. The flag is initally always
set to false and then set to true on the first pass through, this method maybe called
a number of times for one catalog statement.protected void BuildTableRef(java.lang.String catalog, java.lang.String schema, java.lang.String table) throws RealSQLException
i.e. (WHERE|AND) TABLE_QUALIFIER = 'catalog' (WHERE|AND) TABLE_OWNER = 'schema' (WHERE|AND) TABLE_NAME = 'table'
catalog
- the name of the table catalog.schema
- the name of the table schema.table
- the name of the table.PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |