| java.lang.Object org.hsqldb.DatabaseInformation org.hsqldb.DatabaseInformationMain org.hsqldb.DatabaseInformationFull
DatabaseInformationFull | final class DatabaseInformationFull extends org.hsqldb.DatabaseInformationMain (Code) | | Extends DatabaseInformationMain to provide additional system table
support.
author: boucherb@users version: 1.8.0 since: 1.7.2 |
Field Summary | |
protected DIProcedureInfo | pi Provides SQL function/procedure reporting support. |
Method Summary | |
Table | SYSTEM_ALIASES() Retrieves a Table object describing the aliases defined
within this database. | Table | SYSTEM_AUTHORIZATIONS() SYSTEM_AUTHORIZATIONS
Function
The AUTHORIZATIONS table has one row for each <role name> and
one row for each <authorization identifier > referenced in the
Information Schema. | Table | SYSTEM_CACHEINFO() Retrieves a Table object describing the current
state of all row caching objects for the accessible
tables defined within this database. | Table | SYSTEM_CHECK_COLUMN_USAGE() The CHECK_COLUMN_USAGE table has one row for each column identified by
a <column reference> contained in the <search condition>
of a check constraint, domain constraint, or assertion. | Table | SYSTEM_CHECK_ROUTINE_USAGE() The CHECK_ROUTINE_USAGE base table has one row for each
SQL-invoked routine identified as the subject routine of either a
<routine invocation>, a <method reference>, a
<method invocation>, or a <static method invocation>
contained in an <assertion definition>, a <domain
constraint>, or a <table constraint definition>. | Table | SYSTEM_CHECK_TABLE_USAGE() The CHECK_TABLE_USAGE table has one row for each table identified by a
<table name> simply contained in a <table reference>
contained in the <search condition> of a check constraint,
domain constraint, or assertion. | Table | SYSTEM_CLASSPRIVILEGES() Retrieves a Table object describing the visible
access rights for all accessible Java Class objects defined
within this database.
Each row is a Class privilege description with the following
columns:
CLASS_CAT VARCHAR catalog in which the class is defined
CLASS_SCHEM VARCHAR schema in which the class is defined
CLASS_NAME VARCHAR fully qualified name of class
GRANTOR VARCHAR grantor of access
GRANTEE VARCHAR grantee of access
PRIVILEGE VARCHAR name of access: {"EXECUTE" | "TRIGGER"}
IS_GRANTABLE VARCHAR grantable?: {"YES" | "NO" | NULL (unknown)}
Note: Users with the administrative privilege implicily have
full and unrestricted access to all Classes available to the database
class loader. | Table | SYSTEM_COLLATIONS() SYSTEM_COLLATIONS
Function
The COLLATIONS table has one row for each character collation
descriptor. | Table | SYSTEM_PROCEDURECOLUMNS() | Table | SYSTEM_PROCEDURES() Retrieves a Table object describing the accessible
routines defined within this database. | Table | SYSTEM_PROPERTIES() Retrieves a Table object describing the capabilities
and operating parameter properties for the engine hosting this
database, as well as their applicability in terms of scope and
name space. | Table | SYSTEM_ROLE_AUTHORIZATION_DESCRIPTORS() SYSTEM_ROLE_AUTHORIZATION_DESCRIPTORS
Function
Contains a representation of the role authorization descriptors.
Definition
CREATE TABLE ROLE_AUTHORIZATION_DESCRIPTORS (
ROLE_NAME INFORMATION_SCHEMA.SQL_IDENTIFIER,
GRANTEE INFORMATION_SCHEMA.SQL_IDENTIFIER,
GRANTOR INFORMATION_SCHEMA.SQL_IDENTIFIER,
IS_GRANTABLE INFORMATION_SCHEMA.CHARACTER_DATA
CONSTRAINT ROLE_AUTHORIZATION_DESCRIPTORS_IS_GRANTABLE_CHECK
CHECK ( IS_GRANTABLE IN
( 'YES', 'NO' ) ),
CONSTRAINT ROLE_AUTHORIZATION_DESCRIPTORS_PRIMARY_KEY
PRIMARY KEY ( ROLE_NAME, GRANTEE ),
CONSTRAINT ROLE_AUTHORIZATION_DESCRIPTORS_CHECK_ROLE_NAME
CHECK ( ROLE_NAME IN
( SELECT AUTHORIZATION_NAME
FROM AUTHORIZATIONS
WHERE AUTHORIZATION_TYPE = 'ROLE' ) ),
CONSTRAINT ROLE_AUTHORIZATION_DESCRIPTORS_FOREIGN_KEY_AUTHORIZATIONS_GRANTOR
FOREIGN KEY ( GRANTOR )
REFERENCES AUTHORIZATIONS,
CONSTRAINT ROLE_AUTHORIZATION_DESCRIPTORS_FOREIGN_KEY_AUTHORIZATIONS_GRANTEE
FOREIGN KEY ( GRANTEE )
REFERENCES AUTHORIZATIONS
)
Description
- The value of ROLE_NAME is the <role name> of some
<role granted> by the <grant role statement> or
the <role name> of a <role definition>.
| Table | SYSTEM_SCHEMATA() SYSTEM_SCHEMATA
Function
The SCHEMATA table has one row for each schema. | Table | SYSTEM_SESSIONINFO() Retrieves a Table object describing attributes
for the calling session context.
The rows report the following {key,value} pairs:
KEY (VARCHAR) VALUE (VARCHAR)
------------------- ---------------
SESSION_ID the id of the calling session
AUTOCOMMIT YES: session is in autocommit mode, else NO
USER the name of user connected in the calling session
(was READ_ONLY)
SESSION_READONLY TRUE: session is in read-only mode, else FALSE
(new)
DATABASE_READONLY TRUE: database is in read-only mode, else FALSE
MAXROWS the MAXROWS setting in the calling session
DATABASE the name of the database
IDENTITY the last identity value used by calling session
Note: This table may become deprecated in a future
release, as the information it reports now duplicates information
reported in the newer SYSTEM_SESSIONS and SYSTEM_PROPERTIES
tables. | Table | SYSTEM_SESSIONS() Retrieves a Table object describing all visible
sessions. | Table | SYSTEM_SUPERTABLES() Retrieves a Table object describing the accessible
direct super table (if any) of each accessible table defined
within this database. | Table | SYSTEM_SUPERTYPES() Retrieves a Table object describing the accessible
direct super type (if any) of each accessible user-defined type (UDT)
defined within this database. | Table | SYSTEM_TABLE_CONSTRAINTS() The TABLE_CONSTRAINTS table has one row for each table constraint
associated with a table. | Table | SYSTEM_TEXTTABLES() Retrieves a Table object describing the TEXT TABLE objects
defined within this database. | Table | SYSTEM_TRIGGERCOLUMNS() Retrieves a Table object describing the usage
of accessible columns in accessible triggers defined within
the database. | Table | SYSTEM_TRIGGERS() Retrieves a Table object describing the accessible
triggers defined within the database. | Table | SYSTEM_UDTATTRIBUTES() Retrieves a Table object describing the accessible
attributes of the accessible user-defined type (UDT) objects
defined within this database. | Table | SYSTEM_UDTS() Retrieves a Table object describing the accessible
user-defined types defined in this database. | Table | SYSTEM_USAGE_PRIVILEGES() The SYSTEM_USAGE_PRIVILEGES table has one row for each usage privilege
descriptor. | Table | SYSTEM_VERSIONCOLUMNS() Retrieves a Table object describing the accessible
columns that are automatically updated when any value in a row
is updated. | Table | SYSTEM_VIEWS() Retrieves a Table object describing the VIEW objects
defined within this database. | Table | SYSTEM_VIEW_COLUMN_USAGE() The SYSTEM_VIEW_COLUMN_USAGE table has one row for each column of a
table that is explicitly or implicitly referenced in the
<query expression> of the view being described. | Table | SYSTEM_VIEW_ROUTINE_USAGE() The SYSTEM_VIEW_ROUTINE_USAGE table has one row for each SQL-invoked
routine identified as the subject routine of either a <routine
invocation>, a <method reference>, a <method invocation>,
or a <static method invocation> contained in a <view
definition>. | Table | SYSTEM_VIEW_TABLE_USAGE() The SYSTEM_VIEW_TABLE_USAGE table has one row for each table identified
by a <table name> simply contained in a <table reference>
that is contained in the <query expression> of a view. | protected void | addPColRows(Table t, HsqlArrayList l, String cat, String schem, String pName, String cName, Integer cType, Integer dType, String tName, Integer prec, Integer len, Integer scale, Integer radix, Integer nullability, String remark, String specificName, int seq) Inserts a set of procedure column description rows into the
Table specified by the t argument. | protected void | addProcRows(Table t, HsqlArrayList l, String cat, String schem, String pName, Integer ip, Integer op, Integer rs, String remark, Integer pType, String origin, String specificName) Inserts a set of procedure description rows into the Table
object specified by the t argument. | protected Table | generateTable(int tableIndex) Retrieves the system table corresponding to the specified index. |
DatabaseInformationFull | DatabaseInformationFull(Database db) throws HsqlException(Code) | | Constructs a new DatabaseInformationFull instance.
Parameters: db - the database for which to produce system tables. throws: HsqlException - if a database access error occurs. |
SYSTEM_ALIASES | Table SYSTEM_ALIASES() throws HsqlException(Code) | | Retrieves a Table object describing the aliases defined
within this database.
Currently two types of alias are reported: DOMAIN alaises (alternate
names for column data types when issuing "CREATE TABLE" DDL) and
ROUTINE aliases (alternate names that can be used when invoking
routines as SQL functions or stored procedures).
Each row is an alias description with the following columns:
OBJECT_TYPE VARCHAR type of the aliased object
OBJECT_CAT VARCHAR catalog of the aliased object
OBJECT_SCHEM VARCHAR schema of the aliased object
OBJECT_NAME VARCHAR simple identifier of the aliased object
ALIAS_CAT VARCHAR catalog in which alias is defined
ALIAS_SCHEM VARCHAR schema in which alias is defined
ALIAS VARCHAR alias for the indicated object
Note: Up to and including HSQLDB 1.7.2, user-defined aliases
are supported only for SQL function and stored procedure calls
(indicated by the value "ROUTINE" in the OBJECT_TYPE
column), and there is no syntax for dropping aliases, only for
creating them.
a Table object describing the accessisblealiases in the context of the calling session throws: HsqlException - if an error occurs while producing the table |
SYSTEM_AUTHORIZATIONS | Table SYSTEM_AUTHORIZATIONS() throws HsqlException(Code) | | SYSTEM_AUTHORIZATIONS
Function
The AUTHORIZATIONS table has one row for each <role name> and
one row for each <authorization identifier > referenced in the
Information Schema. These are the <role name>s and
<authorization identifier>s that may grant privileges as well as
those that may create a schema, or currently own a schema created
through a <schema definition>.
Definition
CREATE TABLE AUTHORIZATIONS (
AUTHORIZATION_NAME INFORMATION_SCHEMA.SQL_IDENTIFIER,
AUTHORIZATION_TYPE INFORMATION_SCHEMA.CHARACTER_DATA
CONSTRAINT AUTHORIZATIONS_AUTHORIZATION_TYPE_NOT_NULL
NOT NULL
CONSTRAINT AUTHORIZATIONS_AUTHORIZATION_TYPE_CHECK
CHECK ( AUTHORIZATION_TYPE IN ( 'USER', 'ROLE' ) ),
CONSTRAINT AUTHORIZATIONS_PRIMARY_KEY
PRIMARY KEY (AUTHORIZATION_NAME)
)
Description
- The values of AUTHORIZATION_TYPE have the following meanings:
USER |
The value of AUTHORIZATION_NAME is a known
<user identifier>. |
NO |
The value of AUTHORIZATION_NAME is a <role
name> defined by a <role definition>. |
|
SYSTEM_CACHEINFO | Table SYSTEM_CACHEINFO() throws HsqlException(Code) | | Retrieves a Table object describing the current
state of all row caching objects for the accessible
tables defined within this database.
Currently, the row caching objects for which state is reported are:
- the system-wide
Cache object used by CACHED tables.
- any
TextCache objects in use by [TEMP] TEXT tables.
Each row is a cache object state description with the following
columns:
CACHE_FILE VARCHAR absolute path of cache data file
MAX_CACHE_SIZE INTEGER maximum allowable cached Row objects
MAX_CACHE_BYTE_SIZE INTEGER maximum allowable size of cached Row objects
CACHE_LENGTH INTEGER number of data bytes currently cached
CACHE_SIZE INTEGER number of rows currently cached
FREE_BYTES INTEGER total bytes in available file allocation units
FREE_COUNT INTEGER total # of allocation units available
FREE_POS INTEGER largest file position allocated + 1
Notes:
TextCache objects do not maintain a free list because
deleted rows are only marked deleted and never reused. As such, the
columns FREE_BYTES, SMALLEST_FREE_ITEM, LARGEST_FREE_ITEM, and
FREE_COUNT are always reported as zero for rows reporting on
TextCache objects.
Currently, CACHE_SIZE, FREE_BYTES, SMALLEST_FREE_ITEM, LARGEST_FREE_ITEM,
FREE_COUNT and FREE_POS are the only dynamically changing values.
All others are constant for the life of a cache object. In a future
release, other column values may also change over the life of a cache
object, as SQL syntax may eventually be introduced to allow runtime
modification of certain cache properties.
a description of the current state of all row cachingobjects associated with the accessible tables of the database throws: HsqlException - if an error occurs while producing the table |
SYSTEM_CHECK_COLUMN_USAGE | Table SYSTEM_CHECK_COLUMN_USAGE() throws HsqlException(Code) | | The CHECK_COLUMN_USAGE table has one row for each column identified by
a <column reference> contained in the <search condition>
of a check constraint, domain constraint, or assertion.
Definition:
CREATE TABLE CHECK_COLUMN_USAGE (
CONSTRAINT_CATALOG VARCHAR NULL,
CONSTRAINT_SCHEMA VARCHAR NULL,
CONSTRAINT_NAME VARCHAR NOT NULL,
TABLE_CATALOG VARCHAR NULL,
TABLE_SCHEMA VARCHAR NULL,
TABLE_NAME VARCHAR NOT NULL,
COLUMN_NAME VARCHAR NOT NULL,
UNIQUE( CONSTRAINT_CATALOG, CONSTRAINT_SCHEMA, CONSTRAINT_NAME,
TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME )
)
Description:
- The values of CONSTRAINT_CATALOG, CONSTRAINT_SCHEMA, and
CONSTRAINT_NAME are the catalog name, unqualified schema name,
and qualified identifier, respectively, of the constraint being
described.
- The values of TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, and
COLUMN_NAME are the catalog name, unqualified schema name,
qualified identifier, and column name, respectively, of a column
identified by a <column reference> explicitly or implicitly
contained in the <search condition> of the constraint
being described.
|
SYSTEM_CHECK_ROUTINE_USAGE | Table SYSTEM_CHECK_ROUTINE_USAGE() throws HsqlException(Code) | | The CHECK_ROUTINE_USAGE base table has one row for each
SQL-invoked routine identified as the subject routine of either a
<routine invocation>, a <method reference>, a
<method invocation>, or a <static method invocation>
contained in an <assertion definition>, a <domain
constraint>, or a <table constraint definition>.
Definition:
CREATE TABLE SYSTEM_CHECK_ROUTINE_USAGE (
CONSTRAINT_CATALOG VARCHAR NULL,
CONSTRAINT_SCHEMA VARCHAR NULL,
CONSTRAINT_NAME VARCHAR NOT NULL,
SPECIFIC_CATALOG VARCHAR NULL,
SPECIFIC_SCHEMA VARCHAR NULL,
SPECIFIC_NAME VARCHAR NOT NULL,
UNIQUE( CONSTRAINT_CATALOG, CONSTRAINT_SCHEMA, CONSTRAINT_NAME,
SPECIFIC_CATALOG, SPECIFIC_SCHEMA, SPECIFIC_NAME )
)
Description:
- The CHECK_ROUTINE_USAGE table has one row for each
SQL-invoked routine R identified as the subject routine of either a
<routine invocation>, a <method reference>, a <method
invocation>, or a <static method invocation> contained in
an <assertion definition> or in the <check constraint
definition> contained in either a <domain constraint> or a
<table constraint definition>.
- The values of CONSTRAINT_CATALOG, CONSTRAINT_SCHEMA, and
CONSTRAINT_NAME are the catalog name, unqualified schema name, and
qualified identifier, respectively, of the assertion or check
constraint being described.
- The values of SPECIFIC_CATALOG, SPECIFIC_SCHEMA, and SPECIFIC_NAME
are the catalog name, unqualified schema name, and qualified
identifier, respectively, of the specific name of R.
|
SYSTEM_CHECK_TABLE_USAGE | Table SYSTEM_CHECK_TABLE_USAGE() throws HsqlException(Code) | | The CHECK_TABLE_USAGE table has one row for each table identified by a
<table name> simply contained in a <table reference>
contained in the <search condition> of a check constraint,
domain constraint, or assertion.
Definition:
CREATE STABLE SYSTEM_CHECK_TABLE_USAGE (
CONSTRAINT_CATALOG VARCHAR NULL,
CONSTRAINT_SCHEMA VARCHAR NULL,
CONSTRAINT_NAME VARCHAR NOT NULL,
TABLE_CATALOG VARCHAR NULL,
TABLE_SCHEMA VARCHAR NOT NULL,
TABLE_NAME INFORMATION_SCHEMA.SQL_IDENTIFIER,
UNIQUE( CONSTRAINT_CATALOG, CONSTRAINT_SCHEMA, CONSTRAINT_NAME,
TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME )
)
Description:
- The values of CONSTRAINT_CATALOG, CONSTRAINT_SCHEMA, and
CONSTRAINT_NAME are the catalog name, unqualified schema name,
and qualified identifier, respectively, of the constraint being
described.
- The values of TABLE_CATALOG, TABLE_SCHEMA, and TABLE_NAME are the
catalog name, unqualified schema name, and qualified identifier,
respectively, of a table identified by a <table name>
simply contained in a <table reference> contained in the
lt;search condition> of the constraint being described.
|
SYSTEM_CLASSPRIVILEGES | Table SYSTEM_CLASSPRIVILEGES() throws HsqlException(Code) | | Retrieves a Table object describing the visible
access rights for all accessible Java Class objects defined
within this database.
Each row is a Class privilege description with the following
columns:
CLASS_CAT VARCHAR catalog in which the class is defined
CLASS_SCHEM VARCHAR schema in which the class is defined
CLASS_NAME VARCHAR fully qualified name of class
GRANTOR VARCHAR grantor of access
GRANTEE VARCHAR grantee of access
PRIVILEGE VARCHAR name of access: {"EXECUTE" | "TRIGGER"}
IS_GRANTABLE VARCHAR grantable?: {"YES" | "NO" | NULL (unknown)}
Note: Users with the administrative privilege implicily have
full and unrestricted access to all Classes available to the database
class loader. However, only explicitly granted rights are reported
in this table. Explicit Class grants/revokes to admin users have no
effect in reality, but are reported in this table anyway for
completeness.
a Table object describing the visibleaccess rights for all accessible Java Classobjects defined within this database throws: HsqlException - if an error occurs while producing the table |
SYSTEM_COLLATIONS | Table SYSTEM_COLLATIONS() throws HsqlException(Code) | | SYSTEM_COLLATIONS
Function
The COLLATIONS table has one row for each character collation
descriptor.
Definition
CREATE TABLE COLLATIONS (
COLLATION_CATALOG INFORMATION_SCHEMA.SQL_IDENTIFIER,
COLLATION_SCHEMA INFORMATION_SCHEMA.SQL_IDENTIFIER,
COLLATION_NAME INFORMATION_SCHEMA.SQL_IDENTIFIER,
PAD_ATTRIBUTE INFORMATION_SCHEMA.CHARACTER_DATA
CONSTRAINT COLLATIONS_PAD_ATTRIBUTE_CHECK
CHECK ( PAD_ATTRIBUTE IN
( 'NO PAD', 'PAD SPACE' ) ),
COLLATION_TYPE INFORMATION_SCHEMA.SQL_IDENTIFIER,
COLLATION_DEFINITION INFORMATION_SCHEMA.CHARACTER_DATA,
COLLATION_DICTIONARY INFORMATION_SCHEMA.CHARACTER_DATA,
CHARACTER_REPERTOIRE_NAME INFORMATION_SCHEMA.SQL_IDENTIFIER
CONSTRAINT CHARACTER_REPERTOIRE_NAME_NOT_NULL
NOT NULL,
CONSTRAINT COLLATIONS_PRIMARY_KEY
PRIMARY KEY ( COLLATION_CATALOG, COLLATION_SCHEMA, COLLATION_NAME ),
CONSTRAINT COLLATIONS_FOREIGN_KEY_SCHEMATA
FOREIGN KEY ( COLLATION_CATALOG, COLLATION_SCHEMA )
REFERENCES SCHEMATA
)
Description
- The values of COLLATION_CATALOG, COLLATION_SCHEMA, and
COLLATION_NAME are the catalog name, unqualified schema name,
and qualified identifier, respectively, of the collation being
described.
- The values of COLLATION_TYPE, COLLATION_DICTIONARY, and
COLLATION_DEFINITION are the null value (deprectated).
- The values of PAD_ATTRIBUTE have the following meanings:
NO PAD |
The collation being described has the NO PAD
characteristic. |
PAD |
The collation being described has the PAD SPACE
characteristic. |
- The value of CHARACTER_REPERTOIRE_NAME is the name of the
character repertoire to which the collation being described
is applicable.
|
SYSTEM_PROCEDURECOLUMNS | Table SYSTEM_PROCEDURECOLUMNS() throws HsqlException(Code) | | Retrieves a Table object describing the
return, parameter and result columns of the accessible
routines defined within this database.
Each row is a procedure column description with the following
columns:
PROCEDURE_CAT VARCHAR routine catalog
PROCEDURE_SCHEM VARCHAR routine schema
PROCEDURE_NAME VARCHAR routine name
COLUMN_NAME VARCHAR column/parameter name
COLUMN_TYPE SMALLINT kind of column/parameter
DATA_TYPE SMALLINT SQL type from DITypes
TYPE_NAME VARCHAR SQL type name
PRECISION INTEGER precision (length) of type
LENGTH INTEGER transfer size, in bytes, if definitely known
(roughly equivalent to BUFFER_SIZE for table
columns)
SCALE SMALLINT scale
RADIX SMALLINT radix
NULLABLE SMALLINT can column contain NULL?
REMARKS VARCHAR explanatory comment on column
SPECIFIC_NAME VARCHAR typically (but not restricted to) a
fully qulified Java Method name and signature
SEQ INTEGER The JDBC-specified order within
runs of PROCEDURE_SCHEM, PROCEDURE_NAME,
SPECIFIC_NAME, which is:
return value (0), if any, first, followed
by the parameter descriptions in call order
(1..n1), followed by the result column
descriptions in column number order
(n1 + 1..n1 + n2)
a Table object describing thereturn, parameter and result columnsof the accessible routines definedwithin this database. throws: HsqlException - if an error occurs while producing the table |
SYSTEM_PROCEDURES | Table SYSTEM_PROCEDURES() throws HsqlException(Code) | | Retrieves a Table object describing the accessible
routines defined within this database.
Each row is a procedure description with the following
columns:
PROCEDURE_CAT VARCHAR catalog in which routine is defined
PROCEDURE_SCHEM VARCHAR schema in which routine is defined
PROCEDURE_NAME VARCHAR simple routine identifier
NUM_INPUT_PARAMS INTEGER number of input parameters
NUM_OUTPUT_PARAMS INTEGER number of output parameters
NUM_RESULT_SETS INTEGER number of result sets returned
REMARKS VARCHAR explanatory comment on the routine
PROCEDURE_TYPE SMALLINT { Unknown | No Result | Returns Result }
ORIGIN VARCHAR {ALIAS |
[BUILTIN | USER DEFINED] ROUTINE |
[BUILTIN | USER DEFINED] TRIGGER |
...}
SPECIFIC_NAME VARCHAR typically (but not restricted to) a
a fully qualified Java Method name
and signature
a Table object describing the accessibleroutines defined within the this database throws: HsqlException - if an error occurs while producing the table |
SYSTEM_PROPERTIES | Table SYSTEM_PROPERTIES() throws HsqlException(Code) | | Retrieves a Table object describing the capabilities
and operating parameter properties for the engine hosting this
database, as well as their applicability in terms of scope and
name space.
Reported properties include certain predefined Database
properties file values as well as certain database scope
attributes.
It is intended that all Database attributes and
properties that can be set via the database properties file,
JDBC connection properties or SQL SET/ALTER statements will
eventually be reported here or, where more applicable, in an
ANSI/ISO conforming feature info base table in the defintion
schema.
Currently, the database properties reported are:
- hsqldb.cache_file_scale - the scaling factor used to translate data and index structure file pointers
- hsqldb.cache_scale - base-2 exponent scaling allowable cache row count
- hsqldb.cache_size_scale - base-2 exponent scaling allowable cache byte count
- hsqldb.cache_version -
- hsqldb.catalogs - whether to report the database catalog (database uri)
- hsqldb.compatible_version -
- hsqldb.files_readonly - whether the database is in files_readonly mode
- hsqldb.gc_interval - # new records forcing gc ({0|NULL}=>never)
- hsqldb.max_nio_scale - scale factor for cache nio mapped buffers
- hsqldb.nio_data_file - whether cache uses nio mapped buffers
- hsqldb.original_version -
- sql.enforce_strict_size - column length specifications enforced strictly (raise exception on overflow)?
- textdb.all_quoted - default policy regarding whether to quote all character field values
- textdb.cache_scale - base-2 exponent scaling allowable cache row count
- textdb.cache_size_scale - base-2 exponent scaling allowable cache byte count
- textdb.encoding - default TEXT table file encoding
- textdb.fs - default field separator
- textdb.vs - default varchar field separator
- textdb.lvs - default long varchar field separator
- textdb.ignore_first - default policy regarding whether to ignore the first line
- textdb.quoted - default policy regarding treatement character field values that _may_ require quoting
- IGNORECASE - create table VARCHAR_IGNORECASE?
- LOGSIZSE - # bytes to which REDO log grows before auto-checkpoint
- REFERENTIAL_INTEGITY - currently enforcing referential integrity?
- SCRIPTFORMAT - 0 : TEXT, 1 : BINARY, ...
- WRITEDELAY - does REDO log currently use buffered write strategy?
table describing database and session operating parametersand capabilities throws: HsqlException - if an error occurs while producing the table |
SYSTEM_ROLE_AUTHORIZATION_DESCRIPTORS | Table SYSTEM_ROLE_AUTHORIZATION_DESCRIPTORS() throws HsqlException(Code) | | SYSTEM_ROLE_AUTHORIZATION_DESCRIPTORS
Function
Contains a representation of the role authorization descriptors.
Definition
CREATE TABLE ROLE_AUTHORIZATION_DESCRIPTORS (
ROLE_NAME INFORMATION_SCHEMA.SQL_IDENTIFIER,
GRANTEE INFORMATION_SCHEMA.SQL_IDENTIFIER,
GRANTOR INFORMATION_SCHEMA.SQL_IDENTIFIER,
IS_GRANTABLE INFORMATION_SCHEMA.CHARACTER_DATA
CONSTRAINT ROLE_AUTHORIZATION_DESCRIPTORS_IS_GRANTABLE_CHECK
CHECK ( IS_GRANTABLE IN
( 'YES', 'NO' ) ),
CONSTRAINT ROLE_AUTHORIZATION_DESCRIPTORS_PRIMARY_KEY
PRIMARY KEY ( ROLE_NAME, GRANTEE ),
CONSTRAINT ROLE_AUTHORIZATION_DESCRIPTORS_CHECK_ROLE_NAME
CHECK ( ROLE_NAME IN
( SELECT AUTHORIZATION_NAME
FROM AUTHORIZATIONS
WHERE AUTHORIZATION_TYPE = 'ROLE' ) ),
CONSTRAINT ROLE_AUTHORIZATION_DESCRIPTORS_FOREIGN_KEY_AUTHORIZATIONS_GRANTOR
FOREIGN KEY ( GRANTOR )
REFERENCES AUTHORIZATIONS,
CONSTRAINT ROLE_AUTHORIZATION_DESCRIPTORS_FOREIGN_KEY_AUTHORIZATIONS_GRANTEE
FOREIGN KEY ( GRANTEE )
REFERENCES AUTHORIZATIONS
)
Description
- The value of ROLE_NAME is the <role name> of some
<role granted> by the <grant role statement> or
the <role name> of a <role definition>.
- The value of GRANTEE is an <authorization identifier>,
possibly PUBLIC, or <role name> specified as a
<grantee> contained in a <grant role statement>,
or the <authorization identifier> of the current
SQLsession when the <role definition> is executed.
- The value of GRANTOR is the <authorization identifier>
of the user or role who granted the role identified by
ROLE_NAME to the user or role identified by the value of
GRANTEE.
- The values of IS_GRANTABLE have the following meanings:
YES |
The described role is grantable. |
NO |
The described role is not grantable. |
|
SYSTEM_SCHEMATA | Table SYSTEM_SCHEMATA() throws HsqlException(Code) | | SYSTEM_SCHEMATA
Function
The SCHEMATA table has one row for each schema.
Definition
CREATE TABLE SCHEMATA (
CATALOG_NAME INFORMATION_SCHEMA.SQL_IDENTIFIER,
SCHEMA_NAME INFORMATION_SCHEMA.SQL_IDENTIFIER,
SCHEMA_OWNER INFORMATION_SCHEMA.SQL_IDENTIFIER
CONSTRAINT SCHEMA_OWNER_NOT_NULL
NOT NULL,
DEFAULT_CHARACTER_SET_CATALOG INFORMATION_SCHEMA.SQL_IDENTIFIER
CONSTRAINT DEFAULT_CHARACTER_SET_CATALOG_NOT_NULL
NOT NULL,
DEFAULT_CHARACTER_SET_SCHEMA INFORMATION_SCHEMA.SQL_IDENTIFIER
CONSTRAINT DEFAULT_CHARACTER_SET_SCHEMA_NOT_NULL
NOT NULL,
DEFAULT_CHARACTER_SET_NAME INFORMATION_SCHEMA.SQL_IDENTIFIER
CONSTRAINT DEFAULT_CHARACTER_SET_NAME_NOT_NULL
NOT NULL,
SQL_PATH INFORMATION_SCHEMA.CHARACTER_DATA,
CONSTRAINT SCHEMATA_PRIMARY_KEY
PRIMARY KEY ( CATALOG_NAME, SCHEMA_NAME ),
CONSTRAINT SCHEMATA_FOREIGN_KEY_AUTHORIZATIONS
FOREIGN KEY ( SCHEMA_OWNER )
REFERENCES AUTHORIZATIONS,
CONSTRAINT SCHEMATA_FOREIGN_KEY_CATALOG_NAMES
FOREIGN KEY ( CATALOG_NAME )
REFERENCES CATALOG_NAMES
)
Description
- The value of CATALOG_NAME is the name of the catalog of the
schema described by this row.
- The value of SCHEMA_NAME is the unqualified schema name of
the schema described by this row.
- The values of SCHEMA_OWNER are the authorization identifiers
that own the schemata.
- The values of DEFAULT_CHARACTER_SET_CATALOG,
DEFAULT_CHARACTER_SET_SCHEMA, and DEFAULT_CHARACTER_SET_NAME
are the catalog name, unqualified schema name, and qualified
identifier, respectively, of the default character set for
columns and domains in the schemata.
- Case:
- If <schema path specification> was specified in
the <schema definition> that defined the schema
described by this row and the character representation
of the <schema path specification> can be
represented without truncation, then the value of
SQL_PATH is that character representation.
- Otherwise, the value of SQL_PATH is the null value.
|
SYSTEM_SESSIONINFO | Table SYSTEM_SESSIONINFO() throws HsqlException(Code) | | Retrieves a Table object describing attributes
for the calling session context.
The rows report the following {key,value} pairs:
KEY (VARCHAR) VALUE (VARCHAR)
------------------- ---------------
SESSION_ID the id of the calling session
AUTOCOMMIT YES: session is in autocommit mode, else NO
USER the name of user connected in the calling session
(was READ_ONLY)
SESSION_READONLY TRUE: session is in read-only mode, else FALSE
(new)
DATABASE_READONLY TRUE: database is in read-only mode, else FALSE
MAXROWS the MAXROWS setting in the calling session
DATABASE the name of the database
IDENTITY the last identity value used by calling session
Note: This table may become deprecated in a future
release, as the information it reports now duplicates information
reported in the newer SYSTEM_SESSIONS and SYSTEM_PROPERTIES
tables.
a Table object describing theattributes of the connection associatedwith the current execution context throws: HsqlException - if an error occurs while producing the table |
SYSTEM_SESSIONS | Table SYSTEM_SESSIONS() throws HsqlException(Code) | | Retrieves a Table object describing all visible
sessions. ADMIN users see *all* sessions
while non-admin users see only their own session.
Each row is a session state description with the following columns:
SESSION_ID INTEGER session identifier
CONNECTED TIMESTAMP time at which session was created
USER_NAME VARCHAR db user name of current session user
IS_ADMIN BOOLEAN is session user an admin user?
AUTOCOMMIT BOOLEAN is session in autocommit mode?
READONLY BOOLEAN is session in read-only mode?
MAXROWS INTEGER session's MAXROWS setting
LAST_IDENTITY INTEGER last identity value used by this session
TRANSACTION_SIZE INTEGER # of undo items in current transaction
SCHEMA VARCHAR current schema for session
a Table object describing all visiblesessions throws: HsqlException - if an error occurs while producing the table |
SYSTEM_SUPERTABLES | Table SYSTEM_SUPERTABLES() throws HsqlException(Code) | | Retrieves a Table object describing the accessible
direct super table (if any) of each accessible table defined
within this database.
Each row is a super table description with the following columns:
TABLE_CAT VARCHAR the table's catalog
TABLE_SCHEM VARCHAR table schema
TABLE_NAME VARCHAR table name
SUPERTABLE_NAME VARCHAR the direct super table's name
a Table object describing the accessibledirect supertable (if any) of each accessibletable defined within this database throws: HsqlException - if an error occurs while producing the table |
SYSTEM_SUPERTYPES | Table SYSTEM_SUPERTYPES() throws HsqlException(Code) | | Retrieves a Table object describing the accessible
direct super type (if any) of each accessible user-defined type (UDT)
defined within this database.
Each row is a super type description with the following columns:
TYPE_CAT VARCHAR the UDT's catalog
TYPE_SCHEM VARCHAR UDT's schema
TYPE_NAME VARCHAR type name of the UDT
SUPERTYPE_CAT VARCHAR the direct super type's catalog
SUPERTYPE_SCHEM VARCHAR the direct super type's schema
SUPERTYPE_NAME VARCHAR the direct super type's name
a Table object describing the accessibledirect supertype (if any) of each accessibleuser-defined type (UDT) defined within this database throws: HsqlException - if an error occurs while producing the table |
SYSTEM_TABLE_CONSTRAINTS | Table SYSTEM_TABLE_CONSTRAINTS() throws HsqlException(Code) | | The TABLE_CONSTRAINTS table has one row for each table constraint
associated with a table.
It effectively contains a representation of the table constraint
descriptors.
Definition:
CREATE TABLE SYSTEM_TABLE_CONSTRAINTS (
CONSTRAINT_CATALOG VARCHAR NULL,
CONSTRAINT_SCHEMA VARCHAR NULL,
CONSTRAINT_NAME VARCHAR NOT NULL,
CONSTRAINT_TYPE VARCHAR NOT NULL,
TABLE_CATALOG VARCHAR NULL,
TABLE_SCHEMA VARCHAR NULL,
TABLE_NAME VARCHAR NOT NULL,
IS_DEFERRABLE VARCHAR NOT NULL,
INITIALLY_DEFERRED VARCHAR NOT NULL,
CHECK ( CONSTRAINT_TYPE IN
( 'UNIQUE', 'PRIMARY KEY',
'FOREIGN KEY', 'CHECK' ) ),
CHECK ( ( IS_DEFERRABLE, INITIALLY_DEFERRED ) IN
( VALUES ( 'NO', 'NO' ),
( 'YES', 'NO' ),
( 'YES', 'YES' ) ) )
)
Description:
- The values of CONSTRAINT_CATALOG, CONSTRAINT_SCHEMA, and
CONSTRAINT_NAME are the catalog name, unqualified schema
name, and qualified identifier, respectively, of the
constraint being described. If the <table constraint
definition> or <add table constraint definition>
that defined the constraint did not specify a
<constraint name>, then the values of CONSTRAINT_CATALOG,
CONSTRAINT_SCHEMA, and CONSTRAINT_NAME are
implementation-defined.
- The values of CONSTRAINT_TYPE have the following meanings:
FOREIGN KEY |
The constraint being described is a
foreign key constraint. |
UNIQUE |
The constraint being described is a
unique constraint. |
PRIMARY KEY |
The constraint being described is a
primary key constraint. |
CHECK |
The constraint being described is a
check constraint. |
- The values of TABLE_CATALOG, TABLE_SCHEMA, and TABLE_NAME are
the catalog name, the unqualified schema name, and the
qualified identifier of the name of the table to which the
table constraint being described applies.
- The values of IS_DEFERRABLE have the following meanings:
YES |
The table constraint is deferrable. |
NO |
The table constraint is not deferrable. |
- The values of INITIALLY_DEFERRED have the following meanings:
YES |
The table constraint is initially deferred. |
NO |
The table constraint is initially immediate. |
|
SYSTEM_TEXTTABLES | Table SYSTEM_TEXTTABLES() throws HsqlException(Code) | | Retrieves a Table object describing the TEXT TABLE objects
defined within this database. The table contains one row for each row
in the SYSTEM_TABLES table with a HSQLDB_TYPE of TEXT .
Each row is a description of the attributes that defines its TEXT TABLE,
with the following columns:
TABLE_CAT VARCHAR table's catalog name
TABLE_SCHEM VARCHAR table's simple schema name
TABLE_NAME VARCHAR table's simple name
DATA_SOURCE_DEFINITION VARCHAR the "spec" proption of the table's
SET TABLE ... SOURCE DDL declaration
FILE_PATH VARCHAR absolute file path.
FILE_ENCODING VARCHAR endcoding of table's text file
FIELD_SEPARATOR VARCHAR default field separator
VARCHAR_SEPARATOR VARCAHR varchar field separator
LONGVARCHAR_SEPARATOR VARCHAR longvarchar field separator
IS_IGNORE_FIRST BOOLEAN ignores first line of file?
IS_QUOTED BOOLEAN fields are quoted if necessary?
IS_ALL_QUOTED BOOLEAN all fields are quoted?
IS_DESC BOOLEAN read rows starting at end of file?
a Table object describing the text attributesof the accessible text tables defined within this database throws: HsqlException - if an error occurs while producing the table |
SYSTEM_TRIGGERCOLUMNS | Table SYSTEM_TRIGGERCOLUMNS() throws HsqlException(Code) | | Retrieves a Table object describing the usage
of accessible columns in accessible triggers defined within
the database.
Each column usage description has the following columns:
TRIGGER_CAT VARCHAR Trigger catalog.
TRIGGER_SCHEM VARCHAR Trigger schema.
TRIGGER_NAME VARCHAR Trigger name.
TABLE_CAT VARCHAR Catalog of table on which the trigger is defined.
TABLE_SCHEM VARCHAR Schema of table on which the trigger is defined.
TABLE_NAME VARCHAR Table on which the trigger is defined.
COLUMN_NAME VARCHAR Name of the column used in the trigger.
COLUMN_LIST VARCHAR Specified in UPDATE clause?: ("Y" | "N"}
COLUMN_USAGE VARCHAR {"NEW" | "OLD" | "IN" | "OUT" | "IN OUT"}
a Table object describing of the usageof accessible columns in accessible triggersdefined within this database throws: HsqlException - if an error occurs while producing the table |
SYSTEM_TRIGGERS | Table SYSTEM_TRIGGERS() throws HsqlException(Code) | | Retrieves a Table object describing the accessible
triggers defined within the database.
Each row is a trigger description with the following columns:
TRIGGER_CAT VARCHAR Trigger catalog.
TRIGGER_SCHEM VARCHAR Trigger Schema.
TRIGGER_NAME VARCHAR Trigger Name.
TRIGGER_TYPE VARCHAR {("BEFORE" | "AFTER") + [" EACH ROW"] }
TRIGGERING_EVENT VARCHAR {"INSERT" | "UPDATE" | "DELETE"}
(future?: "INSTEAD OF " + ("SELECT" | ...))
TABLE_CAT VARCHAR Table's catalog.
TABLE_SCHEM VARCHAR Table's schema.
BASE_OBJECT_TYPE VARCHAR "TABLE"
(future?: "VIEW" | "SCHEMA" | "DATABASE")
TABLE_NAME VARCHAR Table on which trigger is defined
COLUMN_NAME VARCHAR NULL (future?: nested table column name)
REFERENCING_NAMES VARCHAR ROW, OLD, NEW, etc.
WHEN_CLAUSE VARCHAR Condition firing trigger (NULL => always)
STATUS VARCHAR {"ENABLED" | "DISABLED"}
DESCRIPTION VARCHAR typically, the trigger's DDL
ACTION_TYPE VARCHAR "CALL" (future?: embedded language name)
TRIGGER_BODY VARCHAR Statement(s) executed
a Table object describing the accessibletriggers defined within this database. throws: HsqlException - if an error occurs while producing the table |
SYSTEM_UDTATTRIBUTES | Table SYSTEM_UDTATTRIBUTES() throws HsqlException(Code) | | Retrieves a Table object describing the accessible
attributes of the accessible user-defined type (UDT) objects
defined within this database.
This description does not contain inherited attributes.
Each row is a user-defined type attributes description with the
following columns:
TYPE_CAT VARCHAR type catalog
TYPE_SCHEM VARCHAR type schema
TYPE_NAME VARCHAR type name
ATTR_NAME VARCHAR attribute name
DATA_TYPE SMALLINT attribute's SQL type from DITypes
ATTR_TYPE_NAME VARCHAR UDT: fully qualified type name
REF: fully qualified type name of target type of
the reference type.
ATTR_SIZE INTEGER column size.
char or date types => maximum number of characters;
numeric or decimal types => precision.
DECIMAL_DIGITS INTEGER # of fractional digits (scale) of number type
NUM_PREC_RADIX INTEGER Radix of number type
NULLABLE INTEGER whether NULL is allowed
REMARKS VARCHAR comment describing attribute
ATTR_DEF VARCHAR default attribute value
SQL_DATA_TYPE INTEGER expected value of SQL CLI SQL_DESC_TYPE in the SQLDA
SQL_DATETIME_SUB INTEGER DATETIME/INTERVAL => datetime/interval subcode
CHAR_OCTET_LENGTH INTEGER for char types: max bytes in column
ORDINAL_POSITION INTEGER index of column in table (starting at 1)
IS_NULLABLE VARCHAR "NO" => strictly no NULL values;
"YES" => maybe NULL values;
"" => unknown.
SCOPE_CATALOG VARCHAR catalog of REF attribute scope table or NULL
SCOPE_SCHEMA VARCHAR schema of REF attribute scope table or NULL
SCOPE_TABLE VARCHAR name of REF attribute scope table or NULL
SOURCE_DATA_TYPE SMALLINT For DISTINCT or user-generated REF DATA_TYPE:
source SQL type from DITypes
For other DATA_TYPE values: NULL
Note: Currently, neither the HSQLDB engine or the JDBC driver
support UDTs, so an empty table is returned.
a Table object describing the accessibleattrubutes of the accessible user-defined type(UDT) objects defined within this database throws: HsqlException - if an error occurs while producing the table |
SYSTEM_UDTS | Table SYSTEM_UDTS() throws HsqlException(Code) | | Retrieves a Table object describing the accessible
user-defined types defined in this database.
Schema-specific UDTs may have type JAVA_OBJECT, STRUCT, or DISTINCT.
Each row is a UDT descripion with the following columns:
- TYPE_CAT
VARCHAR => the type's catalog
- TYPE_SCHEM
VARCHAR => type's schema
- TYPE_NAME
VARCHAR => type name
- CLASS_NAME
VARCHAR => Java class name
- DATA_TYPE
VARCHAR =>
type value defined in DITypes ;
one of JAVA_OBJECT , STRUCT , or
DISTINCT
- REMARKS
VARCHAR =>
explanatory comment on the type
- BASE_TYPE
SMALLINT =>
type code of the source type of a DISTINCT type or the
type that implements the user-generated reference type of the
SELF_REFERENCING_COLUMN of a structured type as defined in
DITypes (null if DATA_TYPE is not DISTINCT or not
STRUCT with REFERENCE_GENERATION = USER_DEFINED)
Note: Currently, neither the HSQLDB engine or the JDBC driver
support UDTs, so an empty table is returned.
a Table object describing the accessibleuser-defined types defined in this database throws: HsqlException - if an error occurs while producing the table |
SYSTEM_USAGE_PRIVILEGES | Table SYSTEM_USAGE_PRIVILEGES() throws HsqlException(Code) | | The SYSTEM_USAGE_PRIVILEGES table has one row for each usage privilege
descriptor.
It effectively contains a representation of the usage privilege
descriptors.
Definition:
CREATE TABLE SYSTEM_USAGE_PRIVILEGES (
GRANTOR VARCHAR NOT NULL,
GRANTEE VARCHAR NOT NULL,
OBJECT_CATALOG VARCHAR NULL,
OBJECT_SCHEMA VARCHAR NULL,
OBJECT_NAME VARCHAR NOT NULL,
OBJECT_TYPE VARCHAR NOT NULL
CHECK ( OBJECT_TYPE IN (
'DOMAIN',
'CHARACTER SET',
'COLLATION',
'TRANSLATION',
'SEQUENCE' ) ),
IS_GRANTABLE VARCHAR NOT NULL
CHECK ( IS_GRANTABLE IN ( 'YES', 'NO' ) ),
UNIQUE( GRANTOR, GRANTEE, OBJECT_CATALOG,
OBJECT_SCHEMA, OBJECT_NAME, OBJECT_TYPE )
)
Description:
- The value of GRANTOR is the <authorization identifier> of the
user or role who granted usage privileges on the object of the type
identified by OBJECT_TYPE that is identified by OBJECT_CATALOG,
OBJECT_SCHEMA, and OBJECT_NAME, to the user or role identified by the
value of GRANTEE forthe usage privilege being described.
- The value of GRANTEE is the <authorization identifier> of some
user or role, or PUBLIC to indicate all users, to whom the usage
privilege being described is granted.
- The values of OBJECT_CATALOG, OBJECT_SCHEMA, and OBJECT_NAME are the
catalog name, unqualified schema name, and qualified identifier,
respectively, of the object to which the privilege applies.
- The values of OBJECT_TYPE have the following meanings:
DOMAIN |
The object to which the privilege applies is
a domain. |
CHARACTER SET |
The object to which the privilege applies is a
character set. |
COLLATION |
The object to which the privilege applies is a
collation. |
TRANSLATION |
The object to which the privilege applies is a
transliteration. |
SEQUENCE |
The object to which the privilege applies is a
sequence generator. |
- The values of IS_GRANTABLE have the following meanings:
YES |
The privilege being described was granted
WITH GRANT OPTION and is thus grantable. |
NO |
The privilege being described was not granted
WITH GRANT OPTION and is thus not grantable. |
|
SYSTEM_VERSIONCOLUMNS | Table SYSTEM_VERSIONCOLUMNS() throws HsqlException(Code) | | Retrieves a Table object describing the accessible
columns that are automatically updated when any value in a row
is updated.
Each row is a version column description with the following columns:
- SCOPE
SMALLINT => is not used
- COLUMN_NAME
VARCHAR => column name
- DATA_TYPE
SMALLINT =>
SQL data type from java.sql.Types
- TYPE_NAME
SMALLINT =>
Data source dependent type name
- COLUMN_SIZE
INTEGER => precision
- BUFFER_LENGTH
INTEGER =>
length of column value in bytes
- DECIMAL_DIGITS
SMALLINT => scale
- PSEUDO_COLUMN
SMALLINT =>
is this a pseudo column like an Oracle ROWID :
(as defined in java.sql.DatabaseMetadata )
versionColumnUnknown - may or may not be
pseudo column
versionColumnNotPseudo - is NOT a pseudo column
versionColumnPseudo - is a pseudo column
Note: Currently, the HSQLDB engine does not support version
columns, so an empty table is returned.
a Table object describing the columnsthat are automatically updated when any valuein a row is updated throws: HsqlException - if an error occurs while producing the table |
SYSTEM_VIEWS | Table SYSTEM_VIEWS() throws HsqlException(Code) | | Retrieves a Table object describing the VIEW objects
defined within this database. The table contains one row for each row
in the SYSTEM_TABLES table with a TABLE_TYPE of VIEW .
Each row is a description of the query expression that defines its view,
with the following columns:
TABLE_CATALOG VARCHAR name of view's defining catalog.
TABLE_SCHEMA VARCHAR unqualified name of view's defining schema.
TABLE_NAME VARCHAR the simple name of the view.
VIEW_DEFINITION VARCHAR the character representation of the
<query expression> contained in the
corresponding <view descriptor>.
CHECK_OPTION VARCHAR {"CASCADED" | "LOCAL" | "NONE"}
IS_UPDATABLE VARCHAR {"YES" | "NO"}
VALID BOOLEAN Always TRUE: VIEW_DEFINITION currently
represents a valid <query expression>.
a tabular description of the text source of allView objects accessible tothe user. throws: HsqlException - if an error occurs while producing the table |
SYSTEM_VIEW_COLUMN_USAGE | Table SYSTEM_VIEW_COLUMN_USAGE() throws HsqlException(Code) | | The SYSTEM_VIEW_COLUMN_USAGE table has one row for each column of a
table that is explicitly or implicitly referenced in the
<query expression> of the view being described.
Definition:
CREATE TABLE SYSTEM_VIEW_COLUMN_USAGE (
VIEW_CATALOG VARCHAR NULL,
VIEW_SCHEMA VARCHAR NULL,
VIEW_NAME VARCHAR NOT NULL,
TABLE_CATALOG VARCHAR NULL,
TABLE_SCHEMA VARCHAR NULL,
TABLE_NAME VARCHAR NOT NULL,
COLUMN_NAME VARCHAR NOT NULL,
UNIQUE ( VIEW_CATALOG, VIEW_SCHEMA, VIEW_NAME,
TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME,
COLUMN_NAME )
)
Description:
- The values of VIEW_CATALOG, VIEW_SCHEMA, and VIEW_NAME are the
catalog name, unqualified schema name, and qualified identifier,
respectively, of the view being described.
- The values of TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, and
COLUMN_NAME are the catalog name, unqualified schema name,
qualified identifier, and column name, respectively, of a column
of a table that is explicitly or implicitly referenced in the
<query expression> of the view being described.
|
SYSTEM_VIEW_ROUTINE_USAGE | Table SYSTEM_VIEW_ROUTINE_USAGE() throws HsqlException(Code) | | The SYSTEM_VIEW_ROUTINE_USAGE table has one row for each SQL-invoked
routine identified as the subject routine of either a <routine
invocation>, a <method reference>, a <method invocation>,
or a <static method invocation> contained in a <view
definition>.
Definition
CREATE TABLE VIEW_ROUTINE_USAGE (
TABLE_CATALOG VARCHAR NULL,
TABLE_SCHEMA VARCHAR NULL,
TABLE_NAME VARCHAR NOT NULL,
SPECIFIC_CATALOG VARCHAR NULL,
SPECIFIC_SCHEMA VARCHAR NULL,
SPECIFIC_NAME VARCHAR NOT NULL,
UNIQUE( TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME,
SPECIFIC_CATALOG, SPECIFIC_SCHEMA,
SPECIFIC_NAME )
)
Description
- The values of TABLE_CATALOG, TABLE_SCHEMA, and TABLE_NAME are the
catalog name, unqualified schema name, and qualified identifier,
respectively, of the viewed table being described.
- The values of SPECIFIC_CATALOG, SPECIFIC_SCHEMA, and SPECIFIC_NAME are
the catalog name, unqualified schema name, and qualified identifier,
respectively, of the specific name of R.
|
SYSTEM_VIEW_TABLE_USAGE | Table SYSTEM_VIEW_TABLE_USAGE() throws HsqlException(Code) | | The SYSTEM_VIEW_TABLE_USAGE table has one row for each table identified
by a <table name> simply contained in a <table reference>
that is contained in the <query expression> of a view.
Definition
CREATE TABLE SYSTEM_VIEW_TABLE_USAGE (
VIEW_CATALOG VARCHAR NULL,
VIEW_SCHEMA VARCHAR NULL,
VIEW_NAME VARCHAR NULL,
TABLE_CATALOG VARCHAR NULL,
TABLE_SCHEMA VARCHAR NULL,
TABLE_NAME VARCHAR NULL,
UNIQUE( VIEW_CATALOG, VIEW_SCHEMA, VIEW_NAME,
TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME )
)
Description:
- The values of VIEW_CATALOG, VIEW_SCHEMA, and VIEW_NAME are the
catalog name, unqualified schema name, and qualified identifier,
respectively, of the view being described.
- The values of TABLE_CATALOG, TABLE_SCHEMA, and TABLE_NAME are the
catalog name, unqualified schema name, and qualified identifier,
respectively, of a table identified by a <table name>
simply contained in a <table reference> that is contained in
the <query expression> of the view being described.
|
addPColRows | protected void addPColRows(Table t, HsqlArrayList l, String cat, String schem, String pName, String cName, Integer cType, Integer dType, String tName, Integer prec, Integer len, Integer scale, Integer radix, Integer nullability, String remark, String specificName, int seq) throws HsqlException(Code) | | Inserts a set of procedure column description rows into the
Table specified by the t argument.
Parameters: t - the table in which the rows are to be inserted Parameters: l - the list of procedure name aliases to which thespecified column values apply Parameters: cat - the procedure's catalog name Parameters: schem - the procedure's schema name Parameters: pName - the procedure's simple base (non-alias) name Parameters: cName - the procedure column name Parameters: cType - the column type (return, parameter, result) Parameters: dType - the column's data type code Parameters: tName - the column's canonical data type name Parameters: prec - the column's precision Parameters: len - the column's buffer length Parameters: scale - the column's scale (decimal digits) Parameters: radix - the column's numeric precision radix Parameters: nullability - the column's java.sql.DatbaseMetaDatanullabiliy code Parameters: remark - a human-readable remark regarding the column Parameters: specificName - the specific name of the procedure(typically but not limited toa fully qualified Java Method name and signature) Parameters: seq - helper value to back JDBC contract sort order throws: HsqlException - if there is problem inserting the specified rowsin the table |
addProcRows | protected void addProcRows(Table t, HsqlArrayList l, String cat, String schem, String pName, Integer ip, Integer op, Integer rs, String remark, Integer pType, String origin, String specificName) throws HsqlException(Code) | | Inserts a set of procedure description rows into the Table
object specified by the t argument.
Parameters: t - the table into which the specified rows will eventuallybe inserted Parameters: l - the list of procedure name aliases to which the specified columnvalues apply Parameters: cat - the procedure catalog name Parameters: schem - the procedure schema name Parameters: pName - the base (non-alias) procedure name Parameters: ip - the procedure input parameter count Parameters: op - the procedure output parameter count Parameters: rs - the procedure result column count Parameters: remark - a human-readable remark regarding the procedure Parameters: pType - the procedure type code, indicating whether it is afunction, procedure, or uncatagorized (i.e. returnsa value, does not return a value, or it is unknownif it returns a value) Parameters: origin - origin of the procedure, e.g.(["BUILTIN" | "USER DEFINED"] "ROUTINE" | "TRIGGER") | "ALIAS", etc. Parameters: specificName - the specific name of the procedure(typically but not limited to afully qualified Java Method name and signature) throws: HsqlException - if there is problem inserting the specified rowsin the table |
generateTable | protected Table generateTable(int tableIndex) throws HsqlException(Code) | | Retrieves the system table corresponding to the specified index.
Parameters: tableIndex - index identifying the system table to generate throws: HsqlException - if a database access error occurs the system table corresponding to the specified index |
Methods inherited from org.hsqldb.DatabaseInformationMain | final Table SYSTEM_ALLTYPEINFO() throws HsqlException(Code)(Java Doc) final Table SYSTEM_BESTROWIDENTIFIER() throws HsqlException(Code)(Java Doc) final Table SYSTEM_CATALOGS() throws HsqlException(Code)(Java Doc) final Table SYSTEM_CHECK_CONSTRAINTS() throws HsqlException(Code)(Java Doc) final Table SYSTEM_COLUMNPRIVILEGES() throws HsqlException(Code)(Java Doc) final Table SYSTEM_COLUMNS() throws HsqlException(Code)(Java Doc) final Table SYSTEM_CROSSREFERENCE() throws HsqlException(Code)(Java Doc) final Table SYSTEM_INDEXINFO() throws HsqlException(Code)(Java Doc) final Table SYSTEM_PRIMARYKEYS() throws HsqlException(Code)(Java Doc) Table SYSTEM_PROCEDURECOLUMNS() throws HsqlException(Code)(Java Doc) Table SYSTEM_PROCEDURES() throws HsqlException(Code)(Java Doc) final Table SYSTEM_SCHEMAS() throws HsqlException(Code)(Java Doc) final Table SYSTEM_SEQUENCES() throws HsqlException(Code)(Java Doc) final Table SYSTEM_TABLEPRIVILEGES() throws HsqlException(Code)(Java Doc) final Table SYSTEM_TABLES() throws HsqlException(Code)(Java Doc) Table SYSTEM_TABLETYPES() throws HsqlException(Code)(Java Doc) final Table SYSTEM_TYPEINFO() throws HsqlException(Code)(Java Doc) Table SYSTEM_USERS() throws HsqlException(Code)(Java Doc) final protected void addColumn(Table t, String name, int type, int size, boolean nullable) throws HsqlException(Code)(Java Doc) final protected void addColumn(Table t, String name, int type, boolean nullable) throws HsqlException(Code)(Java Doc) final protected void addColumn(Table t, String name, int type) throws HsqlException(Code)(Java Doc) final protected Iterator allTables()(Code)(Java Doc) final protected void cacheClear() throws HsqlException(Code)(Java Doc) final protected Table createBlankTable(HsqlName name) throws HsqlException(Code)(Java Doc) protected Table generateTable(int tableIndex) throws HsqlException(Code)(Java Doc) final Table getSystemTable(Session session, String name) throws HsqlException(Code)(Java Doc) final protected void init() throws HsqlException(Code)(Java Doc) final protected boolean isAccessibleTable(Table table) throws HsqlException(Code)(Java Doc)
|
|
|