0;else emptyMessage">
Add terms that define your study eg. technique, disease, targeted / untargeted metabolities
KEYWORDS
Add terms that define your study eg. technique, disease, targeted / untargeted metabolities


Simple Interest Calculator
Amount
Rate
10.25%
No. of Years
1
2
3
4
5
6
7
8
9
10
Compute Interest
Interest :


| Methods' Summary |
| allProceduresAreCallable |
Can all the procedures returned by getProcedures be called by the
current user?
|
| allTablesAreSelectable |
Can all the tables returned by getTable be SELECTed by the
current user?
|
| getURL |
returns the URL for the database connection
|
| getUserName |
returns the user name from this database connection.
|
| isReadOnly |
checks if the database in read-only mode.
|
| nullsAreSortedHigh |
Are NULL values sorted high?
|
| nullsAreSortedLow |
Are NULL values sorted low?
|
| nullsAreSortedAtStart |
Are NULL values sorted at the start regardless of sort order?
|
| nullsAreSortedAtEnd |
Are NULL values sorted at the end, regardless of sort order?
|
| getDatabaseProductName |
returns the name of the database product.
|
| getDatabaseProductVersion |
returns the version of the database product.
|
| getDriverName |
returns the name of the SDBC driver.
|
| getDriverVersion |
returns the version number of the SDBC driver.
|
| getDriverMajorVersion |
returns the SDBC driver major version number.
|
| getDriverMinorVersion |
returns the SDBC driver minor version number.
|
| usesLocalFiles |
use the database local files to save the tables.
|
| usesLocalFilePerTable |
use the database one local file to save for each table.
|
| supportsMixedCaseIdentifiers |
use the database 'mixed case unquoted SQL identifiers' case sensitive.
|
| storesUpperCaseIdentifiers |
Does the database treat mixed case unquoted SQL identifiers as
case insensitive and store them in upper case?
|
| storesLowerCaseIdentifiers |
Does the database treat mixed case unquoted SQL identifiers as
case insensitive and store them in lower case?
|
| storesMixedCaseIdentifiers |
Does the database treat mixed case unquoted SQL identifiers as
case insensitive and store them in mixed case?
|
| supportsMixedCaseQuotedIdentifiers |
Does the database treat mixed case quoted SQL identifiers as
case sensitive and as a result store them in mixed case?
|
| storesUpperCaseQuotedIdentifiers |
Does the database treat mixed case quoted SQL identifiers as
case insensitive and store them in upper case?
|
| storesLowerCaseQuotedIdentifiers |
Does the database treat mixed case quoted SQL identifiers as
case insensitive and store them in lower case?
|
| storesMixedCaseQuotedIdentifiers |
Does the database treat mixed case quoted SQL identifiers as
case insensitive and store them in mixed case?
|
| getIdentifierQuoteString |
What's the string used to quote SQL identifiers?
This returns a space " " if identifier quoting is not supported.
|
| getSQLKeywords |
gets a comma-separated list of all a database's SQL keywords
that are NOT also SQL92 keywords.
|
| getNumericFunctions |
gets a comma-separated list of math functions. These are the
X/Open CLI math function names used in the SDBC function escape
clause.
|
| getStringFunctions |
gets a comma-separated list of string functions. These are the
X/Open CLI string function names used in the SDBC function escape
clause.
|
| getSystemFunctions |
gets a comma-separated list of system functions. These are the
X/Open CLI system function names used in the SDBC function escape
clause.
|
| getTimeDateFunctions |
gets a comma-separated list of time and date functions.
|
| getSearchStringEscape |
gets the string that can be used to escape wildcard characters.
This is the string that can be used to escape '_' or '%' in
the string pattern style catalog search parameters.
|
| getExtraNameCharacters |
gets all the "extra" characters that can be used in unquoted
identifier names (those beyond a-z, A-Z, 0-9 and _).
|
| supportsAlterTableWithAddColumn |
support the Database "ALTER TABLE" with add column?
|
| supportsAlterTableWithDropColumn |
support the Database "ALTER TABLE" with drop column?
|
| supportsColumnAliasing |
support the Database column aliasing?
|
| nullPlusNonNullIsNull |
are concatenations between NULL and non-NULL values NULL?
|
| supportsTypeConversion |
true
, if the Database supports the CONVERT function between SQL types,
otherwise
false
.
|
| supportsConvert |
true
, if the Database supports the CONVERT between the given SQL types
otherwise
false
.
|
| supportsTableCorrelationNames |
Are table correlation names supported?
|
| supportsDifferentTableCorrelationNames |
If table correlation names are supported, are they restricted
to be different from the names of the tables?
|
| supportsExpressionsInOrderBy |
Are expressions in "ORDER BY" lists supported?
|
| supportsOrderByUnrelated |
Can an "ORDER BY" clause use columns not in the SELECT statement?
|
| supportsGroupBy |
Is some form of "GROUP BY" clause supported?
|
| supportsGroupByUnrelated |
Can a "GROUP BY" clause use columns not in the SELECT?
|
| supportsGroupByBeyondSelect |
Can a "GROUP BY" clause add columns not in the SELECT
provided it specifies all the columns in the SELECT?
|
| supportsLikeEscapeClause |
Is the escape character in "LIKE" clauses supported?
|
| supportsMultipleResultSets |
Are multiple XResultSets from a single execute supported?
|
| supportsMultipleTransactions |
Can we have multiple transactions open at once (on different
connections)?
|
| supportsNonNullableColumns |
Can columns be defined as non-nullable?
|
| supportsMinimumSQLGrammar |
true, if the database supports ODBC Minimum SQL grammar,
otherwise false.
|
| supportsCoreSQLGrammar |
true, if the database supports ODBC Core SQL grammar,
otherwise false.
|
| supportsExtendedSQLGrammar |
true, if the database supports ODBC Extended SQL grammar,
otherwise false.
|
| supportsANSI92EntryLevelSQL |
|
| supportsANSI92IntermediateSQL |
|
| supportsANSI92FullSQL |
|
| supportsIntegrityEnhancementFacility |
returns
true, if the Database supports SQL Integrity Enhancement Facility,
otherwise false.
|
| supportsOuterJoins |
|
| supportsFullOuterJoins |
|
| supportsLimitedOuterJoins |
|
| getSchemaTerm |
return the database vendor's preferred term for "schema"
|
| getProcedureTerm |
return the database vendor's preferred term for "procedure"
|
| getCatalogTerm |
return the database vendor's preferred term for "catalog"
|
| isCatalogAtStart |
Does a catalog appear at the start of a qualified table name?
(Otherwise it appears at the end)
|
| getCatalogSeparator |
return the separator between catalog and table name
|
| supportsSchemasInDataManipulation |
Can a schema name be used in a data manipulation statement?
|
| supportsSchemasInProcedureCalls |
Can a schema name be used in a procedure call statement?
|
| supportsSchemasInTableDefinitions |
Can a schema name be used in a table definition statement?
|
| supportsSchemasInIndexDefinitions |
Can a schema name be used in an index definition statement?
|
| supportsSchemasInPrivilegeDefinitions |
Can a schema name be used in a privilege definition statement?
|
| supportsCatalogsInDataManipulation |
Can a catalog name be used in a data manipulation statement?
|
| supportsCatalogsInProcedureCalls |
Can a catalog name be used in a procedure call statement?
|
| supportsCatalogsInTableDefinitions |
Can a catalog name be used in a table definition statement?
|
| supportsCatalogsInIndexDefinitions |
Can a catalog name be used in an index definition statement?
|
| supportsCatalogsInPrivilegeDefinitions |
Can a catalog name be used in a privilege definition statement?
|
| supportsPositionedDelete |
Is positioned DELETE supported?
|
| supportsPositionedUpdate |
Is positioned UPDATE supported?
|
| supportsSelectForUpdate |
Is SELECT for UPDATE supported?
|
| supportsStoredProcedures |
Are stored procedure calls using the stored procedure escape
syntax supported?
|
| supportsSubqueriesInComparisons |
Are subqueries in comparison expressions supported?
|
| supportsSubqueriesInExists |
Are subqueries in 'exists' expressions supported?
|
| supportsSubqueriesInIns |
Are subqueries in 'in' statements supported?
|
| supportsSubqueriesInQuantifieds |
Are subqueries in quantified expressions supported?
|
| supportsCorrelatedSubqueries |
Are correlated subqueries supported?
|
| supportsUnion |
Is SQL UNION supported?
|
| supportsUnionAll |
Is SQL UNION ALL supported?
|
| supportsOpenCursorsAcrossCommit |
Can cursors remain open across commits?
|
| supportsOpenCursorsAcrossRollback |
Can cursors remain open across rollbacks?
|
| supportsOpenStatementsAcrossCommit |
Can statements remain open across commits?
|
| supportsOpenStatementsAcrossRollback |
Can statements remain open across rollbacks?
|
| getMaxBinaryLiteralLength |
return the maximal number of hex characters in an inline binary literal
|
| getMaxCharLiteralLength |
return the max length for a character literal
|
| getMaxColumnNameLength |
return the limit on column name length
|
| getMaxColumnsInGroupBy |
return the maximum number of columns in a "GROUP BY" clause
|
| getMaxColumnsInIndex |
return the maximum number of columns allowed in an index
|
| getMaxColumnsInOrderBy |
return the maximum number of columns in an "ORDER BY" clause
|
| getMaxColumnsInSelect |
return the maximum number of columns in a "SELECT" list
|
| getMaxColumnsInTable |
return the maximum number of columns in a table
|
| getMaxConnections |
return the number of active connections at a time to this database.
|
| getMaxCursorNameLength |
return the maximum cursor name length
|
| getMaxIndexLength |
return the maximum length of an index (in bytes)
|
| getMaxSchemaNameLength |
return the maximum length allowed for a schema name
|
| getMaxProcedureNameLength |
return the maximum length of a procedure name
|
| getMaxCatalogNameLength |
return the maximum length of a catalog name
|
| getMaxRowSize |
return the maximum length of a single row.
|
| doesMaxRowSizeIncludeBlobs |
Did getMaxRowSize() include LONGVARCHAR and LONGVARBINARY
blobs?
|
| getMaxStatementLength |
return the maximum length of a SQL statement
|
| getMaxStatements |
return the maximal number of open active statements at one time to this database
|
| getMaxTableNameLength |
return the maximum length of a table name
|
| getMaxTablesInSelect |
return the maximum number of tables in a SELECT statement
|
| getMaxUserNameLength |
return the maximum length of a user name
|
| getDefaultTransactionIsolation |
return the database default transaction isolation level.
The values are defined in
TransactionIsolation.
|
| supportsTransactions |
support the Database transactions?
If not, invoking the method
XConnection::commit()
is a noop and the
isolation level is TransactionIsolation_NONE.
|
| supportsTransactionIsolationLevel |
Does this database support the given transaction isolation level?
|
| supportsDataDefinitionAndDataManipulationTransactions |
support the Database both data definition and data manipulation statements
within a transaction?
|
| supportsDataManipulationTransactionsOnly |
are only data manipulation statements within a transaction
supported?
|
| dataDefinitionCausesTransactionCommit |
does a data definition statement within a transaction force the
transaction to commit?
|
| dataDefinitionIgnoredInTransactions |
is a data definition statement within a transaction ignored?
|
| getProcedures |
Gets a description of the stored procedures available in a
catalog.
|
| getProcedureColumns |
gets a description of a catalog's stored procedure parameters
and result columns.
|
| getTables |
gets a description of tables available in a catalog.
|
| getSchemas |
Gets the schema names available in this database. The results
are ordered by schema name.
|
| getCatalogs |
gets the catalog names available in this database. The results
are ordered by catalog name.
|
| getTableTypes |
gets the table types available in this database. The results
are ordered by table type.
|
| getColumns |
gets a description of table columns available in
the specified catalog.
|
| getColumnPrivileges |
gets a description of the access rights for a table's columns.
|
| getTablePrivileges |
gets a description of the access rights for each table available
in a catalog. Note that a table privilege applies to one or
more columns in the table. It would be wrong to assume that
this priviledge applies to all columns (this may be true for
some systems but is not true for all.)
|
| getBestRowIdentifier |
gets a description of a table's optimal set of columns that
uniquely identifies a row. They are ordered by SCOPE.
|
| getVersionColumns |
gets a description of a table's columns that are automatically
updated when any value in a row is updated. They are
unordered.
|
| getPrimaryKeys |
gets a description of a table's primary key columns. They
are ordered by COLUMN_NAME.
|
| getImportedKeys |
gets a description of the primary key columns that are
referenced by a table's foreign key columns (the primary keys
imported by a table). They are ordered by PKTABLE_CAT,
PKTABLE_SCHEM, PKTABLE_NAME, and KEY_SEQ.
|
| getExportedKeys |
gets a description of the foreign key columns that reference a
table's primary key columns (the foreign keys exported by a
table). They are ordered by FKTABLE_CAT, FKTABLE_SCHEM,
FKTABLE_NAME, and KEY_SEQ.
|
| getCrossReference |
gets a description of the foreign key columns in the foreign key
table that reference the primary key columns of the primary key
table (describe how one table imports another's key.) This
should normally return a single foreign key/primary key pair
(most tables only import a foreign key from a table once.). They
are ordered by FKTABLE_CAT, FKTABLE_SCHEM, FKTABLE_NAME, and
KEY_SEQ.
|
| getTypeInfo |
gets a description of all the standard SQL types supported by
this database. They are ordered by DATA_TYPE and then by how
closely the data type maps to the corresponding SDBC SQL type.
|
| getIndexInfo |
gets a description of a table's indices and statistics. They are
ordered by NON_UNIQUE, TYPE, INDEX_NAME, and ORDINAL_POSITION.
|
| supportsResultSetType |
Does the database support the given result set type?
|
| supportsResultSetConcurrency |
Does the database support the concurrency type in combination
with the given result set type?
|
| ownUpdatesAreVisible |
indicates whether a result set's own updates are visible.
|
| ownDeletesAreVisible |
indicates whether a result set's own deletes are visible.
|
| ownInsertsAreVisible |
indicates whether a result set's own inserts are visible.
|
| othersUpdatesAreVisible |
indicates whether updates made by others are visible.
|
| othersDeletesAreVisible |
indicates whether deletes made by others are visible.
|
| othersInsertsAreVisible |
indicates whether inserts made by others are visible.
|
| updatesAreDetected |
indicates whether or not a visible row update can be detected by
calling the method
XResultSet.rowUpdated .
|
| deletesAreDetected |
indicates whether or not a visible row delete can be detected by
calling
XResultSet::rowDeleted()
. If deletesAreDetected()
returns false, then deleted rows are removed from the result set.
|
| insertsAreDetected |
indicates whether or not a visible row insert can be detected
by calling
XResultSet::rowInserted().
|
| supportsBatchUpdates |
indicates whether the driver supports batch updates.
|
| getUDTs |
Gets a description of the user-defined types defined in a particular
schema. Schema-specific UDTs may have type OBJECT, STRUCT,
or DISTINCT.
|
| getConnection |
retrieves the connection that produced this metadata object.
|
| Methods' Details |
allProceduresAreCallable
- Description
- Can all the procedures returned by getProcedures be called by the
current user?
- Returns
- true
if the user is allowed to call all procedures returned by getProcedures
otherwise
false
.
- Throws
- SQLException
if a database access error occurs.
|
|
allTablesAreSelectable
- Description
- Can all the tables returned by getTable be SELECTed by the
current user?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getURL
- Description
- returns the URL for the database connection
|
|
getUserName
- Description
- returns the user name from this database connection.
|
|
isReadOnly
- Description
- checks if the database in read-only mode.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
nullsAreSortedHigh
- Description
- Are NULL values sorted high?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
nullsAreSortedLow
- Description
- Are NULL values sorted low?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
nullsAreSortedAtStart
- Description
- Are NULL values sorted at the start regardless of sort order?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
nullsAreSortedAtEnd
- Description
- Are NULL values sorted at the end, regardless of sort order?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getDatabaseProductName
- Description
- returns the name of the database product.
|
|
getDatabaseProductVersion
- Description
- returns the version of the database product.
|
|
getDriverName
- Description
- returns the name of the SDBC driver.
|
|
getDriverVersion
- Description
- returns the version number of the SDBC driver.
|
|
getDriverMajorVersion
| long |
| getDriverMajorVersion(); |
- Description
- returns the SDBC driver major version number.
|
|
getDriverMinorVersion
| long |
| getDriverMinorVersion(); |
- Description
- returns the SDBC driver minor version number.
|
|
usesLocalFiles
- Description
- use the database local files to save the tables.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
usesLocalFilePerTable
- Description
- use the database one local file to save for each table.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsMixedCaseIdentifiers
| boolean |
| supportsMixedCaseIdentifiers() |
| raises( |
SQLException ); |
- Description
- use the database 'mixed case unquoted SQL identifiers' case sensitive.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
storesUpperCaseIdentifiers
| boolean |
| storesUpperCaseIdentifiers() |
| raises( |
SQLException ); |
- Description
- Does the database treat mixed case unquoted SQL identifiers as
case insensitive and store them in upper case?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
storesLowerCaseIdentifiers
| boolean |
| storesLowerCaseIdentifiers() |
| raises( |
SQLException ); |
- Description
- Does the database treat mixed case unquoted SQL identifiers as
case insensitive and store them in lower case?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
storesMixedCaseIdentifiers
| boolean |
| storesMixedCaseIdentifiers() |
| raises( |
SQLException ); |
- Description
- Does the database treat mixed case unquoted SQL identifiers as
case insensitive and store them in mixed case?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsMixedCaseQuotedIdentifiers
| boolean |
| supportsMixedCaseQuotedIdentifiers() |
| raises( |
SQLException ); |
- Description
- Does the database treat mixed case quoted SQL identifiers as
case sensitive and as a result store them in mixed case?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
storesUpperCaseQuotedIdentifiers
| boolean |
| storesUpperCaseQuotedIdentifiers() |
| raises( |
SQLException ); |
- Description
- Does the database treat mixed case quoted SQL identifiers as
case insensitive and store them in upper case?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
storesLowerCaseQuotedIdentifiers
| boolean |
| storesLowerCaseQuotedIdentifiers() |
| raises( |
SQLException ); |
- Description
- Does the database treat mixed case quoted SQL identifiers as
case insensitive and store them in lower case?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
storesMixedCaseQuotedIdentifiers
| boolean |
| storesMixedCaseQuotedIdentifiers() |
| raises( |
SQLException ); |
- Description
- Does the database treat mixed case quoted SQL identifiers as
case insensitive and store them in mixed case?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getIdentifierQuoteString
- Description
- What's the string used to quote SQL identifiers?
This returns a space " " if identifier quoting is not supported.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getSQLKeywords
- Description
- gets a comma-separated list of all a database's SQL keywords
that are NOT also SQL92 keywords.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getNumericFunctions
- Description
- gets a comma-separated list of math functions. These are the
X/Open CLI math function names used in the SDBC function escape
clause.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getStringFunctions
- Description
- gets a comma-separated list of string functions. These are the
X/Open CLI string function names used in the SDBC function escape
clause.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getSystemFunctions
- Description
- gets a comma-separated list of system functions. These are the
X/Open CLI system function names used in the SDBC function escape
clause.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getTimeDateFunctions
- Description
- gets a comma-separated list of time and date functions.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getSearchStringEscape
- Description
- gets the string that can be used to escape wildcard characters.
This is the string that can be used to escape '_' or '%' in
the string pattern style catalog search parameters.
The '_' character represents any single character.
The '%' character represents any sequence of zero or
more characters.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getExtraNameCharacters
- Description
- gets all the "extra" characters that can be used in unquoted
identifier names (those beyond a-z, A-Z, 0-9 and _).
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsAlterTableWithAddColumn
| boolean |
| supportsAlterTableWithAddColumn() |
| raises( |
SQLException ); |
- Description
- support the Database "ALTER TABLE" with add column?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsAlterTableWithDropColumn
| boolean |
| supportsAlterTableWithDropColumn() |
| raises( |
SQLException ); |
- Description
- support the Database "ALTER TABLE" with drop column?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsColumnAliasing
- Description
- support the Database column aliasing?
The SQL AS clause can be used to provide names for
computed columns or to provide alias names for columns as required.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
nullPlusNonNullIsNull
- Description
- are concatenations between NULL and non-NULL values NULL?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsTypeConversion
- Description
- true
, if the Database supports the CONVERT function between SQL types,
otherwise
false
.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsConvert
| boolean |
| supportsConvert( |
[in] long |
fromType, |
| [in] long |
toType ) |
| raises( |
SQLException ); |
- Description
- true
, if the Database supports the CONVERT between the given SQL types
otherwise
false
.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsTableCorrelationNames
| boolean |
| supportsTableCorrelationNames() |
| raises( |
SQLException ); |
- Description
- Are table correlation names supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsDifferentTableCorrelationNames
| boolean |
| supportsDifferentTableCorrelationNames() |
| raises( |
SQLException ); |
- Description
- If table correlation names are supported, are they restricted
to be different from the names of the tables?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsExpressionsInOrderBy
| boolean |
| supportsExpressionsInOrderBy() |
| raises( |
SQLException ); |
- Description
- Are expressions in "ORDER BY" lists supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsOrderByUnrelated
- Description
- Can an "ORDER BY" clause use columns not in the SELECT statement?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsGroupBy
- Description
- Is some form of "GROUP BY" clause supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsGroupByUnrelated
- Description
- Can a "GROUP BY" clause use columns not in the SELECT?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsGroupByBeyondSelect
| boolean |
| supportsGroupByBeyondSelect() |
| raises( |
SQLException ); |
- Description
- Can a "GROUP BY" clause add columns not in the SELECT
provided it specifies all the columns in the SELECT?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsLikeEscapeClause
- Description
- Is the escape character in "LIKE" clauses supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsMultipleResultSets
| boolean |
| supportsMultipleResultSets() |
| raises( |
SQLException ); |
- Description
- Are multiple XResultSets from a single execute supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsMultipleTransactions
| boolean |
| supportsMultipleTransactions() |
| raises( |
SQLException ); |
- Description
- Can we have multiple transactions open at once (on different
connections)?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsNonNullableColumns
| boolean |
| supportsNonNullableColumns() |
| raises( |
SQLException ); |
- Description
- Can columns be defined as non-nullable?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsMinimumSQLGrammar
- Description
- true, if the database supports ODBC Minimum SQL grammar,
otherwise false.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsCoreSQLGrammar
- Description
- true, if the database supports ODBC Core SQL grammar,
otherwise false.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsExtendedSQLGrammar
| boolean |
| supportsExtendedSQLGrammar() |
| raises( |
SQLException ); |
- Description
- true, if the database supports ODBC Extended SQL grammar,
otherwise false.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsANSI92EntryLevelSQL
| boolean |
| supportsANSI92EntryLevelSQL() |
| raises( |
SQLException ); |
- Returns
- true, if the database supports ANSI92 entry level SQL grammar,
otherwise false.
- Throws
- SQLException
if a database access error occurs.
|
|
supportsANSI92IntermediateSQL
| boolean |
| supportsANSI92IntermediateSQL() |
| raises( |
SQLException ); |
- Returns
- true, if the database supports ANSI92 intermediate SQL grammar,
otherwise false.
- Throws
- SQLException
if a database access error occurs.
|
|
supportsANSI92FullSQL
- Returns
- true, if the database supports ANSI92 full SQL grammar,
otherwise false.
- Throws
- SQLException
if a database access error occurs.
|
|
supportsIntegrityEnhancementFacility
| boolean |
| supportsIntegrityEnhancementFacility() |
| raises( |
SQLException ); |
- Description
- returns
true, if the Database supports SQL Integrity Enhancement Facility,
otherwise false.
- Throws
- SQLException
if a database access error occurs.
|
|
supportsOuterJoins
- Returns
- true, if some form of outer join is supported,
otherwise false.
- Throws
- SQLException
if a database access error occurs.
|
|
supportsFullOuterJoins
- Returns
- true, if full nested outer joins are supported,
otherwise false.
- Throws
- SQLException
if a database access error occurs.
|
|
supportsLimitedOuterJoins
- Returns
- true, if there is limited support for outer joins.
(This will be true if supportFullOuterJoins is true.)
false is returned otherwise.
- Throws
- SQLException
if a database access error occurs.
|
|
getSchemaTerm
- Description
- return the database vendor's preferred term for "schema"
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getProcedureTerm
- Description
- return the database vendor's preferred term for "procedure"
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getCatalogTerm
- Description
- return the database vendor's preferred term for "catalog"
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
isCatalogAtStart
- Description
- Does a catalog appear at the start of a qualified table name?
(Otherwise it appears at the end)
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getCatalogSeparator
- Description
- return the separator between catalog and table name
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsSchemasInDataManipulation
| boolean |
| supportsSchemasInDataManipulation() |
| raises( |
SQLException ); |
- Description
- Can a schema name be used in a data manipulation statement?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsSchemasInProcedureCalls
| boolean |
| supportsSchemasInProcedureCalls() |
| raises( |
SQLException ); |
- Description
- Can a schema name be used in a procedure call statement?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsSchemasInTableDefinitions
| boolean |
| supportsSchemasInTableDefinitions() |
| raises( |
SQLException ); |
- Description
- Can a schema name be used in a table definition statement?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsSchemasInIndexDefinitions
| boolean |
| supportsSchemasInIndexDefinitions() |
| raises( |
SQLException ); |
- Description
- Can a schema name be used in an index definition statement?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsSchemasInPrivilegeDefinitions
| boolean |
| supportsSchemasInPrivilegeDefinitions() |
| raises( |
SQLException ); |
- Description
- Can a schema name be used in a privilege definition statement?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsCatalogsInDataManipulation
| boolean |
| supportsCatalogsInDataManipulation() |
| raises( |
SQLException ); |
- Description
- Can a catalog name be used in a data manipulation statement?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsCatalogsInProcedureCalls
| boolean |
| supportsCatalogsInProcedureCalls() |
| raises( |
SQLException ); |
- Description
- Can a catalog name be used in a procedure call statement?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsCatalogsInTableDefinitions
| boolean |
| supportsCatalogsInTableDefinitions() |
| raises( |
SQLException ); |
- Description
- Can a catalog name be used in a table definition statement?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsCatalogsInIndexDefinitions
| boolean |
| supportsCatalogsInIndexDefinitions() |
| raises( |
SQLException ); |
- Description
- Can a catalog name be used in an index definition statement?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsCatalogsInPrivilegeDefinitions
| boolean |
| supportsCatalogsInPrivilegeDefinitions() |
| raises( |
SQLException ); |
- Description
- Can a catalog name be used in a privilege definition statement?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsPositionedDelete
- Description
- Is positioned DELETE supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsPositionedUpdate
- Description
- Is positioned UPDATE supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsSelectForUpdate
- Description
- Is SELECT for UPDATE supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsStoredProcedures
- Description
- Are stored procedure calls using the stored procedure escape
syntax supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsSubqueriesInComparisons
| boolean |
| supportsSubqueriesInComparisons() |
| raises( |
SQLException ); |
- Description
- Are subqueries in comparison expressions supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsSubqueriesInExists
| boolean |
| supportsSubqueriesInExists() |
| raises( |
SQLException ); |
- Description
- Are subqueries in 'exists' expressions supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsSubqueriesInIns
- Description
- Are subqueries in 'in' statements supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsSubqueriesInQuantifieds
| boolean |
| supportsSubqueriesInQuantifieds() |
| raises( |
SQLException ); |
- Description
- Are subqueries in quantified expressions supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsCorrelatedSubqueries
| boolean |
| supportsCorrelatedSubqueries() |
| raises( |
SQLException ); |
- Description
- Are correlated subqueries supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsUnion
- Description
- Is SQL UNION supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsUnionAll
- Description
- Is SQL UNION ALL supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsOpenCursorsAcrossCommit
| boolean |
| supportsOpenCursorsAcrossCommit() |
| raises( |
SQLException ); |
- Description
- Can cursors remain open across commits?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsOpenCursorsAcrossRollback
| boolean |
| supportsOpenCursorsAcrossRollback() |
| raises( |
SQLException ); |
- Description
- Can cursors remain open across rollbacks?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsOpenStatementsAcrossCommit
| boolean |
| supportsOpenStatementsAcrossCommit() |
| raises( |
SQLException ); |
- Description
- Can statements remain open across commits?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsOpenStatementsAcrossRollback
| boolean |
| supportsOpenStatementsAcrossRollback() |
| raises( |
SQLException ); |
- Description
- Can statements remain open across rollbacks?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxBinaryLiteralLength
- Description
- return the maximal number of hex characters in an inline binary literal
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxCharLiteralLength
- Description
- return the max length for a character literal
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxColumnNameLength
- Description
- return the limit on column name length
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxColumnsInGroupBy
- Description
- return the maximum number of columns in a "GROUP BY" clause
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxColumnsInIndex
- Description
- return the maximum number of columns allowed in an index
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxColumnsInOrderBy
- Description
- return the maximum number of columns in an "ORDER BY" clause
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxColumnsInSelect
- Description
- return the maximum number of columns in a "SELECT" list
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxColumnsInTable
- Description
- return the maximum number of columns in a table
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxConnections
- Description
- return the number of active connections at a time to this database.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxCursorNameLength
- Description
- return the maximum cursor name length
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxIndexLength
- Description
- return the maximum length of an index (in bytes)
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxSchemaNameLength
- Description
- return the maximum length allowed for a schema name
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxProcedureNameLength
- Description
- return the maximum length of a procedure name
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxCatalogNameLength
- Description
- return the maximum length of a catalog name
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxRowSize
- Description
- return the maximum length of a single row.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
doesMaxRowSizeIncludeBlobs
| boolean |
| doesMaxRowSizeIncludeBlobs() |
| raises( |
SQLException ); |
- Description
- Did getMaxRowSize() include LONGVARCHAR and LONGVARBINARY
blobs?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxStatementLength
- Description
- return the maximum length of a SQL statement
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxStatements
- Description
- return the maximal number of open active statements at one time to this database
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxTableNameLength
- Description
- return the maximum length of a table name
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxTablesInSelect
- Description
- return the maximum number of tables in a SELECT statement
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getMaxUserNameLength
- Description
- return the maximum length of a user name
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getDefaultTransactionIsolation
| long |
| getDefaultTransactionIsolation() |
| raises( |
SQLException ); |
- Description
- return the database default transaction isolation level.
The values are defined in
TransactionIsolation.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
- See also
- XConnection
|
|
supportsTransactions
- Description
- support the Database transactions?
If not, invoking the method
XConnection::commit()
is a noop and the
isolation level is TransactionIsolation_NONE.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsTransactionIsolationLevel
| boolean |
| supportsTransactionIsolationLevel( |
[in] long |
level ) |
| raises( |
SQLException ); |
- Description
- Does this database support the given transaction isolation level?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
- See also
- Connection
|
|
supportsDataDefinitionAndDataManipulationTransactions
| boolean |
| supportsDataDefinitionAndDataManipulationTransactions() |
| raises( |
SQLException ); |
- Description
- support the Database both data definition and data manipulation statements
within a transaction?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsDataManipulationTransactionsOnly
| boolean |
| supportsDataManipulationTransactionsOnly() |
| raises( |
SQLException ); |
- Description
- are only data manipulation statements within a transaction
supported?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
dataDefinitionCausesTransactionCommit
| boolean |
| dataDefinitionCausesTransactionCommit() |
| raises( |
SQLException ); |
- Description
- does a data definition statement within a transaction force the
transaction to commit?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
dataDefinitionIgnoredInTransactions
| boolean |
| dataDefinitionIgnoredInTransactions() |
| raises( |
SQLException ); |
- Description
- is a data definition statement within a transaction ignored?
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getProcedures
| XResultSet |
| getProcedures( |
[in] any |
catalog, |
| [in] string |
schemaPattern, |
| [in] string |
procedureNamePattern ) |
| raises( |
SQLException ); |
- Description
- Gets a description of the stored procedures available in a
catalog.
Only procedure descriptions matching the schema and
procedure name criteria are returned. They are ordered by
PROCEDURE_SCHEM, and PROCEDURE_NAME.
Each procedure description has the following columns:
-
PROCEDURE_CAT string => procedure catalog (may be NULL)
-
PROCEDURE_SCHEM string => procedure schema (may be NULL)
-
PROCEDURE_NAME string => procedure name
- reserved for future use
- reserved for future use
- reserved for future use
-
REMARKS string => explanatory comment on the procedure
-
PROCEDURE_TYPE short => kind of procedure:
- UNKNOWN - May return a result
- NO - Does not return a result
- RETURN - Returns a result
- Parameter catalog
- a catalog name; "" retrieves those without a catalog; void means drop catalog name from the selection criteria
- Parameter schemaPattern
- a schema name pattern; "" retrieves those without a schema
- Parameter procedureNamePattern
- a procedure name pattern
- Returns
- each row is a procedure description
- Throws
- SQLException
if a database access error occurs.
|
|
getProcedureColumns
| XResultSet |
| getProcedureColumns( |
[in] any |
catalog, |
| [in] string |
schemaPattern, |
| [in] string |
procedureNamePattern, |
| [in] string |
columnNamePattern ) |
| raises( |
SQLException ); |
- Description
- gets a description of a catalog's stored procedure parameters
and result columns.
Only descriptions matching the schema, procedure and
parameter name criteria are returned. They are ordered by
PROCEDURE_SCHEM and PROCEDURE_NAME. Within this, the return value,
if any, is first. Next are the parameter descriptions in call
order. The column descriptions follow in column number order.
Each row in the XResultSet is a parameter description or
column description with the following fields:
-
PROCEDURE_CAT string => procedure catalog (may be NULL)
-
PROCEDURE_SCHEM string => procedure schema (may be NULL)
-
PROCEDURE_NAME string => procedure name
-
COLUMN_NAME string => column/parameter name
-
COLUMN_TYPE Short => kind of column/parameter:
- UNKNOWN - nobody knows
- IN - IN parameter
- INOUT - INOUT parameter
- OUT - OUT parameter
- RETURN - procedure return value
- RESULT - result column in XResultSet
-
DATA_TYPE short => SQL type from java.sql.Types
-
TYPE_NAME string => SQL type name, for a UDT type the
type name is fully qualified
-
PRECISION long => precision
-
LENGTH long => length in bytes of data
-
SCALE short => scale
-
RADIX short => radix
-
NULLABLE short => can it contain NULL?
- NO_NULLS - does not allow NULL values
- NULLABLE - allows NULL values
- NULLABLE_UNKNOWN - nullability unknown
-
REMARKS string => comment describing parameter/column
Note: Some databases may not return the column
descriptions for a procedure. Additional columns beyond
REMARKS can be defined by the database.
- Parameter catalog
- a catalog name; "" retrieves those without a catalog; void means drop catalog name from the selection criteria
- Parameter schemaPattern
- a schema name pattern; "" retrieves those without a schema
- Parameter procedureNamePattern
- a procedure name pattern
- Parameter columnNamePattern
- a column name pattern
- Returns
- each row describes a stored procedure parameter or column
- Throws
- SQLException
if a database access error occurs.
|
|
getTables
| XResultSet |
| getTables( |
[in] any |
catalog, |
| [in] string |
schemaPattern, |
| [in] string |
tableNamePattern, |
| [in] sequence< string > |
types ) |
| raises( |
SQLException ); |
- Description
- gets a description of tables available in a catalog.
Only table descriptions matching the catalog, schema, table
name, and type criteria are returned. They are ordered by
TABLE_TYPE, TABLE_SCHEM, and TABLE_NAME.
Each table description has the following columns:
-
TABLE_CAT string => table catalog (may be NULL)
-
TABLE_SCHEM string => table schema (may be NULL)
-
TABLE_NAME string => table name
-
TABLE_TYPE string => table type. Typical types are "TABLE",
"VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY",
"LOCAL TEMPORARY", "ALIAS", "SYNONYM".
-
REMARKS string => explanatory comment on the table
Note: Some databases may not return information for
all tables.
- Parameter catalog
- a catalog name; "" retrieves those without a catalog; void means drop catalog name from the selection criteria
- Parameter schemaPattern
- a schema name pattern; "" retrieves those without a schema
- Parameter tableNamePattern
- a table name pattern
- Parameter types
- a list of table types to include
- Returns
- each row is a table description
- Throws
- SQLException
if a database access error occurs.
|
|
getSchemas
- Description
- Gets the schema names available in this database. The results
are ordered by schema name.
The schema column is:
-
TABLE_SCHEM string => schema name
- Returns
- each row has a single String column that is a schema name
- Throws
- SQLException
if a database access error occurs.
|
|
getCatalogs
- Description
- gets the catalog names available in this database. The results
are ordered by catalog name.
The catalog column is:
-
TABLE_CAT string => catalog name
- Returns
- each row has a single String column that is a catalog name
- Throws
- SQLException
if a database access error occurs.
|
|
getTableTypes
- Description
- gets the table types available in this database. The results
are ordered by table type.
The table type is:
-
TABLE_TYPE string => table type. Typical types are "TABLE",
"VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY",
"LOCAL TEMPORARY", "ALIAS", "SYNONYM".
- Returns
- each row has a single String column that is a table type
- Throws
- SQLException
if a database access error occurs.
|
|
getColumns
| XResultSet |
| getColumns( |
[in] any |
catalog, |
| [in] string |
schemaPattern, |
| [in] string |
tableNamePattern, |
| [in] string |
columnNamePattern ) |
| raises( |
SQLException ); |
- Description
- gets a description of table columns available in
the specified catalog.
Only column descriptions matching the catalog, schema, table
and column name criteria are returned. They are ordered by
TABLE_SCHEM, TABLE_NAME, and ORDINAL_POSITION.
Each column description has the following columns:
-
TABLE_CAT string => table catalog (may be NULL)
-
TABLE_SCHEM string => table schema (may be NULL)
-
TABLE_NAME string => table name
-
COLUMN_NAME string => column name
-
DATA_TYPE short => SQL type from java.sql.Types
-
TYPE_NAME string => Data source dependent type name,
for a UDT the type name is fully qualified
-
COLUMN_SIZE long => column size. For char or date
types this is the maximum number of characters, for numeric or
decimal types this is precision.
-
BUFFER_LENGTH is not used.
-
DECIMAL_DIGITS long => the number of fractional digits
-
NUM_PREC_RADIX long => Radix (typically either 10 or 2)
-
NULLABLE long => is NULL allowed?
- NO_NULLS - might not allow NULL values
- NULABLE - definitely allows NULL values
- NULLABLE_UNKNOWN - nullability unknown
-
REMARKS string => comment describing column (may be NULL)
-
COLUMN_DEF string => default value (may be NULL)
-
SQL_DATA_TYPE long => unused
-
SQL_DATETIME_SUB long => unused
-
CHAR_OCTET_LENGTH long => for char types the
maximum number of bytes in the column
-
ORDINAL_POSITION int => index of column in table
(starting at 1)
-
IS_NULLABLE string => "NO" means column definitely
does not allow NULL values; "YES" means the column might
allow NULL values. An empty string means nobody knows.
- Parameter catalog
- a catalog name; "" retrieves those without a catalog; void means drop catalog name from the selection criteria
- Parameter schemaPattern
- a schema name pattern; "" retrieves those without a schema
- Parameter tableNamePattern
- a table name pattern
- Parameter columnNamePattern
- a column name pattern
- Returns
- each row is a column description
- Throws
- SQLException
if a database access error occurs.
|
|
getColumnPrivileges
| XResultSet |
| getColumnPrivileges( |
[in] any |
catalog, |
| [in] string |
schema, |
| [in] string |
table, |
| [in] string |
columnNamePattern ) |
| raises( |
SQLException ); |
- Description
- gets a description of the access rights for a table's columns.
Only privileges matching the column name criteria are
returned. They are ordered by COLUMN_NAME and PRIVILEGE.
Each privilige description has the following columns:
-
TABLE_CAT string => table catalog (may be NULL)
-
TABLE_SCHEM string => table schema (may be NULL)
-
TABLE_NAME string => table name
-
COLUMN_NAME string => column name
-
GRANTOR => grantor of access (may be NULL)
-
GRANTEE string => grantee of access
-
PRIVILEGE string => name of access (SELECT,
INSERT, UPDATE, REFERENCES, ...)
-
IS_GRANTABLE string => "YES" if grantee is permitted
to grant to others; "NO" if not; NULL if unknown
- Parameter catalog
- a catalog name; "" retrieves those without a catalog; void means drop catalog name from the selection criteria
- Parameter schema
- a schema name ; "" retrieves those without a schema
- Parameter table
- a table name
- Parameter columnNamePattern
- a column name pattern
- Returns
- each row is a column privilege description
- Throws
- SQLException
if a database access error occurs.
|
|
getTablePrivileges
| XResultSet |
| getTablePrivileges( |
[in] any |
catalog, |
| [in] string |
schemaPattern, |
| [in] string |
tableNamePattern ) |
| raises( |
SQLException ); |
- Description
- gets a description of the access rights for each table available
in a catalog. Note that a table privilege applies to one or
more columns in the table. It would be wrong to assume that
this priviledge applies to all columns (this may be true for
some systems but is not true for all.)
Only privileges matching the schema and table name
criteria are returned. They are ordered by TABLE_SCHEM,
TABLE_NAME, and PRIVILEGE.
Each privilige description has the following columns:
-
TABLE_CAT string => table catalog (may be NULL)
-
TABLE_SCHEM string => table schema (may be NULL)
-
TABLE_NAME string => table name
-
GRANTOR => grantor of access (may be NULL)
-
GRANTEE string => grantee of access
-
PRIVILEGE string => name of access (SELECT,
INSERT, UPDATE, REFERENCES, ...)
-
IS_GRANTABLE string => "YES" if grantee is permitted
to grant to others; "NO" if not; NULL if unknown
- Parameter catalog
- a catalog name; "" retrieves those without a catalog; void means drop catalog name from the selection criteria
- Parameter schemaPattern
- a schema name pattern; "" retrieves those without a schema
- Parameter tableNamePattern
- a table name pattern
- Returns
- each row is a table privilege description
- Throws
- SQLException
if a database access error occurs.
|
|
getBestRowIdentifier
| XResultSet |
| getBestRowIdentifier( |
[in] any |
catalog, |
| [in] string |
schema, |
| [in] string |
table, |
| [in] long |
scope, |
| [in] boolean |
nullable ) |
| raises( |
SQLException ); |
- Description
- gets a description of a table's optimal set of columns that
uniquely identifies a row. They are ordered by SCOPE.
Each column description has the following columns:
-
SCOPE short => actual scope of result
- TEMPORARY - very temporary, while using row
- TRANSACTION - valid for remainder of current transaction
- SESSION - valid for remainder of current session
-
COLUMN_NAME string => column name
-
DATA_TYPE short => SQL data type from java.sql.Types
-
TYPE_NAME string => Data source dependent type name,
for a UDT the type name is fully qualified
-
COLUMN_SIZE long => precision
-
BUFFER_LENGTH long => not used
-
DECIMAL_DIGITS short => scale
-
PSEUDO_COLUMN short => is this a pseudo column
like an Oracle ROWID
- UNKNOWN - may or may not be pseudo column
- NOT_PSEUDO - is NOT a pseudo column
- PSEUDO - is a pseudo column
- Parameter catalog
- a catalog name; "" retrieves those without a catalog; void means drop catalog name from the selection criteria
- Parameter schema
- a schema name; "" retrieves those without a schema
- Parameter table
- a table name
- Parameter scope
- the scope of interest; use same values as SCOPE
- Parameter nullable
- include columns that are nullable?
- Returns
- each row is a column description
- Throws
- SQLException
if a database access error occurs.
|
|
getVersionColumns
| XResultSet |
| getVersionColumns( |
[in] any |
catalog, |
| [in] string |
schema, |
| [in] string |
table ) |
| raises( |
SQLException ); |
- Description
- gets a description of a table's columns that are automatically
updated when any value in a row is updated. They are
unordered.
Each column description has the following columns:
-
SCOPE short => is not used
-
COLUMN_NAME string => column name
-
DATA_TYPE short => SQL data type from java.sql.Types
-
TYPE_NAME string => Data source dependent type name
-
COLUMN_SIZE long => precision
-
BUFFER_LENGTH long => length of column value in bytes
-
DECIMAL_DIGITS short => scale
-
PSEUDO_COLUMN short => is this a pseudo column
like an Oracle ROWID
- UNKNOWN - may or may not be pseudo column
- NOT_PSEUDO - is NOT a pseudo column
- PSEUDO - is a pseudo column
- Parameter catalog
- a catalog name; "" retrieves those without a catalog; void means drop catalog name from the selection criteria
- Parameter schema
- a schema name; "" retrieves those without a schema
- Parameter table
- a table name
- Returns
- each row is a column description
- Throws
- SQLException
if a database access error occurs.
|
|
getPrimaryKeys
- Description
- gets a description of a table's primary key columns. They
are ordered by COLUMN_NAME.
Each primary key column description has the following columns:
-
TABLE_CAT string => table catalog (may be NULL)
-
TABLE_SCHEM string => table schema (may be NULL)
-
TABLE_NAME string => table name
-
COLUMN_NAME string => column name
-
KEY_SEQ short => sequence number within primary key
-
PK_NAME string => primary key name (may be NULL)
- Parameter catalog
- a catalog name; "" retrieves those without a catalog; void means drop catalog name from the selection criteria
- Parameter schema
- a schema name; "" retrieves those without a schema
- Parameter table
- a table name
- Returns
- each row is a primary key column description
- Throws
- SQLException
if a database access error occurs.
|
|
getImportedKeys
- Description
- gets a description of the primary key columns that are
referenced by a table's foreign key columns (the primary keys
imported by a table). They are ordered by PKTABLE_CAT,
PKTABLE_SCHEM, PKTABLE_NAME, and KEY_SEQ.
Each primary key column description has the following columns:
-
PKTABLE_CAT string => primary key table catalog
being imported (may be NULL)
-
PKTABLE_SCHEM string => primary key table schema
being imported (may be NULL)
-
PKTABLE_NAME string => primary key table name
being imported
-
PKCOLUMN_NAME string => primary key column name
being imported
-
FKTABLE_CAT string => foreign key table catalog (may be NULL)
-
FKTABLE_SCHEM string => foreign key table schema (may be NULL)
-
FKTABLE_NAME string => foreign key table name
-
FKCOLUMN_NAME string => foreign key column name
-
KEY_SEQ short => sequence number within foreign key
-
UPDATE_RULE short => What happens to
foreign key when primary is updated:
- importedNoAction - do not allow update of primary
key if it has been imported
- importedKeyCascade - change imported key to agree
with primary key update
- importedKeySetNull - change imported key to NULL if
its primary key has been updated
- importedKeySetDefault - change imported key to default values
if its primary key has been updated
- importedKeyRestrict - same as importedKeyNoAction
(for ODBC 2.x compatibility)
-
DELETE_RULE short => What happens to
the foreign key when primary is deleted.
- importedKeyNoAction - do not allow delete of primary
key if it has been imported
- importedKeyCascade - delete rows that import a deleted key
- importedKeySetNull - change imported key to NULL if
its primary key has been deleted
- importedKeyRestrict - same as importedKeyNoAction
(for ODBC 2.x compatibility)
- importedKeySetDefault - change imported key to default if
its primary key has been deleted
-
FK_NAME string => foreign key name (may be NULL)
-
PK_NAME string => primary key name (may be NULL)
-
DEFERRABILITY short => can the evaluation of foreign key
constraints be deferred until commit
- importedKeyInitiallyDeferred - see SQL92 for definition
- importedKeyInitiallyImmediate - see SQL92 for definition
- importedKeyNotDeferrable - see SQL92 for definition
- Parameter catalog
- a catalog name; "" retrieves those without a catalog; void means drop catalog name from the selection criteria
- Parameter schema
- a schema name; "" retrieves those without a schema
- Parameter table
- a table name
- Returns
- each row is a primary key column description
- Throws
- SQLException
if a database access error occurs.
|
|
getExportedKeys
- Description
- gets a description of the foreign key columns that reference a
table's primary key columns (the foreign keys exported by a
table). They are ordered by FKTABLE_CAT, FKTABLE_SCHEM,
FKTABLE_NAME, and KEY_SEQ.
Each foreign key column description has the following columns:
-
PKTABLE_CAT string => primary key table catalog (may be NULL)
-
PKTABLE_SCHEM string => primary key table schema (may be NULL)
-
PKTABLE_NAME string => primary key table name
-
PKCOLUMN_NAME string => primary key column name
-
FKTABLE_CAT string => foreign key table catalog (may be NULL)
being exported (may be NULL)
-
FKTABLE_SCHEM string => foreign key table schema (may be NULL)
being exported (may be NULL)
-
FKTABLE_NAME string => foreign key table name
being exported
-
FKCOLUMN_NAME string => foreign key column name
being exported
-
KEY_SEQ short => sequence number within foreign key
-
UPDATE_RULE short => What happens to
foreign key when primary is updated:
- NO_ACTION - do not allow update of primary
key if it has been imported
- CASCADE - change imported key to agree
with primary key update
- SET_NULL - change imported key to NULL if
its primary key has been updated
- SET_DEFAULT - change imported key to default values
if its primary key has been updated
- RESTRICT - same as importedKeyNoAction
(for ODBC 2.x compatibility)
-
DELETE_RULE short => What happens to
the foreign key when primary is deleted.
- NO_ACTION - do not allow delete of primary
key if it has been imported
- CASCADE - delete rows that import a deleted key
- SET_NULL - change imported key to NULL if
its primary key has been deleted
- RESTRICT - same as importedKeyNoAction
(for ODBC 2.x compatibility)
- SET_DEFAULT - change imported key to default if
its primary key has been deleted
-
FK_NAME string => foreign key name (may be NULL)
-
PK_NAME string => primary key name (may be NULL)
-
DEFERRABILITY short => can the evaluation of foreign key
constraints be deferred until commit
- INITIALLY_DEFERRED - see SQL92 for definition
- INITIALLY_IMMEDIATE - see SQL92 for definition
- NONE - see SQL92 for definition
- Parameter catalog
- a catalog name; "" retrieves those without a catalog; void means drop catalog name from the selection criteria
- Parameter schema
- a schema name; "" retrieves those without a schema
- Parameter table
- a table name
- Returns
- each row is a foreign key column description
- Throws
- SQLException
if a database access error occurs.
|
|
getCrossReference
| XResultSet |
| getCrossReference( |
[in] any |
primaryCatalog, |
| [in] string |
primarySchema, |
| [in] string |
primaryTable, |
| [in] any |
foreignCatalog, |
| [in] string |
foreignSchema, |
| [in] string |
foreignTable ) |
| raises( |
SQLException ); |
- Description
- gets a description of the foreign key columns in the foreign key
table that reference the primary key columns of the primary key
table (describe how one table imports another's key.) This
should normally return a single foreign key/primary key pair
(most tables only import a foreign key from a table once.). They
are ordered by FKTABLE_CAT, FKTABLE_SCHEM, FKTABLE_NAME, and
KEY_SEQ.
Each foreign key column description has the following columns:
-
PKTABLE_CAT string => primary key table catalog (may be NULL)
-
PKTABLE_SCHEM string => primary key table schema (may be NULL)
-
PKTABLE_NAME string => primary key table name
-
PKCOLUMN_NAME string => primary key column name
-
FKTABLE_CAT string => foreign key table catalog (may be NULL)
being exported (may be NULL)
-
FKTABLE_SCHEM string => foreign key table schema (may be NULL)
being exported (may be NULL)
-
FKTABLE_NAME string => foreign key table name
being exported
-
FKCOLUMN_NAME string => foreign key column name
being exported
-
KEY_SEQ short => sequence number within foreign key
-
UPDATE_RULE short => What happens to
foreign key when primary is updated:
- NO_ACTION - do not allow update of primary
key if it has been imported
- CASCADE - change imported key to agree
with primary key update
- SET_NULL - change imported key to NULL if
its primary key has been updated
- SET_DEFAULT - change imported key to default values
if its primary key has been updated
- RESTRICT - same as importedKeyNoAction
(for ODBC 2.x compatibility)
-
DELETE_RULE short => What happens to
the foreign key when primary is deleted.
- NO_ACTION - do not allow delete of primary
key if it has been imported
- CASCADE - delete rows that import a deleted key
- SET_NULL - change imported key to NULL if
its primary key has been deleted
- RESTRICT - same as importedKeyNoAction
(for ODBC 2.x compatibility)
- SET_DEFAULT - change imported key to default if
its primary key has been deleted
-
FK_NAME string => foreign key name (may be NULL)
-
PK_NAME string => primary key name (may be NULL)
-
DEFERRABILITY short => can the evaluation of foreign key
constraints be deferred until commit
- INITIALLY_DEFERRED - see SQL92 for definition
- INITIALLY_IMMEDIATE - see SQL92 for definition
- NONE - see SQL92 for definition
- Parameter primaryCatalog
- a catalog name; "" retrieves those without a catalog; void means drop catalog name from the selection criteria
- Parameter primarySchema
- a schema name; "" retrieves those without a schema
- Parameter primaryTable
- the table name that exports the key
- Parameter foreignCatalog
- a catalog name; "" retrieves those without a catalog; void means drop catalog name from the selection criteria
- Parameter foreignSchema
- a schema name; "" retrieves those without a schema
- Parameter foreignTable
- the table name that imports the key
- Returns
- each row is a foreign key column description
- Throws
- SQLException
if a database access error occurs.
|
|
getTypeInfo
- Description
- gets a description of all the standard SQL types supported by
this database. They are ordered by DATA_TYPE and then by how
closely the data type maps to the corresponding SDBC SQL type.
Each type description has the following columns:
-
TYPE_NAME string => Type name
-
DATA_TYPE short => SQL data type from java.sql.Types
-
PRECISION long => maximum precision
-
LITERAL_PREFIX string => prefix used to quote a literal
(may be NULL)
-
LITERAL_SUFFIX string => suffix used to quote a literal
(may be NULL)
-
CREATE_PARAMS string => parameters used in creating
the type (may be NULL)
-
NULLABLE short => can you use NULL for this type?
- NO_NULLS - does not allow NULL values
- NULLABLE - allows NULL values
- NULLABLE_UNKNOWN - nullability unknown
-
CASE_SENSITIVE boolean=> is it case sensitive?
-
SEARCHABLE short => can you use "WHERE" based on this type:
- NONE - No support
- CHAR - Only supported with WHERE .. LIKE
- BASIC - Supported except for WHERE .. LIKE
- FULL - Supported for all WHERE ..
-
UNSIGNED_ATTRIBUTE boolean => is it unsigned?
-
FIXED_PREC_SCALE boolean => can it be a money value?
-
AUTO_INCREMENT boolean => can it be used for an
auto-increment value?
-
LOCAL_TYPE_NAME string => localized version of type name
(may be NULL)
-
MINIMUM_SCALE short => minimum scale supported
-
MAXIMUM_SCALE short => maximum scale supported
-
SQL_DATA_TYPE long => unused
-
SQL_DATETIME_SUB long => unused
-
NUM_PREC_RADIX long => usually 2 or 10
- Returns
- each row is a SQL type description
- Throws
- SQLException
if a database access error occurs.
|
|
getIndexInfo
| XResultSet |
| getIndexInfo( |
[in] any |
catalog, |
| [in] string |
schema, |
| [in] string |
table, |
| [in] boolean |
unique, |
| [in] boolean |
approximate ) |
| raises( |
SQLException ); |
- Description
- gets a description of a table's indices and statistics. They are
ordered by NON_UNIQUE, TYPE, INDEX_NAME, and ORDINAL_POSITION.
Each index column description has the following columns:
-
TABLE_CAT string => table catalog (may be NULL)
-
TABLE_SCHEM string => table schema (may be NULL)
-
TABLE_NAME string => table name
-
NON_UNIQUE boolean => Can index values be non-unique?
false when TYPE is tableIndexStatistic
-
INDEX_QUALIFIER string => index catalog (may be NULL);
NULL when TYPE is tableIndexStatistic
-
INDEX_NAME string => index name; NULL when TYPE is
tableIndexStatistic
-
TYPE short => index type:
- 0 - this identifies table statistics that are
returned in conjuction with a table's index descriptions
- CLUSTERED - this is a clustered index
- HASHED - this is a hashed index
- OTHER - this is some other style of index
-
ORDINAL_POSITION short => column sequence number
within index; zero when TYPE is tableIndexStatistic
-
COLUMN_NAME string => column name; NULL when TYPE is
tableIndexStatistic
-
ASC_OR_DESC string => column sort sequence, "A" => ascending,
"D" => descending, may be NULL if sort sequence is not supported;
NULL when TYPE is tableIndexStatistic
-
CARDINALITY long => When TYPE is tableIndexStatistic, then
this is the number of rows in the table; otherwise, it is the
number of unique values in the index.
-
PAGES long => When TYPE is tableIndexStatisic then
this is the number of pages used for the table, otherwise it
is the number of pages used for the current index.
-
FILTER_CONDITION string => Filter condition, if any.
(may be NULL)
- Parameter catalog
- a catalog name; "" retrieves those without a catalog; void means drop catalog name from the selection criteria
- Parameter schema
- a schema name; "" retrieves those without a schema
- Parameter table
- the table name that exports the key
- Parameter unique
- when true, return only indices for unique values; when false, return indices regardless of whether unique or not
- Parameter approximate
- when true, result is allowed to reflect approximate or out of data values; when false, results are requested to be accurate
- Returns
- each row is an index column description
- Throws
- SQLException
if a database access error occurs.
|
|
supportsResultSetType
| boolean |
| supportsResultSetType( |
[in] long |
setType ) |
| raises( |
SQLException ); |
- Description
- Does the database support the given result set type?
- Parameter setType
- defined in
ResultSetType
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsResultSetConcurrency
| boolean |
| supportsResultSetConcurrency( |
[in] long |
setType, |
| [in] long |
concurrency ) |
| raises( |
SQLException ); |
- Description
- Does the database support the concurrency type in combination
with the given result set type?
- Parameter setType
- defined in
ResultSetType
- Parameter concurrency
- defined in
ResultSetConcurrency
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
ownUpdatesAreVisible
| boolean |
| ownUpdatesAreVisible( |
[in] long |
setType ) |
| raises( |
SQLException ); |
- Description
- indicates whether a result set's own updates are visible.
- Parameter setType
- defined in
ResultSetType
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
ownDeletesAreVisible
| boolean |
| ownDeletesAreVisible( |
[in] long |
setType ) |
| raises( |
SQLException ); |
- Description
- indicates whether a result set's own deletes are visible.
- Parameter setType
- defined in
ResultSetType
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
ownInsertsAreVisible
| boolean |
| ownInsertsAreVisible( |
[in] long |
setType ) |
| raises( |
SQLException ); |
- Description
- indicates whether a result set's own inserts are visible.
- Parameter setType
- defined in
ResultSetType
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
othersUpdatesAreVisible
| boolean |
| othersUpdatesAreVisible( |
[in] long |
setType ) |
| raises( |
SQLException ); |
- Description
- indicates whether updates made by others are visible.
- Parameter setType
- defined in
ResultSetType
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
othersDeletesAreVisible
| boolean |
| othersDeletesAreVisible( |
[in] long |
setType ) |
| raises( |
SQLException ); |
- Description
- indicates whether deletes made by others are visible.
- Parameter setType
- defined in
ResultSetType
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
othersInsertsAreVisible
| boolean |
| othersInsertsAreVisible( |
[in] long |
setType ) |
| raises( |
SQLException ); |
- Description
- indicates whether inserts made by others are visible.
- Parameter setType
- defined in
ResultSetType
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
updatesAreDetected
| boolean |
| updatesAreDetected( |
[in] long |
setType ) |
| raises( |
SQLException ); |
- Description
- indicates whether or not a visible row update can be detected by
calling the method
XResultSet.rowUpdated .
- Parameter setType
- defined in
ResultSetType
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
deletesAreDetected
| boolean |
| deletesAreDetected( |
[in] long |
setType ) |
| raises( |
SQLException ); |
- Description
- indicates whether or not a visible row delete can be detected by
calling
XResultSet::rowDeleted()
. If deletesAreDetected()
returns false, then deleted rows are removed from the result set.
- Parameter setType
- defined in
ResultSetType
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
insertsAreDetected
| boolean |
| insertsAreDetected( |
[in] long |
setType ) |
| raises( |
SQLException ); |
- Description
- indicates whether or not a visible row insert can be detected
by calling
XResultSet::rowInserted().
- Parameter setType
- defined in
ResultSetType
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
supportsBatchUpdates
- Description
- indicates whether the driver supports batch updates.
- Returns
- true if so
- Throws
- SQLException
if a database access error occurs.
|
|
getUDTs
| XResultSet |
| getUDTs( |
[in] any |
catalog, |
| [in] string |
schemaPattern, |
| [in] string |
typeNamePattern, |
| [in] sequence< long > |
types ) |
| raises( |
SQLException ); |
- Description
- Gets a description of the user-defined types defined in a particular
schema. Schema-specific UDTs may have type OBJECT, STRUCT,
or DISTINCT.
Only types matching the catalog, schema, type name, and type
criteria are returned. They are ordered by DATA_TYPE, TYPE_SCHEM,
and TYPE_NAME. The type name parameter may be a fully-qualified
name. In this case, the catalog and schemaPattern parameters are
ignored.
Each type description has the following columns:
-
TYPE_CAT string => the type's catalog (may be NULL)
-
TYPE_SCHEM string => type's schema (may be NULL)
-
TYPE_NAME string => type name
-
CLASS_NAME string => Java class name or service name
-
DATA_TYPE string => type value.
One of OBJECT, STRUCT, or DISTINCT
-
REMARKS string => explanatory comment on the type
Note: If the driver does not support UDTs, an empty
result set is returned.
- Parameter catalog
- a catalog name; "" retrieves those without a catalog; void means drop catalog name from the selection criteria
- Parameter schemaPattern
- a schema name pattern; "" retrieves those without a schema
- Parameter typeNamePattern
- a type name pattern; may be a fully-qualified name
- Parameter types
- a list of user-named types to include (OBJECT, STRUCT, or DISTINCT)
- Returns
- each row is a type description
- Throws
- SQLException
if a database access error occurs.
|
|
getConnection
- Description
- retrieves the connection that produced this metadata object.
- Returns
- the Connection object
- Throws
- SQLException
if a database access error occurs.
|
|
Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.


A simple declarative layer for SQLAlchemy ORM.
SQLAlchemy object-relational configuration involves the usage of Table, mapper(), and class objects to define the three areas of configuration. declarative moves these three types of configuration underneath the individual mapped class. Regular SQLAlchemy schema and ORM constructs are used in most cases:
from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class SomeClass(Base): __tablename__ = 'some_table' id = Column('id', Integer, primary_key=True) name = Column('name', String(50))
Above, the declarative_base callable produces a new base class from which all mapped classes inherit from. When the class definition is completed, a new Table and mapper() have been generated, accessible via the __table__ and __mapper__ attributes on the SomeClass class.
You may omit the names from the Column definitions. Declarative will fill them in for you:
class SomeClass(Base): __tablename__ = 'some_table' id = Column(Integer, primary_key=True) name = Column(String(50))
Attributes may be added to the class after its construction, and they will be added to the underlying Table and mapper() definitions as appropriate:
SomeClass.data = Column('data', Unicode) SomeClass.related = relation(RelatedInfo)
Classes which are mapped explicitly using mapper() can interact freely with declarative classes.
The declarative_base base class contains a MetaData object where newly defined Table objects are collected. This is accessed via the metadata class level accessor, so to create tables we can say:
engine = create_engine('sqlite://') Base.metadata.create_all(engine)
The Engine created above may also be directly associated with the declarative base class using the engine keyword argument, where it will be associated with the underlying MetaData object and allow SQL operations involving that metadata and its tables to make use of that engine automatically:
Base = declarative_base(engine=create_engine('sqlite://'))
Or, as MetaData allows, at any time using the bind attribute:
Base.metadata.bind = create_engine('sqlite://')
The declarative_base can also receive a pre-created MetaData object, which allows a declarative setup to be associated with an already existing traditional collection of Table objects:
mymetadata = MetaData() Base = declarative_base(metadata=mymetadata)
Relations to other classes are done in the usual way, with the added feature that the class specified to relation() may be a string name. The "class registry" associated with Base is used at mapper compilation time to resolve the name into the actual class object, which is expected to have been defined once the mapper configuration is used:
class User(Base): __tablename__ = 'users' id = Column(Integer, primary_key=True) name = Column(String(50)) addresses = relation("Address", backref="user") class Address(Base): __tablename__ = 'addresses' id = Column(Integer, primary_key=True) email = Column(String(50)) user_id = Column(Integer, ForeignKey('users.id'))
Column constructs, since they are just that, are immediately usable, as below where we define a primary join condition on the Address class using them:
class Address(Base) __tablename__ = 'addresses' id = Column(Integer, primary_key=True) email = Column(String(50)) user_id = Column(Integer, ForeignKey('users.id')) user = relation(User, primaryjoin=user_id==User.id)
When an explicit join condition or other configuration which depends on multiple classes cannot be defined immediately due to some classes not yet being available, these can be defined after all classes have been created. Attributes which are added to the class after its creation are associated with the Table/mapping in the same way as if they had been defined inline:
User.addresses = relation(Address, primaryjoin=Address.user_id==User.id)
Synonyms are one area where declarative needs to slightly change the usual SQLAlchemy configurational syntax. To define a getter/setter which proxies to an underlying attribute, use synonym with the descriptor argument:
class MyClass(Base): __tablename__ = 'sometable' _attr = Column('attr', String) def _get_attr(self): return self._some_attr def _set_attr(self, attr) self._some_attr = attr attr = synonym('_attr', descriptor=property(_get_attr, _set_attr))
The above synonym is then usable as an instance attribute as well as a class-level expression construct:
x = MyClass() x.attr = "some value" session.query(MyClass).filter(MyClass.attr == 'some other value').all()
As an alternative to __tablename__, a direct Table construct may be used. The Column objects, which in this case require their names, will be added to the mapping just like a regular mapping to a table:
class MyClass(Base): __table__ = Table('my_table', Base.metadata, Column('id', Integer, primary_key=True), Column('name', String(50)) )
This is the preferred approach when using reflected tables, as below:
class MyClass(Base): __table__ = Table('my_table', Base.metadata, autoload=True)
Mapper arguments are specified using the __mapper_args__ class variable. Note that the column objects declared on the class are immediately usable, as in this joined-table inheritance example:
class Person(Base): __tablename__ = 'people' id = Column(Integer, primary_key=True) discriminator = Column(String(50)) __mapper_args__ = {'polymorphic_on':discriminator} class Engineer(Person): __tablename__ = 'engineers' __mapper_args__ = {'polymorphic_identity':'engineer'} id = Column(Integer, ForeignKey('people.id'), primary_key=True) primary_language = Column(String(50))
For single-table inheritance, the __tablename__ and __table__ class variables are optional on a class when the class inherits from another mapped class.
As a convenience feature, the declarative_base() sets a default constructor on classes which takes keyword arguments, and assigns them to the named attributes:
e = Engineer(primary_language='python')
Note that declarative has no integration built in with sessions, and is only intended as an optional syntax for the regular usage of mappers and Table objects. A typical application setup using scoped_session might look like:
engine = create_engine('postgres://scott:tiger@localhost/test') Session = scoped_session(sessionmaker(transactional=True, autoflush=False, bind=engine)) Base = declarative_base()
Mapped instances then make usage of Session in the usual way.
Decorator, allow a Python @property to be used in query criteria.
A decorator front end to comparable_property(), passes throgh the comparator_factory and the function being decorated:
@comparable_using(MyComparatorType) @property def prop(self): return 'special sauce'
The regular comparable_property() is also usable directly in a declarative setting and may be convenient for read/write properties:
prop = comparable_property(MyComparatorType)
Decorator, make a Python @property a query synonym for a column.
A decorator version of synonym(). The function being decorated is the 'descriptor', otherwise passes its arguments through to synonym():
@synonym_for('col') @property def prop(self): return 'special sauce'
The regular synonym() is also usable directly in a declarative setting and may be convenient for read/write properties:
prop = synonym('col', descriptor=property(_read_prop, _write_prop))


--- layout: speaker title: Martin Kearns date: "2013-05-06 02:12:52 +0200" author: ukmadlz version: 1.0.0 name: Martin Kearns image: speaker/martin_kearns.jpg job: Technical Evangelist company: Microsoft desc: Evangelist @ Microsoft github: twitter: martinkearn website: http://blogs.msdn.com/b/martinkearn/ ---
Martin Kearn is a Web Developer and Technical Evangelist at Microsoft. If he's not helping partners build apps or web sites you'll find him traveling the country speaking at events about all aspects of software development.
He has a passion (teetering on the edge of obsession) for web performance and optimisation, and enjoys nothing more than squeezing an extra 10ms from a page load.
Talk contents not yet finalised.


If you love helping, programming or simply have existencial crisis, Dig in with the projects to support greatness
Book Movie and Event Tickets
Set and achieve items on your bucketlist
Manage Your Tasks and Collaborate with workmates
Service Delivery Application
Check back in a day or two. Or contact me for any project ideas


Software Engineering Portfolio
Assignments:
Getting to know Me
Regular Expression Tester
My Resume
Dice Roller


{# vim:set et sw=2 ts=2 sts=2 tw=120: #} {% extends "base.html" %} {% block content %}
Ryu is a Japanese dragon with three claws! And I'm gonna slay that dragon! Haha. Essentially it's my attempt at going against my fear of thinking that I can't be good programmer. Also this project is about time management (croat. raspolaganje vremenom) so that's why I'm making app Kurama that will slay project Ryu :-)
{% endblock content %}


Overview
How to Use an Axe
The old backwoodsmen were as expert with their axes as they were with their rifles and they were just as careful in the selection of these tools as they were in the selection of their arms. Many a time I have seen them pick up a "store" axe, sight along the handle, and then cast it contemptuously aside; they demanded of their axes that the cutting edge should be exactly in line with the point in the centre of the butt end of the handle. They also kept their axes so sharp that they could whittle with them like one can with a good jack-knife; furthermore, they allowed no one but themselves to use their own particular axe. In my log house in the mountains of Pike County, Pa., I have a table fashioned entirely with an axe; even the ends of the boards which form the top of the table were cut off by Siley Rosencranz with his trusty axe because he had no saw.
Both General Grant and Abraham Lincoln were expert axemen, and probably a number of other Presidents were also skillful in the use of this tool; but it is not expected that the modern vacation pioneer shall be an expert, consequently a few simple rules and suggestions will be here given to guide the amateur and he must depend upon his own judgment and common sense to work out the minor problems which will beset him in the use of this tool.
Dangers
All edged tools are dangerous when in the hands of "chumps," dangerous to themselves and to any one else who is near them. For instance, only a chump will use an axe when its head is loose and is in danger of flying off the handle; only a chump will use his best axe to cut roots or sticks lying flat on the ground where he is liable to strike stones and other objects and take the edge off the blade. Only a chump will leave an axe lying around on the ground for people to stumble over; if there is a stump handy at your camp and you are through using the axe, strike the blade into the top of the stump and leave the axe sticking there, where it will be safe from injury.
Remember, before chopping down a tree or before using the axe at all, to see that there is enough space above and around you to enable you to swing the axe clear without the danger of striking bushes or overhanging branches which may deflect the blade and cause accidents more or less serious.
Do not stand behind a tree as it falls, for the boughs may strike those of a standing tree, causing the butt to shoot back or "kick," and many a woodsman has lost his life from the kick of a falling tree. Before chopping a tree down, select the place where it is to fall, a place where it will not be liable to lodge in another tree on its way down. Do not try to fell a tree against the wind.
Cut a notch on the side of the tree facing the direction you wish it to fall and cut it half-way through the trunk. Make the notch, or kerf, large enough to avoid pinching your axe in it. If you discover that the notch is going to be too small, cut a new notch, X, some inches above your first one, then split off the piece X, Y between the two notches, and again make the notch X, Z, and split off the piece Z, W, Y, until you make room for the axe to continue your chopping. When the first kerf is finished begin another one on the opposite side of the tree a little higher than the first one. When the wood between the two notches becomes too small to support the weight of the tree, the top of the tree will begin to tremble and waver and give you plenty of time to step to one side before it falls.
If the tree is inclined in the opposite direction from which you wish it to fall, it is sometimes possible to block up the kerf on the inclined side and then by driving the wedge over the block force the tree to fall in the direction desired; but if the tree inclines too far this cannot be done.
There was a chestnut-tree standing close to my log house and leaning toward the building. Under ordinary circumstances felling this tree would cause it to strike the house with all the weight of its trunk and branches. When I told Siley Rosencranz I wanted that tree cut down he sighted up the tree, took a chew of tobacco, and walked away. For several days he went through the same performance, until at last one day he brought out his trusty axe and made the chips fly. Soon the chestnut was lying prone on the ground pointing away from the house. What this old backwoodsman did was to wait until a strong wind had sprung up, blowing in the direction that he wanted the tree to fall, and his skillful chopping with the aid of the wind placed the tree exactly where he wished it.
Fig. 118 shows how to make the cuts on a standing tree in order to remove the bark, which is done in the same manner as that described for removing the birch bark.
How to Split Logs, Make Shakes, Splits, or Clapboards
Logs are usually split by the use of wedges, but it is possible to split them by the use of two axes. Fig. 119 shows both methods. To split with the axe, strike it smartly into the wood at the small end so as to start a crack, then sink the axe in the crack, A. Next take the second axe and strike it in line with the first one at B. If this is done properly it should open the crack wide enough to release the first axe without trouble, which may then be struck in the log at C. In this manner it is possible to split a straight-grained piece of timber without the use of wedges. The first axe should be struck in at the smaller or top end of the log. To split a log with wedges, take your axe in your left hand and a club in your right hand and, by hammering the head of your axe with the club, drive the blade into the small end of the log far enough to make a crack deep enough to hold the thin edge of your wedges. Make this crack all the way across the end of the log, as in Fig. 119. Put two wedges in the end of the log, as in the diagram, and drive them until the wood begins to split and crack along the sides of the log; then follow up this crack with other wedges, as shown at D and E, until the log is split in half.
While ordinary wood splits easily enough with the grain, it is very difficult to drive an axe through the wood at right angles to the grain, as shown by diagram to the left; hence, if the amateur be chopping wood, if he will strike a slanting blow, like the one to the right in Fig. 120, he will discover that the blade of his axe will enter the wood; whereas, in the first position, where he strikes the grain at right angles, it will only make a dent in the wood and bounce the axe back; but in striking a diagonal blow he must use care not to slant his axe too far or the blade of the axe may only scoop out a shallow chip and swing around, seriously injuring the axeman or some one else.
If it is desired to cut off the limb of a tree, do not disfigure the tree by tearing the bark down; trees are becoming too scarce for us to injure them unnecessarily; if you cut part way through the limb on the under-side (see the right-hand diagram, Fig. 121) and then cut partly through from the top side, the limb will fall off without tearing the bark down the trunk; but if you cut only from the top (see left-hand diagram, Fig. 121), sooner or later the weight of the limb will tear it off and make an ugly wound down the front of the tree, which in time decays, makes a hollow, and ultimately destroys the tree. A neatly cut branch, on the other hand, when the stub has been sheared off close to the bark, will heal up, leaving only an eye-mark on the bark to tell where the limb once grew.
If it is desired to chop a log up into shorter pieces, remember to stand on the log to do your chopping, as in Fig. 122. This will do away with the necessity of rolling the log over when you want to chop on the other side. Do not forget to make the kerf, or notch, C, D the same as A, B; in other words, the distance across the notch should equal the diameter of the log. If you start with too narrow a kerf, or notch, before you finish you will be compelled to widen it.
To flatten a log you must score and hew it. Scoring consists in making a number of notches, C, D, E, F, G, H, J, etc., to the depth of the line A, B (Figs. 123 and 124); hewing it is the act of chopping off or splitting off the pieces A, C and C, D and D, E, etc., leaving the surface flat, as shown by Fig. 125, which was known among the pioneers as a puncheon and with which they floored their cabins before the advent of the saw-mill and milled lumber.
Perhaps it will be advisable for the amateur to take a chalk-line and snap it from A to B, so that he may be certain to have the flat surface level. The expert axeman will do this by what he calls "sensiation." It might be well to say here that if you select for puncheons wood with a straight grain and wood that will split easily you will simplify your task, but even mean, stubborn wood may be flattened by scoring and hewing. Quoting from Horace Kephart’s excellent book on woodcraft, an experienced man can tell a straight-grained log "by merely scanning the bark"; if the ridges and furrows of the bark run straight up and down the wood will have a corresponding straight grain, but if they are spiral the wood will split "waney" or not at all. "Waney" is a good word, almost as good as "sensiation"; so when you try to quarter a log with which to chink your cabin or log house don’t select a "waney" log. To quarter a log split it as shown in Fig. 119 and split it along the dotted lines shown in the end view of Fig. 126.
In the Maine woods the woodsmen are adepts in making shakes, splits, clapboards, or shingles by the use of only an axe and splitting them out of the billets of wood from four to six feet long. The core of the log is first cut out and then the pieces are split out, having wedge-shaped edges, as shown by the lines marked on Fig. 127. They also split out boards after the manner shown by Fig. 128. In making either the boards or the shakes, if it is found that the wood splinters down into the body of the log too far or into the board or shake too far, you must commence at the other end of the billet or log and split it up to meet the first split, or take hold of the split or board with your hands and deftly tear it from the log, an art which only experience can teach. I have seen two-story houses composed of nothing but a framework with sides and roof shingled over with these splits. In the West they call these "shake" cabins.
It may be wise before we close this axeman’s talk to caution the reader against chopping firewood by resting one end of the stick to be cut on a log and the other end on the ground, as shown in Fig. 131, and then striking this stick a sharp blow with the axe in the middle. The effect of this often is to send the broken piece or fragment gyrating through the air, as is shown by the dotted lines, and many a woodchopper has lost an eye from a blow inflicted by one of these flying pieces; indeed, I have had some of my friends meet with this serious and painful accident from the same cause, and I have seen men in the lumber fields who have been blinded in a similar manner.
There are two sorts of axes in general use among the lumbermen; but the double-bitted axe (131 A) appears to be the most popular among lumberjacks. My readers, however, are not lumberjacks but campers, and a double-bitted axe is a nuisance around camps. It is always dangerous and even when one blade is sunk into the tree the other blade is sticking out, a menace to everybody and everything that comes near it. But the real old-fashioned reliable axe (131 B) is the one that is exceedingly useful in a camp, around a country place, or a farm. I even have one now in my studio closet here in the city of New York, but I keep it more for sentiment’s sake than for any real use it may be to me here.


Ballerina is a general purpose, concurrent and strongly typed programming language with both textual and graphical syntaxes, optimized for integration.
Ballerina by Example is a hands-on introduction to Ballerina using annotated example programs. Check out the first example or browse the full list below.
This site was generated using a tool developed by @mmcgrana, licensed under CC BY / modified from original


| Devices | [[total_devices]] |
|---|---|
| Interfaces | [[total_interfaces]] |
| Networks | [[total_networks]] |
| - IPv4 | [[total_ipv4]] / [[total_networks]] |
| - IPv6 | [[total_ipv6]] / [[total_networks]] |
| Assigned | [[total_assigned]] / [[total_networks]] |
|---|---|
| Allocated | [[total_allocated]] / [[total_networks]] |
| Reserved | [[total_reserved]] / [[total_networks]] |
| Orphaned | [[total_orphaned]] / [[total_networks]] |
| ID | User | Event | Resource Type | Resource ID | Change At |
|---|---|---|---|---|---|
| [[change.id]] | [[change.user.email]] | [[change.event]] | [[change.resource_name]] | [[change.resource_id]] | [[change.change_at|from_now]] |


[CHAPTER 341]
ENVIRONMENTAL QUALITY CONTROL
Section
341-1 Findings and purpose
341-2 Definitions
341-3 Office of environmental quality control;
environmental center; environmental council
341-4 Powers and duties of the director
341-5 Repealed
341-6 Functions of the environmental council
Note
Department of transportation's bridge rehabilitation and replacement program; temporary exemption from certain construction requirements of this chapter through June 30, 2022, or until completion. L 2012, c 218; L 2017, c 48.