Package org.datanucleus.store
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 String
Name of the persistent interface, when this represents one.protected MetaData
Metadata for the class, or member (join table) depending on what this represents.protected final String
Name of the class/field.Extension props.protected Table
protected final StoreData.Type
Type of data being stored (FCO, SCO). -
Constructor Summary
ConstructorsConstructorDescriptionStoreData
(String name, MetaData metadata, StoreData.Type type, String interfaceName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(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.boolean
isFCO()
Accessor for whether this represents FCO data.boolean
isSCO()
Accessor for whether this represents SCO data.void
setMetaData
(MetaData md) Method to set the MetaData for this class.void
toString()
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
Extension props. Available for store manager to save additional info if required.
-
-
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
Accessor for type.- Returns:
- Returns the type.
-
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
Accessor for extension props, if utilised by the store manager.- Returns:
- Extension props
-
toString
Method to return this class/field managed object as a string.
-