|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.crystaldecisions.sdk.occa.report.data.TableLink
public class TableLink
This object implements a link between two tables. The tables may be in different databases. A field
from the one table (called the source table) and a field from the other table (called the target table)
are used to link the two tables together. When possible, use the ITableLink interface to manipulate
this object.
Note: The ITableLink APIs only support Crystal Report Writer version 8.5 link
types. Version 9 or greater links are treated as an Advanced type
TableJoinType. You cannot modify existing link objects to Advanced type. Use the
ITableJoin APIs to modify a version 9 or greater link.
com.crystaldecisions.sdk.occa.report.application.DatabaseController#addTable(ITable, TableLinks)
DatabaseController.addTable(ITable, TableLinks)}
{@link com.crystaldecisions.sdk.occa.report.application.DatabaseController#addTableLink(ITableLink)
DatabaseController.addTableLink(ITableLink)}
{@link com.crystaldecisions.sdk.occa.report.application.DatabaseController#modifyTableLink(ITableLink, ITableLink)
DatabaseController.modifyTableLink(ITableLink, ITableLink)}
{@link com.crystaldecisions.sdk.occa.report.application.DatabaseController#removeTableLink(ITableLink)
DatabaseController.removeTableLink(ITableLink)}
{@link com.crystaldecisions.sdk.occa.report.application.DatabaseController#findTableLink(Object, Object)
DatabaseController.findTableLink(Object, Object)}| Constructor Summary | |
|---|---|
TableLink()
|
|
TableLink(ITableLink src)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone(boolean deepClone)
|
void |
copyTo(java.lang.Object destObject,
boolean deepCopy)
|
java.lang.Object |
createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
com.crystaldecisions.xml.serialization.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. |
TableJoinType |
getJoinType()
Returns the manner in which the tables are joined. |
IStrings |
getSourceFieldNames()
Returns the names of the fields contained in the source table to be linked. |
java.lang.String |
getSourceTableAlias()
Returns the source table's alias. |
IStrings |
getTargetFieldNames()
Returns the names of the fields contained in the target table to be linked. |
java.lang.String |
getTargetTableAlias()
Returns the target table's alias. |
boolean |
hasContent(java.lang.Object srcTableLink)
|
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(com.crystaldecisions.xml.serialization.XMLWriter writer,
com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt)
For internal use only. |
void |
save(com.crystaldecisions.xml.serialization.XMLWriter writer,
java.lang.String sTag,
com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt)
For internal use only. |
void |
saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
setJoinType(TableJoinType joinType)
Sets the manner in which the tables are joined. |
void |
setSourceFieldNames(IStrings sourceFieldNames)
Sets the names of the fields contained in the source table to be linked. |
void |
setSourceTableAlias(java.lang.String srcTableAlias)
Sets the source table's alias. |
void |
setTargetFieldNames(IStrings targetFieldNames)
Sets the names of the fields contained in the target table to be linked. |
void |
setTargetTableAlias(java.lang.String targetTableAlias)
Sets the target table's alias. |
void |
startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableLink(ITableLink src)
public TableLink()
| Method Detail |
|---|
public java.lang.Object clone(boolean deepClone)
public void copyTo(java.lang.Object destObject,
boolean deepCopy)
public java.lang.Object createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
For internal use only.
public void endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only.
public TableJoinType getJoinType()
ITableLinkReturns the manner in which the tables are joined.
getJoinType in interface ITableLinkTableJoinType object that specifies the manner in which the tables are joined.TableJoinTypepublic IStrings getSourceFieldNames()
ITableLinkReturns the names of the fields contained in the source table to be linked.
getSourceFieldNames in interface ITableLinkIStrings object containing the names of the fields contained in the source
table to be linked.public java.lang.String getSourceTableAlias()
ITableLinkReturns the source table's alias.
getSourceTableAlias in interface ITableLinkString containing the source table's alias.public IStrings getTargetFieldNames()
ITableLinkReturns the names of the fields contained in the target table to be linked.
getTargetFieldNames in interface ITableLinkIStrings object containing the names of the fields contained in the target
table to be linked.public java.lang.String getTargetTableAlias()
ITableLinkReturns the target table's alias.
getTargetTableAlias in interface ITableLinkString containing the target table's alias.public boolean hasContent(java.lang.Object srcTableLink)
public void readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
For internal use only.
public void save(com.crystaldecisions.xml.serialization.XMLWriter writer,
com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt)
throws java.io.IOException
For internal use only.
java.io.IOException
public void save(com.crystaldecisions.xml.serialization.XMLWriter writer,
java.lang.String sTag,
com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt)
throws java.io.IOException
For internal use only.
java.io.IOException
public void saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
For internal use only.
java.io.IOExceptionpublic void setJoinType(TableJoinType joinType)
ITableLinkSets the manner in which the tables are joined.
setJoinType in interface ITableLinkjoinType - A TableJoinType object that specifies the manner in which the tables are joined.public void setSourceFieldNames(IStrings sourceFieldNames)
ITableLinkSets the names of the fields contained in the source table to be linked.
setSourceFieldNames in interface ITableLinksourceFieldNames - An IStrings object containing the names of the fields contained in
the source table to be linked.public void setSourceTableAlias(java.lang.String srcTableAlias)
ITableLinkSets the source table's alias.
setSourceTableAlias in interface ITableLinksrcTableAlias - A String containing the source table's alias.public void setTargetFieldNames(IStrings targetFieldNames)
ITableLinkSets the names of the fields contained in the target table to be linked.
setTargetFieldNames in interface ITableLinktargetFieldNames - An IStrings object containing the names of the fields contained
in the target table to be linked.public void setTargetTableAlias(java.lang.String targetTableAlias)
ITableLinkSets the target table's alias.
setTargetTableAlias in interface ITableLinktargetTableAlias - A String containing the target table's alias.
public void startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||