Class StiJsonDatabase
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.base.services.StiService
com.stimulsoft.report.dictionary.databases.StiDatabase
com.stimulsoft.report.dictionary.databases.StiFileDatabase
com.stimulsoft.report.dictionary.databases.StiJsonDatabase
- All Implemented Interfaces:
IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiName,ICloneable,IStiAlias,IStiInherited,Cloneable
-
Field Summary
Fields inherited from class com.stimulsoft.report.dictionary.databases.StiFileDatabase
dataIS, pathDataFields inherited from class com.stimulsoft.base.services.StiService
propertiesFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
ConstructorsConstructorDescriptionStiJsonDatabase(String name) StiJsonDatabase(String name, File pathData) StiJsonDatabase(String name, InputStream dataIS) StiJsonDatabase(String name, String pathData) -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(StiDataStoreSource source, Boolean fillTable, StiReport report) voidvoidfillTable(StiDataStoreSource source, StiReport report) getDatabaseInformation(Connection con, StiAbstractAdapter adapter, StiReport report) List of headers used for http requests to load data.getJSONObject(StiReport report) Gets a service name.voidLoadFromJsonObject(JSONObject jObject) voidsetEmbeddedData(String embeddedData) voidsetHeaders(Map<String, String> headers) List of headers used for http requests to load data.voidsetHeadersString(String value) voidsetJsonData(String jsonData) Methods inherited from class com.stimulsoft.report.dictionary.databases.StiFileDatabase
applyDatabaseInformation, getDataInputStream, getDataInputStream, getPathData, setPathDataMethods inherited from class com.stimulsoft.report.dictionary.databases.StiDatabase
clone, connect, createDataSources, edit, getAlias, getConnectedEvent, getConnectingEvent, getDisconnectedEvent, getDisconnectingEvent, getInherited, getKey, getName, getServiceCategory, getServiceType, getString, invokeConnected, invokeConnecting, invokeDisconnected, invokeDisconnecting, onConnected, onDisconnected, onDisconnecting, parsePath, regData, setAlias, setConnectedEvent, setConnectingEvent, setDisconnectedEvent, setDisconnectingEvent, setInherited, setKey, setName, toStringMethods inherited from class com.stimulsoft.base.services.StiService
getProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, packService, properties, setProperties, setServiceEnabledMethods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
-
Constructor Details
-
StiJsonDatabase
public StiJsonDatabase() -
StiJsonDatabase
- Parameters:
name- database name
-
StiJsonDatabase
- Parameters:
name- database namepathData- file path or URL
-
StiJsonDatabase
- Parameters:
name- database namepathData- xml file
-
StiJsonDatabase
- Parameters:
name- database NamedataIS- xmlInputStream
-
-
Method Details
-
getHeadersString
-
setHeadersString
-
getHeaders
List of headers used for http requests to load data.- Returns:
-
setHeaders
List of headers used for http requests to load data.- Parameters:
headers-
-
getServiceName
Gets a service name.- Overrides:
getServiceNamein classStiDatabase
-
connect
- Specified by:
connectin classStiDatabase
-
getJsonData
- Returns:
- the jsonData
-
setJsonData
- Parameters:
jsonData- the jsonData to set
-
getEmbeddedData
- Returns:
- the embeddedData
-
setEmbeddedData
- Parameters:
embeddedData- the embeddedData to set
-
disconnect
public void disconnect()- Specified by:
disconnectin classStiDatabase
-
fillTable
public void fillTable(StiDataStoreSource source, StiReport report) throws FileNotFoundException, JSONException, IOException -
getJSONObject
public Object getJSONObject(StiReport report) throws FileNotFoundException, JSONException, IOException -
getDatabaseInformation
public StiDatabaseInformation getDatabaseInformation(Connection con, StiAbstractAdapter adapter, StiReport report) throws Exception - Overrides:
getDatabaseInformationin classStiDatabase- Throws:
Exception
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiFileDatabase- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiFileDatabase- Throws:
JSONException
-