org.modeshape.connector.store.jpa.model.basic
Class NodeId

java.lang.Object
  extended by org.modeshape.connector.store.jpa.model.basic.NodeId
All Implemented Interfaces:
Serializable

@Immutable
public class NodeId
extends Object
implements Serializable

An identifier for a node, comprised of a single UUID, and embeddable in a persistent entity. The identifier takes the form of two long columns: one for the UUID's most significant bits and one for its least significant bits.

See Also:
Serialized Form

Constructor Summary
NodeId()
           
NodeId(Long workspaceId, String uuidString)
           
 
Method Summary
 boolean equals(Object obj)
          
 String getUuidString()
           
 Long getWorkspaceId()
           
 int hashCode()
          
 void setUuidString(String uuidString)
           
 void setWorkspaceId(Long workspaceId)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeId

public NodeId()

NodeId

public NodeId(Long workspaceId,
              String uuidString)
Method Detail

getUuidString

public String getUuidString()
Returns:
uuidString

setUuidString

public void setUuidString(String uuidString)
Parameters:
uuidString - Sets uuidString to the specified value.

getWorkspaceId

public Long getWorkspaceId()
Returns:
workspaceId

setWorkspaceId

public void setWorkspaceId(Long workspaceId)
Parameters:
workspaceId - Sets workspaceId to the specified value.

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-2010 JBoss, a division of Red Hat. All Rights Reserved.