net.sf.hajdbc.dialect
Class IngresDialect

java.lang.Object
  extended by net.sf.hajdbc.dialect.StandardDialect
      extended by net.sf.hajdbc.dialect.IngresDialect
All Implemented Interfaces:
Dialect

public class IngresDialect
extends StandardDialect

Dialect for Ingres.

Author:
Paul Ferraro

Constructor Summary
IngresDialect()
           
 
Method Summary
protected  String currentDatePattern()
           
protected  String currentTimePattern()
           
protected  String currentTimestampPattern()
           
 Collection<QualifiedName> getSequences(DatabaseMetaData metaData)
          Returns a collection of all sequences in this database.
 String parseInsertTable(String sql)
          Parses a table name from the specified INSERT SQL statement that may contain identity columns.
 String parseSequence(String sql)
          Parses a sequence name from the specified SQL statement.
protected  String randomPattern()
           
protected  String sequencePattern()
           
 
Methods inherited from class net.sf.hajdbc.dialect.StandardDialect
alterIdentityColumnFormat, alterSequenceFormat, createForeignKeyConstraintFormat, createUniqueConstraintFormat, currentTimestampFunction, dateLiteralFormat, dropConstraintFormat, dropForeignKeyConstraintFormat, dropUniqueConstraintFormat, dummyTable, evaluateCurrentDate, evaluateCurrentTime, evaluateCurrentTimestamp, evaluateRand, executeFunction, executeFunctionFormat, executeFunctionSQL, executeQuery, getAlterIdentityColumnSQL, getAlterSequenceSQL, getColumnType, getCreateForeignKeyConstraintSQL, getCreateUniqueConstraintSQL, getDefaultSchemas, getDropForeignKeyConstraintSQL, getDropUniqueConstraintSQL, getIdentifierPattern, getNextSequenceValueSQL, getSimpleSQL, getTruncateTableSQL, insertIntoTablePattern, isIdentity, isSelectForUpdate, nextSequenceValueFormat, parse, selectForUpdatePattern, sequenceTableType, timeLiteralFormat, timestampLiteralFormat, truncateTableFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IngresDialect

public IngresDialect()
Method Detail

parseInsertTable

public String parseInsertTable(String sql)
Description copied from interface: Dialect
Parses a table name from the specified INSERT SQL statement that may contain identity columns.

Specified by:
parseInsertTable in interface Dialect
Overrides:
parseInsertTable in class StandardDialect
Parameters:
sql - a SQL statement
Returns:
the name of a table, or null if this SQL statement is not an INSERT statement or this dialect does not support identity columns
See Also:
StandardDialect.parseInsertTable(java.lang.String)

getSequences

public Collection<QualifiedName> getSequences(DatabaseMetaData metaData)
                                       throws SQLException
Description copied from interface: Dialect
Returns a collection of all sequences in this database.

Specified by:
getSequences in interface Dialect
Overrides:
getSequences in class StandardDialect
Parameters:
metaData - database meta data
Returns:
a collection of sequence names
Throws:
SQLException
See Also:
StandardDialect.getSequences(java.sql.DatabaseMetaData)

parseSequence

public String parseSequence(String sql)
Description copied from interface: Dialect
Parses a sequence name from the specified SQL statement.

Specified by:
parseSequence in interface Dialect
Overrides:
parseSequence in class StandardDialect
Parameters:
sql - a SQL statement
Returns:
the name of a sequence, or null if this SQL statement does not reference a sequence or this dialect does not support sequences
See Also:
StandardDialect.parseSequence(java.lang.String)

sequencePattern

protected String sequencePattern()
Overrides:
sequencePattern in class StandardDialect
See Also:
StandardDialect.sequencePattern()

currentDatePattern

protected String currentDatePattern()
Overrides:
currentDatePattern in class StandardDialect
See Also:
StandardDialect.currentDatePattern()

currentTimePattern

protected String currentTimePattern()
Overrides:
currentTimePattern in class StandardDialect
See Also:
StandardDialect.currentTimePattern()

currentTimestampPattern

protected String currentTimestampPattern()
Overrides:
currentTimestampPattern in class StandardDialect
See Also:
StandardDialect.currentTimestampPattern()

randomPattern

protected String randomPattern()
Overrides:
randomPattern in class StandardDialect
See Also:
StandardDialect.randomPattern()