|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.crystaldecisions.sdk.occa.report.data.FieldMappingInfo
public class FieldMappingInfo
This object enables you to get and set mapping information for a database field.
When the target field is null
or an empty string, it means to drop
the source field in report.
Whenever possible, use the IFieldMappingInfo
interface.
ITableChangeFeedback.getFieldMappingInfos()
Constructor Summary | |
---|---|
FieldMappingInfo()
Creates a new FieldMappingInfo object. |
|
FieldMappingInfo(IFieldMappingInfo src)
Copies a given IFieldMappingInfo object. |
|
FieldMappingInfo(java.lang.String sourceField,
java.lang.String targetField)
Creates a new IFieldMappingInfo , initialized with the given
source and target field names. |
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,
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. |
java.lang.String |
getReportName()
Gets the name of the subreport that the field mapping applies to. |
java.lang.String |
getSourceField()
Gets the source field of the field mapping. |
IConnectionInfo |
getTargetConnectionInfo()
Gets information about the data source connection. |
java.lang.String |
getTargetField()
Gets the target field of the field mapping. |
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(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 |
setReportName(java.lang.String reportName)
Sets the name of the subreport that the field mapping applies to. |
void |
setSourceField(java.lang.String srcField)
Sets the source field of the field mapping. |
void |
setTargetConnectionInfo(IConnectionInfo table)
Sets the data source connection information. |
void |
setTargetField(java.lang.String targetField)
Sets the target field of the field mapping. |
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 FieldMappingInfo(IFieldMappingInfo src)
IFieldMappingInfo
object.
This constructor makes a deep copy of the src
object.
src
- the object to copypublic FieldMappingInfo(java.lang.String sourceField, java.lang.String targetField)
IFieldMappingInfo
, initialized with the given
source and target field names.
sourceField
- The source field name to use in the mapping.targetField
- The target field name to use in the mapping.public FieldMappingInfo()
FieldMappingInfo
object.
Method Detail |
---|
public java.lang.String getSourceField()
IFieldMappingInfo
getSourceField
in interface IFieldMappingInfo
public void setSourceField(java.lang.String srcField)
IFieldMappingInfo
setSourceField
in interface IFieldMappingInfo
srcField
- The name of the source field.public java.lang.String getTargetField()
IFieldMappingInfo
getTargetField
in interface IFieldMappingInfo
public void setTargetField(java.lang.String targetField)
IFieldMappingInfo
setTargetField
in interface IFieldMappingInfo
targetField
- The name of the target field.public IConnectionInfo getTargetConnectionInfo()
IFieldMappingInfo
getTargetConnectionInfo
in interface IFieldMappingInfo
IConnectionInfo
describing the data source connection.public void setTargetConnectionInfo(IConnectionInfo table)
IFieldMappingInfo
setTargetConnectionInfo
in interface IFieldMappingInfo
table
- An IConnectionInfo
describing the data source connection.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, XMLSerializationContext ctxt, java.util.Map objState, boolean[] bLoaded)
public void endElement(java.lang.String eleName, java.util.Map objState)
public boolean hasContent(java.lang.Object obj)
public void readElement(java.lang.String eleName, java.lang.String sVal, org.xml.sax.Attributes attrs, java.util.Map objState)
public void save(XMLWriter writer, XMLSerializationContext ctxt) throws java.io.IOException
java.io.IOException
public void save(XMLWriter writer, java.lang.String sTag, XMLSerializationContext ctxt) throws java.io.IOException
java.io.IOException
public void saveContents(XMLWriter writer, XMLSerializationContext ctxt) throws java.io.IOException
java.io.IOException
public void startElement(java.lang.String eleName, java.util.Map objState, org.xml.sax.Attributes attrs)
public java.lang.String getReportName()
IFieldMappingInfo
getReportName
in interface IFieldMappingInfo
public void setReportName(java.lang.String reportName)
IFieldMappingInfo
setReportName
in interface IFieldMappingInfo
reportName
- A subreport name, or an empty string to specify the main report.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |