net.sf.hajdbc.dialect
Class FirebirdDialect

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

public class FirebirdDialect
extends StandardDialect

Dialect for Firebird.

Author:
Paul Ferraro

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

Constructor Detail

FirebirdDialect

public FirebirdDialect()
Method Detail

dummyTable

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

alterSequenceFormat

protected String alterSequenceFormat()
Firebird 2.0 will support standard syntax. Until then...

Overrides:
alterSequenceFormat in class StandardDialect
See Also:
StandardDialect.alterSequenceFormat()

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)

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)

sequencePattern

protected String sequencePattern()
Firebird 2.0 will support standard syntax. Until then...

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

selectForUpdatePattern

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

nextSequenceValueFormat

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