public class RDBMSStoreData
extends org.datanucleus.store.StoreData
| Modifier and Type | Field and Description |
|---|---|
protected DatastoreIdentifier |
tableIdentifier |
protected String |
tableName |
protected boolean |
tableOwner |
| Constructor and Description |
|---|
RDBMSStoreData(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table)
Constructor, taking the meta data for the field, and the table it is mapped to.
|
RDBMSStoreData(org.datanucleus.metadata.ClassMetaData cmd,
Table table,
boolean tableOwner)
Constructor for FCO data.
|
RDBMSStoreData(String name,
String tableName,
boolean tableOwner,
int type,
String interfaceName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DatastoreIdentifier |
getDatastoreIdentifier()
Accessor for the identifier for the table.
|
String |
getTableName()
Accessor for tableName.
|
boolean |
hasTable()
Accessor for whether this has a table representation.
|
boolean |
isTableOwner()
Accessor for whether this class is the owner of the table.
|
boolean |
mapsToView()
Utility to return whether this table is a view.
|
void |
setDatastoreContainerObject(DatastoreClass table)
Convenience to set the table.
|
String |
toString()
Method to return this class/field managed object as a string.
|
protected String tableName
protected DatastoreIdentifier tableIdentifier
protected boolean tableOwner
public RDBMSStoreData(String name, String tableName, boolean tableOwner, int type, String interfaceName)
name - Name of the class/fieldtableName - Name of the table associatedtableOwner - Whether this is the ownertype - The type (FCO/SCO)interfaceName - if this class is an implementation of a persistent interface (multiple persistent interface names
are comma separated), otherwise is null.public RDBMSStoreData(org.datanucleus.metadata.ClassMetaData cmd,
Table table,
boolean tableOwner)
cmd - MetaData for the class.table - Table where the class is stored.tableOwner - Whether the class is the owner of the table.public RDBMSStoreData(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table)
mmd - MetaData for the field.table - Table definitionpublic boolean mapsToView()
public String getTableName()
public boolean isTableOwner()
public boolean hasTable()
public DatastoreIdentifier getDatastoreIdentifier()
public void setDatastoreContainerObject(DatastoreClass table)
table - The tablepublic String toString()
toString in class org.datanucleus.store.StoreDataCopyright © 2017. All rights reserved.