org.datanucleus.metadata
Class IndexedValue

java.lang.Object
  extended by org.datanucleus.metadata.IndexedValue
All Implemented Interfaces:
java.io.Serializable

public class IndexedValue
extends java.lang.Object
implements java.io.Serializable

Representation of whether an item is indexed or not.

See Also:
Serialized Form

Field Summary
static IndexedValue FALSE
          indexed false
static IndexedValue TRUE
          indexed true
static IndexedValue UNIQUE
          indexed unique
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
static IndexedValue getIndexedValue(java.lang.String value)
          Obtain a IndexedValue for the given name by value
 int getType()
          Accessor for the type.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRUE

public static final IndexedValue TRUE
indexed true


FALSE

public static final IndexedValue FALSE
indexed false


UNIQUE

public static final IndexedValue UNIQUE
indexed unique

Method Detail

equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
o - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.

getType

public int getType()
Accessor for the type.

Returns:
Type

getIndexedValue

public static IndexedValue getIndexedValue(java.lang.String value)
Obtain a IndexedValue for the given name by value

Parameters:
value - the name
Returns:
the IndexedValue found or IndexedValue.TRUE if not found. If value is null, returns null.


Copyright © 2010. All Rights Reserved.