|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |
Method Detail |
public java.lang.String getRootObject()
public void setRootObject(java.lang.String value)
Root Object
' attribute.
value
- the new value of the 'Root Object' attribute.getRootObject()
public Table getUniqueKeyTable()
public void setUniqueKeyTable(Table value)
Unique Key Table
' containment reference.
value
- the new value of the 'Unique Key Table' containment reference.getUniqueKeyTable()
public void setUniqueKeyTable(java.lang.String tableName)
Unique Key Table
' containment reference.
getUniqueKeyTable()
public Table getRootTable()
public void setRootTable(Table value)
Root Table
' reference.
value
- the new value of the 'Root Table' reference.getRootTable()
public org.eclipse.emf.common.util.EList getTables()
public org.eclipse.emf.common.util.EList getRelationships()
public Relationship getRelationship(java.lang.String name)
name
-
public Table addTable(java.lang.String tableName)
tableName
-
public Table getTable(java.lang.String tableName)
tableName
-
public Relationship addRelationship(Key parentKey, Key childKey)
parentKey
- the relationship's parent keychildKey
- the relationship's child key
public org.eclipse.emf.common.util.EList getOrderBys()
public int getUniqueKeyBufferSize()
public void setUniqueKeyBufferSize(int value)
Unique Key Buffer Size
' attribute.
value
- the new value of the 'Unique Key Buffer Size' attribute.getUniqueKeyBufferSize()
public Table getTableByPropertyName(java.lang.String propertyName)
public void save(java.lang.String fileName) throws java.io.IOException
fileName
- the name of the file
java.io.IOException
public void save(java.io.OutputStream stream) throws java.io.IOException
stream
- the output stream to which the metadata will be saved
java.io.IOException
public 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
public 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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |