com.caucho.jdbc
Class PostgresMetaData

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

public class PostgresMetaData
extends GenericMetaData

Abstract way of grabbing data from the JDBC connection.


Constructor Summary
protected PostgresMetaData(javax.sql.DataSource ds)
           
 
Method Summary
 java.lang.String createSequenceSQL(java.lang.String name, int size)
          Returns a sequence select expression.
 java.lang.String generateBoolean(java.lang.String term)
          Returns the code to test for a boolean value for a term.
 java.lang.String getFalseLiteral()
          Returns the literal for FALSE.
 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.
 java.lang.String testSequenceSQL(java.lang.String name)
          Returns a sequence select expression.
 
Methods inherited from class com.caucho.jdbc.GenericMetaData
createIdentitySQL, getBlobType, getCreateColumnSQL, getCreateColumnSQLImpl, getDefaultCreateTableSQL, getLongType, supportsGetGeneratedKeys, supportsIdentity, supportsUpdateTableList
 
Methods inherited from class com.caucho.jdbc.JdbcMetaData
create, getConnection, getDatabaseName, isForeignKeyViolationSQLState, isLimit, isLimitOffset, isTruncateBlobBeforeDelete, isUniqueConstraintSQLState, limit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgresMetaData

protected PostgresMetaData(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

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

testSequenceSQL

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

Overrides:
testSequenceSQL in class JdbcMetaData

generateBoolean

public java.lang.String generateBoolean(java.lang.String term)
Returns the code to test for a boolean value for a term.

Overrides:
generateBoolean in class JdbcMetaData