org.exolab.castor.jdo.drivers

Class SybaseFactory

Implemented Interfaces:
PersistenceFactory
Known Direct Subclasses:
SQLServerFactory

public class SybaseFactory
extends GenericFactory

PersistenceFactory for Sybase Adaptive Servers.
Version:
$Revision: 5951 $ $Date: 2006-02-21 16:05:42 -0700 (Tue, 21 Feb 2006) $
Authors:
Assaf Arkin
Oleg Nitz

Field Summary

static String
FACTORY_NAME

Method Summary

PersistenceQuery
getCallQuery(String call, Class[] paramTypes, Class javaClass, String[] fields, int[] sqlTypes)
Needed to process OQL queries of "CALL" type (using stored procedure call).
String
getFactoryName()
QueryExpression
getQueryExpression()
Boolean
isDuplicateKeyException(Exception except)
String
quoteName(String name)
boolean
supportsSetNullInWhere()

Methods inherited from class org.exolab.castor.jdo.drivers.GenericFactory

doubleQuoteName, getFactoryName, getQueryExpression, isDuplicateKeyException, quoteName

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

adjustSqlType, getCallQuery, getPersistence, supportsSetNullInWhere

Field Details

FACTORY_NAME

public static final String FACTORY_NAME

Method Details

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.
Overrides:
getCallQuery in interface BaseFactory
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()
Specified by:
getFactoryName in interface PersistenceFactory
Overrides:
getFactoryName in interface GenericFactory

getQueryExpression

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

isDuplicateKeyException

public Boolean isDuplicateKeyException(Exception except)
Specified by:
isDuplicateKeyException in interface PersistenceFactory
Overrides:
isDuplicateKeyException in interface GenericFactory
See Also:
org.exolab.castor.persist.spi.PersistenceFactory.isDuplicateKeyException(java.lang.Exception)

quoteName

public String quoteName(String name)
Specified by:
quoteName in interface PersistenceFactory
Overrides:
quoteName in interface GenericFactory
See Also:
org.exolab.castor.persist.spi.PersistenceFactory.quoteName(java.lang.String)

supportsSetNullInWhere

public boolean supportsSetNullInWhere()
Overrides:
supportsSetNullInWhere in interface BaseFactory

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