|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.rdbms.table.AbstractTable
org.datanucleus.store.rdbms.table.ViewImpl
org.datanucleus.store.rdbms.table.ClassView
public class ClassView
Representation of an SQL View for a Class. Requires that the class use "nondurable" identity. Since a view is read-only, many methods throw exceptions that the operation is not supported.
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.store.rdbms.table.AbstractTable |
|---|
columns, columnsByName, dba, existsInDatastore, identifier, LOCALISER, state, storeMgr, TABLE_STATE_INITIALIZED, TABLE_STATE_INITIALIZED_MODIFIED, TABLE_STATE_NEW, TABLE_STATE_PK_INITIALIZED, TABLE_STATE_VALIDATED |
| Constructor Summary | |
|---|---|
ClassView(org.datanucleus.store.mapped.DatastoreIdentifier tableName,
RDBMSStoreManager storeMgr,
org.datanucleus.metadata.ClassMetaData cmd)
Constructor for class view. |
|
| Method Summary | |
|---|---|
org.datanucleus.store.mapped.DatastoreClass |
getBaseDatastoreClass()
|
org.datanucleus.store.mapped.DatastoreClass |
getBaseDatastoreClassWithMember(org.datanucleus.metadata.AbstractMemberMetaData mmd)
Accessor for the base datastore class (table) managing the given field. |
org.datanucleus.store.mapped.mapping.JavaTypeMapping |
getDatastoreObjectIdMapping()
Accessor for the datastore identity id mapping. |
org.datanucleus.store.mapped.mapping.JavaTypeMapping |
getDiscriminatorMapping(boolean allowSuperclasses)
Accessor for the discriminator mapping specified . |
org.datanucleus.metadata.DiscriminatorMetaData |
getDiscriminatorMetaData()
Accessor for Discriminator MetaData |
org.datanucleus.store.mapped.mapping.JavaTypeMapping |
getExternalMapping(org.datanucleus.metadata.AbstractMemberMetaData fmd,
int mappingType)
|
org.datanucleus.metadata.AbstractMemberMetaData |
getFieldMetaData(String fieldName)
Accessor for the MetaData for the named field |
org.datanucleus.metadata.IdentityType |
getIdentityType()
Accessor for the identity type in use. |
org.datanucleus.store.mapped.mapping.JavaTypeMapping |
getIdMapping()
Accessor for a mapping for the ID. |
String[] |
getManagedClasses()
|
org.datanucleus.store.mapped.mapping.JavaTypeMapping |
getMemberMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd)
Accessor for the mapping for the specified field/property. |
org.datanucleus.store.mapped.mapping.JavaTypeMapping |
getMemberMapping(String fieldName)
Accessor for the field mapping for the specified field name. |
org.datanucleus.store.mapped.mapping.JavaTypeMapping |
getMemberMappingInDatastoreClass(org.datanucleus.metadata.AbstractMemberMetaData mmd)
Accessor for the mapping for the specified field only in this datastore class. |
org.datanucleus.metadata.AbstractMemberMetaData |
getMetaDataForExternalMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
int mappingType)
|
Collection |
getSecondaryDatastoreClasses()
Accessor for any secondary tables for this table. |
protected List |
getSQLCreateStatements(Properties props)
Method to return the necessary SQL create statements for this table. |
org.datanucleus.store.mapped.DatastoreClass |
getSuperDatastoreClass()
Accessor for the supertable for this table. |
String |
getType()
Accessor for the type of the class being represented by this view. |
org.datanucleus.store.mapped.mapping.JavaTypeMapping |
getVersionMapping(boolean allowSuperclasses)
Accessor for the version mapping specified . |
org.datanucleus.metadata.VersionMetaData |
getVersionMetaData()
Accessor for Version MetaData |
void |
initialize(org.datanucleus.ClassLoaderResolver clr)
Method to initialise the view. |
boolean |
isBaseDatastoreClass()
Accessor for whether this is a base datastore class (root in a hierarchy). |
boolean |
isObjectIdDatastoreAttributed()
Accessor for whether the object ID is attributed in the datastore. |
boolean |
isSuperDatastoreClass(org.datanucleus.store.mapped.DatastoreClass table)
Accessor whether the supplied DatastoreClass is a supertable of this table. |
boolean |
managesClass(String className)
Accessor for whether this table manages the specified class |
boolean |
managesMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Convenience method to return if this table manages the columns for the supplied mapping. |
void |
postInitialize(org.datanucleus.ClassLoaderResolver clr)
Post initilize. |
void |
provideDatastoreIdMappings(org.datanucleus.store.mapped.mapping.MappingConsumer consumer)
|
void |
provideDiscriminatorMappings(org.datanucleus.store.mapped.mapping.MappingConsumer consumer)
|
void |
provideExternalMappings(org.datanucleus.store.mapped.mapping.MappingConsumer consumer,
int mappingType)
|
void |
provideMappingsForMembers(org.datanucleus.store.mapped.mapping.MappingConsumer consumer,
org.datanucleus.metadata.AbstractMemberMetaData[] fieldNumbers,
boolean includeSecondaryTables)
|
void |
provideMultitenancyMapping(org.datanucleus.store.mapped.mapping.MappingConsumer consumer)
|
void |
provideNonPrimaryKeyMappings(org.datanucleus.store.mapped.mapping.MappingConsumer consumer)
|
void |
providePrimaryKeyMappings(org.datanucleus.store.mapped.mapping.MappingConsumer consumer)
|
void |
provideUnmappedDatastoreFields(org.datanucleus.store.mapped.mapping.MappingConsumer consumer)
Method to provide all unmapped datastore fields (columns) to the consumer. |
void |
provideVersionMappings(org.datanucleus.store.mapped.mapping.MappingConsumer consumer)
|
| Methods inherited from class org.datanucleus.store.rdbms.table.ViewImpl |
|---|
addColumnInternal, getSQLDropStatements, preInitialize, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.datanucleus.store.mapped.DatastoreClass |
|---|
toString |
| Methods inherited from interface org.datanucleus.store.mapped.DatastoreContainerObject |
|---|
addDatastoreField, getDatastoreField, getDatastoreFields, getIdentifier, getMultitenancyMapping, getStoreManager, hasDatastoreField |
| Constructor Detail |
|---|
public ClassView(org.datanucleus.store.mapped.DatastoreIdentifier tableName,
RDBMSStoreManager storeMgr,
org.datanucleus.metadata.ClassMetaData cmd)
tableName - The name of the view.storeMgr - The RDBMS manager managing this viewcmd - The metadata for the class represented by this view.| Method Detail |
|---|
public void initialize(org.datanucleus.ClassLoaderResolver clr)
initialize in interface Tableclr - The ClassLoaderResolverpublic void postInitialize(org.datanucleus.ClassLoaderResolver clr)
postInitialize in interface TablepostInitialize in class ViewImplclr - the ClassLoaderResolverpublic org.datanucleus.store.mapped.mapping.JavaTypeMapping getIdMapping()
getIdMapping in interface org.datanucleus.store.mapped.DatastoreContainerObjectpublic org.datanucleus.store.mapped.DatastoreClass getBaseDatastoreClassWithMember(org.datanucleus.metadata.AbstractMemberMetaData mmd)
getBaseDatastoreClassWithMember in interface org.datanucleus.store.mapped.DatastoreClassmmd - MetaData for the field
public org.datanucleus.store.mapped.DatastoreClass getSuperDatastoreClass()
getSuperDatastoreClass in interface org.datanucleus.store.mapped.DatastoreClasspublic boolean isSuperDatastoreClass(org.datanucleus.store.mapped.DatastoreClass table)
isSuperDatastoreClass in interface org.datanucleus.store.mapped.DatastoreClasstable - The DatastoreClass to check
public Collection getSecondaryDatastoreClasses()
getSecondaryDatastoreClasses in interface org.datanucleus.store.mapped.DatastoreClasspublic org.datanucleus.store.mapped.mapping.JavaTypeMapping getDatastoreObjectIdMapping()
getDatastoreObjectIdMapping in interface org.datanucleus.store.mapped.DatastoreClasspublic boolean managesClass(String className)
managesClass in interface org.datanucleus.store.mapped.DatastoreClassclassName - Name of the class
public String[] getManagedClasses()
getManagedClasses in interface org.datanucleus.store.mapped.DatastoreClasspublic boolean managesMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
managesMapping in interface org.datanucleus.store.mapped.DatastoreClassmapping - The mapping
public org.datanucleus.metadata.AbstractMemberMetaData getFieldMetaData(String fieldName)
fieldName - Name of the field
public org.datanucleus.metadata.IdentityType getIdentityType()
getIdentityType in interface org.datanucleus.store.mapped.DatastoreClasspublic boolean isBaseDatastoreClass()
isBaseDatastoreClass in interface org.datanucleus.store.mapped.DatastoreClasspublic org.datanucleus.store.mapped.DatastoreClass getBaseDatastoreClass()
getBaseDatastoreClass in interface org.datanucleus.store.mapped.DatastoreClasspublic boolean isObjectIdDatastoreAttributed()
isObjectIdDatastoreAttributed in interface org.datanucleus.store.mapped.DatastoreClasspublic void provideDatastoreIdMappings(org.datanucleus.store.mapped.mapping.MappingConsumer consumer)
provideDatastoreIdMappings in interface org.datanucleus.store.mapped.DatastoreClasspublic void provideDiscriminatorMappings(org.datanucleus.store.mapped.mapping.MappingConsumer consumer)
provideDiscriminatorMappings in interface org.datanucleus.store.mapped.DatastoreClasspublic void provideMultitenancyMapping(org.datanucleus.store.mapped.mapping.MappingConsumer consumer)
provideMultitenancyMapping in interface org.datanucleus.store.mapped.DatastoreClass
public void provideMappingsForMembers(org.datanucleus.store.mapped.mapping.MappingConsumer consumer,
org.datanucleus.metadata.AbstractMemberMetaData[] fieldNumbers,
boolean includeSecondaryTables)
provideMappingsForMembers in interface org.datanucleus.store.mapped.DatastoreClasspublic void provideNonPrimaryKeyMappings(org.datanucleus.store.mapped.mapping.MappingConsumer consumer)
provideNonPrimaryKeyMappings in interface org.datanucleus.store.mapped.DatastoreClasspublic void providePrimaryKeyMappings(org.datanucleus.store.mapped.mapping.MappingConsumer consumer)
providePrimaryKeyMappings in interface org.datanucleus.store.mapped.DatastoreClasspublic void provideVersionMappings(org.datanucleus.store.mapped.mapping.MappingConsumer consumer)
provideVersionMappings in interface org.datanucleus.store.mapped.DatastoreClass
public void provideExternalMappings(org.datanucleus.store.mapped.mapping.MappingConsumer consumer,
int mappingType)
provideExternalMappings in interface org.datanucleus.store.mapped.DatastoreClasspublic void provideUnmappedDatastoreFields(org.datanucleus.store.mapped.mapping.MappingConsumer consumer)
provideUnmappedDatastoreFields in interface org.datanucleus.store.mapped.DatastoreClassconsumer - Consumer of informationpublic String getType()
getType in interface org.datanucleus.store.mapped.DatastoreClasspublic org.datanucleus.store.mapped.mapping.JavaTypeMapping getMemberMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd)
getMemberMapping in interface org.datanucleus.store.mapped.DatastoreClassgetMemberMapping in interface org.datanucleus.store.mapped.DatastoreContainerObjectmmd - Metadata for the field/property
public org.datanucleus.store.mapped.mapping.JavaTypeMapping getMemberMappingInDatastoreClass(org.datanucleus.metadata.AbstractMemberMetaData mmd)
getMemberMappingInDatastoreClass in interface org.datanucleus.store.mapped.DatastoreClassmmd - Metadata of the field/property
public org.datanucleus.store.mapped.mapping.JavaTypeMapping getMemberMapping(String fieldName)
getMemberMapping in interface org.datanucleus.store.mapped.DatastoreClassfieldName - Name of the field
protected List getSQLCreateStatements(Properties props)
getSQLCreateStatements in class AbstractTableprops - Properties for controlling the creation of views
public final org.datanucleus.metadata.DiscriminatorMetaData getDiscriminatorMetaData()
getDiscriminatorMetaData in interface org.datanucleus.store.mapped.DatastoreContainerObjectgetDiscriminatorMetaData in class AbstractTablepublic org.datanucleus.store.mapped.mapping.JavaTypeMapping getDiscriminatorMapping(boolean allowSuperclasses)
getDiscriminatorMapping in interface org.datanucleus.store.mapped.DatastoreContainerObjectgetDiscriminatorMapping in class AbstractTablepublic final org.datanucleus.metadata.VersionMetaData getVersionMetaData()
getVersionMetaData in interface org.datanucleus.store.mapped.DatastoreContainerObjectgetVersionMetaData in class AbstractTablepublic org.datanucleus.store.mapped.mapping.JavaTypeMapping getVersionMapping(boolean allowSuperclasses)
getVersionMapping in interface org.datanucleus.store.mapped.DatastoreContainerObjectgetVersionMapping in class AbstractTable
public org.datanucleus.store.mapped.mapping.JavaTypeMapping getExternalMapping(org.datanucleus.metadata.AbstractMemberMetaData fmd,
int mappingType)
getExternalMapping in interface org.datanucleus.store.mapped.DatastoreClass
public org.datanucleus.metadata.AbstractMemberMetaData getMetaDataForExternalMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
int mappingType)
getMetaDataForExternalMapping in interface org.datanucleus.store.mapped.DatastoreClass
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||