Package net.simplace.sim.io.interfaces
Klasse JSONInterface
java.lang.Object
net.simplace.sim.io.interfaces.FWSimInterface<JSONDataContainer>
net.simplace.sim.io.interfaces.JSONInterface
implementation of the using ConnectionPool
giving access to resources from and output to Databases
use by
FWSimInterfaceFWSimInterface.getInterface(FWSimVarMap, CONTENT_TYPE).createStatement();
Make sure to free connections after use by calling
ConnectionPoolManager#getInstance#freeConnection(Connection)- Autor:
- Andreas Enders
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen net.simplace.sim.io.interfaces.FWSimInterface
FWSimInterface.INTERFACE_TYPE -
Feldübersicht
FelderVon Klasse geerbte Felder net.simplace.sim.io.interfaces.FWSimInterface
iColumnMap, iColumnNamesInt, iIntColumnNames -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungJSONInterface(String aName, String aURL, String aPath, String aVarName) protectedJSONInterface(String aName, FWSimInterface.INTERFACE_TYPE aInterfaceType, int aPoolSize) Constructor has to be called from implementing interfacesprotectedJSONInterface(String aName, org.jdom2.Element aInterfaceElement) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidfinalize()getInterface(FWSimVarMap aVarMap, FWSimVariable.CONTENT_TYPE aContentType) getURL()read(FWSimSession aFwSimSession, String aProjectID, Object aCache, LinkedHashMap<String, String> aKeyMap, FWSimInputAdapter aResourceAdapter, String aUniqueID, FWSimInterface.INTERFACE_TYPE aInterfaceType) factory method creating an interface instance concerning the given data typevoidorg.jdom2.ElementtoXML()Von Klasse geerbte Methoden net.simplace.sim.io.interfaces.FWSimInterface
checkHeaderForColMode, createInterface, createInterface, createStatisticInterface, getInterfaceType, getName, getPoolSize, readColArray, toString, transformArrays, writeToDatabase
-
Felddetails
-
iURL
-
iPath
-
iContent
-
-
Konstruktordetails
-
JSONInterface
Constructor has to be called from implementing interfaces- Parameter:
aName-aInterfaceType-aPoolSize-aPath-
-
JSONInterface
- Parameter:
aName-aInterfaceElement-aPoolSize-
-
JSONInterface
- Parameter:
aName-aURL-aPath-
-
-
Methodendetails
-
getInterface
- Angegeben von:
getInterfacein KlasseFWSimInterface<JSONDataContainer>- Parameter:
aVarMap-aContentType-- Gibt zurück:
- generic interface connection object. for example: database - connection; xml - fileinfo
- Siehe auch:
-
getURL
- Gibt zurück:
- the uRL
-
setURL
- Parameter:
aURL- the uRL to set
-
toXML
public org.jdom2.Element toXML()- Setzt außer Kraft:
toXMLin KlasseFWSimInterface<JSONDataContainer>- Gibt zurück:
- Element containing configuration for this Interface
-
finalize
- Angegeben von:
finalizein KlasseFWSimInterface<JSONDataContainer>- Löst aus:
Exception- Siehe auch:
-
read
public FWSimResourceCache read(FWSimSession aFwSimSession, String aProjectID, Object aCache, LinkedHashMap<String, String> aKeyMap, FWSimInputAdapter aResourceAdapter, String aUniqueID, FWSimInterface.INTERFACE_TYPE aInterfaceType) throws MissingSimResourceExceptionBeschreibung aus Klasse kopiert:FWSimInterfacefactory method creating an interface instance concerning the given data type- Angegeben von:
readin KlasseFWSimInterface<JSONDataContainer>- Parameter:
aFwSimSession-aProjectID-aCache-aKeyMap-aResourceAdapter-aUniqueID-aInterfaceType-- Gibt zurück:
- generic
FWSimResourceCache - Löst aus:
MissingSimResourceException
-