Package step.core.entities
Class Entity<A extends step.core.accessors.AbstractIdentifiableObject,T extends step.core.accessors.Accessor<A>>
- java.lang.Object
-
- step.core.entities.Entity<A,T>
-
- Direct Known Subclasses:
ResourceEntity
public class Entity<A extends step.core.accessors.AbstractIdentifiableObject,T extends step.core.accessors.Accessor<A>> extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetAccessor()java.lang.Class<A>getEntityClass()java.lang.StringgetName()booleanisByPassObjectPredicate()java.lang.StringresolveAtomicReference(java.lang.Object atomicReference, EntityDependencyTreeVisitor.EntityTreeVisitorContext visitorContext)This method is responsible for the resolution of atomic references to entity idvoidsetByPassObjectPredicate(boolean byPassObjectPredicate)java.lang.ObjectupdateAtomicReference(java.lang.Object atomicReference, java.lang.String newEntityId, EntityDependencyTreeVisitor.EntityTreeVisitorContext visitorContext)This method is responsible for the update of atomic references with a new entity id
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getAccessor
public T getAccessor()
-
getEntityClass
public java.lang.Class<A> getEntityClass()
-
isByPassObjectPredicate
public boolean isByPassObjectPredicate()
-
setByPassObjectPredicate
public void setByPassObjectPredicate(boolean byPassObjectPredicate)
-
resolveAtomicReference
public java.lang.String resolveAtomicReference(java.lang.Object atomicReference, EntityDependencyTreeVisitor.EntityTreeVisitorContext visitorContext)This method is responsible for the resolution of atomic references to entity id- Parameters:
atomicReference- the atomic reference to be resolvedvisitorContext- the context object- Returns:
- the resolved entity id or null
-
updateAtomicReference
public java.lang.Object updateAtomicReference(java.lang.Object atomicReference, java.lang.String newEntityId, EntityDependencyTreeVisitor.EntityTreeVisitorContext visitorContext)This method is responsible for the update of atomic references with a new entity id- Parameters:
atomicReference- the atomic reference to be updatednewEntityId- the new entity ifvisitorContext- the context object- Returns:
- the updated atomic reference
-
-