|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.jdo.engine.BaseFactory
org.exolab.castor.jdo.drivers.GenericFactory
org.exolab.castor.jdo.drivers.SybaseFactory
public class SybaseFactory
PersistenceFactory for Sybase Adaptive Servers.
Constructor Summary | |
---|---|
SybaseFactory()
|
Method Summary | |
---|---|
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()
Sybase supports setNull for "WHERE fld=?". |
Methods inherited from class org.exolab.castor.jdo.drivers.GenericFactory |
---|
doubleQuoteName |
Methods inherited from class org.exolab.castor.jdo.engine.BaseFactory |
---|
adjustSqlType, getPersistence |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SybaseFactory()
Method Detail |
---|
public java.lang.String getFactoryName()
PersistenceFactory
getFactoryName
in interface PersistenceFactory
getFactoryName
in class GenericFactory
public QueryExpression getQueryExpression()
PersistenceFactory
getQueryExpression
in interface PersistenceFactory
getQueryExpression
in class GenericFactory
public java.lang.Boolean isDuplicateKeyException(java.lang.Exception except)
GenericFactory
isDuplicateKeyException
in interface PersistenceFactory
isDuplicateKeyException
in class GenericFactory
public java.lang.String quoteName(java.lang.String name)
PersistenceFactory
quoteName
in interface PersistenceFactory
quoteName
in class GenericFactory
name
- The identifier (table, column, etc)
public PersistenceQuery getCallQuery(java.lang.String call, java.lang.Class[] paramTypes, java.lang.Class javaClass, java.lang.String[] fields, int[] sqlTypes)
getCallQuery
in class 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
public boolean supportsSetNullInWhere()
supportsSetNullInWhere
in class BaseFactory
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |