com.caucho.jdbc
Class DerbyMetaData

java.lang.Object
  extended by com.caucho.jdbc.JdbcMetaData
      extended by com.caucho.jdbc.GenericMetaData
          extended by com.caucho.jdbc.DerbyMetaData

public class DerbyMetaData
extends GenericMetaData

Metadata for the Apache Derby database.


Constructor Summary
protected DerbyMetaData(javax.sql.DataSource ds)
           
 
Method Summary
 java.lang.String createIdentitySQL(java.lang.String sqlType)
          Returns the identity property
 java.lang.String createSequenceSQL(java.lang.String name, int size)
          Returns a sequence select expression.
 java.lang.String getFalseLiteral()
          Returns the literal for FALSE.
 java.lang.String selectSequenceSQL(java.lang.String name)
          Returns a sequence select expression.
 boolean supportsGetGeneratedKeys()
          True if the generated keys is supported
 boolean supportsIdentity()
          Returns true if identity is supported.
 boolean supportsPositionFunction()
          Returns true if the POSITION function is supported.
 boolean supportsSequences()
          Returns true if sequences are supported.
 
Methods inherited from class com.caucho.jdbc.GenericMetaData
getBlobType, getCreateColumnSQL, getCreateColumnSQLImpl, getDefaultCreateTableSQL, getLongType, supportsUpdateTableAlias, supportsUpdateTableList
 
Methods inherited from class com.caucho.jdbc.JdbcMetaData
create, generateBoolean, getConnection, getDatabaseName, isForeignKeyViolationSQLState, isLimit, isLimitOffset, isTruncateBlobBeforeDelete, isUniqueConstraintSQLState, limit, testSequenceSQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DerbyMetaData

protected DerbyMetaData(javax.sql.DataSource ds)
Method Detail

getFalseLiteral

public java.lang.String getFalseLiteral()
Returns the literal for FALSE.

Overrides:
getFalseLiteral in class GenericMetaData

supportsPositionFunction

public boolean supportsPositionFunction()
Returns true if the POSITION function is supported.

Overrides:
supportsPositionFunction in class GenericMetaData

supportsGetGeneratedKeys

public boolean supportsGetGeneratedKeys()
True if the generated keys is supported

Overrides:
supportsGetGeneratedKeys in class GenericMetaData

supportsIdentity

public boolean supportsIdentity()
Description copied from class: GenericMetaData
Returns true if identity is supported.

Overrides:
supportsIdentity in class GenericMetaData

createIdentitySQL

public java.lang.String createIdentitySQL(java.lang.String sqlType)
Description copied from class: GenericMetaData
Returns the identity property

Overrides:
createIdentitySQL in class GenericMetaData

supportsSequences

public boolean supportsSequences()
Description copied from class: GenericMetaData
Returns true if sequences are supported.

Overrides:
supportsSequences in class GenericMetaData

selectSequenceSQL

public java.lang.String selectSequenceSQL(java.lang.String name)
Description copied from class: JdbcMetaData
Returns a sequence select expression.

Overrides:
selectSequenceSQL in class GenericMetaData

createSequenceSQL

public java.lang.String createSequenceSQL(java.lang.String name,
                                          int size)
Description copied from class: GenericMetaData
Returns a sequence select expression.

Overrides:
createSequenceSQL in class GenericMetaData