|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.DatastoreFieldRole
Representation of a role for a DatastoreField (column). It represents the type of column we are handling ... key, index, owner, element, etc. It also provides a "custom" option which is for use where the user has overridden the name for example.
Field Summary | |
static DatastoreFieldRole |
ARRAY_ELEMENT
element of an array |
static DatastoreFieldRole |
COLLECTION_ELEMENT
element of a collection |
static DatastoreFieldRole |
CUSTOM
custom |
static DatastoreFieldRole |
FIELD
field |
static DatastoreFieldRole |
INDEX
index |
static DatastoreFieldRole |
MAP_KEY
key of a map |
static DatastoreFieldRole |
MAP_VALUE
value of a map |
static int |
MAX_SUFFIX_LENGTH
max length of the role suffix |
static DatastoreFieldRole |
NONE
none |
static DatastoreFieldRole |
OWNER
owner |
Method Summary | |
java.lang.String |
getIdentifierSuffix(DatastoreAdapter dba,
boolean embedded)
Accessor for the suffix to add to any column identifier, based on the role type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final DatastoreFieldRole CUSTOM
public static final DatastoreFieldRole NONE
public static final DatastoreFieldRole OWNER
public static final DatastoreFieldRole FIELD
public static final DatastoreFieldRole COLLECTION_ELEMENT
public static final DatastoreFieldRole ARRAY_ELEMENT
public static final DatastoreFieldRole MAP_KEY
public static final DatastoreFieldRole MAP_VALUE
public static final DatastoreFieldRole INDEX
public static final int MAX_SUFFIX_LENGTH
Method Detail |
public java.lang.String getIdentifierSuffix(DatastoreAdapter dba, boolean embedded)
dba
- The database adapterembedded
- Whether the DatastoreField is stored embedded
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |