org.datanucleus.jdo.metadata
Class TypeMetadataImpl

java.lang.Object
  extended by org.datanucleus.jdo.metadata.AbstractMetadataImpl
      extended by org.datanucleus.jdo.metadata.TypeMetadataImpl
All Implemented Interfaces:
javax.jdo.metadata.Metadata, javax.jdo.metadata.TypeMetadata
Direct Known Subclasses:
ClassMetadataImpl, InterfaceMetadataImpl

public abstract class TypeMetadataImpl
extends AbstractMetadataImpl
implements javax.jdo.metadata.TypeMetadata

Superclass for ClassMetadataImpl/InterfaceMetadataImpl so we don't duplicate.


Constructor Summary
TypeMetadataImpl(MetaData internal)
           
 
Method Summary
 boolean getCacheable()
           
 java.lang.String getCatalog()
           
 javax.jdo.metadata.ColumnMetadata[] getColumns()
           
 javax.jdo.metadata.DatastoreIdentityMetadata getDatastoreIdentityMetadata()
           
 boolean getDetachable()
           
 java.lang.Boolean getEmbeddedOnly()
           
 javax.jdo.metadata.FetchGroupMetadata[] getFetchGroups()
           
 javax.jdo.metadata.ForeignKeyMetadata[] getForeignKeys()
           
 javax.jdo.annotations.IdentityType getIdentityType()
           
 javax.jdo.metadata.IndexMetadata[] getIndices()
           
 javax.jdo.metadata.InheritanceMetadata getInheritanceMetadata()
           
 AbstractClassMetaData getInternal()
           
 javax.jdo.metadata.JoinMetadata[] getJoins()
           
 javax.jdo.metadata.MemberMetadata[] getMembers()
           
 java.lang.String getName()
           
 int getNumberOfColumns()
           
 int getNumberOfFetchGroups()
           
 int getNumberOfForeignKeys()
           
 int getNumberOfIndices()
           
 int getNumberOfJoins()
           
 int getNumberOfMembers()
           
 int getNumberOfQueries()
           
 int getNumberOfUniques()
           
 java.lang.String getObjectIdClass()
           
 javax.jdo.metadata.PrimaryKeyMetadata getPrimaryKeyMetadata()
           
 javax.jdo.metadata.QueryMetadata[] getQueries()
           
 boolean getRequiresExtent()
           
 java.lang.String getSchema()
           
 boolean getSerializeRead()
           
 java.lang.String getTable()
           
 javax.jdo.metadata.UniqueMetadata[] getUniques()
           
 javax.jdo.metadata.VersionMetadata getVersionMetadata()
           
 javax.jdo.metadata.ColumnMetadata newColumnMetadata()
           
 javax.jdo.metadata.DatastoreIdentityMetadata newDatastoreIdentityMetadata()
           
 javax.jdo.metadata.FetchGroupMetadata newFetchGroupMetadata(java.lang.String name)
           
 javax.jdo.metadata.ForeignKeyMetadata newForeignKeyMetadata()
           
 javax.jdo.metadata.IndexMetadata newIndexMetadata()
           
 javax.jdo.metadata.InheritanceMetadata newInheritanceMetadata()
           
 javax.jdo.metadata.JoinMetadata newJoinMetadata()
           
 javax.jdo.metadata.PrimaryKeyMetadata newPrimaryKeyMetadata()
           
 javax.jdo.metadata.PropertyMetadata newPropertyMetadata(java.lang.reflect.Method method)
           
 javax.jdo.metadata.PropertyMetadata newPropertyMetadata(java.lang.String name)
           
 javax.jdo.metadata.QueryMetadata newQueryMetadata(java.lang.String name)
           
 javax.jdo.metadata.UniqueMetadata newUniqueMetadata()
           
 javax.jdo.metadata.VersionMetadata newVersionMetadata()
           
 javax.jdo.metadata.TypeMetadata setCacheable(boolean cache)
           
 javax.jdo.metadata.TypeMetadata setCatalog(java.lang.String cat)
           
 javax.jdo.metadata.TypeMetadata setDetachable(boolean flag)
           
 javax.jdo.metadata.TypeMetadata setEmbeddedOnly(boolean flag)
           
 javax.jdo.metadata.TypeMetadata setIdentityType(javax.jdo.annotations.IdentityType type)
           
 javax.jdo.metadata.TypeMetadata setObjectIdClass(java.lang.String clsName)
           
 javax.jdo.metadata.TypeMetadata setRequiresExtent(boolean flag)
           
 javax.jdo.metadata.TypeMetadata setSchema(java.lang.String schema)
           
 javax.jdo.metadata.TypeMetadata setSerializeRead(boolean flag)
           
 javax.jdo.metadata.TypeMetadata setTable(java.lang.String table)
           
 
Methods inherited from class org.datanucleus.jdo.metadata.AbstractMetadataImpl
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jdo.metadata.Metadata
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata
 

Constructor Detail

