public class SQLField extends Field implements com.inet.report.ReferenceHolder, Validatable
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
Modifier and Type | Method and Description |
---|---|
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'.
|
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.
|
checkNameExists, extractReference, getField, getGroup, getName, getPlaceholderName, getRefName, getType, getValueType, indexOf, paramString, setField, setGroup, setValueType, trimAwayBrackets
isDOMParser, parseDOM, parseElement, parseEndElement, parseText
public void setName(java.lang.String name) throws ReportException
setName
in class Field
name
- Name of the SQL fieldReportException
- is thrown when name == null or name.length() == 0java.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 Field duplicate(java.lang.String copyName)
public Datasource getDatasource()
public Validity validate()
validate
in interface Validatable
Copyright © 1999-2020 by i-net software GmbH