|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.metadata.SpeedoElement
org.objectweb.speedo.metadata.SpeedoIdentity
public final class SpeedoIdentity
This class corresponds to the description of the policy management for a given identity.
Field Summary | |
---|---|
SpeedoNoFieldColumn[] |
columns
is the columns used for the identifier which have not been mapped in memory by visible persistent fields. |
static byte |
DATASTORE_AUTO_ASSIGN
|
static byte |
DATASTORE_INCREMENT
|
static byte |
DATASTORE_LONG
|
static byte |
DATASTORE_NATIVE
|
static byte |
DATASTORE_OLONG
|
static byte |
DATASTORE_POLYMORPHID
|
static byte |
DATASTORE_SEQUENCE
|
static byte |
DATASTORE_UUID_HEX
|
static byte |
DATASTORE_UUID_STRING
|
static byte |
NO_ID
|
java.lang.String |
objectidClass
the class used as identifier |
java.lang.Class |
objectidJClass
|
boolean |
oidClassAutoCalculated
|
java.lang.String |
sequenceName
the name of the sequence in case of the strategy is #DATASTORE_SEQUENCE |
byte |
strategy
identifier strategy |
static byte |
USER_ID
|
Fields inherited from class org.objectweb.speedo.metadata.SpeedoElement |
---|
jdoExtension, personality |
Constructor Summary | |
---|---|
SpeedoIdentity()
|
Method Summary | |
---|---|
static byte |
getStrategy(java.lang.String s)
Transforms a String into a Byte. |
java.lang.String |
getStrategyName()
|
static java.lang.String |
getStrategyName(byte s)
|
boolean |
isDataStore()
|
void |
merge(SpeedoIdentity id)
|
void |
setColumns(java.util.List columns)
Assignes SpeedoColumn for the identifier. |
void |
setDatastoreIdSequenceName(java.lang.String sequencename)
|
java.lang.String |
toString()
|
Methods inherited from class org.objectweb.speedo.metadata.SpeedoElement |
---|
addExtension, addInArray, getExtension, getExtensionByKey, getExtensionValueByKey, indexOfInArray, removeInArray, setValueInArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte NO_ID
public static final byte USER_ID
public static final byte DATASTORE_OLONG
public static final byte DATASTORE_LONG
public static final byte DATASTORE_NATIVE
public static final byte DATASTORE_POLYMORPHID
public static final byte DATASTORE_SEQUENCE
public static final byte DATASTORE_AUTO_ASSIGN
public static final byte DATASTORE_INCREMENT
public static final byte DATASTORE_UUID_STRING
public static final byte DATASTORE_UUID_HEX
public byte strategy
public java.lang.String objectidClass
public java.lang.Class objectidJClass
public boolean oidClassAutoCalculated
public java.lang.String sequenceName
public SpeedoNoFieldColumn[] columns
Constructor Detail |
---|
public SpeedoIdentity()
Method Detail |
---|
public static byte getStrategy(java.lang.String s)
s
- String to transform.
public static java.lang.String getStrategyName(byte s)
public void setDatastoreIdSequenceName(java.lang.String sequencename)
public boolean isDataStore()
public java.lang.String getStrategyName()
public void setColumns(java.util.List columns) throws SpeedoException
columns
- is a list of SpeedoColumn
SpeedoException
- if the strategy does not correspond to the
specified column (too many column, no strategy defined,
application staregy choosen, ...)columns
public java.lang.String toString()
toString
in class java.lang.Object
public void merge(SpeedoIdentity id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |