public class GbjGciReport
extends java.util.Observable
implements java.lang.Cloneable
Customer applications should not directly use this class, but instead use GbjGciObject or GbjObject as appropriate. Note that for many of the public methods, we don't confirm that the client fields are up-to-date if there have been server-side object changes. Many of these methods have versions in GbjGciObject that do provide the update before calling the super-version.
The main public methods available from this class include:
int Constant --- -------------- -1: OBJTYPE_UNKNOWN 0: OBJTYPE_OOP 1: OBJTYPE_BYTE 2: OBJTYPE_NSC 3: OBJTYPE_SPECIAL
Num ValType Java Type / Class GemStone Classes --- ---------------------- --------------------- ----------------------- -1 VALTYPE_UNKNOWN 0 VALTYPE_NULL null UndefinedObject (one instance nil) 1 VALTYPE_BOOLEAN boolean Boolean 2 VALTYPE_CHARACTER char Character 3 VALTYPE_LONG byte/short/int/long SmallInteger(61 bits) or LargeInteger 4 VALTYPE_DOUBLE float/double SmallDouble/Float 5 VALTYPE_BYTES byte[] ByteArray other than Utf8, Utf16 6 VALTYPE_OOPS 7 VALTYPE_STRING String String/DoubleByteString/QuadByteString Unicode7/Unicode16/Unicode32 Symbol/DoubleByteSymbol/QuadByteSymbol Utf8 , Utf16 9 VALTYPE_CALENDAR Calendar DateTime (legacy support, deprecated) 10 VALTYPE_ZONED_DATETIME ZonedDateTime GbjZonedDateTime (subclass of DateAndTime) 11 VALTYPE_DATE_AND_TIME OffsetDateTime DateAndTime / SmallDateAndTime 12 VALTYPE_DAY LocalDate SmallDate/Date 13 VALTYPE_TIME LocalTime SmallTime/Time 14 VALTYPE_LARGE_INTEGER BigInteger LargeInteger 15 VALTYPE_SCALED_DECIMAL BigDecimal SmallScaledDecimal/ScaledDecimal 16 VALTYPE_DECIMAL_FLOAT BigDecimalFloat DecimalFloat 17 VALTYPE_FRACTION BigFraction SmallFraction/Fraction 18 VALTYPE_LOCAL_DATETIME LocalDateTime GbjLocalDateTime (subclass of DateAndTime) 19 VALTYPE_utilDATE Date GbjUtilDate (subclass of DateAndTime) 20 VALTYPE_INSTANT Instant GbjInstant (subclass of DateAndTime)
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Generate a clone of this GS object.
|
void |
debugPrint(java.io.PrintStream out)
Write to printstream a detailed multi-line string describing
the internal structure of this GbjGciReport.
|
boolean |
equals(java.lang.Object o)
Equals comparison against another java object.
|
int |
getObjType()
Returns an integer representing the type of object
as represented on the GS server.
|
long |
getOop()
Return the oop of this GS object.
|
int |
getValType()
Returns an integer representing the type of java object
cached on the client as representative of the GS server object.
|
java.lang.String |
getValTypeString()
Return the name of the GS class primarily associated with this valueType
|
int |
hashCode()
Return a hash code value for this object.
|
boolean |
isNil()
Return true if this GS object is NIL.
|
boolean |
isSpecial()
Return true if this GS object is a "special".
|
java.lang.Class |
javaClass()
Return the GS class primarily associated with this valueType
|
java.lang.Object |
javaValue()
Return the java cached value according to the valueType of this GbjGciReport.
|
java.lang.String |
toString()
Return a short string representing this GbjGciReport
|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isNil()
public boolean isSpecial()
public long getOop()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.Object javaValue()
java.lang.ClassCastException
- ArithmeticExceptionpublic void debugPrint(java.io.PrintStream out)
out
- PrintStream to write topublic java.lang.String toString()
toString
in class java.lang.Object
public int getObjType()
Possible values include:
int Constant --- --------------- -1: OJTYPE_UNKNOWN 0: OBJTYPE_OOP 1: OBJTYPE_BYTE 2: OBJTYPE_NSC 3: OBJTYPE_SPECIAL
public int getValType()
Possible values include:
int Constant Value retrieval methods --- ---------------- -------------------------------------------------- -1: VALTYPE_UNKNOWN 0: VALTYPE_NULL null 1: VALTYPE_BOOLEAN booleanValue() 2: VALTYPE_CHARACTER charValue() 3: VALTYPE_LONG byteValue(), shortValue(), intValue(), longValue() 4: VALTYPE_DOUBLE floatValue(), doubleValue() 5: VALTYPE_BYTES getBytes() 6: VALTYPE_OOPS getNamedOops(), getOops() 7: VALTYPE_STRING stringValue() 9: VALTYPE_LOCAL_DATETIME localDateTimeValue() 10: VALTYPE_ZONED_DATETIME dateTimeValue() yyyy 11: VALTYPE_DATE_AND_TIME dateAndTimeValue() 12: VALTYPE_DAY dayValue() 13: VALTYPE_TIME timeValue() 14: VALTYPE_LARGE_INTEGER bigIntegerValue() 15: VALTYPE_SCALED_DECIMAL bigDecimalValue() 16: VALTYPE_DECIMAL_FLOAT bigDecimalFloatValue() 17: VALTYPE_FRACTION bigFractionValue()Note that most of the retrieval methods can also be used on objects with object type VALTYPE_STRING, if the associated string happens to be formatted correctly for the given type.
public java.lang.String getValTypeString()
public java.lang.Class javaClass()