org.datanucleus.store.rdbms
Class RDBMSStoreData

java.lang.Object
  extended by org.datanucleus.store.StoreData
      extended by org.datanucleus.store.mapped.MappedStoreData
          extended by org.datanucleus.store.rdbms.RDBMSStoreData

public class RDBMSStoreData
extends org.datanucleus.store.mapped.MappedStoreData

Representation of a class (FCO) / field (SCO) that is persisted to an RDBMS table. Extends the basic data to allow determination of whether it is a table or a view being represented.


Field Summary
 
Fields inherited from class org.datanucleus.store.StoreData
FCO_TYPE, LOCALISER, name, properties, SCO_TYPE, type
 
Constructor Summary
RDBMSStoreData(org.datanucleus.metadata.AbstractMemberMetaData mmd, org.datanucleus.store.mapped.DatastoreContainerObject table)
          Constructor, taking the meta data for the field, and the table it is mapped to.
RDBMSStoreData(org.datanucleus.metadata.ClassMetaData cmd, org.datanucleus.store.mapped.DatastoreContainerObject table, boolean tableOwner)
          Constructor for FCO data.
 
Method Summary
 boolean mapsToView()
          Utility to return whether this table is a view.
 
Methods inherited from class org.datanucleus.store.mapped.MappedStoreData
getDatastoreContainerObject, getDatastoreIdentifier, getTableName, hasTable, isTableOwner, setDatastoreContainerObject, toString
 
Methods inherited from class org.datanucleus.store.StoreData
addProperty, getInterfaceName, getMetaData, getName, getProperties, getType, isFCO, isSCO, setMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RDBMSStoreData

public RDBMSStoreData(org.datanucleus.metadata.ClassMetaData cmd,
                      org.datanucleus.store.mapped.DatastoreContainerObject table,
                      boolean tableOwner)
Constructor for FCO data.

Parameters:
cmd - MetaData for the class.
table - Table where the class is stored.
tableOwner - Whether the class is the owner of the table.

RDBMSStoreData

public RDBMSStoreData(org.datanucleus.metadata.AbstractMemberMetaData mmd,
                      org.datanucleus.store.mapped.DatastoreContainerObject table)
Constructor, taking the meta data for the field, and the table it is mapped to.

Parameters:
mmd - MetaData for the field.
table - Table definition
Method Detail

mapsToView

public boolean mapsToView()
Utility to return whether this table is a view.

Returns:
Whether it is for a view.


Copyright © 2009. All Rights Reserved.