net.sf.hajdbc.dialect
Class MaxDBDialect

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

public class MaxDBDialect
extends StandardDialect

Dialect for MySQL MaxDB.

Since:
1.1
Author:
Paul Ferraro

Constructor Summary
MaxDBDialect()
           
 
Method Summary
protected  String createForeignKeyConstraintFormat()
          ON UPDATE and deferrability clauses are not supported.
protected  String currentTimestampFunction()
           
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 sequencePattern()
           
protected  String truncateTableFormat()
           
 
Methods inherited from class net.sf.hajdbc.dialect.StandardDialect
alterIdentityColumnFormat, alterSequenceFormat, createUniqueConstraintFormat, currentDatePattern, currentTimePattern, 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, selectForUpdatePattern, sequenceTableType, timeLiteralFormat, timestampLiteralFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxDBDialect

public MaxDBDialect()
Method Detail

dummyTable

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

currentTimestampFunction

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

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)

truncateTableFormat

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

createForeignKeyConstraintFormat

protected String createForeignKeyConstraintFormat()
ON UPDATE and deferrability clauses are not supported.

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

sequencePattern

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

nextSequenceValueFormat

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