|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A PrimitiveElement is a field with a primitive type. Type can be boolean | byte | char | short | int | long | float | double | string | serialized| date | time | timestamp A primitive type can not be extended.
| Field Summary | |
static int |
CONSTANT_NON_PERSISTENT
|
static int |
CONSTANT_PERSISTENT
|
static int |
VARIABLE_PERSISTENT
|
| Method Summary | |
int |
getScale()
|
int |
getSize()
Returns the size of the field in case of string, serialized, arrays, bigdecimal, etc |
int |
getStatus()
Gets the status wrt constance and persistence. |
boolean |
isAutoCalculated()
Indicate if the primitive element is auto calculated. |
boolean |
isConstant()
|
boolean |
isPersistent()
|
boolean |
isScalar()
Allows to know if the current Field is a scalar field or not. |
void |
setIsAutoCalculated(boolean autocalculated)
|
void |
setStatus(int status)
Assigns the status indicating if the primitive element is one of: variable and persistent (classical case) constant and persistent constant and not persistent |
| Methods inherited from interface org.objectweb.jorm.metainfo.api.TypedElement |
getName, getType |
| Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject |
getParent, setParent |
| Field Detail |
public static final int CONSTANT_PERSISTENT
public static final int CONSTANT_NON_PERSISTENT
public static final int VARIABLE_PERSISTENT
| Method Detail |
public boolean isScalar()
public int getSize()
public int getScale()
public int getStatus()
this.setStatus()public void setStatus(int status)
public boolean isConstant()
public boolean isPersistent()
public boolean isAutoCalculated()
public void setIsAutoCalculated(boolean autocalculated)
this.isAutoCalculated()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||