|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.orm.jdo.DefaultJdoDialect
org.jpox.springframework.JPOXJdoDialect
Dialect for using JPOX within Spring's JDO support, giving finer control over transactions and queries.
| Field Summary |
| Fields inherited from class org.springframework.orm.jdo.DefaultJdoDialect |
logger |
| Constructor Summary | |
JPOXJdoDialect()
|
|
| Method Summary | |
void |
applyQueryTimeout(javax.jdo.Query query,
int remainingTimeInSeconds)
Method to apply a timeout to the specified query. |
java.lang.Object |
beginTransaction(javax.jdo.Transaction transaction,
org.springframework.transaction.TransactionDefinition definition)
Method to start a transaction. |
void |
flush(javax.jdo.PersistenceManager pm)
Method to flush changes to the datastore. |
org.springframework.jdbc.datasource.ConnectionHandle |
getJdbcConnection(javax.jdo.PersistenceManager pm,
boolean readOnly)
Accessor for JDBC connection. |
void |
releaseJdbcConnection(org.springframework.jdbc.datasource.ConnectionHandle conHandle,
javax.jdo.PersistenceManager pm)
Method to release a previously obtained connection. |
| Methods inherited from class org.springframework.orm.jdo.DefaultJdoDialect |
attachCopy, attachCopyAll, cleanupTransaction, detachCopy, detachCopyAll, extractSqlStringFromException, getJdbcExceptionTranslator, getPersistenceManagerFactory, newNamedQuery, setJdbcExceptionTranslator, setPersistenceManagerFactory, translateException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JPOXJdoDialect()
| Method Detail |
public java.lang.Object beginTransaction(javax.jdo.Transaction transaction,
org.springframework.transaction.TransactionDefinition definition)
throws javax.jdo.JDOException
transaction - The transaction to startdefinition - Definition of the transaction
javax.jdo.JDOException
public org.springframework.jdbc.datasource.ConnectionHandle getJdbcConnection(javax.jdo.PersistenceManager pm,
boolean readOnly)
throws java.sql.SQLException
pm - The Persistence ManagerreadOnly - Whether to open it read only
java.sql.SQLException - Thrown if an error occurs in accessing it
public void releaseJdbcConnection(org.springframework.jdbc.datasource.ConnectionHandle conHandle,
javax.jdo.PersistenceManager pm)
throws java.sql.SQLException
conHandle - The Connection handlepm - The PersistenceManager
java.sql.SQLException - Thrown if an error occurs in returning it
public void applyQueryTimeout(javax.jdo.Query query,
int remainingTimeInSeconds)
throws javax.jdo.JDOException
query - The queryremainingTimeInSeconds - The timeout to apply
javax.jdo.JDOException - Thrown when an error occurs setting the timeout.
public void flush(javax.jdo.PersistenceManager pm)
throws javax.jdo.JDOException
pm - The Persistence Manager
javax.jdo.JDOException - Thrown if an error occurs in flushing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||