Class NeqSimBlobDatabase
java.lang.Object
neqsim.util.database.NeqSimBlobDatabase
- All Implemented Interfaces:
Serializable, FileSystemSettings
NeqSimBlobDatabase class.
- Version:
- Dec 2018
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Stringprivate static booleanprotected Connectionstatic StringConstantdataBasePath="".private static String(package private) static org.apache.logging.log4j.LoggerLogger object for class.private static Stringprivate static final longSerialization version UID.private Statementprivate static StringFields 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="". -
createTemporaryTables
private static boolean createTemporaryTables -
dataBaseType
-
connectionString
-
username
-
password
-
statement
-
databaseConnection
-
-
Constructor Details
-
NeqSimBlobDatabase
public NeqSimBlobDatabase()Constructor for NeqSimBlobDatabase.
-
-
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
-