Class NeqSimBlobDatabase

java.lang.Object
neqsim.util.database.NeqSimBlobDatabase
All Implemented Interfaces:
Serializable, FileSystemSettings

public class NeqSimBlobDatabase extends Object implements FileSystemSettings, Serializable

NeqSimBlobDatabase class.

Version:
Dec 2018
Author:
Even Solbraa
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version UID.
      See Also:
    • logger

      static org.apache.logging.log4j.Logger logger
      Logger object for class.
    • dataBasePath

      public static String dataBasePath
      Constant dataBasePath="".
    • createTemporaryTables

      private static boolean createTemporaryTables
    • dataBaseType

      private static String dataBaseType
    • connectionString

      private static String connectionString
    • username

      private static String username
    • password

      private static String password
    • statement

      private Statement statement
    • databaseConnection

      protected Connection 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

      public Connection openConnection() throws SQLException, ClassNotFoundException

      openConnection.

      Returns:
      a Connection object
      Throws:
      SQLException - if any.
      ClassNotFoundException - if any.
    • getConnection

      public Connection getConnection()

      getConnection.

      Returns:
      a Connection object
    • getResultSet

      public ResultSet getResultSet(String sqlString)

      getResultSet.

      Parameters:
      sqlString - a String object
      Returns:
      a ResultSet object
    • execute

      public void execute(String sqlString)

      execute.

      Parameters:
      sqlString - a String object
    • getDataBaseType

      public static String getDataBaseType()

      Getter for the field dataBaseType.

      Returns:
      a String object
    • setDataBaseType

      public static void setDataBaseType(String aDataBaseType)

      Setter for the field dataBaseType.

      Parameters:
      aDataBaseType - a String object
    • setDataBaseType

      public static void setDataBaseType(String aDataBaseType, String connectionString)

      Setter for the field dataBaseType.

      Parameters:
      aDataBaseType - a String object
      connectionString - a String object
    • getStatement

      public Statement getStatement()

      Getter for the field statement.

      Returns:
      a Statement object
    • setStatement

      public void setStatement(Statement statement)

      Setter for the field statement.

      Parameters:
      statement - a Statement object
    • setUsername

      public static void setUsername(String aUsername)

      Setter for the field username.

      Parameters:
      aUsername - the username to set
    • setPassword

      public static void setPassword(String aPassword)

      Setter for the field password.

      Parameters:
      aPassword - the password to set
    • getConnectionString

      public static String getConnectionString()

      Getter for the field connectionString.

      Returns:
      the connectionString
    • setConnectionString

      public static void setConnectionString(String aConnectionString)

      Setter for the field connectionString.

      Parameters:
      aConnectionString - the connectionString to set