com.caucho.jdbc
Class OracleMetaData

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

public class OracleMetaData
extends GenericMetaData

Abstract way of grabbing data from the JDBC connection.


Constructor Summary
protected OracleMetaData(javax.sql.DataSource ds)
           
 
Method Summary
 java.lang.String createSequenceSQL(java.lang.String name, int size)
          Returns a sequence select expression.
 java.lang.String getCreateColumnSQL(int sqlType, int length, int precision, int scale)
          Returns the SQL for the table with the given SQL type.
 java.lang.String getFalseLiteral()
          Returns the literal for FALSE.
 boolean isTruncateBlobBeforeDelete()
          True if blobs must be truncated on delete.
 java.lang.String selectSequenceSQL(java.lang.String name)
          Returns a sequence select expression.
 boolean supportsPositionFunction()
          Returns true if the POSITION function is supported.
 boolean supportsSequences()
          Returns true if sequences are supported.
 boolean supportsUpdateTableAlias()
          Returns true if table alias name with UPDATE is supported.
 
Methods inherited from class com.caucho.jdbc.GenericMetaData
createIdentitySQL, getBlobType, getCreateColumnSQLImpl, getDefaultCreateTableSQL, getLongType, supportsGetGeneratedKeys, supportsIdentity, supportsUpdateTableList
 
Methods inherited from class com.caucho.jdbc.JdbcMetaData
create, generateBoolean, getConnection, getDatabaseName, isForeignKeyViolationSQLState, isLimit, isLimitOffset, isUniqueConstraintSQLState, limit, testSequenceSQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleMetaData

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

getFalseLiteral

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

Overrides:
getFalseLiteral in class GenericMetaData

isTruncateBlobBeforeDelete

public boolean isTruncateBlobBeforeDelete()
True if blobs must be truncated on delete.

Overrides:
isTruncateBlobBeforeDelete in class JdbcMetaData

getCreateColumnSQL

public java.lang.String getCreateColumnSQL(int sqlType,
                                           int length,
                                           int precision,
                                           int scale)
Returns the SQL for the table with the given SQL type.

Overrides:
getCreateColumnSQL in class GenericMetaData

supportsPositionFunction

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

Overrides:
supportsPositionFunction in class GenericMetaData

supportsSequences

public boolean supportsSequences()
Returns true if sequences are supported.

Overrides:
supportsSequences in class GenericMetaData

supportsUpdateTableAlias

public boolean supportsUpdateTableAlias()
Returns true if table alias name with UPDATE is supported.

Overrides:
supportsUpdateTableAlias in class GenericMetaData

createSequenceSQL

public java.lang.String createSequenceSQL(java.lang.String name,
                                          int size)
Returns a sequence select expression.

Overrides:
createSequenceSQL in class GenericMetaData

selectSequenceSQL

public java.lang.String selectSequenceSQL(java.lang.String name)
Returns a sequence select expression.

Overrides:
selectSequenceSQL in class GenericMetaData