org.datanucleus.jdo.metadata
Class MemberMetadataImpl

java.lang.Object
  extended by org.datanucleus.jdo.metadata.AbstractMetadataImpl
      extended by org.datanucleus.jdo.metadata.MemberMetadataImpl
All Implemented Interfaces:
javax.jdo.metadata.MemberMetadata, javax.jdo.metadata.Metadata
Direct Known Subclasses:
FieldMetadataImpl, PropertyMetadataImpl

public class MemberMetadataImpl
extends AbstractMetadataImpl
implements javax.jdo.metadata.MemberMetadata

Convenience implementation of MemberMetadata for use by FieldMetadataImpl/PropertyMetadataImpl


Constructor Summary
MemberMetadataImpl(MetaData internal)
           
 
Method Summary
 javax.jdo.metadata.ArrayMetadata getArrayMetadata()
           
 boolean getCacheable()
           
 javax.jdo.metadata.CollectionMetadata getCollectionMetadata()
           
 java.lang.String getColumn()
           
 javax.jdo.metadata.ColumnMetadata[] getColumns()
           
 java.lang.String getCustomStrategy()
           
 java.lang.Boolean getDefaultFetchGroup()
           
 javax.jdo.annotations.ForeignKeyAction getDeleteAction()
           
 java.lang.Boolean getDependent()
           
 javax.jdo.metadata.ElementMetadata getElementMetadata()
           
 java.lang.Boolean getEmbedded()
           
 javax.jdo.metadata.EmbeddedMetadata getEmbeddedMetadata()
           
 java.lang.String getFieldType()
           
 javax.jdo.metadata.ForeignKeyMetadata getForeignKeyMetadata()
           
 java.lang.Boolean getIndexed()
           
 javax.jdo.metadata.IndexMetadata getIndexMetadata()
           
 AbstractMemberMetaData getInternal()
           
 javax.jdo.metadata.JoinMetadata getJoinMetadata()
           
 javax.jdo.metadata.KeyMetadata getKeyMetadata()
           
 java.lang.String getLoadFetchGroup()
           
 javax.jdo.metadata.MapMetadata getMapMetadata()
           
 java.lang.String getMappedBy()
           
 java.lang.String getName()
           
 javax.jdo.annotations.NullValue getNullValue()
           
 int getNumberOfColumns()
           
 javax.jdo.metadata.OrderMetadata getOrderMetadata()
           
 javax.jdo.annotations.PersistenceModifier getPersistenceModifier()
           
 boolean getPrimaryKey()
           
 int getRecursionDepth()
           
 java.lang.String getSequence()
           
 java.lang.Boolean getSerialized()
           
 java.lang.String getTable()
           
 java.lang.Boolean getUnique()
           
 javax.jdo.metadata.UniqueMetadata getUniqueMetadata()
           
 javax.jdo.metadata.ValueMetadata getValueMetadata()
           
 javax.jdo.annotations.IdGeneratorStrategy getValueStrategy()
           
 javax.jdo.metadata.ArrayMetadata newArrayMetadata()
           
 javax.jdo.metadata.CollectionMetadata newCollectionMetadata()
           
 javax.jdo.metadata.ColumnMetadata newColumnMetadata()
           
 javax.jdo.metadata.ElementMetadata newElementMetadata()
           
 javax.jdo.metadata.EmbeddedMetadata newEmbeddedMetadata()
           
 javax.jdo.metadata.ForeignKeyMetadata newForeignKeyMetadata()
           
 javax.jdo.metadata.IndexMetadata newIndexMetadata()
           
 javax.jdo.metadata.JoinMetadata newJoinMetadata()
           
 javax.jdo.metadata.KeyMetadata newKeyMetadata()
           
 javax.jdo.metadata.MapMetadata newMapMetadata()
           
 javax.jdo.metadata.OrderMetadata newOrderMetadata()
           
 javax.jdo.metadata.UniqueMetadata newUniqueMetadata()
           
 javax.jdo.metadata.ValueMetadata newValueMetadata()
           
 javax.jdo.metadata.MemberMetadata setCacheable(boolean cache)
           
 javax.jdo.metadata.MemberMetadata setColumn(java.lang.String name)
           
 javax.jdo.metadata.MemberMetadata setCustomStrategy(java.lang.String strategy)
           
 javax.jdo.metadata.MemberMetadata setDefaultFetchGroup(boolean dfg)
           
 javax.jdo.metadata.MemberMetadata setDeleteAction(javax.jdo.annotations.ForeignKeyAction fk)
           
 javax.jdo.metadata.MemberMetadata setDependent(boolean flag)
           
 javax.jdo.metadata.MemberMetadata setEmbedded(boolean flag)
           
 javax.jdo.metadata.MemberMetadata setFieldType(java.lang.String types)
           
 javax.jdo.metadata.MemberMetadata setIndexed(boolean flag)
           
 javax.jdo.metadata.MemberMetadata setLoadFetchGroup(java.lang.String load)
           
 javax.jdo.metadata.MemberMetadata setMappedBy(java.lang.String mappedBy)
           
 javax.jdo.metadata.MemberMetadata setName(java.lang.String name)
           
 javax.jdo.metadata.MemberMetadata setNullValue(javax.jdo.annotations.NullValue val)
           
 javax.jdo.metadata.MemberMetadata setPersistenceModifier(javax.jdo.annotations.PersistenceModifier val)
           
 javax.jdo.metadata.MemberMetadata setPrimaryKey(boolean flag)
           
 javax.jdo.metadata.MemberMetadata setRecursionDepth(int depth)
           
 javax.jdo.metadata.MemberMetadata setSequence(java.lang.String seq)
           
 javax.jdo.metadata.MemberMetadata setSerialized(boolean flag)
           
 javax.jdo.metadata.MemberMetadata setTable(java.lang.String table)
           
 javax.jdo.metadata.MemberMetadata setUnique(boolean flag)
           
 javax.jdo.metadata.MemberMetadata setValueStrategy(javax.jdo.annotations.IdGeneratorStrategy strategy)
           
 
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

