Package cz.cvut.kbss.jopa.sessions
Class ChangeTrackingUnitOfWork
java.lang.Object
cz.cvut.kbss.jopa.sessions.AbstractSession
cz.cvut.kbss.jopa.sessions.AbstractUnitOfWork
cz.cvut.kbss.jopa.sessions.ChangeTrackingUnitOfWork
- All Implemented Interfaces:
- ConfigurationHolder,- MetamodelProvider,- UnitOfWork,- Wrapper
- 
Field SummaryFields inherited from class cz.cvut.kbss.jopa.sessions.AbstractUnitOfWorkLOGFields inherited from class cz.cvut.kbss.jopa.sessions.AbstractSessionconfiguration
- 
Constructor SummaryConstructorsConstructorDescriptionChangeTrackingUnitOfWork(AbstractSession parent, Configuration configuration) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidattributeChanged(Object entity, FieldSpecification<?, ?> fieldSpec) Persists changed value of the specified field.voidattributeChanged(Object entity, Field f) Persists changed value of the specified field.createIndirectCollection(Object collection, Object owner, Field field) Creates an indirect collection, which wraps the specified collection instance and propagates changes to the persistence context.protected voidprotected <T> TreadObjectInternal(Class<T> cls, Object identifier, Descriptor descriptor) voidregisterNewObject(Object entity, Descriptor descriptor) Registers the specified new object in this Unit of Work.voidremoveObject(Object entity) Remove the given object from the repository.voidunregisterObject(Object object) Detaches the specified registered object from this Unit of Work.Methods inherited from class cz.cvut.kbss.jopa.sessions.AbstractUnitOfWorkacquireConnection, begin, clear, commit, contains, copyChangeSet, entityType, evictAfterMerge, getCloneForOriginal, getContexts, getCriteriaBuilder, getFieldDescriptor, getInstanceForMerge, getLiveObjectCache, getLoadStateRegistry, getManagedOriginal, getMetamodel, getOriginal, getReference, getState, getState, hasChanges, isActive, isConsistent, isEntityType, isFlushingChanges, isInferred, isInRepository, isInTransaction, isLoaded, isLoaded, isObjectManaged, isObjectNew, isReadOnly, loadEntityField, markCloneForDeletion, mergeDetached, processInferredValueChanges, putObjectIntoCache, readObject, readObjectFromAxioms, readObjectWithoutRegistration, refreshObject, registerExistingObject, registerExistingObject, registerOriginalForNewClone, release, removeIndirectWrappersAndProxies, removeObjectFromCache, restoreRemovedObject, rollback, sparqlQueryFactory, stringify, unregisterEntityFromOntologyContext, unwrap, writeUncommittedChangesMethods inherited from class cz.cvut.kbss.jopa.sessions.AbstractSessiongetConfigurationMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cz.cvut.kbss.jopa.sessions.ConfigurationHoldergetConfigurationMethods inherited from interface cz.cvut.kbss.jopa.sessions.MetamodelProvidergetNamedQueryManager, getResultSetMappingManager
- 
Constructor Details- 
ChangeTrackingUnitOfWork
 
- 
- 
Method Details- 
readObjectInternal- Overrides:
- readObjectInternalin class- AbstractUnitOfWork
 
- 
createIndirectCollectionCreates an indirect collection, which wraps the specified collection instance and propagates changes to the persistence context.- Parameters:
- collection- Collection to be proxied
- owner- Collection owner instance
- field- Field filled with the collection
- Returns:
- Indirect collection
 
- 
detachAllManagedInstancesprotected void detachAllManagedInstances()
- 
attributeChangedDescription copied from interface:UnitOfWorkPersists changed value of the specified field.- Parameters:
- entity- Entity with changes (the clone)
- f- The field whose value has changed
- See Also:
 
- 
attributeChangedDescription copied from interface:UnitOfWorkPersists changed value of the specified field.- Parameters:
- entity- Entity with changes (the clone)
- fieldSpec- Metamodel element representing the attribute that changed
 
- 
registerNewObjectDescription copied from interface:UnitOfWorkRegisters the specified new object in this Unit of Work.The object will be persisted into the context specified by descriptor.- Specified by:
- registerNewObjectin interface- UnitOfWork
- Overrides:
- registerNewObjectin class- AbstractUnitOfWork
- Parameters:
- entity- The object to register
- descriptor- Entity descriptor
 
- 
unregisterObjectDescription copied from interface:UnitOfWorkDetaches the specified registered object from this Unit of Work.- Specified by:
- unregisterObjectin interface- UnitOfWork
- Overrides:
- unregisterObjectin class- AbstractUnitOfWork
- Parameters:
- object- Clone to detach
 
- 
removeObjectDescription copied from interface:UnitOfWorkRemove the given object from the repository.- Parameters:
- entity- Object to remove
 
 
-