All Packages Class Hierarchy This Package Previous Next Index
Class de.tudarmstadt.ito.xmldbms.DocumentInfo
java.lang.Object
|
+----de.tudarmstadt.ito.xmldbms.DocumentInfo
- public class DocumentInfo
- extends Object
Contains information necessary to retrieve a document.
The DocumentInfo class contains information necessary to
retrieve a single XML document from the database: the names of the
root tables in which the document was stored, the names of the
key columns in these tables, the applicable key values, and the
names of the order columns in these tables.
There will be more than one set of values only if the root element
type is ignored, in which case there is one set of values for each
child. These can point to the same table (the child element types
are all the same) or multiple tables (the child element types are
different).
DocumentInfo objects are returned by DOMToDBMS.storeDocument
and may be passed to DBMSToDOM.retrieveDocument(DocumentInfo).
- Version:
- 1.01
- Author:
- Ronald Bourret, Technical University of Darmstadt
- See Also:
- storeDocument, retrieveDocument
-
DocumentInfo()
- Construct a DocumentInfo object.
-
DocumentInfo(String, String[], Object[], String)
- Construct a DocumentInfo object and initialize it from table and column
names.
-
DocumentInfo(Table, Column[], Object[], Column)
- Construct a DocumentInfo object and initialize from Table and Column
objects.
-
addInfo(String, String[], Object[], String)
- Add a set of values to the DocumentInfo object using table and column
names.
-
addInfo(Table, Column[], Object[], Column)
- Add a set of values to the DocumentInfo object using Table and
Column objects.
-
getKey(int)
- Get the ith key.
-
getKeyColumnNames(int)
- Get the names of the key columns for the ith table.
-
getOrderColumnName(int)
- Get the name of the order column for the ith table.
-
getTableName(int)
- Get the name of the ith table.
-
size()
- Get the number of keys.
DocumentInfo
public DocumentInfo()
- Construct a DocumentInfo object.
DocumentInfo
public DocumentInfo(Table table,
Column keyColumns[],
Object key[],
Column orderColumn)
- Construct a DocumentInfo object and initialize from Table and Column
objects.
- Parameters:
- table - Table object for the table containing the data.
- keyColumns - Column objects for the key columns in the table.
- key - Key used to retrieve the data.
- orderColumn - Column object for the column stating the order in
which the data values are to be retrieved. Null if there is no order
column.
DocumentInfo
public DocumentInfo(String tableName,
String keyColumnNames[],
Object key[],
String orderColumnName)
- Construct a DocumentInfo object and initialize it from table and column
names.
- Parameters:
- tableName - Name of the table containing the data.
- keyColumnNames - Names of the key columns in the table.
- key - Key used to retrieve the data.
- orderColumnName - Name of the column stating the order in
which the data values are to be retrieved. Null if there is no order
column.
size
public int size()
- Get the number of keys.
getTableName
public String getTableName(int num)
- Get the name of the ith table.
- Parameters:
- num - Table number.
- Returns:
- Name of the table.
getKeyColumnNames
public String[] getKeyColumnNames(int num)
- Get the names of the key columns for the ith table.
- Parameters:
- num - Table number.
- Returns:
- Names of the key columns.
getKey
public Object[] getKey(int num)
- Get the ith key.
- Parameters:
- num - Key number.
- Returns:
- Key value.
getOrderColumnName
public String getOrderColumnName(int num)
- Get the name of the order column for the ith table.
- Parameters:
- num - Table number.
- Returns:
- Name of the order column. Null if there is no order column.
addInfo
public void addInfo(Table table,
Column keyColumns[],
Object key[],
Column orderColumn)
- Add a set of values to the DocumentInfo object using Table and
Column objects.
- Parameters:
- table - Table object for the table containing the data.
- keyColumns - Column objects for the key columns in the table.
- key - Key used to retrieve the data.
- orderColumn - Column object for the column stating the order in
which the data values are to be retrieved. Null if there is no order
column.
addInfo
public void addInfo(String tableName,
String keyColumnNames[],
Object key[],
String orderColumnName)
- Add a set of values to the DocumentInfo object using table and column
names.
- Parameters:
- tableName - Name of the table containing the data.
- keyColumnNames - Names of the key columns in the table.
- key - Key used to retrieve the data.
- orderColumnName - Name of the column stating the order in
which the data values are to be retrieved. Null if there is no order
column.
All Packages Class Hierarchy This Package Previous Next Index