|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.Field
com.inet.report.SQLField
public class SQLField
This class represents a field for sql-statements.
This class is part of the RDC.
| Field Summary |
|---|
| Fields inherited from class com.inet.report.Field |
|---|
BINARY, BOOLEAN, CURRENCY, CURSOR, DATABASE_FIELD, DATE, DATETIME, FORMULA_FIELD, GROUP_NAME_FIELD, NUMBER, PARAMETER_FIELD, SORT_FIELD, SPECIAL_FIELD, SQL_FIELD, STRING, SUMMARY_FIELD, TIME, UNKNOWN |
| Method Summary | |
|---|---|
Field |
duplicate(java.lang.String copyName)
Duplicates this field with all its settings and returns the created Field with the given name. |
Datasource |
getDatasource()
Returns the datasource. |
java.lang.String |
getSQLExpression()
Returns the value of the property 'sql expression text'. |
NodeParser |
parseElement(com.inet.report.parser.XMLTag group,
java.lang.String tag,
org.xml.sax.Attributes atts,
java.util.Map parserMap)
FOR INTERNAL USE ONLY Internal method for reading report XML Parses an XML node with the given information, and returns either a sub-element which was created as a result, or null if no sub-element was created, i.e. the information was applied to the ReportComponent itself. |
void |
parseText(java.lang.String text,
java.util.Map parserMap)
FOR INTERNAL USE ONLY Internal method for reading report XML This method is called if text was encountered in the context of this node. |
void |
setName(java.lang.String name)
Sets the name of the sql field. |
void |
setSQLExpression(java.lang.String formula)
Sets the value of the property 'sql expression text'. |
Validity |
validate()
Check if the object is valid and returns the state and details of possible errors. |
| Methods inherited from class com.inet.report.Field |
|---|
checkNameExists, extractReference, getField, getGroup, getName, getPlaceholderName, getRefName, getType, getValueType, indexOf, paramString, setField, setGroup, setValueType, trimAwayBrackets |
| Methods inherited from interface com.inet.report.parser.NodeParser |
|---|
isDOMParser, parseDOM, parseEndElement |
| Method Detail |
|---|
public void setName(java.lang.String name)
throws ReportException
setName in class Fieldname - Name of the sql field
ReportException - is thrown when name == null or name.length() == 0
java.lang.IllegalArgumentException - is thrown when the name already exists.public java.lang.String getSQLExpression()
public void setSQLExpression(java.lang.String formula)
throws ReportException
formula - The new value of the property 'sql expression text'.
ReportException - is thrown if the sql expression contains errors or a connection to the configured database fails.
public NodeParser parseElement(com.inet.report.parser.XMLTag group,
java.lang.String tag,
org.xml.sax.Attributes atts,
java.util.Map parserMap)
throws FatalParserException
Parses an XML node with the given information, and returns either a sub-element which was created as a result, or null if no sub-element was created, i.e. the information was applied to the ReportComponent itself. Note that the parsing is highly tolerant, i.e. exceptions are intercepted and suppressed if at all possible.
parseElement in interface NodeParsergroup - XMLTag of the current node to be parsed, or null if there is no such current group. An XMLTag is a group
of nodes bundled together, usually it is a Properties node such as CommonProperties, BorderProperties, etc.tag - The XMLTag to be parsedatts - The set of attributes in the current XMLTagparserMap - The map of current Parser.
FatalParserException - if an exception occurs which causes the report to not be able to be read: causes the abortion of the
reading of the report.
public void parseText(java.lang.String text,
java.util.Map parserMap)
This method is called if text was encountered in the context of this node. (Examples would be a formula's text or a text element's text)
parseText in interface NodeParsertext - text encountered and to be storedparserMap - The map of current Parser.public Field duplicate(java.lang.String copyName)
duplicate in class FieldcopyName - the name the created field should have.
public Datasource getDatasource()
public Validity validate()
validate in interface Validatable
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||