Package cz.cvut.kbss.jopa.sessions
Class OnCommitChangePropagatingUnitOfWork
java.lang.Object
cz.cvut.kbss.jopa.sessions.AbstractSession
cz.cvut.kbss.jopa.sessions.AbstractUnitOfWork
cz.cvut.kbss.jopa.sessions.OnCommitChangePropagatingUnitOfWork
- 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 SummaryConstructorsConstructorDescriptionOnCommitChangePropagatingUnitOfWork(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 that wraps the specified collection instance and propagates changes to this persistence context.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, readObjectInternal, readObjectWithoutRegistration, refreshObject, registerExistingObject, registerExistingObject, registerNewObject, 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- 
OnCommitChangePropagatingUnitOfWork
 
- 
- 
Method Details- 
removeObjectDescription copied from interface:UnitOfWorkRemove the given object from the repository.- Parameters:
- entity- Object to remove
 
- 
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
 
- 
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
 
- 
createIndirectCollectionDescription copied from interface:UnitOfWorkCreates an indirect collection that wraps the specified collection instance and propagates changes to this persistence context.- Parameters:
- collection- Collection to be proxied
- owner- Collection owner instance
- field- Field filled with the collection
- Returns:
- Indirect collection
 
 
-