org.jboss.dna.connector.store.jpa.model.basic
Class ChildId

java.lang.Object
  extended by org.jboss.dna.connector.store.jpa.model.basic.ChildId
All Implemented Interfaces:
Serializable

@Immutable
public class ChildId
extends Object
implements Serializable

A unique identifer for a parent-child relationship.

Author:
Randall Hauch
See Also:
Serialized Form

Constructor Summary
ChildId()
           
ChildId(Long workspaceId, NodeId parentId, NodeId childId)
           
ChildId(Long workspaceId, String parentUuid, String childUuid)
           
 
Method Summary
 boolean equals(Object obj)
          
 String getChildUuidString()
           
 String getParentUuidString()
           
 Long getWorkspaceId()
           
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChildId

public ChildId()

ChildId

public ChildId(Long workspaceId,
               NodeId parentId,
               NodeId childId)

ChildId

public ChildId(Long workspaceId,
               String parentUuid,
               String childUuid)
Method Detail

getParentUuidString

public String getParentUuidString()
Returns:
parentUuidString

getChildUuidString

public String getChildUuidString()
Returns:
childUuidString

getWorkspaceId

public Long getWorkspaceId()
Returns:
workspaceId

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.