Class StoreData
java.lang.Object
org.datanucleus.store.StoreData
Basic store information about an object that is stored in a datastore.
Can be a class or member.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringName of the persistent interface, when this represents one.protected MetaDataMetadata for the class, or member (join table) depending on what this represents.protected final StringName of the class/field.Extension props.protected Tableprotected final StoreData.TypeType of data being stored (FCO, SCO). -
Constructor Summary
ConstructorsConstructorDescriptionStoreData(String name, MetaData metadata, StoreData.Type type, String interfaceName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String key, Object value) Accessor for the persistent interface nameAccessor for class/field meta data.getName()Accessor for fully-qualified class/member name.Accessor for extension props, if utilised by the store manager.getProperty(String key) getTable()Accessor for the generic Table for this class/member (if the store plugin supports generic Tables).getType()Accessor for type.booleanisFCO()Accessor for whether this represents FCO data.booleanisSCO()Accessor for whether this represents SCO data.voidsetMetaData(MetaData md) Method to set the MetaData for this class.voidtoString()Method to return this class/field managed object as a string.
-
Field Details
-
name
Name of the class/field. -
type
Type of data being stored (FCO, SCO). -
metadata
Metadata for the class, or member (join table) depending on what this represents. -
interfaceName
Name of the persistent interface, when this represents one. Otherwise null. -
table
-
properties
-
-
Constructor Details
-
StoreData
Constructor.- Parameters:
name- Fully-qualified name of the class/member.metadata- MetaData for the class or field (if available)type- Type of data (FCO/SCO)interfaceName- Name of persistent-interface being implemented
-
-
Method Details
-
getName
Accessor for fully-qualified class/member name.- Returns:
- Returns the class/field name.
-
getMetaData
Accessor for class/field meta data.- Returns:
- Returns the class/field meta data.
-
setMetaData
Method to set the MetaData for this class.- Parameters:
md- MetaData
-
isFCO
public boolean isFCO()Accessor for whether this represents FCO data.- Returns:
- Whether it is FCO
-
isSCO
public boolean isSCO()Accessor for whether this represents SCO data.- Returns:
- Whether it is SCO.
-
getType
-
getInterfaceName
Accessor for the persistent interface name- Returns:
- Returns the persistent interface name
-
setTable
-
getTable
Accessor for the generic Table for this class/member (if the store plugin supports generic Tables).- Returns:
- The table associated with this class/member
-
addProperty
-
getProperty
-
getProperties
-
toString
-