org.usergrid.persistence
Class DynamicEntity

java.lang.Object
  extended by org.usergrid.persistence.AbstractEntity
      extended by org.usergrid.persistence.DynamicEntity
All Implemented Interfaces:
Comparable<Entity>, Entity, EntityRef

public class DynamicEntity
extends AbstractEntity

Dynamic entities can represent any entity type whether specified in the Schema or not.

Author:
edanuff

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

Field Detail

type

protected String type
Constructor Detail

DynamicEntity

public DynamicEntity()

DynamicEntity

public DynamicEntity(UUID id)
Parameters:
id -

DynamicEntity

public DynamicEntity(String type)
Parameters:
type -

DynamicEntity

public DynamicEntity(String type,
                     UUID id)
Parameters:
id -
type -

DynamicEntity

public DynamicEntity(String type,
                     UUID id,
                     Map<String,Object> propertyMap)
Parameters:
id -
type -
Method Detail

getType

public String getType()
Description copied from interface: EntityRef
Gets the type.

Specified by:
getType in interface Entity
Specified by:
getType in interface EntityRef
Overrides:
getType in class AbstractEntity
Returns:
the type

setType

public void setType(String type)
Specified by:
setType in interface Entity
Overrides:
setType in class AbstractEntity


Copyright © 2013. All Rights Reserved.