|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.odi.Field
The Field class represents a Java field in a persistent object. Normally, you do not need to be concerned with this class. When you run the Class File Postprocessor after you compile your source files, the postprocessor annotates your class files to allow persistent storage. These annotations include references to the Field class.
Under exceptional circumstances, you might annotate your classes yourself. If you do then you must be familiar with the Field class.
The ClassField and ArrayField subtypes represent the reference and array composite types. The Field class provides a create method for each Java data type. There are separate create methods for singleton and array fields of each primitive type.
You should not create subclasses of the Field class.
Additional information about fields is in Chapter 9 of the API User Guide.
Method Summary | |
static Field |
createBoolean(String fieldName)
Creates a Field object that can hold a single Boolean value. |
static Field |
createBooleanArray(String fieldName,
int dimensions)
Creates a Field object that can hold an array of Boolean values. |
static Field |
createByte(String fieldName)
Creates a Field object that can hold a single byte. |
static Field |
createByteArray(String fieldName,
int dimensions)
Creates a Field object that can hold an array of bytes. |
static Field |
createChar(String fieldName)
Creates a Field object that can hold a single character. |
static Field |
createCharArray(String fieldName,
int dimensions)
Creates a Field object that can hold an array of characters. |
static Field |
createClass(String fieldName,
String className)
Creates a Field object that can hold a reference to a class. |
static Field |
createClassArray(String fieldName,
String className,
int dimensions)
Creates a Field object that can hold an array of references to a class. |
static Field |
createDouble(String fieldName)
Creates a Field object that can hold a single 64-bit floating-point value. |
static Field |
createDoubleArray(String fieldName,
int dimensions)
Creates a Field object that can hold an array of 64-bit floating-point values. |
static Field |
createEmbeddedString(String fieldName,
int maxSize)
Creates a Field object that can hold an embedded string value. |
static Field |
createFloat(String fieldName)
Creates a Field object that can hold a single 32-bit floating-point value. |
static Field |
createFloatArray(String fieldName,
int dimensions)
Creates a Field object that can hold an array of 32-bit floating point values. |
static Field |
createInt(String fieldName)
Creates a Field object that can hold a 32-bit integer. |
static Field |
createIntArray(String fieldName,
int dimensions)
Creates a Field object that can hold an array of 32-bit integers. |
static Field |
createInterface(String fieldName,
String interfaceName)
Creates a Field object that can hold a reference to an interface. |
static Field |
createInterfaceArray(String fieldName,
String interfaceName,
int dimensions)
Creates a Field object that can hold an array of references to an interface. |
static Field |
createLong(String fieldName)
Creates a Field object that can hold a single 64-bit integer. |
static Field |
createLongArray(String fieldName,
int dimensions)
Creates a Field object that can hold an array of 64-bit integers. |
static Field |
createShort(String fieldName)
Creates a Field object that can hold a 16-bit integer. |
static Field |
createShortArray(String fieldName,
int dimensions)
Creates a Field object that can hold an array of 16-bit integers. |
static Field |
createString(String fieldName)
Creates a Field object that can hold a single string value. |
static Field |
createStringArray(String fieldName,
int dimensions)
Creates a Field object that can hold an array of string values. |
Method Detail |
public static Field createByte(String fieldName)
fieldName
- The name of the field.
NullPointerException
- If the fieldName argument is null.public static Field createChar(String fieldName)
fieldName
- The name of the field.
NullPointerException
- If the fieldName argument is null.public static Field createShort(String fieldName)
fieldName
- The name of the field.
NullPointerException
- If the fieldName argument is null.public static Field createInt(String fieldName)
fieldName
- The name of the field.
NullPointerException
- If the fieldName argument is null.public static Field createLong(String fieldName)
fieldName
- The name of the field.
NullPointerException
- If the fieldName argument is null.public static Field createFloat(String fieldName)
fieldName
- The name of the field.
NullPointerException
- If the fieldName argument is null.public static Field createDouble(String fieldName)
fieldName
- The name of the field.
NullPointerException
- If the fieldName argument is null.public static Field createBoolean(String fieldName)
fieldName
- The name of the field.
NullPointerException
- If the fieldName argument is null.public static Field createString(String fieldName)
fieldName
- The name of the field.
NullPointerException
- If the fieldName argument is null.public static Field createEmbeddedString(String fieldName, int maxSize)
fieldName
- The name of the field.
maxSize
- The maximum length string that can be stored in the field.
NullPointerException
- If the fieldName argument is null.public static Field createClass(String fieldName, String className)
fieldName
- The name of the field.
className
- The fully qualified name of the class, including the
package, that is referenced.
NullPointerException
- If the fieldName argument or the
className argument is null.public static Field createInterface(String fieldName, String interfaceName)
fieldName
- The name of the field.
interfaceName
- The fully qualified name of the interface,
including the package, that is referenced.
NullPointerException
- If the fieldName argument or the
interfaceName argument is null.public static Field createByteArray(String fieldName, int dimensions)
fieldName
- The name of the field.
dimensions
- The number of array dimensions.
NullPointerException
- If the fieldName argument is null.public static Field createCharArray(String fieldName, int dimensions)
fieldName
- The name of the field.
dimensions
- The number of array dimensions.
NullPointerException
- If the fieldName argument is null.public static Field createShortArray(String fieldName, int dimensions)
fieldName
- The name of the field.
dimensions
- The number of array dimensions.
NullPointerException
- If the fieldName argument is null.public static Field createIntArray(String fieldName, int dimensions)
fieldName
- The name of the field.
dimensions
- The number of array dimensions.
NullPointerException
- If the fieldName argument is null.public static Field createLongArray(String fieldName, int dimensions)
fieldName
- The name of the field.
dimensions
- The number of array dimensions.
NullPointerException
- If the fieldName argument is null.public static Field createFloatArray(String fieldName, int dimensions)
fieldName
- The name of the field.
dimensions
- The number of array dimensions.
NullPointerException
- If the fieldName argument is null.public static Field createDoubleArray(String fieldName, int dimensions)
fieldName
- The name of the field.
dimensions
- The number of array dimensions.
NullPointerException
- If the fieldName argument is null.public static Field createBooleanArray(String fieldName, int dimensions)
fieldName
- The name of the field.
dimensions
- The number of array dimensions.
NullPointerException
- If the fieldName argument is null.public static Field createStringArray(String fieldName, int dimensions)
fieldName
- The name of the field.
dimensions
- The number of array dimensions.
NullPointerException
- If the fieldName argument is null.public static Field createClassArray(String fieldName, String className, int dimensions)
fieldName
- The name of the field.
className
- The fully qualified name of the class,
including the package, that is being referenced.
dimensions
- The number of array dimensions.
NullPointerException
- If the fieldName argument or the
className argument is null.public static Field createInterfaceArray(String fieldName, String interfaceName, int dimensions)
fieldName
- The name of the field.
interfaceName
- The fully qualified name of the interface,
including the package, that is being referenced.
dimensions
- The number of array dimensions.
NullPointerException
- If the fieldName argument or the
interfaceName argument is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |