org.usergrid.persistence
Class SimpleCollectionRef

java.lang.Object
  extended by org.usergrid.persistence.SimpleCollectionRef
All Implemented Interfaces:
AssociatedEntityRef, CollectionRef, EntityRef

public class SimpleCollectionRef
extends Object
implements CollectionRef


Field Summary
protected  String collectionName
           
protected  UUID id
           
protected  EntityRef itemRef
           
static String MEMBER_ENTITY_TYPE
           
protected  EntityRef ownerRef
           
protected  String type
           
 
Constructor Summary
SimpleCollectionRef(EntityRef ownerRef, String collectionName, EntityRef itemRef)
           
 
Method Summary
 String getCollectionName()
           
 EntityRef getItemRef()
           
 EntityRef getOwnerEntity()
           
 String getType()
          Gets the type.
 UUID getUuid()
          Gets the id.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MEMBER_ENTITY_TYPE

public static final String MEMBER_ENTITY_TYPE
See Also:
Constant Field Values

ownerRef

protected final EntityRef ownerRef

collectionName

protected final String collectionName

itemRef

protected final EntityRef itemRef

type

protected final String type

id

protected final UUID id
Constructor Detail

SimpleCollectionRef

public SimpleCollectionRef(EntityRef ownerRef,
                           String collectionName,
                           EntityRef itemRef)
Method Detail

getOwnerEntity

public EntityRef getOwnerEntity()
Specified by:
getOwnerEntity in interface CollectionRef

getCollectionName

public String getCollectionName()
Specified by:
getCollectionName in interface CollectionRef

getItemRef

public EntityRef getItemRef()
Specified by:
getItemRef in interface CollectionRef

getUuid

public UUID getUuid()
Description copied from interface: EntityRef
Gets the id.

Specified by:
getUuid in interface EntityRef
Returns:
the id

getType

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

Specified by:
getType in interface EntityRef
Returns:
the type

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.