org.exolab.castor.jdo.drivers
Class SapDbFactory

java.lang.Object
  extended by org.exolab.castor.jdo.engine.BaseFactory
      extended by org.exolab.castor.jdo.drivers.GenericFactory
          extended by org.exolab.castor.jdo.drivers.OracleFactory
              extended by org.exolab.castor.jdo.drivers.SapDbFactory
All Implemented Interfaces:
PersistenceFactory

public final class SapDbFactory
extends OracleFactory

PersistenceFactory for SAP DB.

Version:
$Revision: 1.7 $ $Date: 2004/08/18 11:45:18 $
Author:
Oleg Nitz, Bruce Snyder

Constructor Summary
SapDbFactory()
           
 
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.
 boolean isAFunction(java.lang.String text)
          Tests a text string against a known list of functions to determine if it is a function.
 java.lang.String quoteName(java.lang.String name)
          Quotes words in SQL statements.
 
Methods inherited from class org.exolab.castor.jdo.drivers.OracleFactory
adjustSqlType, getCallQuery, isDuplicateKeyException
 
Methods inherited from class org.exolab.castor.jdo.drivers.GenericFactory
doubleQuoteName
 
Methods inherited from class org.exolab.castor.jdo.engine.BaseFactory
getPersistence, supportsSetNullInWhere
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SapDbFactory

public SapDbFactory()
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 OracleFactory
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 OracleFactory
Returns:
New empty query expression

quoteName

public java.lang.String quoteName(java.lang.String name)
Quotes words in SQL statements. This method must recieve a non null, non empty string.

Specified by:
quoteName in interface PersistenceFactory
Overrides:
quoteName in class OracleFactory
Parameters:
name - The SQL string that needs quotes added
Returns:
The quoted identifier

isAFunction

public boolean isAFunction(java.lang.String text)
Tests a text string against a known list of functions to determine if it is a function.

Parameters:
text - The text to be checked
See Also:
quoteName(String)


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com