org.ujoframework.orm.dialect
Class FirebirdDialect

java.lang.Object
  extended by org.ujoframework.orm.SqlDialect
      extended by org.ujoframework.orm.dialect.FirebirdDialect

public class FirebirdDialect
extends SqlDialect


Field Summary
 
Fields inherited from class org.ujoframework.orm.SqlDialect
COMMON_SEQ_TABLE_KEY, COMMON_SEQ_TABLE_NAME, ormHandler
 
Constructor Summary
FirebirdDialect()
           
 
Method Summary
 java.lang.String getJdbcDriver()
          Returns a JDBC driver class name.
 java.lang.String getJdbcUrl()
          Returns a default JDBC URL
 java.lang.Appendable printAlterTable(MetaColumn column, java.lang.Appendable out)
          Print a SQL sript to add a new column to the table
The DDL statement does not contains a word COLUMN.
 java.lang.Appendable printCreateSchema(java.lang.String schema, java.lang.Appendable out)
          NO SCHEMA
protected  java.lang.Appendable printLockForSelect(Query query, java.lang.Appendable out)
          Print a 'lock clausule' to the end of SQL SELECT statement to use a pessimistic lock.
 
Methods inherited from class org.ujoframework.orm.SqlDialect
createConnection, createJndiInitialContext, getColumnType, getCriterionTemplate, getKeywordSet, isUsable, printCall, printColumnAlias, printColumnDeclaration, printCommit, printCriterion, printDefaultSchema, printDefaultValue, printDelete, printFKColumnsDeclaration, printForeignKey, printForeignKey, printFullTableName, printIndex, printInsert, println, printOffset, printSelect, printSelectOrder, printSelectTable, printSelectView, printSequenceCurrentValue, printSequenceInit, printSequenceNextValue, printSequenceTable, printSequenceTableName, printSetMaxSequence, printTable, printTableAliasDefinition, printTableColumns, printUpdate, setHandler
 
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

getJdbcDriver

public java.lang.String getJdbcDriver()
Description copied from class: SqlDialect
Returns a JDBC driver class name.

Specified by:
getJdbcDriver in class SqlDialect

getJdbcUrl

public java.lang.String getJdbcUrl()
Description copied from class: SqlDialect
Returns a default JDBC URL

Specified by:
getJdbcUrl in class SqlDialect

printCreateSchema

public java.lang.Appendable printCreateSchema(java.lang.String schema,
                                              java.lang.Appendable out)
                                       throws java.io.IOException
NO SCHEMA

Overrides:
printCreateSchema in class SqlDialect
Throws:
java.io.IOException

printLockForSelect

protected java.lang.Appendable printLockForSelect(Query query,
                                                  java.lang.Appendable out)
                                           throws java.io.IOException,
                                                  java.lang.UnsupportedOperationException
Print a 'lock clausule' to the end of SQL SELECT statement to use a pessimistic lock. The current database does not support the feature, throw an exception UnsupportedOperationException.
The method prints a text "FOR UPDATE WITH LOCK".

Overrides:
printLockForSelect in class SqlDialect
Parameters:
query - The UJO query
Throws:
java.io.IOException
java.lang.UnsupportedOperationException

printAlterTable

public java.lang.Appendable printAlterTable(MetaColumn column,
                                            java.lang.Appendable out)
                                     throws java.io.IOException
Print a SQL sript to add a new column to the table
The DDL statement does not contains a word COLUMN.

Overrides:
printAlterTable in class SqlDialect
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.