org.usergrid.persistence.cassandra
Class ConnectedEntityRefImpl

java.lang.Object
  extended by org.usergrid.persistence.SimpleEntityRef
      extended by org.usergrid.persistence.cassandra.ConnectedEntityRefImpl
All Implemented Interfaces:
ConnectedEntityRef, EntityRef

public class ConnectedEntityRefImpl
extends SimpleEntityRef
implements ConnectedEntityRef


Field Summary
 
Fields inherited from class org.usergrid.persistence.SimpleEntityRef
id, NULL_ID, type
 
Constructor Summary
ConnectedEntityRefImpl()
           
ConnectedEntityRefImpl(EntityRef ref)
           
ConnectedEntityRefImpl(String connectionType, EntityRef connectedEntity)
           
ConnectedEntityRefImpl(String connectionType, String entityType, UUID entityId)
           
ConnectedEntityRefImpl(UUID entityId)
           
 
Method Summary
static UUID getConnectedEntityId(ConnectedEntityRef connection)
           
static String getConnectedEntityType(ConnectedEntityRef connection)
           
 String getConnectionType()
           
static String getConnectionType(ConnectedEntityRef connection)
           
 
Methods inherited from class org.usergrid.persistence.SimpleEntityRef
equals, getType, getType, getUuid, getUuid, hashCode, ref, ref, ref, ref, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.usergrid.persistence.EntityRef
getType, getUuid
 

Constructor Detail

ConnectedEntityRefImpl

public ConnectedEntityRefImpl()

ConnectedEntityRefImpl

public ConnectedEntityRefImpl(UUID entityId)

ConnectedEntityRefImpl

public ConnectedEntityRefImpl(EntityRef ref)

ConnectedEntityRefImpl

public ConnectedEntityRefImpl(String connectionType,
                              EntityRef connectedEntity)

ConnectedEntityRefImpl

public ConnectedEntityRefImpl(String connectionType,
                              String entityType,
                              UUID entityId)
Method Detail

getConnectionType

public String getConnectionType()
Specified by:
getConnectionType in interface ConnectedEntityRef

getConnectionType

public static String getConnectionType(ConnectedEntityRef connection)

getConnectedEntityId

public static UUID getConnectedEntityId(ConnectedEntityRef connection)

getConnectedEntityType

public static String getConnectedEntityType(ConnectedEntityRef connection)


Copyright © 2013. All Rights Reserved.