パッケージ org.nkjmlab.util.h2
クラス H2DataSourceFactory
java.lang.Object
org.nkjmlab.util.h2.H2DataSourceFactory
- 作成者:
- nkjm
-
ネストされたクラスの概要
-
コンストラクタの概要
コンストラクタ説明H2DataSourceFactory
(File databaseDirectory, String databaseName, String username, String password) -
メソッドの概要
修飾子とタイプメソッド説明static H2DataSourceFactory.Builder
builder()
static H2DataSourceFactory.Builder
static H2DataSourceFactory.Builder
org.h2.jdbcx.JdbcConnectionPool
createEmbeddedModeDataSource
(String... options) Creates a new embedded mode connection pool for H2 databasesorg.h2.jdbcx.JdbcConnectionPool
createInMemoryModeDataSource
(String... options) Creates a new sever mode connection pool for H2 databasesorg.h2.jdbcx.JdbcConnectionPool
createMixedModeDataSource
(String... options) Creates a new mixed mode connection pool for H2 databasesorg.h2.jdbcx.JdbcConnectionPool
createServerModeDataSource
(String... options) Creates a new sever mode connection pool for H2 databasesgetEmbeddedModeJdbcUrl
(String... options) getInMemoryModeJdbcUrl
(String... options) getMixedModeJdbcUrl
(String... options) getServerModeJdbcUrl
(String... options) void
Creates the directory for the database.
-
コンストラクタの詳細
-
H2DataSourceFactory
-
-
メソッドの詳細
-
getInMemoryModeJdbcUrl
-
getServerModeJdbcUrl
-
getEmbeddedModeJdbcUrl
-
getMixedModeJdbcUrl
-
createInMemoryModeDataSource
Creates a new sever mode connection pool for H2 databases- 戻り値:
-
createServerModeDataSource
Creates a new sever mode connection pool for H2 databases- 戻り値:
-
createEmbeddedModeDataSource
Creates a new embedded mode connection pool for H2 databases- 戻り値:
-
createMixedModeDataSource
Creates a new mixed mode connection pool for H2 databases- 戻り値:
-
getUsername
-
getPassword
-
getDatabaseDirectory
-
getDatabaseName
-
getDatabasePath
-
mkdirsForDatabase
public void mkdirsForDatabase()Creates the directory for the database. -
builder
-
builder
-
builder
public static H2DataSourceFactory.Builder builder(File databaseDirectory, String databaseName, String username, String password)
-