com.sun.sgs.impl.service.data.store
Class BindingValue

java.lang.Object
  extended by com.sun.sgs.impl.service.data.store.BindingValue
All Implemented Interfaces:
Serializable

public final class BindingValue
extends Object
implements Serializable

Provides information about the value bound to a name.

See Also:
Serialized Form

Constructor Summary
BindingValue(long oid, String nextName)
          Creates an instance of this class.
 
Method Summary
 String getNextName()
          Returns the next name, if the requested name was not found, otherwise returns null.
 long getObjectId()
          Returns the object ID that the requested name was bound to, or -1 if the name was not bound.
 boolean isNameBound()
          Returns whether the name was bound.
 String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BindingValue

public BindingValue(long oid,
                    String nextName)
Creates an instance of this class.

Parameters:
oid - the value of the requested name or -1
nextName - the next name or null
Throws:
IllegalArgumentException - if oid is less than -1
Method Detail

isNameBound

public boolean isNameBound()
Returns whether the name was bound.

Returns:
true if the name was bound, otherwise false

getObjectId

public long getObjectId()
Returns the object ID that the requested name was bound to, or -1 if the name was not bound.

Returns:
the object ID or -1

getNextName

public String getNextName()
Returns the next name, if the requested name was not found, otherwise returns null. The value will also be null if there was no bound name after the requested name.

Returns:
the next name or null

toString

public String toString()
Returns a string representation of this object.

Overrides:
toString in class Object
Returns:
a string representation of this object

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved