|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Metadata
Metadata describes a set of database tables and how they map into an SDO DataGraph. Information from the Metadata is used to generate queries, determine the shape of a DataGraph, and construct a DataGraph.
Method Summary | |
---|---|
Relationship |
addRelationship(Key parentKey,
Key childKey)
Create and add a Relationship object with the given parentKey and childKey |
Table |
addTable(java.lang.String tableName)
Create and add a Table object with the given tableName |
org.eclipse.emf.common.util.EList |
getOrderBys()
Return the List of OrderBy objects contained in the Metadata |
Relationship |
getRelationship(java.lang.String name)
Get the Relationship object with the specified name |
org.eclipse.emf.common.util.EList |
getRelationships()
Returns the List of Relationship objects contained in the Metadata |
java.lang.String |
getRootObject()
The Root Object attribute determines the type name associated with the root object in a DataGraph. |
Table |
getRootTable()
Returns the root Table object |
Table |
getTable(java.lang.String tableName)
Return the Table object with the given tableName |
Table |
getTableByPropertyName(java.lang.String propertyName)
Return the Table object with the given propertyName |
org.eclipse.emf.common.util.EList |
getTables()
Returns the List of Table objects contained in the Metadata |
int |
getUniqueKeyBufferSize()
Return the value of the Unique Key Buffer Size attribute |
Table |
getUniqueKeyTable()
Returns the Table used for generating unique keys. |
void |
save(java.io.OutputStream stream)
Saves the current Metadata in XMI format to the given OutputStream |
void |
save(java.lang.String fileName)
Saves the current Metadata in XMI format to the given file name |
void |
saveToEcore(java.io.OutputStream stream,
java.lang.String prefix,
java.lang.String packageName)
Convert the current Metadata to an Ecore model and then save it to the given OutputStream |
void |
saveToEcore(java.lang.String fileName,
java.lang.String prefix,
java.lang.String packageName)
Convert the current Metadata to an Ecore model and then save it to the given file name |
void |
setRootObject(java.lang.String value)
Sets the value of the ' Root Object ' attribute |
void |
setRootTable(Table value)
Sets the value of the ' Root Table ' reference |
void |
setUniqueKeyBufferSize(int value)
Sets the value of the ' Unique Key Buffer Size ' attribute |
void |
setUniqueKeyTable(java.lang.String tableName)
Sets the value of the ' Unique Key Table ' containment reference |
void |
setUniqueKeyTable(Table value)
Sets the value of the ' Unique Key Table ' containment reference |
void |
setUseForeignKeyFields(boolean useForeignKeyFields)
Set the value of the useForeignKeyFields property. |
boolean |
useForeignKeyFields()
When true, the mediator will only traverse relationships to populate foreign key fields when the relationship has been changed. |
Method Detail |
---|
java.lang.String getRootObject()
void setRootObject(java.lang.String value)
Root Object
' attribute.
value
- the new value of the 'Root Object' attribute.getRootObject()
Table getUniqueKeyTable()
void setUniqueKeyTable(Table value)
Unique Key Table
' containment reference.
value
- the new value of the 'Unique Key Table' containment reference.getUniqueKeyTable()
void setUniqueKeyTable(java.lang.String tableName)
Unique Key Table
' containment reference.
value
- the new value of the 'Unique Key Table' containment reference.getUniqueKeyTable()
Table getRootTable()
void setRootTable(Table value)
Root Table
' reference.
value
- the new value of the 'Root Table' reference.getRootTable()
org.eclipse.emf.common.util.EList getTables()
org.eclipse.emf.common.util.EList getRelationships()
Relationship getRelationship(java.lang.String name)
name
-
Table addTable(java.lang.String tableName)
tableName
-
Table getTable(java.lang.String tableName)
tableName
-
Relationship addRelationship(Key parentKey, Key childKey)
parentKey
- the relationship's parent keychildKey
- the relationship's child key
org.eclipse.emf.common.util.EList getOrderBys()
int getUniqueKeyBufferSize()
void setUniqueKeyBufferSize(int value)
Unique Key Buffer Size
' attribute.
value
- the new value of the 'Unique Key Buffer Size' attribute.getUniqueKeyBufferSize()
Table getTableByPropertyName(java.lang.String propertyName)
name
-
void save(java.lang.String fileName) throws java.io.IOException
fileName
- the name of the file
java.io.IOException
void save(java.io.OutputStream stream) throws java.io.IOException
stream
- the output stream to which the metadata will be saved
java.io.IOException
void saveToEcore(java.lang.String fileName, java.lang.String prefix, java.lang.String packageName) throws InvalidMetadataException, java.io.IOException
fileName
- the name of the fileprefix
- the prefix for the Factory and Package objectspackageName
- the package name
java.io.IOException
InvalidMetadataException
void saveToEcore(java.io.OutputStream stream, java.lang.String prefix, java.lang.String packageName) throws InvalidMetadataException, java.io.IOException
stream
- the output streamprefix
- the prefix for the Factory and Package objectspackageName
- the package name
InvalidMetadataException
java.io.IOException
boolean useForeignKeyFields()
void setUseForeignKeyFields(boolean useForeignKeyFields)
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |