|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.makumba.Pointer
public class Pointer
This class represents an abstract makumba pointer. It is up to the concrete database to represent it. Pointer values are returned by the database inserts and queries, they cannot be constructed explicitely.
Field Summary | |
---|---|
protected static int |
MASK_ORDER
|
protected long |
n
|
static Object |
Null
null constant for pointers |
static Object |
NullBoolean
null constant for booleans |
static Object |
NullDate
null constant for dates |
static Object |
NullInteger
null constant for integers |
static Object |
NullReal
null constant for real numbers |
static Object |
NullSet
null constant for external sets |
static Object |
NullString
null constant for characters |
static Object |
NullText
null constant for texts |
protected String |
type
|
Constructor Summary | |
---|---|
protected |
Pointer()
|
|
Pointer(String type,
String externalForm)
Constructs a pointer for the given type from the given external form. |
Method Summary | |
---|---|
boolean |
equals(Object o)
see if this Pointer is equal with the object provided |
int |
getDbsv()
Get the database identifier of the database where the pointed record was created |
int |
getId()
gets the int value of the db-level id |
String |
getType()
Get the makumba type of the pointed object |
int |
getUid()
Get the unique index of the pointer within the parent database and the respective type |
int |
hashCode()
A hash code for this pointer |
static boolean |
isNullObject(Object o)
|
long |
longValue()
Utility method to combine DBSV and UID in one long value |
String |
toExternalForm()
encode in external format |
String |
toString()
generate a printable format |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final int MASK_ORDER
protected long n
protected String type
public static Object Null
public static Object NullInteger
public static Object NullReal
public static Object NullString
public static Object NullText
public static Object NullDate
public static Object NullSet
public static final Object NullBoolean
Constructor Detail |
---|
protected Pointer()
public Pointer(String type, String externalForm)
type
- The makumba type of the pointer. externalForm
- The value of the Pointer in its external form, as derived by the toExternalForm()
method or
via the makumba tag library. Method Detail |
---|
public int getDbsv()
public int getUid()
public String getType()
public String toString()
toString
in class Object
public static boolean isNullObject(Object o)
public String toExternalForm()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public long longValue()
public int getId()
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |