public class StoreData extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StoreData.Type |
Modifier and Type | Field and Description |
---|---|
protected String |
interfaceName
Name of the persistent interface, when this represents one.
|
protected MetaData |
metadata
Metadata for the class, or member (join table) depending on what this represents.
|
protected String |
name
Name of the class/field.
|
protected Map |
properties
Extension props.
|
protected Table |
table |
protected StoreData.Type |
type
Type of data being stored (FCO, SCO).
|
Constructor and Description |
---|
StoreData(String name,
MetaData metadata,
StoreData.Type type,
String interfaceName)
Constructor.
|
StoreData(String name,
StoreData.Type type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String key,
Object value) |
String |
getInterfaceName()
Accessor for the persistent interface name
|
MetaData |
getMetaData()
Accessor for class/field meta data.
|
String |
getName()
Accessor for fully-qualified class/member name.
|
Map |
getProperties()
Accessor for extension props, if utilised by the store manager.
|
Object |
getProperty(String key) |
Table |
getTable()
Accessor for the generic Table for this class/member (if the store plugin supports generic Tables).
|
StoreData.Type |
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 |
setTable(Table tbl) |
String |
toString()
Method to return this class/field managed object as a string.
|
protected final String name
protected final StoreData.Type type
protected MetaData metadata
protected String interfaceName
protected Table table
protected Map properties
public StoreData(String name, StoreData.Type type)
name
- Fully-qualified ame of the class/member.type
- Type of data (FCO/SCO)public StoreData(String name, MetaData metadata, StoreData.Type type, String interfaceName)
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 implementedpublic String getName()
public MetaData getMetaData()
public void setMetaData(MetaData md)
md
- MetaDatapublic boolean isFCO()
public boolean isSCO()
public StoreData.Type getType()
public String getInterfaceName()
public void setTable(Table tbl)
public Table getTable()
public Map getProperties()
Copyright © 2019. All rights reserved.