org.castor.cpa.persistence.sql.driver
Class DerbyFactory

java.lang.Object
  extended by org.castor.cpa.persistence.sql.driver.BaseFactory
      extended by org.castor.cpa.persistence.sql.driver.GenericFactory
          extended by org.castor.cpa.persistence.sql.driver.DerbyFactory
All Implemented Interfaces:
PersistenceFactory

public final class DerbyFactory
extends GenericFactory

PersistenceFactory for DB 2 driver.

Version:
$Revision: 7585 $ $Date$
Author:
Assaf Arkin

Field Summary
static java.lang.String FACTORY_NAME
          Internal name of this PersistenceFactory implementation.
 
Constructor Summary
DerbyFactory()
           
 
Method Summary
 java.lang.String getFactoryName()
          Returns the name of this factory.
 QueryExpression getQueryExpression()
          Returns a new empty query expression suitable for the underlying SQL engine.
 
Methods inherited from class org.castor.cpa.persistence.sql.driver.GenericFactory
doubleQuoteName, isDuplicateKeyException, quoteName
 
Methods inherited from class org.castor.cpa.persistence.sql.driver.BaseFactory
adjustSqlType, getCallQuery, getPersistence, supportsSetNullInWhere
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACTORY_NAME

public static final java.lang.String FACTORY_NAME
Internal name of this PersistenceFactory implementation.

See Also:
Constant Field Values
Constructor Detail

DerbyFactory

public DerbyFactory()
Method Detail

getFactoryName

public java.lang.String getFactoryName()
Description copied from interface: PersistenceFactory
Returns the name of this factory. A descriptive name that indicates the type of supported database server or SQL syntax.

Specified by:
getFactoryName in interface PersistenceFactory
Overrides:
getFactoryName in class GenericFactory
Returns:
The name of this factory

getQueryExpression

public QueryExpression getQueryExpression()
Description copied from interface: PersistenceFactory
Returns a new empty query expression suitable for the underlying SQL engine. The implementation will construct SQL query statements in the preferred syntax.

Specified by:
getQueryExpression in interface PersistenceFactory
Overrides:
getQueryExpression in class GenericFactory
Returns:
New empty query expression


Copyright © 2011. All Rights Reserved.