TypeMetadataImpl

public TypeMetadataImpl(MetaData internal)
Method Detail

getInternal

public AbstractClassMetaData getInternal()

getNumberOfMembers

public int getNumberOfMembers()
Specified by:
getNumberOfMembers in interface javax.jdo.metadata.TypeMetadata

getMembers

public javax.jdo.metadata.MemberMetadata[] getMembers()
Specified by:
getMembers in interface javax.jdo.metadata.TypeMetadata

newPropertyMetadata

public javax.jdo.metadata.PropertyMetadata newPropertyMetadata(java.lang.String name)
Specified by:
newPropertyMetadata in interface javax.jdo.metadata.TypeMetadata

newPropertyMetadata

public javax.jdo.metadata.PropertyMetadata newPropertyMetadata(java.lang.reflect.Method method)
Specified by:
newPropertyMetadata in interface javax.jdo.metadata.TypeMetadata

getCacheable

public boolean getCacheable()
Specified by:
getCacheable in interface javax.jdo.metadata.TypeMetadata

getCatalog

public java.lang.String getCatalog()
Specified by:
getCatalog in interface javax.jdo.metadata.TypeMetadata

getDatastoreIdentityMetadata

public javax.jdo.metadata.DatastoreIdentityMetadata getDatastoreIdentityMetadata()
Specified by:
getDatastoreIdentityMetadata in interface javax.jdo.metadata.TypeMetadata

getDetachable

public boolean getDetachable()
Specified by:
getDetachable in interface javax.jdo.metadata.TypeMetadata

getEmbeddedOnly

public java.lang.Boolean getEmbeddedOnly()
Specified by:
getEmbeddedOnly in interface javax.jdo.metadata.TypeMetadata

getSerializeRead

public boolean getSerializeRead()
Specified by:
getSerializeRead in interface javax.jdo.metadata.TypeMetadata

getFetchGroups

public javax.jdo.metadata.FetchGroupMetadata[] getFetchGroups()
Specified by:
getFetchGroups in interface javax.jdo.metadata.TypeMetadata

getForeignKeys

public javax.jdo.metadata.ForeignKeyMetadata[] getForeignKeys()
Specified by:
getForeignKeys in interface javax.jdo.metadata.TypeMetadata

getIdentityType

public javax.jdo.annotations.IdentityType getIdentityType()
Specified by:
getIdentityType in interface javax.jdo.metadata.TypeMetadata

getIndices

public javax.jdo.metadata.IndexMetadata[] getIndices()
Specified by:
getIndices in interface javax.jdo.metadata.TypeMetadata

getInheritanceMetadata

public javax.jdo.metadata.InheritanceMetadata getInheritanceMetadata()
Specified by:
getInheritanceMetadata in interface javax.jdo.metadata.TypeMetadata

getJoins

public javax.jdo.metadata.JoinMetadata[] getJoins()
Specified by:
getJoins in interface javax.jdo.metadata.TypeMetadata

getName

public java.lang.String getName()
Specified by:
getName in interface javax.jdo.metadata.TypeMetadata

getNumberOfFetchGroups

public int getNumberOfFetchGroups()
Specified by:
getNumberOfFetchGroups in interface javax.jdo.metadata.TypeMetadata

getNumberOfForeignKeys

public int getNumberOfForeignKeys()
Specified by:
getNumberOfForeignKeys in interface javax.jdo.metadata.TypeMetadata

getNumberOfIndices

public int getNumberOfIndices()
Specified by:
getNumberOfIndices in interface javax.jdo.metadata.TypeMetadata

getNumberOfJoins

public int getNumberOfJoins()
Specified by:
getNumberOfJoins in interface javax.jdo.metadata.TypeMetadata

getNumberOfQueries

public int getNumberOfQueries()
Specified by:
getNumberOfQueries in interface javax.jdo.metadata.TypeMetadata

getNumberOfUniques

public int getNumberOfUniques()
Specified by:
getNumberOfUniques in interface javax.jdo.metadata.TypeMetadata

getObjectIdClass

public java.lang.String getObjectIdClass()
Specified by:
getObjectIdClass in interface javax.jdo.metadata.TypeMetadata

getPrimaryKeyMetadata

public javax.jdo.metadata.PrimaryKeyMetadata getPrimaryKeyMetadata()
Specified by:
getPrimaryKeyMetadata in interface javax.jdo.metadata.TypeMetadata

getQueries

public javax.jdo.metadata.QueryMetadata[] getQueries()
Specified by:
getQueries in interface javax.jdo.metadata.TypeMetadata

getRequiresExtent

public boolean getRequiresExtent()
Specified by:
getRequiresExtent in interface javax.jdo.metadata.TypeMetadata

getSchema

public java.lang.String getSchema()
Specified by:
getSchema in interface javax.jdo.metadata.TypeMetadata

getTable

public java.lang.String getTable()
Specified by:
getTable in interface javax.jdo.metadata.TypeMetadata

