|
||||||||||||
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.SpeedoClass
Describes a persistence capable class.
Field Summary | |
---|---|
boolean |
classAlreadyEnhanced
|
ClassCode |
classCode
Descriptor of this class code. |
SpeedoDatastoreId |
datastoreId
The datastore-id. |
java.lang.String |
datastoreSequence
The name of the datastore sequence |
boolean |
failed
Indicates whether something goes wrong during the JDO Instances generation. |
byte |
identityType
Attribute identity-type. |
byte |
inheritanceStrategy
|
boolean |
isAbstract
Indicates if the class is abstract. |
boolean |
isDetachable
Attribute detachable. |
boolean |
isInstanceCallbacks
Indicates if the class implements InstanceCallbacks |
boolean |
isSerializable
Indicates if the class implements InstanceCallbacks |
java.util.Map |
jdoFetchGroup
Description of fetchgroups defined for this class. |
java.util.Map |
jdoField
Description of persistent capable fields of this class. |
SpeedoPackage |
jdoPackage
Description of the package which contains this class. |
org.objectweb.jorm.metainfo.api.Class |
jormclass
Class jorm corresponding to this jdoclass |
java.lang.String |
name
Class name. |
java.util.Map |
name2query
|
static byte |
NEW_TABLE
|
static byte |
NO_NO_ARG_CONSTRUCTOR
|
byte |
noArgConstructorStatus
|
static byte |
NON_PUBLIC_NO_ARG_CONSTRUCTOR
|
java.lang.String |
objectidClass
Attribute objectid-class. |
static byte |
PUBLIC_NO_ARG_CONSTRUCTOR
|
boolean |
requireEnhancement
|
boolean |
requiresExtent
Attribute requires-extent. |
java.lang.String |
signature
Class signature. |
static byte |
SUBCLASS_TABLE
|
static byte |
SUPERCLASS_TABLE
|
java.lang.String |
superClassName
Super class name. |
SpeedoVersion |
version
Description of the version. |
long |
VersionUID
Version UID for serialization. |
Fields inherited from class org.objectweb.speedo.metadata.SpeedoElement |
---|
jdoExtension |
Constructor Summary | |
---|---|
SpeedoClass()
|
Method Summary | |
---|---|
void |
add(java.lang.Object field)
Adds a SpeedoField to the class. |
void |
add(java.lang.Object field,
boolean failsOnError,
org.objectweb.util.monolog.api.Logger logger)
Adds a SpeedoField to the class. |
void |
addDatastoreId(java.lang.Object datastoreId)
|
void |
addFetchGroup(java.lang.Object fetchGroup)
Adds a SpeedoFetchGroup to the class. |
void |
addFetchGroup(java.lang.Object fetchGroup,
boolean failsOnError,
org.objectweb.util.monolog.api.Logger logger)
Adds a SpeedoFetchgroup to the class. |
void |
addVersion(java.lang.Object version)
Set the versioning strategy of the class. |
int |
computeFieldNumbers()
Computes the field numbers for the fields of this class. |
boolean |
generateObjectId()
|
SpeedoClass |
getAncestor()
|
java.lang.String |
getFQName()
|
java.lang.String |
getJDOFileName()
|
java.lang.String |
getJormFileName()
|
int |
getPkFieldCount()
|
SpeedoClass |
getSpeedoClassFromContext(java.lang.String className)
|
SpeedoClass |
getSuper()
|
java.lang.String |
toString()
Transforms a SpeedoClass into a String. |
Methods inherited from class org.objectweb.speedo.metadata.SpeedoElement |
---|
addExtension, getExtension, getExtensionByKey, getExtensionValueByKey |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.String name
public byte identityType
public SpeedoVersion version
public SpeedoDatastoreId datastoreId
public java.lang.String objectidClass
public boolean requiresExtent
public boolean isDetachable
public java.lang.String superClassName
public java.util.Map jdoField
public java.util.Map jdoFetchGroup
public ClassCode classCode
public SpeedoPackage jdoPackage
public boolean isAbstract
public boolean isInstanceCallbacks
public boolean isSerializable
public java.lang.String signature
public long VersionUID
public boolean failed
public org.objectweb.jorm.metainfo.api.Class jormclass
public java.lang.String datastoreSequence
public boolean classAlreadyEnhanced
public boolean requireEnhancement
public java.util.Map name2query
public static final byte NO_NO_ARG_CONSTRUCTOR
public static final byte NON_PUBLIC_NO_ARG_CONSTRUCTOR
public static final byte PUBLIC_NO_ARG_CONSTRUCTOR
public byte noArgConstructorStatus
public static final byte SUBCLASS_TABLE
public static final byte NEW_TABLE
public static final byte SUPERCLASS_TABLE
public byte inheritanceStrategy
Constructor Detail |
public SpeedoClass()
Method Detail |
public java.lang.String getFQName()
public java.lang.String toString()
public void add(java.lang.Object field)
field
- field to add.public void add(java.lang.Object field, boolean failsOnError, org.objectweb.util.monolog.api.Logger logger) throws SpeedoException
field
- field to add.failsOnError
- if an error must be thrown or creates a warning.logger
- logger for writting warn message if necessary.
SpeedoException
- if the field was already defined into the class.public void addVersion(java.lang.Object version)
version
- : the version to setpublic void addDatastoreId(java.lang.Object datastoreId)
public void addFetchGroup(java.lang.Object fetchGroup)
fetchGroup
- the fetchgroup to add.public void addFetchGroup(java.lang.Object fetchGroup, boolean failsOnError, org.objectweb.util.monolog.api.Logger logger) throws SpeedoException
fetchGroup
- the fetchgroup to add.failsOnError
- if an error must be thrown or creates a warning.logger
- logger for writting warn message if necessary.
SpeedoException
- if the field was already defined into the class.public int computeFieldNumbers()
public java.lang.String getJormFileName()
public boolean generateObjectId()
public int getPkFieldCount()
public SpeedoClass getSpeedoClassFromContext(java.lang.String className)
public java.lang.String getJDOFileName()
public SpeedoClass getSuper()
public SpeedoClass getAncestor()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |