|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.agileclick.genorm.runtime.GenOrmGroupedConnection
public class GenOrmGroupedConnection
This behaves similar to GenOrmTransactionConnection except a connection is not held open. All records that have been modified are flushed using separate connections when commit is called on this object.
| Constructor Summary | |
|---|---|
GenOrmGroupedConnection(GenOrmDSEnvelope dse)
|
|
| Method Summary | |
|---|---|
boolean |
addToTransaction(GenOrmRecord goi)
Returns true if the record was added to a transaction returns false if there is no transaction |
void |
close()
|
void |
commit()
|
java.sql.Statement |
createStatement()
The connection will be closed when the statement is closed |
void |
flush()
Flush all modified records that are part of the current transaction |
GenOrmRecord |
getCachedRecord(GenOrmRecordKey key)
Returns the cached record if it exists, null otherwise |
java.sql.Connection |
getConnection()
|
GenOrmKeyGenerator |
getKeyGenerator(java.lang.String table)
|
java.lang.Object |
getProperty(java.lang.String name)
Gets a property set on this connection |
GenOrmRecord |
getUniqueRecord(GenOrmRecord rec)
Returns a unique record instance for this transaction. |
boolean |
isCommitted()
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql)
The connection will be closed when the statement is closed |
void |
rollback()
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets a property to be associated with this connection |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenOrmGroupedConnection(GenOrmDSEnvelope dse)
| Method Detail |
|---|
public void setProperty(java.lang.String name,
java.lang.Object value)
setProperty in interface GenOrmConnectionpublic java.lang.Object getProperty(java.lang.String name)
getProperty in interface GenOrmConnectionpublic GenOrmRecord getUniqueRecord(GenOrmRecord rec)
getUniqueRecord in interface GenOrmConnectionpublic GenOrmRecord getCachedRecord(GenOrmRecordKey key)
getCachedRecord in interface GenOrmConnectionpublic void flush()
flush in interface GenOrmConnectionpublic void commit()
commit in interface GenOrmConnectionpublic boolean isCommitted()
isCommitted in interface GenOrmConnectionpublic void close()
close in interface GenOrmConnectionpublic void rollback()
rollback in interface GenOrmConnectionpublic java.sql.Connection getConnection()
getConnection in interface GenOrmConnectionpublic GenOrmKeyGenerator getKeyGenerator(java.lang.String table)
getKeyGenerator in interface GenOrmConnectionpublic boolean addToTransaction(GenOrmRecord goi)
GenOrmConnection
addToTransaction in interface GenOrmConnection
public java.sql.Statement createStatement()
throws java.sql.SQLException
createStatement in interface GenOrmConnectionjava.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql)
throws java.sql.SQLException
prepareStatement in interface GenOrmConnectionjava.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||