com.crystaldecisions.sdk.occa.report.data
Class TableChangeFeedback

java.lang.Object
  extended by com.crystaldecisions.sdk.occa.report.data.TableChangeFeedback
All Implemented Interfaces:
ITableChangeFeedback, IClone

public class TableChangeFeedback
extends java.lang.Object
implements ITableChangeFeedback

This object represents a mapping from one table to another, including the mapping of fields.

Whenever possible, use the ITableChangeFeedback interface to manipulate this object.

See Also:
IVerifyDatabaseFeedback.getTableChangeFeedbacks()

Constructor Summary
TableChangeFeedback()
          Creates a new TableChangeFeedback object.
TableChangeFeedback(java.lang.String oldTableAlias, FieldMappingInfos mappings, ITable targetTable)
          Creates a new TableChangeFeedback initialized with field mappings from an old table to a new table.
 
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.
 FieldMappingInfos getFieldMappingInfos()
          Gets the collection of a field mappings from the original to the target table.
 java.lang.String getTableAlias()
          Gets the alias of the original table for the field mappings.
 ITable getTargetTable()
          Gets the target table for the field mappings.
 boolean hasContent(java.lang.Object obj)
           
 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(com.crystaldecisions.xml.serialization.XMLWriter writer, com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt)
          For internal use only.
 void setFieldMappingInfos(FieldMappingInfos mappingInfos)
          Sets the field mappings from the original to the target table.
 void setTableAlias(java.lang.String tableAlias)
          Sets the original table.
 void setTargetTable(ITable table)
          Sets the target table.
 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

TableChangeFeedback

public TableChangeFeedback()
Creates a new TableChangeFeedback object.


TableChangeFeedback

public TableChangeFeedback(java.lang.String oldTableAlias,
                           FieldMappingInfos mappings,
                           ITable targetTable)
Creates a new TableChangeFeedback initialized with field mappings from an old table to a new table.

Parameters:
oldTableAlias - The alias of the old table that the changes apply to.
mappings - Field mappings from the old table oldTableAlias to the new table targetTable.
targetTable - The new table to map the fields onto.
Method Detail

getTableAlias

public java.lang.String getTableAlias()
Description copied from interface: ITableChangeFeedback
Gets the alias of the original table for the field mappings.

Specified by:
getTableAlias in interface ITableChangeFeedback
Returns:
The alias of the oring table.

setTableAlias

public void setTableAlias(java.lang.String tableAlias)
Description copied from interface: ITableChangeFeedback
Sets the original table.

Specified by:
setTableAlias in interface ITableChangeFeedback
Parameters:
tableAlias - The alias of the original table.

getTargetTable

public ITable getTargetTable()
Description copied from interface: ITableChangeFeedback
Gets the target table for the field mappings.

Specified by:
getTargetTable in interface ITableChangeFeedback
Returns:
The target ITable.

setTargetTable

public void setTargetTable(ITable table)
Description copied from interface: ITableChangeFeedback
Sets the target table.

Specified by:
setTargetTable in interface ITableChangeFeedback
Parameters:
table - The new target ITable for the fields.

getFieldMappingInfos

public FieldMappingInfos getFieldMappingInfos()
Description copied from interface: ITableChangeFeedback
Gets the collection of a field mappings from the original to the target table.

Specified by:
getFieldMappingInfos in interface ITableChangeFeedback
Returns:
The FieldMappingInfos describing the field mappings.

setFieldMappingInfos

public void setFieldMappingInfos(FieldMappingInfos mappingInfos)
Description copied from interface: ITableChangeFeedback
Sets the field mappings from the original to the target table.

Specified by:
setFieldMappingInfos in interface ITableChangeFeedback
Parameters:
mappingInfos - The FieldMappingInfos describing which fields in the original table are mapped to which fields in the target table.

clone

public java.lang.Object clone(boolean deepClone)

copyTo

public void copyTo(java.lang.Object destObject,
                   boolean deepCopy)

createMember

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.


endElement

public void endElement(java.lang.String eleName,
                       java.util.Map objState)

For internal use only.


hasContent

public boolean hasContent(java.lang.Object obj)

readElement

public void readElement(java.lang.String eleName,
                        java.lang.String sVal,
                        org.xml.sax.Attributes attrs,
                        java.util.Map objState)

For internal use only.


save

public void save(com.crystaldecisions.xml.serialization.XMLWriter writer,
                 com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt)
          throws java.io.IOException

For internal use only.

Throws:
java.io.IOException

save

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.

Throws:
java.io.IOException

saveContents

public void saveContents(com.crystaldecisions.xml.serialization.XMLWriter writer,
                         com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt)
                  throws java.io.IOException

For internal use only.

Throws:
java.io.IOException

startElement

public void startElement(java.lang.String eleName,
                         java.util.Map objState,
                         org.xml.sax.Attributes attrs)

For internal use only.