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

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.ProgressFactory
All Implemented Interfaces:
PersistenceFactory

public final class ProgressFactory
extends GenericFactory

PersistenceFactory for Progress RDBMS.

Version:
$Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
Author:
Werner Guttmann

Field Summary
static String FACTORY_NAME
          Internal name of this PersistenceFactory instance.
 
Constructor Summary
ProgressFactory()
           
 
Method Summary
 Visitor createQueryVisitor()
          Method to create an instance of database specific visitor to be used to construct statement.
 String getFactoryName()
          Returns the name of this factory.
 QueryExpression getQueryExpression()
          Returns a new empty query expression suitable for the underlying SQL engine.
 String quoteName(String name)
          Returns the quoted identifier suitable for preventing conflicts between database identifiers and reserved keywords.
 
Methods inherited from class org.castor.cpa.persistence.sql.driver.GenericFactory
doubleQuoteName, getIdentitySelectString, getSequenceAfterSelectString, getSequenceBeforeSelectString, isKeyGeneratorIdentitySupported, isKeyGeneratorIdentityTypeSupported, isKeyGeneratorSequenceSupported, isKeyGeneratorSequenceTypeSupported
 
Methods inherited from class org.castor.cpa.persistence.sql.driver.BaseFactory
adjustSqlType, getCallQuery, getKeyGenerator, getPersistence
 
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 String FACTORY_NAME
Internal name of this PersistenceFactory instance.

See Also:
Constant Field Values
Constructor Detail

ProgressFactory

public ProgressFactory()
Method Detail

getFactoryName

public 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

createQueryVisitor

public Visitor createQueryVisitor()
Description copied from interface: PersistenceFactory
Method to create an instance of database specific visitor to be used to construct statement.

Specified by:
createQueryVisitor in interface PersistenceFactory
Overrides:
createQueryVisitor in class GenericFactory
Returns:
Database specific visitor instance to be used.

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

quoteName

public String quoteName(String name)
Description copied from interface: PersistenceFactory
Returns the quoted identifier suitable for preventing conflicts between database identifiers and reserved keywords.

Specified by:
quoteName in interface PersistenceFactory
Overrides:
quoteName in class GenericFactory
Parameters:
name - The identifier (table, column, etc)
Returns:
The quoted identifier


Copyright © 2012. All Rights Reserved.