org.ujorm.orm.dialect
Class DerbyDialect

java.lang.Object
  extended by org.ujorm.orm.SqlDialect
      extended by org.ujorm.orm.dialect.DerbyDialect

public class DerbyDialect
extends SqlDialect

Derby (http://db.apache.org/derby/)
NOTE: Dialect supports a LIMIT and OFFSET of the Derby release 10.5

See Also:
Derby documentation

Field Summary
 
Fields inherited from class org.ujorm.orm.SqlDialect
COMMON_SEQ_TABLE_KEY, DEFAULT_SCHEMA_SYMBOL, ormHandler
 
Constructor Summary
DerbyDialect()
           
 
Method Summary
 String getJdbcDriver()
          Embeded driver is default
 String getJdbcUrl()
          Syntax: jdbc:derby:[subsubprotocol:][databaseName][;attribute=value]*
 Appendable printComment(MetaColumn table, Appendable out)
          COMMENT is not supported in HSQLDB database
 Appendable printComment(MetaTable table, Appendable out)
          COMMENT is not supported in HSQLDB database
 Appendable printCreateSchema(String schema, Appendable out)
          Print SQL 'CREATE SCHEMA'
 void printOffset(Query query, Appendable out)
          Print an OFFSET of the statement SELECT.
 
Methods inherited from class org.ujorm.orm.SqlDialect
createConnection, createJndiInitialContext, createSubQuery, escape, getAliasColumnName, getColumnType, getCriterionTemplate, getExtentedDialect, getKeywordSet, getNameProvider, getQuotedName, getSeqTableModel, isCatalog, isColumnLengthAllowed, isFilled, isMultiRowInsertSupported, printAlterTableAddColumn, printAlterTableColumn, printCall, printColumnAlias, printColumnDeclaration, printCommit, printCriterion, printCriterionValue, printDefaultConstraint, printDefaultSchema, printDefaultValue, printDelete, printFKColumnsDeclaration, printForeignKey, printForeignKey, printFullTableName, printFullTableName, printIndex, printInsert, printInsert, printInsertBySelect, println, printLockForSelect, printNextSequence, printQuotedName, printQuotedNameAlways, printSelect, printSelectOrder, printSelectTable, printSelectTableBase, printSelectView, printSequenceCurrentValue, printSequenceDeleteById, printSequenceInit, printSequenceInitWithValues, printSequenceNextValue, printSequenceTable, printSequenceTableName, printSetMaxSequence, 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

DerbyDialect

public DerbyDialect()
Method Detail

getJdbcUrl

public String getJdbcUrl()
Syntax: jdbc:derby:[subsubprotocol:][databaseName][;attribute=value]*

Specified by:
getJdbcUrl in class SqlDialect

getJdbcDriver

public String getJdbcDriver()
Embeded driver is default

Specified by:
getJdbcDriver in class SqlDialect

printCreateSchema

public Appendable printCreateSchema(String schema,
                                    Appendable out)
                             throws IOException
Print SQL 'CREATE SCHEMA'

Overrides:
printCreateSchema in class SqlDialect
Throws:
IOException

printOffset

public void printOffset(Query query,
                        Appendable out)
                 throws IOException
Description copied from class: SqlDialect
Print an OFFSET of the statement SELECT.

Overrides:
printOffset in class SqlDialect
Throws:
IOException

printComment

public Appendable printComment(MetaTable table,
                               Appendable out)
                        throws IOException
COMMENT is not supported in HSQLDB database

Overrides:
printComment in class SqlDialect
Throws:
IOException

printComment

public Appendable printComment(MetaColumn table,
                               Appendable out)
                        throws IOException
COMMENT is not supported in HSQLDB database

Overrides:
printComment in class SqlDialect
Throws:
IOException


Copyright 2013, Pavel Ponec