public.javadoc.org.spincast.testing.core.h2.SpincastTestingH2ConfigDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastTestingH2ConfigDefault (org.spincast:spincast-framework 1.0.0 API)
org.spincast.testing.core.h2
Class SpincastTestingH2ConfigDefault
- java.lang.Object
-
- org.spincast.testing.core.h2.SpincastTestingH2ConfigDefault
-
- All Implemented Interfaces:
- SpincastTestingH2Config
public class SpincastTestingH2ConfigDefault
extends Object
implements SpincastTestingH2Config
-
-
Constructor Summary
Constructors
Constructor and Description
SpincastTestingH2ConfigDefault()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
String
getCompatibilityMode()
Should a compatibility mode be used by H2?
Be default, "MODE=PostgreSQL" will be
used.
String
getDatabaseName()
The name of the database.
String
getServerHost()
The host on which to start the server.
Integer
getServerPort()
The port on which to start the H2
TCP server.
boolean
isDatabaseToUpper()
Defaults to false
.
-
-
Method Detail
-
getServerHost
public String getServerHost()
Description copied from interface: SpincastTestingH2Config
The host on which to start the server.
Should probably be "localhost".
- Specified by:
getServerHost
in interface SpincastTestingH2Config
-
getDatabaseName
public String getDatabaseName()
Description copied from interface: SpincastTestingH2Config
The name of the database. Defaults
to "test".
- Specified by:
getDatabaseName
in interface SpincastTestingH2Config
-
getServerPort
public Integer getServerPort()
Description copied from interface: SpincastTestingH2Config
The port on which to start the H2
TCP server. If null
a random free port will be used.
Defaults to 9092.
- Specified by:
getServerPort
in interface SpincastTestingH2Config
-
getCompatibilityMode
public String getCompatibilityMode()
Description copied from interface: SpincastTestingH2Config
Should a compatibility mode be used by H2?
Be default, "MODE=PostgreSQL" will be
used.
- Specified by:
getCompatibilityMode
in interface SpincastTestingH2Config
- See Also:
http://www.h2database.com/html/features.html#compatibility
-
isDatabaseToUpper
public boolean isDatabaseToUpper()
Description copied from interface: SpincastTestingH2Config
Defaults to false
.
- Specified by:
isDatabaseToUpper
in interface SpincastTestingH2Config
- See Also:
https://www.h2database.com/javadoc/org/h2/engine/DbSettings.html#DATABASE_TO_UPPER
Copyright © 2019. All rights reserved.