java.lang.Object
org.nkjmlab.sorm4j.util.h2.datasource.H2LocalDataSourceFactory
A factory of local data source with h2 database.
- 作成者:
- nkjm
-
ネストされたクラスの概要
ネストされたクラス -
メソッドの概要
修飾子とタイプメソッド説明builder()Initializes a newly createdH2LocalDataSourceFactory.Builderobject; you can get {LocalDataSourceFactoryobject via build method. "~/" or "~\" in the database directory path will be expanded.org.h2.jdbcx.JdbcConnectionPoolCreates a new embedded mode connection pool for H2 databasesorg.h2.jdbcx.JdbcConnectionPoolcreateEmbeddedModeDataSource(String... options) Creates a new embedded mode connection pool for H2 databasesorg.h2.jdbcx.JdbcConnectionPoolCreates a new sever mode connection pool for H2 databasesorg.h2.jdbcx.JdbcConnectionPoolcreateInMemoryModeDataSource(String... options) Creates a new sever mode connection pool for H2 databasesorg.h2.jdbcx.JdbcConnectionPoolCreates a new mixed mode connection pool for H2 databasesorg.h2.jdbcx.JdbcConnectionPoolcreateMixedModeDataSource(String... options) Creates a new mixed mode connection pool for H2 databasesorg.h2.jdbcx.JdbcConnectionPoolCreates a new sever mode connection pool for H2 databasesorg.h2.jdbcx.JdbcConnectionPoolcreateServerModeDataSource(String... options) Creates a new sever mode connection pool for H2 databasesstatic DataSourceCreates temporal an in memory data source.getEmbeddedModeJdbcUrl(String... options) getInMemoryModeJdbcUrl(String... options) getMixedModeJdbcUrl(String... options) getServerModeJdbcUrl(String... options) booleanMake a new file database in not existstoString()
-
メソッドの詳細
-
getInMemoryModeJdbcUrl
-
getServerModeJdbcUrl
-
getEmbeddedModeJdbcUrl
-
getMixedModeJdbcUrl
-
getInMemoryModeJdbcUrl
-
getServerModeJdbcUrl
-
getEmbeddedModeJdbcUrl
-
getMixedModeJdbcUrl
-
createInMemoryModeDataSource
public org.h2.jdbcx.JdbcConnectionPool createInMemoryModeDataSource()Creates a new sever mode connection pool for H2 databases- 戻り値:
-
createServerModeDataSource
public org.h2.jdbcx.JdbcConnectionPool createServerModeDataSource()Creates a new sever mode connection pool for H2 databases- 戻り値:
-
createEmbeddedModeDataSource
public org.h2.jdbcx.JdbcConnectionPool createEmbeddedModeDataSource()Creates a new embedded mode connection pool for H2 databases- 戻り値:
-
createMixedModeDataSource
public org.h2.jdbcx.JdbcConnectionPool createMixedModeDataSource()Creates a new mixed mode connection pool for H2 databases- 戻り値:
-
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- 戻り値:
-
makeFileDatabaseIfNotExists
public boolean makeFileDatabaseIfNotExists()Make a new file database in not exists- 戻り値:
- true if and only if the directory was created,along with all necessary parent directories; false otherwise
-
getDatabaseFile
-
getUsername
-
getPassword
-
getDatabaseDirectory
-
getDatabaseName
-
getDatabasePath
-
builder
-
builder
public static H2LocalDataSourceFactory.Builder builder(File databaseDirectory, String databaseName, String username, String password) Initializes a newly createdH2LocalDataSourceFactory.Builderobject; you can get {LocalDataSourceFactoryobject via build method. "~/" or "~\" in the database directory path will be expanded.- パラメータ:
databaseDirectory- the directory including the database file.databaseName- the name of database.username-password-
-
toString
-
createTemporalInMemoryDataSource
Creates temporal an in memory data source.- 戻り値:
-