getUniques

public javax.jdo.metadata.UniqueMetadata[] getUniques()
Specified by:
getUniques in interface javax.jdo.metadata.TypeMetadata

getVersionMetadata

public javax.jdo.metadata.VersionMetadata getVersionMetadata()
Specified by:
getVersionMetadata in interface javax.jdo.metadata.TypeMetadata

newDatastoreIdentityMetadata

public javax.jdo.metadata.DatastoreIdentityMetadata newDatastoreIdentityMetadata()
Specified by:
newDatastoreIdentityMetadata in interface javax.jdo.metadata.TypeMetadata

newFetchGroupMetadata

public javax.jdo.metadata.FetchGroupMetadata newFetchGroupMetadata(java.lang.String name)
Specified by:
newFetchGroupMetadata in interface javax.jdo.metadata.TypeMetadata

newForeignKeyMetadata

public javax.jdo.metadata.ForeignKeyMetadata newForeignKeyMetadata()
Specified by:
newForeignKeyMetadata in interface javax.jdo.metadata.TypeMetadata

newIndexMetadata

public javax.jdo.metadata.IndexMetadata newIndexMetadata()
Specified by:
newIndexMetadata in interface javax.jdo.metadata.TypeMetadata

newInheritanceMetadata

public javax.jdo.metadata.InheritanceMetadata newInheritanceMetadata()
Specified by:
newInheritanceMetadata in interface javax.jdo.metadata.TypeMetadata

newJoinMetadata

public javax.jdo.metadata.JoinMetadata newJoinMetadata()
Specified by:
newJoinMetadata in interface javax.jdo.metadata.TypeMetadata

newPrimaryKeyMetadata

public javax.jdo.metadata.PrimaryKeyMetadata newPrimaryKeyMetadata()
Specified by:
newPrimaryKeyMetadata in interface javax.jdo.metadata.TypeMetadata

newQueryMetadata

public javax.jdo.metadata.QueryMetadata newQueryMetadata(java.lang.String name)
Specified by:
newQueryMetadata in interface javax.jdo.metadata.TypeMetadata

newUniqueMetadata

public javax.jdo.metadata.UniqueMetadata newUniqueMetadata()
Specified by:
newUniqueMetadata in interface javax.jdo.metadata.TypeMetadata

newVersionMetadata

public javax.jdo.metadata.VersionMetadata newVersionMetadata()
Specified by:
newVersionMetadata in interface javax.jdo.metadata.TypeMetadata

setCacheable

public javax.jdo.metadata.TypeMetadata setCacheable(boolean cache)
Specified by:
setCacheable in interface javax.jdo.metadata.TypeMetadata

setCatalog

public javax.jdo.metadata.TypeMetadata setCatalog(java.lang.String cat)
Specified by:
setCatalog in interface javax.jdo.metadata.TypeMetadata

setDetachable

public javax.jdo.metadata.TypeMetadata setDetachable(boolean flag)
Specified by:
setDetachable in interface javax.jdo.metadata.TypeMetadata

setSerializeRead

public javax.jdo.metadata.TypeMetadata setSerializeRead(boolean flag)
Specified by:
setSerializeRead in interface javax.jdo.metadata.TypeMetadata

setEmbeddedOnly

public javax.jdo.metadata.TypeMetadata setEmbeddedOnly(boolean flag)
Specified by:
setEmbeddedOnly in interface javax.jdo.metadata.TypeMetadata

setIdentityType

public javax.jdo.metadata.TypeMetadata setIdentityType(javax.jdo.annotations.IdentityType type)
Specified by:
setIdentityType in interface javax.jdo.metadata.TypeMetadata

setObjectIdClass

public javax.jdo.metadata.TypeMetadata setObjectIdClass(java.lang.String clsName)
Specified by:
setObjectIdClass in interface javax.jdo.metadata.TypeMetadata

setRequiresExtent

public javax.jdo.metadata.TypeMetadata setRequiresExtent(boolean flag)
Specified by:
setRequiresExtent in interface javax.jdo.metadata.TypeMetadata

setSchema

public javax.jdo.metadata.TypeMetadata setSchema(java.lang.String schema)
Specified by:
setSchema in interface javax.jdo.metadata.TypeMetadata

setTable

public javax.jdo.metadata.TypeMetadata setTable(java.lang.String table)
Specified by:
setTable in interface javax.jdo.metadata.TypeMetadata

getColumns

public javax.jdo.metadata.ColumnMetadata[] getColumns()
Specified by:
getColumns in interface javax.jdo.metadata.TypeMetadata

getNumberOfColumns

public int getNumberOfColumns()
Specified by:
getNumberOfColumns in interface javax.jdo.metadata.TypeMetadata

newColumnMetadata

public javax.jdo.metadata.ColumnMetadata newColumnMetadata()
Specified by:
newColumnMetadata in interface javax.jdo.metadata.TypeMetadata


Copyright © 2011. All Rights Reserved.