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