org.exolab.castor.jdo.drivers

Class PostgreSQLFactory

public final class PostgreSQLFactory extends GenericFactory

{@link org.exolab.castor.persist.spi.PersistenceFactory} for generic JDBC driver.

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

Author: Assaf Arkin

Method Summary
ClassadjustSqlType(Class sqlType)
For BLOB/CLOB types are not supported.
PersistenceQuerygetCallQuery(String call, Class[] paramTypes, Class javaClass, String[] fields, int[] sqlTypes)
Needed to process OQL queries of "CALL" type (using stored procedure call).
StringgetFactoryName()
QueryExpressiongetQueryExpression()
BooleanisDuplicateKeyException(Exception ex)
Determine if the given SQLException is DuplicateKeyException
StringquoteName(String name)

Method Detail

adjustSqlType

public Class adjustSqlType(Class sqlType)
For BLOB/CLOB types are not supported.

getCallQuery

public PersistenceQuery getCallQuery(String call, Class[] paramTypes, Class javaClass, String[] fields, int[] sqlTypes)
Needed to process OQL queries of "CALL" type (using stored procedure call). This feature is specific for JDO.

Parameters: call Stored procedure call (without "{call") paramTypes The types of the query parameters javaClass The Java class of the query results fields The field names sqlTypes The field SQL types

Returns: null if this feature is not supported.

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-2003. All rights reserved http://www.intalio.com