Package net.simplace.sim.transformers
Class DefaultSQLStatementTransformer
java.lang.Object
net.simplace.sim.io.FWSimIOAdapter
net.simplace.sim.io.resources.FWSimInputAdapter
net.simplace.sim.io.resources.FWSimResourceTransformer
net.simplace.sim.transformers.DefaultSQLStatementTransformer
- All Implemented Interfaces:
FWSimFieldContainer
Transforms the content by a simple SQL-Statement driven on all tables read in the
resources part.
- Author:
- Andreas Enders
-
Nested Class Summary
Nested classes/interfaces inherited from class net.simplace.sim.io.FWSimIOAdapter
FWSimIOAdapter.FREQUENCE
-
Field Summary
Fields inherited from class net.simplace.sim.io.resources.FWSimResourceTransformer
iFieldMap, iIntColumnMap, iLastInputValuesMap, iLastProjectID, iLastUniqueID, iPoolName, iSourceName
Fields inherited from class net.simplace.sim.io.resources.FWSimInputAdapter
iJexlScript, iShouldCacheToDB
Fields inherited from class net.simplace.sim.io.FWSimIOAdapter
iArrayMode, iFieldcount, iFrequence, iHeaderVariables, iInterface, iJexlRule, iKeyMap, iName, iOrderNumber, iProcessTime, iResourceElement, iSession, iSourceKey
-
Constructor Summary
ConstructorDescriptionDefaultSQLStatementTransformer
(FWSimSession aSession, Integer aOrderNumber) DefaultSQLStatementTransformer
(FWSimSession aSession, org.jdom2.Element aResourceElement, Integer aOrderNumber) -
Method Summary
Modifier and TypeMethodDescriptionreturns a new hash map containing the header informationvoid
fillVarMap
(FWSimVarMap aSimVarMap) getData
(FWSimVarMap aVarMap) protected ResultSet
getResultSet
(FWSimVarMap aVarMap) void
updateFields
(FWObservable aObservable) Methods inherited from class net.simplace.sim.io.resources.FWSimResourceTransformer
addVariable, createFormFields, createResourceTransformer, createResourceTransformer, createResourceTransformer, getCreateFormXML, getEditFormXML, getSourceResourceCache, getVariable, isUpdated, toXML
Methods inherited from class net.simplace.sim.io.resources.FWSimInputAdapter
getInputVariables, getJexlScript, getOutputVariables, getVarMap, isTransformer, shouldCacheToDB, toHTMLTablestring
Methods inherited from class net.simplace.sim.io.FWSimIOAdapter
addProcessTime, checkCondition, createFormFields, finalize, getFieldMap, getFrequence, getHeaderVariables, getHeaderXML, getInterface, getJexlRule, getKeyMap, getName, getOrderNumber, isArrayMode, isConditionCheck, removeVariable, setInterface, setOrderNumber, toString, writeHeaderList
-
Field Details
-
iStatement
Statement for the DefaultSQLTransformer
-
-
Constructor Details
-
DefaultSQLStatementTransformer
public DefaultSQLStatementTransformer(FWSimSession aSession, org.jdom2.Element aResourceElement, Integer aOrderNumber) - Parameters:
aSession
-aResourceElement
-aOrderNumber
-
-
DefaultSQLStatementTransformer
- Parameters:
aSession
-aOrderNumber
-
-
-
Method Details
-
createVariables
Description copied from class:FWSimIOAdapter
returns a new hash map containing the header information- Specified by:
createVariables
in interfaceFWSimFieldContainer
- Overrides:
createVariables
in classFWSimIOAdapter
- Returns:
- variables from the field map
- See Also:
-
getData
- Specified by:
getData
in classFWSimInputAdapter
- Returns:
- SimResourceCache containing the data from the resource media
- Throws:
MissingSimResourceException
- See Also:
-
getResultSet
- Parameters:
aVarMap
-- Returns:
- the ResultSet as result of the given Statement
- Throws:
MissingSimResourceException
-
fillVarMap
- Overrides:
fillVarMap
in classFWSimResourceTransformer
- See Also:
-
getContentType
- Specified by:
getContentType
in interfaceFWSimFieldContainer
- Overrides:
getContentType
in classFWSimInputAdapter
- Returns:
- number in the order of Components
- See Also:
-
updateFields
- Specified by:
updateFields
in classFWSimResourceTransformer
- See Also:
-