org.ujorm.orm.dialect
Class H2Dialect

java.lang.Object
  extended by org.ujorm.orm.SqlDialect
      extended by org.ujorm.orm.dialect.H2Dialect
Direct Known Subclasses:
HsqldbDialect

public class H2Dialect
extends SqlDialect

H2 (http://www.h2database.com)


Field Summary
 
Fields inherited from class org.ujorm.orm.SqlDialect
COMMON_SEQ_TABLE_KEY, DEFAULT_SCHEMA_SYMBOL, ormHandler
 
Constructor Summary
H2Dialect()
           
 
Method Summary
 String getJdbcDriver()
          Returns a JDBC Driver
 String getJdbcUrl()
          Returns a default JDBC URL
protected  Appendable printQuotedName(CharSequence name, Appendable sql)
          Prints quoted name (identifier) to SQL.
 
Methods inherited from class org.ujorm.orm.SqlDialect
createConnection, createJndiInitialContext, escape, getColumnType, getCriterionTemplate, getKeywordSet, getQuotedName, getSeqTableModel, isColumnLengthAllowed, isFilled, isMultiRowInsertSupported, printAlterTableAddColumn, printCall, printColumnAlias, printColumnDeclaration, printComment, printComment, printCommit, printConstraintName, printCreateSchema, printCriterion, printDefaultSchema, printDefaultValue, printDelete, printFKColumnsDeclaration, printForeignKey, printForeignKey, printFullTableName, printFullTableName, printIndex, printInsert, printInsert, printInsertBySelect, println, printLockForSelect, printOffset, printSelect, printSelectOrder, printSelectTable, printSelectTableBase, printSelectView, printSequenceCurrentValue, printSequenceInit, printSequenceNextValue, printSequenceTable, printSequenceTableName, printTable, printTableAliasDefinition, printTableColumns, printUpdate, releaseSavepoint, setHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

H2Dialect

public H2Dialect()
Method Detail

getJdbcUrl

public String getJdbcUrl()
Returns a default JDBC URL

Specified by:
getJdbcUrl in class SqlDialect

getJdbcDriver

public String getJdbcDriver()
Returns a JDBC Driver

Specified by:
getJdbcDriver in class SqlDialect

printQuotedName

protected Appendable printQuotedName(CharSequence name,
                                     Appendable sql)
                              throws IOException
Prints quoted name (identifier) to SQL. Method is prepared for overriding based on SQL dialect.

Overrides:
printQuotedName in class SqlDialect
Parameters:
name - Name (identifier) for quoting
sql - Target SQL for printing new quoted name
Returns:
SQL with printed quoted name
Throws:
IOException


Copyright © 2012. All Rights Reserved.