org.exolab.castor.jdo.drivers
Class InstantDBFactory
- PersistenceFactory
public class 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>
adjustSqlType
public Class adjustSqlType(Class sqlType)
For NUMERIC type ResultSet.getObject() returns Double instead of
BigDecimal for InstantDB.
- adjustSqlType in interface BaseFactory
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.
- getCallQuery in interface 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
- null if this feature is not supported.
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com