Class NeqSimExperimentDatabase
java.lang.Object
neqsim.util.database.NeqSimExperimentDatabase
- All Implemented Interfaces:
Serializable, FileSystemSettings
NeqSimExperimentDatabase class.
- Version:
- Dec 2018
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StringConstantconnectionString="jdbc:ucanaccess://C:/Users/esol/OneDriv"{trunked}.private static booleanprotected Connectionstatic StringConstantdataBasePath="".private static String(package private) static org.apache.logging.log4j.LoggerLogger object for class.static StringConstantpassword=""private static final longSerialization version UID.private Statementstatic StringConstantusername=""Fields inherited from interface FileSystemSettings
defaultDatabaseRootRoot, defaultFileTreeRoot, fileExtension, relativeFilePath, root, tempDir -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancreateTemporaryTables.voidexecute.getConnection.static StringGetter for the fieldconnectionString.static StringGetter for the fielddataBaseType.getResultSet(String sqlString) getResultSet.Getter for the fieldstatement.openConnection.static voidsetConnectionString(String aConnectionString) Setter for the fieldconnectionString.voidsetCreateTemporaryTables(boolean createTemporaryTables) Setter for the fieldcreateTemporaryTables.static voidsetDataBaseType(String aDataBaseType) Setter for the fielddataBaseType.static voidsetDataBaseType(String aDataBaseType, String connectionString) Setter for the fielddataBaseType.static voidsetPassword(String aPassword) Setter for the fieldpassword.voidsetStatement(Statement statement) Setter for the fieldstatement.static voidsetUsername(String aUsername) Setter for the fieldusername.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class. -
dataBasePath
ConstantdataBasePath="". -
username
Constantusername="" -
password
Constantpassword="" -
createTemporaryTables
private static boolean createTemporaryTables -
dataBaseType
-
connectionString
ConstantconnectionString="jdbc:ucanaccess://C:/Users/esol/OneDriv"{trunked}. -
statement
-
databaseConnection
-
-
Constructor Details
-
NeqSimExperimentDatabase
public NeqSimExperimentDatabase()Constructor for NeqSimExperimentDatabase.
-
-
Method Details
-
createTemporaryTables
public boolean createTemporaryTables()createTemporaryTables.
- Returns:
- the createTemporaryTables
-
setCreateTemporaryTables
public void setCreateTemporaryTables(boolean createTemporaryTables) Setter for the field
createTemporaryTables.- Parameters:
createTemporaryTables- the createTemporaryTables to set
-
openConnection
openConnection.
- Returns:
- a Connection object
- Throws:
SQLException- if any.ClassNotFoundException- if any.
-
getConnection
-
getResultSet
-
execute
-
getDataBaseType
-
setDataBaseType
-
setDataBaseType
-
getStatement
-
setStatement
Setter for the field
statement.- Parameters:
statement- a Statement object
-
setUsername
Setter for the field
username.- Parameters:
aUsername- the username to set
-
setPassword
Setter for the field
password.- Parameters:
aPassword- the password to set
-
getConnectionString
Getter for the field
connectionString.- Returns:
- the connectionString
-
setConnectionString
Setter for the field
connectionString.- Parameters:
aConnectionString- the connectionString to set
-