MemberMetadataImpl

public MemberMetadataImpl(MetaData internal)
Method Detail

getInternal

public AbstractMemberMetaData getInternal()

getArrayMetadata

public javax.jdo.metadata.ArrayMetadata getArrayMetadata()
Specified by:
getArrayMetadata in interface javax.jdo.metadata.MemberMetadata

getCacheable

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

getCollectionMetadata

public javax.jdo.metadata.CollectionMetadata getCollectionMetadata()
Specified by:
getCollectionMetadata in interface javax.jdo.metadata.MemberMetadata

getColumn

public java.lang.String getColumn()
Specified by:
getColumn in interface javax.jdo.metadata.MemberMetadata

getCustomStrategy

public java.lang.String getCustomStrategy()
Specified by:
getCustomStrategy in interface javax.jdo.metadata.MemberMetadata

getDefaultFetchGroup

public java.lang.Boolean getDefaultFetchGroup()
Specified by:
getDefaultFetchGroup in interface javax.jdo.metadata.MemberMetadata

getDeleteAction

public javax.jdo.annotations.ForeignKeyAction getDeleteAction()
Specified by:
getDeleteAction in interface javax.jdo.metadata.MemberMetadata

getDependent

public java.lang.Boolean getDependent()
Specified by:
getDependent in interface javax.jdo.metadata.MemberMetadata

getElementMetadata

public javax.jdo.metadata.ElementMetadata getElementMetadata()
Specified by:
getElementMetadata in interface javax.jdo.metadata.MemberMetadata

getEmbedded

public java.lang.Boolean getEmbedded()
Specified by:
getEmbedded in interface javax.jdo.metadata.MemberMetadata

getEmbeddedMetadata

public javax.jdo.metadata.EmbeddedMetadata getEmbeddedMetadata()
Specified by:
getEmbeddedMetadata in interface javax.jdo.metadata.MemberMetadata

getOrderMetadata

public javax.jdo.metadata.OrderMetadata getOrderMetadata()
Specified by:
getOrderMetadata in interface javax.jdo.metadata.MemberMetadata

getFieldType

public java.lang.String getFieldType()
Specified by:
getFieldType in interface javax.jdo.metadata.MemberMetadata

getForeignKeyMetadata

public javax.jdo.metadata.ForeignKeyMetadata getForeignKeyMetadata()
Specified by:
getForeignKeyMetadata in interface javax.jdo.metadata.MemberMetadata

