com.caucho.jdbc
Class SqlServerMetaData

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

public class SqlServerMetaData
extends GenericMetaData

Metadata for the microsoft SQL server database.


Constructor Summary
protected SqlServerMetaData(javax.sql.DataSource ds)
           
 
Method Summary
 java.lang.String createIdentitySQL(java.lang.String sqlType)
          Returns the identity property
 java.lang.String generateBoolean(java.lang.String term)
          Returns the code to test for a boolean value for a term.
 java.lang.String getCreateColumnSQL(int sqlType, int length, int precision, int scale)
          to Return SQL for the table with the given SQL type.
 boolean supportsIdentity()
          Returns true if identity is supported.
 
Methods inherited from class com.caucho.jdbc.GenericMetaData
createSequenceSQL, getBlobType, getCreateColumnSQLImpl, getDefaultCreateTableSQL, getFalseLiteral, getLongType, selectSequenceSQL, supportsGetGeneratedKeys, supportsPositionFunction, supportsSequences, supportsUpdateTableAlias, supportsUpdateTableList
 
Methods inherited from class com.caucho.jdbc.JdbcMetaData
create, 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

SqlServerMetaData

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

supportsIdentity

public boolean supportsIdentity()
Returns true if identity is supported.

Overrides:
supportsIdentity in class GenericMetaData

createIdentitySQL

public java.lang.String createIdentitySQL(java.lang.String sqlType)
Returns the identity property

Overrides:
createIdentitySQL in class GenericMetaData

getCreateColumnSQL

public java.lang.String getCreateColumnSQL(int sqlType,
                                           int length,
                                           int precision,
                                           int scale)
Description copied from class: GenericMetaData
to Return SQL for the table with the given SQL type. Takes, length, precision and scale.

Overrides:
getCreateColumnSQL in class GenericMetaData

generateBoolean

public java.lang.String generateBoolean(java.lang.String term)
Description copied from class: JdbcMetaData
Returns the code to test for a boolean value for a term.

Overrides:
generateBoolean in class JdbcMetaData