Class H2ConnectionFactory
- java.lang.Object
-
- com.alessiodp.core.common.storage.sql.connection.H2ConnectionFactory
-
- All Implemented Interfaces:
ConnectionFactory
public class H2ConnectionFactory extends Object implements ConnectionFactory
-
-
Constructor Summary
Constructors Constructor Description H2ConnectionFactory(ADPPlugin plugin, @NotNull String databaseUrl)H2ConnectionFactory(ADPPlugin plugin, @NotNull Path databasePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageTypegetType()Get the storage type of the connection factoryvoidinit()Initialize connection factoryvoidstop()Stop the connection factory-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alessiodp.core.common.storage.sql.connection.ConnectionFactory
getJdbi, getTablePrefix, isFailed, setDatabaseUrl
-
-
-
-
Method Detail
-
init
public void init()
Description copied from interface:ConnectionFactoryInitialize connection factory- Specified by:
initin interfaceConnectionFactory
-
stop
public void stop()
Description copied from interface:ConnectionFactoryStop the connection factory- Specified by:
stopin interfaceConnectionFactory
-
getType
public StorageType getType()
Description copied from interface:ConnectionFactoryGet the storage type of the connection factory- Specified by:
getTypein interfaceConnectionFactory- Returns:
- the storage type
-
-