| com.sleepycat.persist.raw.RawType
All known Subclasses: com.sleepycat.persist.impl.Format,
RawType | public interface RawType (Code) | | The type definition for a simple or complex persistent type, or an array
of persistent types.
RawType objects are thread-safe. Multiple threads may safely
call the methods of a shared
RawType object.
author: Mark Hayes |
Method Summary | |
String | getClassName() Returns the class name for this type in the format specified by
Class.getName .
If this class currently exists (has not been removed or renamed) then
the class name may be passed to
Class.forName to get the current
Class object. | RawType | getComponentType() Returns the array component type, or null if this is not an array type. | int | getDimensions() Returns the number of array dimensions, or zero if this is not an array
type. | List<String> | getEnumConstants() Returns an unmodifiable list of the names of the enum instances, or null
if this is not an enum type. | Map<String, RawField> | getFields() Returns a map of field name to raw field for each non-static
non-transient field declared in this class, or null if this is not a
complex type (in other words, this is a simple type or an array type). | RawType | getSuperType() Returns the type of the superclass, or null if the superclass is Object
or this is not a complex type (in other words, this is a simple type or
an array type). | int | getVersion() Returns the class version for this type. | boolean | isArray() Returns whether this is an array type. | boolean | isEnum() Returns whether this is an enum type. | boolean | isPrimitive() Returns whether this type is a Java primitive: char, byte, short, int,
long, float or double.
If true is returned, this is also a simple type. | boolean | isSimple() |
getClassName | String getClassName()(Code) | | Returns the class name for this type in the format specified by
Class.getName .
If this class currently exists (has not been removed or renamed) then
the class name may be passed to
Class.forName to get the current
Class object. However, if this raw type is not the current
version of the class, this type information may differ from that of the
current
Class .
|
getComponentType | RawType getComponentType()(Code) | | Returns the array component type, or null if this is not an array type.
|
getDimensions | int getDimensions()(Code) | | Returns the number of array dimensions, or zero if this is not an array
type.
|
getEnumConstants | List<String> getEnumConstants()(Code) | | Returns an unmodifiable list of the names of the enum instances, or null
if this is not an enum type.
|
getFields | Map<String, RawField> getFields()(Code) | | Returns a map of field name to raw field for each non-static
non-transient field declared in this class, or null if this is not a
complex type (in other words, this is a simple type or an array type).
|
getSuperType | RawType getSuperType()(Code) | | Returns the type of the superclass, or null if the superclass is Object
or this is not a complex type (in other words, this is a simple type or
an array type).
|
isEnum | boolean isEnum()(Code) | | Returns whether this is an enum type.
If true is returned, a value of this type is a
RawObject and
the enum constant String is available via
RawObject.getEnum .
If false is returned, then this is a complex type, an array type (see
RawType.isArray ), or a simple type (see
RawType.isSimple ).
|
isPrimitive | boolean isPrimitive()(Code) | | Returns whether this type is a Java primitive: char, byte, short, int,
long, float or double.
If true is returned, this is also a simple type. In other words,
primitive types are a subset of simple types.
If true is returned, a raw value of this type is represented as a
non-null instance of the primitive type's wrapper class. For example,
an int raw value is represented as an
Integer .
|
isSimple | boolean isSimple()(Code) | | |
|
|