org.datanucleus.jdo.metadata
Class KeyMetadataImpl

java.lang.Object
  extended by org.datanucleus.jdo.metadata.AbstractMetadataImpl
      extended by org.datanucleus.jdo.metadata.KeyMetadataImpl
All Implemented Interfaces:
javax.jdo.metadata.KeyMetadata, javax.jdo.metadata.Metadata

public class KeyMetadataImpl
extends AbstractMetadataImpl
implements javax.jdo.metadata.KeyMetadata

Implementation of JDO KeyMetadata object.


Constructor Summary
KeyMetadataImpl(KeyMetaData internal)
           
 
Method Summary
 java.lang.String getColumn()
           
 javax.jdo.metadata.ColumnMetadata[] getColumns()
           
 javax.jdo.annotations.ForeignKeyAction getDeleteAction()
           
 javax.jdo.metadata.EmbeddedMetadata getEmbeddedMetadata()
           
 javax.jdo.metadata.ForeignKeyMetadata getForeignKeyMetadata()
           
 javax.jdo.metadata.IndexMetadata getIndexMetadata()
           
 KeyMetaData getInternal()
           
 int getNumberOfColumns()
           
 java.lang.String getTable()
           
 javax.jdo.metadata.UniqueMetadata getUniqueMetadata()
           
 javax.jdo.annotations.ForeignKeyAction getUpdateAction()
           
 javax.jdo.metadata.ColumnMetadata newColumnMetadata()
           
 javax.jdo.metadata.EmbeddedMetadata newEmbeddedMetadata()
           
 javax.jdo.metadata.ForeignKeyMetadata newForeignKeyMetadata()
           
 javax.jdo.metadata.IndexMetadata newIndexMetadata()
           
 javax.jdo.metadata.UniqueMetadata newUniqueMetadata()
           
 javax.jdo.metadata.KeyMetadata setColumn(java.lang.String name)
           
 javax.jdo.metadata.KeyMetadata setDeleteAction(javax.jdo.annotations.ForeignKeyAction fk)
           
 javax.jdo.metadata.KeyMetadata setTable(java.lang.String name)
           
 javax.jdo.metadata.KeyMetadata setUpdateAction(javax.jdo.annotations.ForeignKeyAction fk)
           
 
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

KeyMetadataImpl

public KeyMetadataImpl(KeyMetaData internal)
Method Detail

getInternal

public KeyMetaData getInternal()

getColumn

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

getColumns

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

getNumberOfColumns

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

setColumn

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

newColumnMetadata

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

getDeleteAction

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

setDeleteAction

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

getUpdateAction

public javax.jdo.annotations.ForeignKeyAction getUpdateAction()
Specified by:
getUpdateAction in interface javax.jdo.metadata.KeyMetadata

setUpdateAction

public javax.jdo.metadata.KeyMetadata setUpdateAction(javax.jdo.annotations.ForeignKeyAction fk)
Specified by:
setUpdateAction in interface javax.jdo.metadata.KeyMetadata

getForeignKeyMetadata

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

newForeignKeyMetadata

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

getIndexMetadata

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

newIndexMetadata

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

getUniqueMetadata

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

newUniqueMetadata

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

getEmbeddedMetadata

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

newEmbeddedMetadata

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

getTable

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

setTable

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


Copyright © 2010. All Rights Reserved.