getIndexMetadata

public javax.jdo.metadata.IndexMetadata getIndexMetadata()
Specified by:
getIndexMetadata in interface javax.jdo.metadata.MemberMetadata

getIndexed

public java.lang.Boolean getIndexed()
Specified by:
getIndexed in interface javax.jdo.metadata.MemberMetadata

getJoinMetadata

public javax.jdo.metadata.JoinMetadata getJoinMetadata()
Specified by:
getJoinMetadata in interface javax.jdo.metadata.MemberMetadata

getKeyMetadata

public javax.jdo.metadata.KeyMetadata getKeyMetadata()
Specified by:
getKeyMetadata in interface javax.jdo.metadata.MemberMetadata

getLoadFetchGroup

public java.lang.String getLoadFetchGroup()
Specified by:
getLoadFetchGroup in interface javax.jdo.metadata.MemberMetadata

getMapMetadata

public javax.jdo.metadata.MapMetadata getMapMetadata()
Specified by:
getMapMetadata in interface javax.jdo.metadata.MemberMetadata

getMappedBy

public java.lang.String getMappedBy()
Specified by:
getMappedBy in interface javax.jdo.metadata.MemberMetadata

getName

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

getNullValue

public javax.jdo.annotations.NullValue getNullValue()
Specified by:
getNullValue in interface javax.jdo.metadata.MemberMetadata

getPersistenceModifier

public javax.jdo.annotations.PersistenceModifier getPersistenceModifier()
Specified by:
getPersistenceModifier in interface javax.jdo.metadata.MemberMetadata

getPrimaryKey

public boolean getPrimaryKey()
Specified by:
getPrimaryKey in interface javax.jdo.metadata.MemberMetadata

getRecursionDepth

public int getRecursionDepth()
Specified by:
getRecursionDepth in interface javax.jdo.metadata.MemberMetadata

getSequence

public java.lang.String getSequence()
Specified by:
getSequence in interface javax.jdo.metadata.MemberMetadata

getSerialized

public java.lang.Boolean getSerialized()
Specified by:
getSerialized in interface javax.jdo.metadata.MemberMetadata

getTable

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

getUnique

public java.lang.Boolean getUnique()
Specified by:
getUnique in interface javax.jdo.metadata.MemberMetadata

getUniqueMetadata

public javax.jdo.metadata.UniqueMetadata getUniqueMetadata()
Specified by:
getUniqueMetadata in interface javax.jdo.metadata.MemberMetadata

getValueMetadata

public javax.jdo.metadata.ValueMetadata getValueMetadata()
Specified by:
getValueMetadata in interface javax.jdo.metadata.MemberMetadata

getValueStrategy

public javax.jdo.annotations.IdGeneratorStrategy getValueStrategy()
Specified by:
getValueStrategy in interface javax.jdo.metadata.MemberMetadata

newArrayMetadata

public javax.jdo.metadata.ArrayMetadata newArrayMetadata()
Specified by:
newArrayMetadata in interface javax.jdo.metadata.MemberMetadata

newCollectionMetadata

public javax.jdo.metadata.CollectionMetadata newCollectionMetadata()
Specified by:
newCollectionMetadata in interface javax.jdo.metadata.MemberMetadata

newElementMetadata

public javax.jdo.metadata.ElementMetadata newElementMetadata()
Specified by:
newElementMetadata in interface javax.jdo.metadata.MemberMetadata

newEmbeddedMetadata

public javax.jdo.metadata.EmbeddedMetadata newEmbeddedMetadata()
Specified by:
newEmbeddedMetadata in interface javax.jdo.metadata.MemberMetadata

newForeignKeyMetadata

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

newIndexMetadata

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

newJoinMetadata

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

newKeyMetadata

public javax.jdo.metadata.KeyMetadata newKeyMetadata()
Specified by:
newKeyMetadata in interface javax.jdo.metadata.MemberMetadata

newMapMetadata

public javax.jdo.metadata.MapMetadata newMapMetadata()
Specified by:
newMapMetadata in interface javax.jdo.metadata.MemberMetadata

newOrderMetadata

public javax.jdo.metadata.OrderMetadata newOrderMetadata()
Specified by:
newOrderMetadata in interface javax.jdo.metadata.MemberMetadata

