org.exolab.castor.jdo.drivers
public class InstantDBFactory extends GenericFactory
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>
Version: 1.0
| Method Summary | |
|---|---|
| Class | adjustSqlType(Class sqlType)
For NUMERIC type ResultSet.getObject() returns Double instead of
BigDecimal for InstantDB. |
| 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) |
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.