public class TestEntityStates extends EntityStates
checker, metadata, 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, getCurrentView, getEntityName, isDeleted, isDetached, isLoadedWithView, isLoadedWithView, isLoadedWithView, isManaged, isNew, isSoftDeleted, makeDetached, makePatch, recursivelyGetCurrentViewpublic boolean isLoaded(java.lang.Object entity,
java.lang.String property)
EntityStatesNon-persistent attributes are considered loaded if they do not have related properties, or all related properties are loaded.
isLoaded in class EntityStatesentity - entityproperty - name of the property. Only immediate attributes of the entity are supported.public void checkLoaded(java.lang.Object entity,
java.lang.String... properties)
EntityStatescheckLoaded in class EntityStatesentity - entityproperties - property names