Class Entity
java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.model.Entity
The Entity model element.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNavigationEntity(NavigationPropertyEntitySet navProperty, Entity linkedEntity) addNavigationEntity(NavigationPropertyEntitySet navProperty, Entity... linkedEntities) addNavigationEntity(NavigationPropertyEntitySet navProperty, List<Entity> linkedEntities) dao(NavigationPropertyEntitySet navigationPropery) booleanfinal IdgetId()<P> PgetProperty(NavigationPropertyEntity property) <P> PgetProperty(NavigationPropertyEntity npe, boolean autoLoad) <P> PgetProperty(Property<P> property) <P> PgetProperty(Property<P> property, boolean autoLoad) inthashCode()booleanCheck if the entity is associated with a service or not.booleanisEmpty()booleanisSetProperty(Property property) query(NavigationPropertyEntitySet navigationPropery) voidsetEntityPropertiesSet(boolean set, boolean entityPropertiesOnly) setEntityType(EntityType entityType) final Entity<P> EntitysetProperty(Property<P> property, P value) setSelfLink(String selfLink) voidsetService(SensorThingsService service) toString()unsetProperty(Property property) Creates a copy of the entity, with only the ID field set.
-
Constructor Details
-
Entity
-
Entity
-
-
Method Details
-
getId
-
setId
-
getSelfLink
-
setSelfLink
-
getEntityType
-
setEntityType
-
isSetProperty
-
getProperty
-
getProperty
-
setProperty
-
unsetProperty
-
setEntityPropertiesSet
public void setEntityPropertiesSet(boolean set, boolean entityPropertiesOnly) -
isEmpty
public boolean isEmpty() -
hasService
public boolean hasService()Check if the entity is associated with a service or not.- Returns:
- true if the entity is associated with a service.
-
getService
-
setService
-
withOnlyId
Creates a copy of the entity, with only the ID field set. Useful when creating a new entity that links to this entity.- Returns:
- a copy with only the ID field set.
-
equals
-
hashCode
public int hashCode() -
toString
-