org.exolab.castor.jdo.drivers
Class PostgreSQLFactory
- PersistenceFactory
public final class PostgreSQLFactory
Version:
- Assaf Arkin
adjustSqlType
public Class adjustSqlType(Class sqlType)
For BLOB/CLOB types are not supported.
- adjustSqlType in interface BaseFactory
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.
- getCallQuery in interface BaseFactory
call
- Stored procedure call (without "{call")paramTypes
- The types of the query parametersjavaClass
- The Java class of the query resultsfields
- The field namessqlTypes
- The field SQL types
- null if this feature is not supported.
isDuplicateKeyException
public Boolean isDuplicateKeyException(Exception ex)
Determine if the given SQLException is DuplicateKeyException
- isDuplicateKeyException in interface PersistenceFactory
- isDuplicateKeyException in interface GenericFactory
- Boolean.TRUE means "yes",
Boolean.FALSE means "no",
null means "cannot determine"
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com