org.exolab.castor.jdo.drivers

Class GenericFactory

Implemented Interfaces:
PersistenceFactory
Known Direct Subclasses:
DB2Factory, HsqlFactory, InformixFactory, InstantDBFactory, InterbaseFactory, MySQLFactory, OracleFactory, PostgreSQLFactory, SybaseFactory

public class GenericFactory
extends BaseFactory

PersistenceFactory for generic JDBC driver.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:11 $

Author:
Assaf Arkin

Method Summary

protected String
doubleQuoteName(String name)
Updated to handle input such as user.tablename.column
String
getFactoryName()
QueryExpression
getQueryExpression()
Boolean
isDuplicateKeyException(Exception ex)
Determine if the given SQLException is DuplicateKeyException
String
quoteName(String name)

Methods inherited from class org.exolab.castor.jdo.engine.BaseFactory

adjustSqlType, getCallQuery, getPersistence, supportsSetNullInWhere

Method Details

doubleQuoteName

protected final String doubleQuoteName(String name)
Updated to handle input such as user.tablename.column

Author:
Andrew Ballanger


getFactoryName

public String getFactoryName()
Specified by:
getFactoryName in interface PersistenceFactory


getQueryExpression

public QueryExpression getQueryExpression()
Specified by:
getQueryExpression in interface PersistenceFactory


isDuplicateKeyException

public Boolean isDuplicateKeyException(Exception ex)
Determine if the given SQLException is DuplicateKeyException
Specified by:
isDuplicateKeyException in interface PersistenceFactory

Returns:
Boolean.TRUE means "yes", Boolean.FALSE means "no", null means "cannot determine"


quoteName

public String quoteName(String name)
Specified by:
quoteName in interface PersistenceFactory


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