org.usergrid.persistence
Class EntityFactory

java.lang.Object
  extended by org.usergrid.persistence.EntityFactory

public class EntityFactory
extends Object

A factory for creating Entity objects.


Constructor Summary
EntityFactory()
           
 
Method Summary
static
<A extends Entity>
A
newEntity(UUID id, Class<A> entityClass)
          New entity.
static Entity newEntity(UUID id, String type)
          New entity.
static
<A extends Entity>
A
newEntity(UUID id, String type, Class<A> entityClass)
          New entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityFactory

public EntityFactory()
Method Detail

newEntity

public static <A extends Entity> A newEntity(UUID id,
                                             String type,
                                             Class<A> entityClass)
New entity.

Type Parameters:
A - the generic type
Parameters:
id - the id
type - the type
entityClass - the entity class
Returns:
new entity

newEntity

public static <A extends Entity> A newEntity(UUID id,
                                             Class<A> entityClass)
New entity.

Type Parameters:
A - the generic type
Parameters:
id - the id
entityClass - the entity class
Returns:
new entity

newEntity

public static Entity newEntity(UUID id,
                               String type)
New entity.

Parameters:
id - the id
type - the type
Returns:
new entity


Copyright © 2013. All Rights Reserved.