|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.otm.OTMKit
org.apache.ojb.otm.kit.SimpleKit
public class SimpleKit
A base implementation of an OTMKit using local transactions, an in-memory lock map, and metadata based object copying for object swizzling in transactional contexts.
| Field Summary | |
|---|---|
protected ObjectCopyStrategy |
_cloneableCopyStrategy
|
protected ObjectCopyStrategy |
_defaultCopyStrategy
|
private static SimpleKit |
_instance
|
protected LockMap |
_lockMap
|
protected LockWaitStrategy |
_lockWaitStrategy
|
protected ObjectCopyStrategy |
_noOpCopyStrategy
|
protected Swizzling |
_swizzlingStrategy
|
protected TransactionFactory |
_txFactory
|
| Constructor Summary | |
|---|---|
protected |
SimpleKit()
Constructor for SimpleKit. |
| Method Summary | |
|---|---|
ObjectCopyStrategy |
getCopyStrategy(Identity oid)
|
static SimpleKit |
getInstance()
Obtain the single instance of SimpleKit |
LockMap |
getLockMap()
|
LockWaitStrategy |
getLockWaitStrategy()
|
Swizzling |
getSwizzlingStrategy()
|
protected TransactionFactory |
getTransactionFactory()
|
boolean |
isEagerInsert(Object obj)
Should OTM perform INSERTs for the given object eagerly or during commit? |
boolean |
isImplicitLockingUsed()
Should OTM implicitely lock all objects that are reachable from the explicitely locked object? The updates to the locked objects are automatically stored to the database at the end of transaction. |
boolean |
isInsertVerified()
Should OTM verify each inserted object for presence in the database? |
| Methods inherited from class org.apache.ojb.otm.OTMKit |
|---|
acquireConnection, getTransaction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static SimpleKit _instance
protected TransactionFactory _txFactory
protected Swizzling _swizzlingStrategy
protected LockWaitStrategy _lockWaitStrategy
protected LockMap _lockMap
protected ObjectCopyStrategy _noOpCopyStrategy
protected ObjectCopyStrategy _defaultCopyStrategy
protected ObjectCopyStrategy _cloneableCopyStrategy
| Constructor Detail |
|---|
protected SimpleKit()
| Method Detail |
|---|
public static SimpleKit getInstance()
protected TransactionFactory getTransactionFactory()
getTransactionFactory in class OTMKitOTMKit.getTransactionFactory()public Swizzling getSwizzlingStrategy()
getSwizzlingStrategy in interface KitgetSwizzlingStrategy in class OTMKitOTMKit.getSwizzlingStrategy()public LockWaitStrategy getLockWaitStrategy()
getLockWaitStrategy in interface KitgetLockWaitStrategy in class OTMKitOTMKit.getLockWaitStrategy()public LockMap getLockMap()
getLockMap in interface KitgetLockMap in class OTMKitOTMKit.getLockMap()public ObjectCopyStrategy getCopyStrategy(Identity oid)
getCopyStrategy in interface KitgetCopyStrategy in class OTMKitOTMKit.getCopyStrategy(Identity)public boolean isImplicitLockingUsed()
isImplicitLockingUsed in interface KitisImplicitLockingUsed in class OTMKitpublic boolean isInsertVerified()
isInsertVerified in class OTMKitpublic boolean isEagerInsert(Object obj)
isEagerInsert in class OTMKit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||