|
|||||||||||
| 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.InstantDBFactory
Persistence factory for InstantDB database (http://instantdb.enhydra.org/ ).
Example database.xml file for JDO
<database name="test" engine="instantdb" >
<driver class-name="org.enhydra.instantdb.jdbc.idbDriver"
url="jdbc:idb:C:\\castor-0.8.8\\db\\test\\test.prp">
<param name="user" value="" />
<param name="password" value="" />
</driver>
<mapping href="mapping.xml" />
</database>
| Field Summary | |
static java.lang.String |
FACTORY_NAME
|
| Constructor Summary | |
InstantDBFactory()
|
|
| Method Summary | |
java.lang.Class |
adjustSqlType(java.lang.Class sqlType)
For NUMERIC type ResultSet.getObject() returns Double instead of BigDecimal for InstantDB. |
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. |
| Methods inherited from class org.exolab.castor.jdo.drivers.GenericFactory |
doubleQuoteName, quoteName |
| Methods inherited from class org.exolab.castor.jdo.engine.BaseFactory |
getPersistence, supportsSetNullInWhere |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String FACTORY_NAME
| Constructor Detail |
public InstantDBFactory()
| Method Detail |
public java.lang.String getFactoryName()
PersistenceFactory
getFactoryName in interface PersistenceFactorygetFactoryName in class GenericFactorypublic QueryExpression getQueryExpression()
PersistenceFactory
getQueryExpression in interface PersistenceFactorygetQueryExpression in class GenericFactorypublic java.lang.Boolean isDuplicateKeyException(java.lang.Exception except)
GenericFactory
isDuplicateKeyException in interface PersistenceFactoryisDuplicateKeyException in class GenericFactory
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 types
public java.lang.Class adjustSqlType(java.lang.Class sqlType)
adjustSqlType in class BaseFactorysqlType - The correspondent Java class for the SQL type in mapping.xml
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||