org.usergrid.persistence
Class TypedEntity

java.lang.Object
  extended by org.usergrid.persistence.AbstractEntity
      extended by org.usergrid.persistence.TypedEntity
All Implemented Interfaces:
Comparable<Entity>, Entity, EntityRef
Direct Known Subclasses:
Activity, Application, Asset, Device, Event, Folder, Group, Message, Role, User

public abstract class TypedEntity
extends AbstractEntity

TypedEntity is the abstract superclass for all typed entities. A typed entity refers to an entity that has a concrete Java class mapped to it. Entities do not need to have concrete typed classes, the service interacts with entities in an entirely dynamic fashion and uses the Schema class to determine relationships and property types, however using the typed entity classes can be more convenient.

Author:
edanuff

Field Summary
 
Fields inherited from class org.usergrid.persistence.AbstractEntity
created, dynamic_properties, dynamic_sets, modified, uuid
 
Constructor Summary
TypedEntity()
           
 
Method Summary
 Entity toTypedEntity()
           
 
Methods inherited from class org.usergrid.persistence.AbstractEntity
addProperties, clearDataset, clearMetadata, compareTo, getCollections, getConnections, getCreated, getDataset, getDynamicProperties, getMetadata, getModified, getName, getProperties, getProperty, getType, getUuid, mergeDataset, mergeMetadata, setCollections, setConnections, setCreated, setDataset, setDynamicProperty, setMetadata, setModified, setProperties, setProperty, setType, setUuid, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypedEntity

public TypedEntity()
Method Detail

toTypedEntity

public Entity toTypedEntity()
Specified by:
toTypedEntity in interface Entity
Overrides:
toTypedEntity in class AbstractEntity


Copyright © 2013. All Rights Reserved.