public interface LocalDatabase
ConnectorPersistentStore
Modifier and Type | Method and Description |
---|---|
DatabaseResourceBundle |
getDatabaseResourceBundle()
Gets a
DatabaseResourceBundle through which the connector
implementor can get database-specific resources, such as SQL. |
SpiConstants.DatabaseType |
getDatabaseType()
Returns a
SpiConstants.DatabaseType enum identifying the database
implementation. |
javax.sql.DataSource |
getDataSource()
Gets a
DataSource which the connector implementer can use for any
purpose. |
java.lang.String |
getDescription()
Returns a String giving a description of the database.
|
javax.sql.DataSource getDataSource()
DataSource
which the connector implementer can use for any
purpose.DataSource
DatabaseResourceBundle getDatabaseResourceBundle()
DatabaseResourceBundle
through which the connector
implementor can get database-specific resources, such as SQL. The DatabaseResourceBundle
returned will be constructed by the Connector
Manager to return resources specific to this connector's type and to the
specific database version currently in use. See the Developer's guide for
details on how implementors can supply resources to the installation.DatabaseResourceBundle
SpiConstants.DatabaseType getDatabaseType()
SpiConstants.DatabaseType
enum identifying the database
implementation.SpiConstants.DatabaseType
enum identifying the database
implementation.java.lang.String getDescription()
For now, the form of this string is intentionally under-specified, for
flexibility. The SPI only guarantees that, if this object's database type is not
SpiConstants.DatabaseType.OTHER
, then this string begins with the string-value
of that SpiConstants.DatabaseType
. More formally, for any
LocalDatabase object db
then the following is true: (db.getDatabaseInfoString().startsWith(db.getDatabase().toString())) ||
(db.getDatabase() == DatabaseType.OTHER)
. If the database type is
"other", then the string should start with a simple name of the
database (rather than the "unsupported"
).
The remainder of the string is reserved to hold additional information, such as version.