public abstract class StiDatabase extends StiService implements IStiInherited, IStiName, IStiJsonReportObject
propertiesREFERENCE_EMPTY, REFERENCE_REPORT| Constructor and Description |
|---|
StiDatabase()
Creates a new object of the type StiDatabase.
|
StiDatabase(java.lang.String name)
Creates a new object of the type StiDatabase.
|
StiDatabase(java.lang.String name,
java.lang.String alias)
Creates a new object of the type StiDatabase.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyDatabaseInformation(StiDatabaseInformation info,
StiReport report,
StiDatabaseInformation allInfo) |
abstract void |
connect(StiDataStoreSource source,
java.lang.Boolean fillTable,
StiReport report) |
abstract void |
connect(StiDataStoreSource stiDataStoreSource,
StiReport report) |
void |
createDataSources(StiDictionary dictionary) |
abstract void |
disconnect() |
int |
edit(boolean newDatabase)
Calls the form for database edition.
|
java.lang.String |
getAlias()
Gets or sets alias of database.
|
StiConnectedEvent |
getConnectedEvent()
Occurs when connection is activated.
|
StiConnectingEvent |
getConnectingEvent()
Occurs when connection is activating.
|
StiDatabaseInformation |
getDatabaseInformation(java.sql.Connection con,
StiAbstractAdapter adapter,
StiReport report) |
StiDisconnectedEvent |
getDisconnectedEvent()
Occurs when connection is deactivated.
|
StiDisconnectingEvent |
getDisconnectingEvent()
Occurs when connection is deactivating.
|
boolean |
getInherited() |
java.lang.String |
getKey() |
java.lang.String |
getName()
Gets or sets name of database.
|
java.lang.String |
getServiceCategory()
Gets a service category.
|
java.lang.String |
getServiceName() |
java.lang.Class<?> |
getServiceType() |
java.lang.String |
getString() |
void |
LoadFromJsonObject(JSONObject jObject) |
protected void |
onConnected(StiEventHandlerArgs e)
Raises the Connected event for this component.
|
protected void |
onDisconnected(StiEventHandlerArgs e)
Raises the Disconnected event for this connection.
|
protected void |
onDisconnecting(StiEventHandlerArgs e)
Raises the Disconnecting event for this connection.
|
void |
regData(StiDictionary dictionary,
boolean loadData)
Registers the database in dictionary.
|
JSONObject |
SaveToJsonObject(StiJsonSaveMode mode) |
void |
setAlias(java.lang.String value) |
void |
setConnectedEvent(StiConnectedEvent value) |
void |
setConnectingEvent(StiConnectingEvent value) |
void |
setDisconnectedEvent(StiDisconnectedEvent value) |
void |
setDisconnectingEvent(StiDisconnectingEvent value) |
void |
setInherited(boolean value) |
void |
setKey(java.lang.String key) |
void |
setName(java.lang.String value) |
java.lang.String |
toString() |
clone, getProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, packService, properties, setProperties, setServiceEnabledcleanReference, getReference, setReferencepublic StiDatabase()
public StiDatabase(java.lang.String name)
name - Name of database.public StiDatabase(java.lang.String name,
java.lang.String alias)
name - Name of database.alias - Alias of database.public void createDataSources(StiDictionary dictionary) throws java.lang.Exception
java.lang.Exceptionpublic final boolean getInherited()
getInherited in interface IStiInheritedpublic final void setInherited(boolean value)
setInherited in interface IStiInheritedpublic java.lang.String getKey()
public void setKey(java.lang.String key)
key - the key to setpublic final java.lang.String getServiceCategory()
getServiceCategory in class StiServicepublic final StiConnectingEvent getConnectingEvent()
public final void setConnectingEvent(StiConnectingEvent value)
protected void onConnected(StiEventHandlerArgs e)
public final StiConnectedEvent getConnectedEvent()
public final void setConnectedEvent(StiConnectedEvent value)
protected void onDisconnecting(StiEventHandlerArgs e)
public final StiDisconnectingEvent getDisconnectingEvent()
public final void setDisconnectingEvent(StiDisconnectingEvent value)
protected void onDisconnected(StiEventHandlerArgs e)
public final StiDisconnectedEvent getDisconnectedEvent()
public final void setDisconnectedEvent(StiDisconnectedEvent value)
public final java.lang.String getName()
public final void setName(java.lang.String value)
public final java.lang.String getAlias()
public final void setAlias(java.lang.String value)
public StiDatabaseInformation getDatabaseInformation(java.sql.Connection con, StiAbstractAdapter adapter, StiReport report) throws java.lang.Exception
java.lang.Exceptionpublic void applyDatabaseInformation(StiDatabaseInformation info, StiReport report, StiDatabaseInformation allInfo)
public int edit(boolean newDatabase)
newDatabase - public void regData(StiDictionary dictionary, boolean loadData)
dictionary - Dictionary in which is registered database.loadData - Load the data or no.public java.lang.Class<?> getServiceType()
getServiceType in class StiServicepublic abstract void connect(StiDataStoreSource stiDataStoreSource, StiReport report) throws StiException
StiExceptionpublic abstract void connect(StiDataStoreSource source, java.lang.Boolean fillTable, StiReport report) throws StiException
StiExceptionpublic abstract void disconnect()
public java.lang.String getServiceName()
getServiceName in class StiServicepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getString()
public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
SaveToJsonObject in interface IStiJsonReportObjectJSONExceptionpublic void LoadFromJsonObject(JSONObject jObject) throws JSONException
LoadFromJsonObject in interface IStiJsonReportObjectJSONExceptionCopyright © 2019 Stimulsoft. All Rights Reserved.