|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
com.crystaldecisions.sdk.occa.report.lib.ClonableList
com.crystaldecisions.sdk.occa.report.lib.ReportSDKVector
com.crystaldecisions.sdk.occa.report.data.Tables
public class Tables
This class defines a collection of database tables. The tables may belong to separate databases.
| Constructor Summary | |
|---|---|
Tables()
Constructor for the Tables class. |
|
Tables(Tables src)
Constructor that creates a copy of a table. |
|
| Method Summary | |
|---|---|
java.lang.Object |
createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
For internal use only. |
void |
endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only. |
int |
findByAlias(java.lang.String aliasName)
Returns the index of the table with the given alias. |
int |
findByName(java.lang.String id)
For internal use only |
ITable |
findTableByAlias(java.lang.String aliasName)
Returns a table with the given alias. |
ITable |
getTable(int index)
Returns the table at a specified index. |
void |
readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
For internal use only. |
void |
save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
For internal use only. |
void |
save(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only. |
| Methods inherited from class com.crystaldecisions.sdk.occa.report.lib.ReportSDKVector |
|---|
add, add, addElement, addNullElement, elementAt, insertElementAt, removeAllElements |
| Methods inherited from class com.crystaldecisions.sdk.occa.report.lib.ClonableList |
|---|
clone, copyTo, copyTo, findIndexOf, hasContent |
| Methods inherited from class java.util.ArrayList |
|---|
addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public Tables(Tables src)
src - the table to copypublic Tables()
| Method Detail |
|---|
public java.lang.Object createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
For internal use only.
createMember in class ClonableList
public void endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only.
endElement in class ClonableListpublic int findByName(java.lang.String id)
public int findByAlias(java.lang.String aliasName)
Returns the index of the table with the given alias. If the table is not found, this method returns -1.
aliasName - the alias of the table
public ITable findTableByAlias(java.lang.String aliasName)
Returns a table with the given alias.
Example: finding the index of the "Customers" table
IDatabase database = clientDoc.getDatabaseController().getDatabase();
Tables tables = database.getTables();
ITable table = tables.findTableByAlias("Customers");
aliasName - the alias of the table
null if the table is not foundpublic ITable getTable(int index)
Returns the table at a specified index.
index - the index of the table
public void readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
For internal use only.
readElement in class ClonableList
public void save(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
For internal use only.
save in class ClonableListjava.io.IOException
public void save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
throws java.io.IOException
For internal use only.
save in class ClonableListjava.io.IOException
public void saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
For internal use only.
saveContents in class ClonableListjava.io.IOException
public void startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only.
startElement in class ClonableList
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||