org.exolab.castor.jdo.drivers

Class GenericFactory

public class GenericFactory extends BaseFactory

PersistenceFactory for generic JDBC driver.

Version: $Revision: 6230 $ $Date: 2004-01-19 13:01:46 -0700 (Mon, 19 Jan 2004) $

Author: Assaf Arkin Bruce Snyder

Method Summary
protected StringdoubleQuoteName(String name)
Updated to handle input such as user.tablename.column
StringgetFactoryName()
QueryExpressiongetQueryExpression()
BooleanisDuplicateKeyException(Exception ex)
Determine if the given SQLException is DuplicateKeyException
StringquoteName(String name)

Method Detail

doubleQuoteName

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

Author: Andrew Ballanger, 3/15/2001

getFactoryName

public String getFactoryName()

getQueryExpression

public QueryExpression getQueryExpression()

isDuplicateKeyException

public Boolean isDuplicateKeyException(Exception ex)
Determine if the given SQLException is DuplicateKeyException

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

quoteName

public String quoteName(String name)
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com