newUniqueMetadata

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

newValueMetadata

public javax.jdo.metadata.ValueMetadata newValueMetadata()
Specified by:
newValueMetadata in interface javax.jdo.metadata.MemberMetadata

setCacheable

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

setColumn

public javax.jdo.metadata.MemberMetadata setColumn(java.lang.String name)
Specified by:
setColumn in interface javax.jdo.metadata.MemberMetadata

setCustomStrategy

public javax.jdo.metadata.MemberMetadata setCustomStrategy(java.lang.String strategy)
Specified by:
setCustomStrategy in interface javax.jdo.metadata.MemberMetadata

setDefaultFetchGroup

public javax.jdo.metadata.MemberMetadata setDefaultFetchGroup(boolean dfg)
Specified by:
setDefaultFetchGroup in interface javax.jdo.metadata.MemberMetadata

setDeleteAction

public javax.jdo.metadata.MemberMetadata setDeleteAction(javax.jdo.annotations.ForeignKeyAction fk)
Specified by:
setDeleteAction in interface javax.jdo.metadata.MemberMetadata

setDependent

public javax.jdo.metadata.MemberMetadata setDependent(boolean flag)
Specified by:
setDependent in interface javax.jdo.metadata.MemberMetadata

setEmbedded

public javax.jdo.metadata.MemberMetadata setEmbedded(boolean flag)
Specified by:
setEmbedded in interface javax.jdo.metadata.MemberMetadata

setFieldType

public javax.jdo.metadata.MemberMetadata setFieldType(java.lang.String types)
Specified by:
setFieldType in interface javax.jdo.metadata.MemberMetadata

setIndexed

public javax.jdo.metadata.MemberMetadata setIndexed(boolean flag)
Specified by:
setIndexed in interface javax.jdo.metadata.MemberMetadata

setLoadFetchGroup

public javax.jdo.metadata.MemberMetadata setLoadFetchGroup(java.lang.String load)
Specified by:
setLoadFetchGroup in interface javax.jdo.metadata.MemberMetadata

setMappedBy

public javax.jdo.metadata.MemberMetadata setMappedBy(java.lang.String mappedBy)
Specified by:
setMappedBy in interface javax.jdo.metadata.MemberMetadata

setName

public javax.jdo.metadata.MemberMetadata setName(java.lang.String name)
Specified by:
setName in interface javax.jdo.metadata.MemberMetadata

setNullValue

public javax.jdo.metadata.MemberMetadata setNullValue(javax.jdo.annotations.NullValue val)
Specified by:
setNullValue in interface javax.jdo.metadata.MemberMetadata

setPersistenceModifier

public javax.jdo.metadata.MemberMetadata setPersistenceModifier(javax.jdo.annotations.PersistenceModifier val)
Specified by:
setPersistenceModifier in interface javax.jdo.metadata.MemberMetadata

setPrimaryKey

public javax.jdo.metadata.MemberMetadata setPrimaryKey(boolean flag)
Specified by:
setPrimaryKey in interface javax.jdo.metadata.MemberMetadata

setRecursionDepth

public javax.jdo.metadata.MemberMetadata setRecursionDepth(int depth)
Specified by:
setRecursionDepth in interface javax.jdo.metadata.MemberMetadata

setSequence

public javax.jdo.metadata.MemberMetadata setSequence(java.lang.String seq)
Specified by:
setSequence in interface javax.jdo.metadata.MemberMetadata

setSerialized

public javax.jdo.metadata.MemberMetadata setSerialized(boolean flag)
Specified by:
setSerialized in interface javax.jdo.metadata.MemberMetadata

setTable

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

setUnique

public javax.jdo.metadata.MemberMetadata setUnique(boolean flag)
Specified by:
setUnique in interface javax.jdo.metadata.MemberMetadata

setValueStrategy

public javax.jdo.metadata.MemberMetadata setValueStrategy(javax.jdo.annotations.IdGeneratorStrategy strategy)
Specified by:
setValueStrategy in interface javax.jdo.metadata.MemberMetadata

getColumns

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

getNumberOfColumns

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

newColumnMetadata

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


Copyright © 2011. All Rights Reserved.