class VersionAttachStrategy extends AttachStrategy implements DetachState
dblval, field, longval, objval
DETACH_ALL, DETACH_FETCH_GROUPS, DETACH_FGS, DETACH_LOADED
Constructor and Description |
---|
VersionAttachStrategy() |
Modifier and Type | Method and Description |
---|---|
Object |
attach(AttachManager manager,
Object toAttach,
ClassMetaData meta,
PersistenceCapable into,
OpenJPAStateManager owner,
ValueMetaData ownerMeta,
boolean explicit)
Attach.
|
protected PersistenceCapable |
findFromDatabase(AttachManager manager,
Object pc)
Find a PersistenceCapable instance of an Object if it exists in the
database.
|
protected Object |
getDetachedObjectId(AttachManager manager,
Object toAttach)
Return the identity of the given detached instance.
|
protected void |
provideField(Object toAttach,
StateManagerImpl sm,
int field)
Provide the given field into this field manager.
|
attachCollection, attachField, attachMap, getReference, persist
clear, fetchBooleanField, fetchByteField, fetchCharField, fetchDoubleField, fetchFloatField, fetchIntField, fetchLongField, fetchObjectField, fetchShortField, fetchStringField, storeBooleanField, storeByteField, storeCharField, storeDoubleField, storeFloatField, storeIntField, storeLongField, storeObjectField, storeShortField, storeStringField
protected Object getDetachedObjectId(AttachManager manager, Object toAttach)
AttachStrategy
getDetachedObjectId
in class AttachStrategy
protected void provideField(Object toAttach, StateManagerImpl sm, int field)
AttachStrategy
provideField
in class AttachStrategy
public Object attach(AttachManager manager, Object toAttach, ClassMetaData meta, PersistenceCapable into, OpenJPAStateManager owner, ValueMetaData ownerMeta, boolean explicit)
AttachStrategy
attach
in class AttachStrategy
manager
- manager holding cache of attached instancestoAttach
- detached instancemeta
- metadata for the instance being attachedinto
- instance we're attaching intoowner
- state manager for into
ownerMeta
- field we traversed to find toAttach
explicit
- whether to make new instances explicitly persistentprotected PersistenceCapable findFromDatabase(AttachManager manager, Object pc)
pc
- An object which will be attached into the current context. The
object may or may not correspond to a row in the database.Copyright © 2006–2013 Apache Software Foundation. All rights reserved.