public interface IPluginEntitiesConnectionRetVal extends Serializable
Modifier and Type | Method and Description |
---|---|
default Map<String,Object> |
getAdditionalProperties()
This method lets you pass additional properties to the persistence provider (which is currently Hibernate).
|
default EDatenbankTyp |
getDatabaseType()
Different database management systems behave slightly differently, so we need to know about which type of database
we are connecting to.
|
default DataSource |
getDataSource()
This method returns a custom data source for connecting to the database where you would like to save the plugin
entities.
|
default boolean |
isUseSystemDatabase()
You may want to save you entities in the same database that is used by FORMCYCLE.
|
default DataSource getDataSource()
isUseSystemDatabase()
returns true
.
This method may create a new data source (which is potentially a costly operation): the system will call this method only once when the plugin is initialized.
isUseSystemDatabase()
returns false
, this must not return null
, or an exception will be
thrown when the plugin is initialized. If isUseSystemDatabase()
returns true
, the returned value
is ignored.default boolean isUseSystemDatabase()
true
. If you do, the getDataSource()
will be ignored, but you can still use
getAdditionalProperties()
or getDataSource()
to customize the database connection. Also, make
sure you use unique names for the tables of your entities that do not conflict with existing FORMCYCLE table names.
For example, consider prepending a prefix to all table names.
On the other hand, if you return false
here, you need to specify a getDataSource()
.
true
to use the FORMCYCLE system database, or false
otherwise.default EDatenbankTyp getDatabaseType()
null
to guess the type.default Map<String,Object> getAdditionalProperties()
Environment
.null
or empty, no additional
properties are set.Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.