public class TestEntityStates extends EntityStates
checker, metadataTools, NAME, viewRepository
Constructor and Description |
---|
TestEntityStates() |
Modifier and Type | Method and Description |
---|---|
void |
checkLoaded(java.lang.Object entity,
java.lang.String... properties)
Check that entity has all specified properties loaded from DB.
|
boolean |
isLoaded(java.lang.Object entity,
java.lang.String property)
Checks if the property is loaded from DB.
|
checkLoadedWithView, checkLoadedWithView, checkLoadedWithView, getEntityName, isDeleted, isDetached, isLoadedWithView, isLoadedWithView, isLoadedWithView, isManaged, isNew, isSoftDeleted, makeDetached, makePatch
public boolean isLoaded(java.lang.Object entity, java.lang.String property)
EntityStates
Non-persistent attributes are considered loaded if they do not have related properties, or all related properties are loaded.
isLoaded
in class EntityStates
entity
- entityproperty
- name of the property. Only immediate attributes of the entity are supported.public void checkLoaded(java.lang.Object entity, java.lang.String... properties)
EntityStates
checkLoaded
in class EntityStates
entity
- entityproperties
- property names