Klasse SQLField
java.lang.Object
com.inet.report.Field
com.inet.report.SQLField
- Alle implementierten Schnittstellen:
NodeParser, com.inet.report.ReferencedObject, com.inet.report.ReferenceHolder, Validatable, Serializable
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen Field
Field.FieldAttributeTag -
Feldübersicht
Von Klasse geerbte Felder 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 -
Methodenübersicht
Modifikator und TypMethodeBeschreibungfinal voidaddReferencedObject(com.inet.report.ReferencedObject reference) FOR INTERNAL USE ONLYvoidchangeAliasName(String oldAlias, String newAlias) FOR INTERNAL USE ONLYDuplicates this field with all its settings and returns the created Field with the given name.Returns the datasource.final intFOR INTERNAL USE ONLYfinal intFOR INTERNAL USE ONLYfinal com.inet.report.ReferencedObject[]FOR INTERNAL USE ONLYReturns the value of the property 'SQL expression text'.booleanisUsed()FOR INTERNAL USE ONLYparseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLvoidFOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLfinal voidremoveReferencedObject(com.inet.report.ReferencedObject reference) FOR INTERNAL USE ONLYfinal voidFOR INTERNAL USE ONLYprotected voidsaveFieldXML2(PrintWriter pw, int depth) FOR INTERNAL USE ONLYvoidSets the name of the SQL field.final voidFOR INTERNAL USE ONLYvoidsetSQLExpression(String formula) Sets the value of the property 'SQL expression text'.validate()Check if the object is valid and returns the state and details of possible errors.Von Klasse geerbte Methoden Field
addReferenceHolder, checkNameExists, equals, extractReference, getField, getGroup, getName, getPlaceholderName, getRealReferenceCount, getReferenceHolderCount, getReferenceHolders, getRefName, getType, getValueType, indexOf, isDOMParser, paramString, parseDOM, parseEndElement, removeReferenceHolder, rename, setField, setGroup, setValueType, trimAwayBrackets
-
Methodendetails
-
setName
Sets the name of the SQL field. The name does not exists already, otherwise an exception will be thrown.- Angegeben von:
setNamein KlasseField- Parameter:
name- Name of the SQL field- Löst aus:
ReportException- is thrown when name == null or name.length() == 0IllegalArgumentException- is thrown when the name already exists.- Seit:
- 6.0
-
getSQLExpression
Returns the value of the property 'SQL expression text'.- Gibt zurück:
- The value of the property 'SQL expression text'.
- Seit:
- 6.0
-
setSQLExpression
Sets the value of the property 'SQL expression text'. The value type of the result of this SQL expression is fetched by the configured database.- Parameter:
formula- The new value of the property 'SQL expression text'.- Löst aus:
ReportException- is thrown if the SQL expression contains errors or a connection to the configured database fails.- Seit:
- 6.0
-
changeAliasName
-
saveFieldXML2
FOR INTERNAL USE ONLY- Angegeben von:
saveFieldXML2in KlasseField- Parameter:
pw- the print writerdepth- the current depth
-
addReferencedObject
public final void addReferencedObject(com.inet.report.ReferencedObject reference) FOR INTERNAL USE ONLY- Angegeben von:
addReferencedObjectin Schnittstellecom.inet.report.ReferenceHolder- Seit:
- 6.0
-
getReferencedObjects
public final com.inet.report.ReferencedObject[] getReferencedObjects()FOR INTERNAL USE ONLY- Angegeben von:
getReferencedObjectsin Schnittstellecom.inet.report.ReferenceHolder- Seit:
- 6.0
-
getRealReferencedObjectCount
public final int getRealReferencedObjectCount()FOR INTERNAL USE ONLY- Angegeben von:
getRealReferencedObjectCountin Schnittstellecom.inet.report.ReferenceHolder- Seit:
- 6.0
-
getReferencedObjectCount
public final int getReferencedObjectCount()FOR INTERNAL USE ONLY- Angegeben von:
getReferencedObjectCountin Schnittstellecom.inet.report.ReferenceHolder
-
removeReferencedObject
public final void removeReferencedObject(com.inet.report.ReferencedObject reference) FOR INTERNAL USE ONLY- Angegeben von:
removeReferencedObjectin Schnittstellecom.inet.report.ReferenceHolder
-
setReferences
public final void setReferences()FOR INTERNAL USE ONLY- Angegeben von:
setReferencesin Schnittstellecom.inet.report.ReferenceHolder
-
resetReferences
public final void resetReferences()FOR INTERNAL USE ONLY- Angegeben von:
resetReferencesin Schnittstellecom.inet.report.ReferenceHolder
-
isUsed
-
parseElement
public NodeParser parseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) throws FatalParserExceptionFOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLParses 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.
- Angegeben von:
parseElementin SchnittstelleNodeParser- Setzt außer Kraft:
parseElementin KlasseField- Parameter:
group- 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.- Gibt zurück:
- The NodeParser sub-element if one needed to be created, or null if none was created.
- Löst aus:
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.
-
parseText
FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLThis 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)
- Angegeben von:
parseTextin SchnittstelleNodeParser- Setzt außer Kraft:
parseTextin KlasseField- Parameter:
text- text encountered and to be storedparserMap- The map of current Parser.
-
duplicate
Duplicates this field with all its settings and returns the created Field with the given name. Note that the new formula field will not initially be referenced by any other report objects. If you duplicate a property formula, you will have to set the new formula as a separate property formula. -
getDatasource
Returns the datasource. This field use the datasource to get data from the database.- Gibt zurück:
- the datasource (not null)
- Seit:
- 9.2
-
validate
Check if the object is valid and returns the state and details of possible errors.- Angegeben von:
validatein SchnittstelleValidatable- Gibt zurück:
- the current state, never null.
-