javax.jdo.metadata
Interface ElementMetadata

All Superinterfaces:
Metadata

public interface ElementMetadata
extends Metadata

Represents an element in a collection/array.

Since:
3.0

Method Summary
 java.lang.String getColumn()
          Accessor for the name of the column.
 ColumnMetadata[] getColumns()
          Accessor for all column(s) defined on the element.
 ForeignKeyAction getDeleteAction()
          Accessor for the delete action of the FK
 EmbeddedMetadata getEmbeddedMetadata()
          Accessor for any embedded metadata on this element
 ForeignKeyMetadata getForeignKeyMetadata()
          Accessor for any foreign key metadata on this element.
 IndexMetadata getIndexMetadata()
          Accessor for any index metadata on this element
 int getNumberOfColumns()
          Accessor for the number of columns defined for this element.
 java.lang.String getTable()
          Accessor for the name of the table.
 UniqueMetadata getUniqueMetadata()
          Accessor for any unique constraint metadata on this element.
 ForeignKeyAction getUpdateAction()
          Accessor for the update action of the FK
 ColumnMetadata newColumnMetadata()
          Add a new column for this element.
 EmbeddedMetadata newEmbeddedMetadata()
          Method to set new embedded metadata for the element.
 ForeignKeyMetadata newForeignKeyMetadata()
          Method to set new foreign key metadata for the element
 IndexMetadata newIndexMetadata()
          Method to set new index metadata for the element.
 UniqueMetadata newUniqueMetadata()
          Method to set new unique constraint metadata for the element
 ElementMetadata setColumn(java.lang.String column)
          Method to set the column name.
 ElementMetadata setDeleteAction(ForeignKeyAction action)
          Method to set the delete action of the FK
 ElementMetadata setTable(java.lang.String table)
          Method to set the table name.
 ElementMetadata setUpdateAction(ForeignKeyAction action)
          Method to set the update action of the FK
 
Methods inherited from interface javax.jdo.metadata.Metadata
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata
 

Method Detail

setColumn

ElementMetadata setColumn(java.lang.String column)
Method to set the column name.

Parameters:
column - Column name

getColumn

java.lang.String getColumn()
Accessor for the name of the column.

Returns:
The name

setTable

ElementMetadata setTable(java.lang.String table)
Method to set the table name.

Parameters:
table - Table name

getTable

java.lang.String getTable()
Accessor for the name of the table.

Returns:
The name

setDeleteAction

ElementMetadata setDeleteAction(ForeignKeyAction action)
Method to set the delete action of the FK

Parameters:
action - Delete action of the FK

getDeleteAction

ForeignKeyAction getDeleteAction()
Accessor for the delete action of the FK

Returns:
The FK delete-action

setUpdateAction

ElementMetadata setUpdateAction(ForeignKeyAction action)
Method to set the update action of the FK

Parameters:
action - Update action of the FK

getUpdateAction

ForeignKeyAction getUpdateAction()
Accessor for the update action of the FK

Returns:
The FK update-action

getColumns

ColumnMetadata[] getColumns()
Accessor for all column(s) defined on the element.

Returns:
The column(s)

newColumnMetadata

ColumnMetadata newColumnMetadata()
Add a new column for this element.

Returns:
The ColumnMetadata

getNumberOfColumns

int getNumberOfColumns()
Accessor for the number of columns defined for this element.

Returns:
The number of columns

newEmbeddedMetadata

EmbeddedMetadata newEmbeddedMetadata()
Method to set new embedded metadata for the element.

Returns:
The EmbeddedMetadata

getEmbeddedMetadata

EmbeddedMetadata getEmbeddedMetadata()
Accessor for any embedded metadata on this element

Returns:
The EmbeddedMetadata

newIndexMetadata

IndexMetadata newIndexMetadata()
Method to set new index metadata for the element.

Returns:
The IndexMetadata

getIndexMetadata

IndexMetadata getIndexMetadata()
Accessor for any index metadata on this element

Returns:
Index metadata

newUniqueMetadata

UniqueMetadata newUniqueMetadata()
Method to set new unique constraint metadata for the element

Returns:
The UniqueMetadata

getUniqueMetadata

UniqueMetadata getUniqueMetadata()
Accessor for any unique constraint metadata on this element.

Returns:
The UniqueMetadata

newForeignKeyMetadata

ForeignKeyMetadata newForeignKeyMetadata()
Method to set new foreign key metadata for the element

Returns:
The ForeignKeyMetadata

getForeignKeyMetadata

ForeignKeyMetadata getForeignKeyMetadata()
Accessor for any foreign key metadata on this element.

Returns:
The ForeignKeyMetadata


Copyright © 2005-2010 Apache Software Foundation. All Rights Reserved.