org.exolab.castor.jdo.drivers

Class SybaseFactory

public class SybaseFactory extends GenericFactory

PersistenceFactory for Sybase Adaptive Servers.

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

Author: Assaf Arkin Oleg Nitz

Method Summary
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 except)
StringquoteName(String name)
booleansupportsSetNullInWhere()
Sybase supports setNull for "WHERE fld=?

Method Detail

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 except)

quoteName

public String quoteName(String name)

supportsSetNullInWhere

public boolean supportsSetNullInWhere()
Sybase supports setNull for "WHERE fld=?".
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com