public class SybaseFactory extends GenericFactory
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FACTORY_NAME |
| Constructor and Description |
|---|
SybaseFactory() |
| Modifier and Type | Method and Description |
|---|---|
PersistenceQuery |
getCallQuery(java.lang.String call,
java.lang.Class[] paramTypes,
java.lang.Class javaClass,
java.lang.String[] fields,
int[] sqlTypes)
Needed to process OQL queries of "CALL" type (using stored procedure
call).
|
java.lang.String |
getFactoryName()
Returns the name of this factory.
|
QueryExpression |
getQueryExpression()
Returns a new empty query expression suitable for the underlying
SQL engine.
|
java.lang.Boolean |
isDuplicateKeyException(java.lang.Exception except)
Determine if the given SQLException is DuplicateKeyException
|
java.lang.String |
quoteName(java.lang.String name)
Returns the quoted identifier suitable for preventing conflicts between
database identifiers and reserved keywords.
|
boolean |
supportsSetNullInWhere()
Many databases don't support setNull for "WHERE fld=?" and require "WHERE fld IS NULL".
|
doubleQuoteNameadjustSqlType, getPersistencepublic static final java.lang.String FACTORY_NAME
public java.lang.String getFactoryName()
PersistenceFactorygetFactoryName in interface PersistenceFactorygetFactoryName in class GenericFactoryPersistenceFactory.getFactoryName()public QueryExpression getQueryExpression()
PersistenceFactorygetQueryExpression in interface PersistenceFactorygetQueryExpression in class GenericFactoryPersistenceFactory.getQueryExpression()public java.lang.Boolean isDuplicateKeyException(java.lang.Exception except)
GenericFactoryisDuplicateKeyException in interface PersistenceFactoryisDuplicateKeyException in class GenericFactoryPersistenceFactory.isDuplicateKeyException(java.lang.Exception)public java.lang.String quoteName(java.lang.String name)
PersistenceFactoryquoteName in interface PersistenceFactoryquoteName in class GenericFactoryname - The identifier (table, column, etc)PersistenceFactory.quoteName(java.lang.String)public PersistenceQuery getCallQuery(java.lang.String call, java.lang.Class[] paramTypes, java.lang.Class javaClass, java.lang.String[] fields, int[] sqlTypes)
getCallQuery in class BaseFactorycall - 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 typespublic boolean supportsSetNullInWhere()
BaseFactorysupportsSetNullInWhere in class BaseFactoryBaseFactory.supportsSetNullInWhere()Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com