org.garret.perst
Class Key

java.lang.Object
  extended byorg.garret.perst.Key

public class Key
extends java.lang.Object

Class for specifying key value (needed to access obejct by key usig index)


Field Summary
 double dval
           
 int inclusion
           
 int ival
           
 long lval
           
 java.lang.Object oval
           
 int type
           
 
Constructor Summary
Key(boolean v)
          Constructor of boolean key (boundary is inclusive)
Key(boolean v, boolean inclusive)
          Constructor of boolean key
Key(byte v)
          Constructor of byte key (boundary is inclusive)
Key(byte[] v)
          Constructor of array of byte key (boundary is inclusive)
Key(byte[] v, boolean inclusive)
          Constructor of byte array key
Key(byte v, boolean inclusive)
          Constructor of byte key
Key(char v)
          Constructor of char key (boundary is inclusive)
Key(char[] v)
          Constructor of array of char key (boundary is inclusive)
Key(char[] v, boolean inclusive)
          Constructor of array of char key
Key(char v, boolean inclusive)
          Constructor of char key
Key(java.lang.Comparable v)
          Constructor of key of user defined type (boundary is inclusive)
Key(java.lang.Comparable v, boolean inclusive)
          Constructor of key of used defined type
Key(java.util.Date v)
          Constructor of date key (boundary is inclusive)
Key(java.util.Date v, boolean inclusive)
          Constructor of date key
Key(double v)
          Constructor of double key (boundary is inclusive)
Key(double v, boolean inclusive)
          Constructor of double key
Key(float v)
          Constructor of float key (boundary is inclusive)
Key(float v, boolean inclusive)
          Constructor of float key
Key(int v)
          Constructor of int key (boundary is inclusive)
Key(int v, boolean inclusive)
          Constructor of int key
Key(IPersistent v)
          Constructor of key with persistent object reference (boundary is inclusive)
Key(IPersistent v, boolean inclusive)
          Constructor of key with persistent object reference
Key(long v)
          Constructor of long key (boundary is inclusive)
Key(long v, boolean inclusive)
          Constructor of long key
Key(java.lang.Object[] v)
          Constructor of compound key (boundary is inclusive)
Key(java.lang.Object[] v, boolean inclusive)
          Constructor of compound key
Key(java.lang.Object v1, java.lang.Object v2)
          Constructor of compound key with two values (boundary is inclusive)
Key(java.lang.Object v1, java.lang.Object v2, boolean inclusive)
          Constructor of compound key with two values
Key(short v)
          Constructor of short key (boundary is inclusive)
Key(short v, boolean inclusive)
          Constructor of short key
Key(java.lang.String v)
          Constructor of string key (boundary is inclusive)
Key(java.lang.String v, boolean inclusive)
          Constructor of string key
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dval

public final double dval

inclusion

public final int inclusion

ival

public final int ival

lval

public final long lval

oval

public final java.lang.Object oval

type

public final int type
Constructor Detail

Key

public Key(boolean v)
Constructor of boolean key (boundary is inclusive)


Key

public Key(boolean v,
           boolean inclusive)
Constructor of boolean key

Parameters:
v - key value
inclusive - whether boundary is inclusive or exclusive

Key

public Key(byte v)
Constructor of byte key (boundary is inclusive)


Key

public Key(byte[] v)
Constructor of array of byte key (boundary is inclusive)


Key

public Key(byte[] v,
           boolean inclusive)
Constructor of byte array key

Parameters:
v - byte array value
inclusive - whether boundary is inclusive or exclusive

Key

public Key(byte v,
           boolean inclusive)
Constructor of byte key

Parameters:
v - key value
inclusive - whether boundary is inclusive or exclusive

Key

public Key(char v)
Constructor of char key (boundary is inclusive)


Key

public Key(char[] v)
Constructor of array of char key (boundary is inclusive)


Key

public Key(char[] v,
           boolean inclusive)
Constructor of array of char key

Parameters:
v - key value
inclusive - whether boundary is inclusive or exclusive

Key

public Key(char v,
           boolean inclusive)
Constructor of char key

Parameters:
v - key value
inclusive - whether boundary is inclusive or exclusive

Key

public Key(java.lang.Comparable v)
Constructor of key of user defined type (boundary is inclusive)

Parameters:
v - user defined value

Key

public Key(java.lang.Comparable v,
           boolean inclusive)
Constructor of key of used defined type

Parameters:
v - array of key values
inclusive - whether boundary is inclusive or exclusive

Key

public Key(java.util.Date v)
Constructor of date key (boundary is inclusive)


Key

public Key(java.util.Date v,
           boolean inclusive)
Constructor of date key

Parameters:
v - key value
inclusive - whether boundary is inclusive or exclusive

Key

public Key(double v)
Constructor of double key (boundary is inclusive)


Key

public Key(double v,
           boolean inclusive)
Constructor of double key

Parameters:
v - key value
inclusive - whether boundary is inclusive or exclusive

Key

public Key(float v)
Constructor of float key (boundary is inclusive)


Key

public Key(float v,
           boolean inclusive)
Constructor of float key

Parameters:
v - key value
inclusive - whether boundary is inclusive or exclusive

Key

public Key(int v)
Constructor of int key (boundary is inclusive)


Key

public Key(int v,
           boolean inclusive)
Constructor of int key

Parameters:
v - key value
inclusive - whether boundary is inclusive or exclusive

Key

public Key(IPersistent v)
Constructor of key with persistent object reference (boundary is inclusive)


Key

public Key(IPersistent v,
           boolean inclusive)
Constructor of key with persistent object reference

Parameters:
v - key value
inclusive - whether boundary is inclusive or exclusive

Key

public Key(long v)
Constructor of long key (boundary is inclusive)


Key

public Key(long v,
           boolean inclusive)
Constructor of long key

Parameters:
v - key value
inclusive - whether boundary is inclusive or exclusive

Key

public Key(java.lang.Object[] v)
Constructor of compound key (boundary is inclusive)

Parameters:
v - array of compound key values

Key

public Key(java.lang.Object[] v,
           boolean inclusive)
Constructor of compound key

Parameters:
v - array of key values
inclusive - whether boundary is inclusive or exclusive

Key

public Key(java.lang.Object v1,
           java.lang.Object v2)
Constructor of compound key with two values (boundary is inclusive)

Parameters:
v1 - first value of compund key
v2 - second value of compund key

Key

public Key(java.lang.Object v1,
           java.lang.Object v2,
           boolean inclusive)
Constructor of compound key with two values

Parameters:
v1 - first value of compund key
v2 - second value of compund key
inclusive - whether boundary is inclusive or exclusive

Key

public Key(short v)
Constructor of short key (boundary is inclusive)


Key

public Key(short v,
           boolean inclusive)
Constructor of short key

Parameters:
v - key value
inclusive - whether boundary is inclusive or exclusive

Key

public Key(java.lang.String v)
Constructor of string key (boundary is inclusive)


Key

public Key(java.lang.String v,
           boolean inclusive)
Constructor of string key

Parameters:
v - key value
inclusive - whether boundary is inclusive or exclusive