Package io.permazen.kv.mssql
Class MSSQLKVImplementation
java.lang.Object
io.permazen.kv.sql.SQLDriverKVImplementation<SQLDriverKVImplementation.Config>
io.permazen.kv.mssql.MSSQLKVImplementation
- All Implemented Interfaces:
KVImplementation<SQLDriverKVImplementation.Config>
public class MSSQLKVImplementation
extends SQLDriverKVImplementation<SQLDriverKVImplementation.Config>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.permazen.kv.sql.SQLDriverKVImplementation
SQLDriverKVImplementation.Config
-
Field Summary
Fields inherited from class io.permazen.kv.sql.SQLDriverKVImplementation
jdbcUriOption
-
Constructor Summary
ConstructorDescriptionDefault constructor.MSSQLKVImplementation
(String driverClassName) Constructor allowing alternative driver. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addJdbcUriOption
(joptsimple.OptionParser parser) protected SQLDriverKVImplementation.Config
buildConfig
(joptsimple.OptionSet options, URI uri) protected MSSQLKVDatabase
createSQLKVDatabase
(SQLDriverKVImplementation.Config configuration) Instantiate aSQLKVDatabase
.getDescription
(SQLDriverKVImplementation.Config configuration) Generate a short, human-readable description of theKVDatabase
instance configured as given.Methods inherited from class io.permazen.kv.sql.SQLDriverKVImplementation
addJdbcUriOption, addOptions, buildConfig, createKVDatabase, providesKVDatabase
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.permazen.kv.KVImplementation
createAtomicKVStore, getConfigType, providesAtomicKVStore, requiresAtomicKVStore, requiresKVDatabase
-
Field Details
-
MSSQL_DRIVER_CLASS_NAME
- See Also:
-
-
Constructor Details
-
MSSQLKVImplementation
public MSSQLKVImplementation()Default constructor. -
MSSQLKVImplementation
Constructor allowing alternative driver.- Parameters:
driverClassName
- SQL ServerDriver
implementation class name
-
-
Method Details
-
addJdbcUriOption
protected void addJdbcUriOption(joptsimple.OptionParser parser) - Specified by:
addJdbcUriOption
in classSQLDriverKVImplementation<SQLDriverKVImplementation.Config>
-
buildConfig
- Specified by:
buildConfig
in classSQLDriverKVImplementation<SQLDriverKVImplementation.Config>
-
getDescription
Description copied from interface:KVImplementation
Generate a short, human-readable description of theKVDatabase
instance configured as given.- Parameters:
configuration
- implementation configuration returned bybuildConfig()
- Returns:
- human-readable description
-
createSQLKVDatabase
Description copied from class:SQLDriverKVImplementation
Instantiate aSQLKVDatabase
.This method does not need to configure the
DataSource
(viaSQLKVDatabase.setDataSource()
); the calling method will do that.- Specified by:
createSQLKVDatabase
in classSQLDriverKVImplementation<SQLDriverKVImplementation.Config>
- Parameters:
configuration
- implementation configuration returned bybuildConfig()
- Returns:
- new key/value database
-