org.usergrid.persistence
Class DynamicEntity
java.lang.Object
org.usergrid.persistence.AbstractEntity
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
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 |
type
protected String type
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
-
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.