Class RdbUtils

java.lang.Object
org.eso.ias.cdb.rdb.RdbUtils

@Deprecated public class RdbUtils extends Object
Deprecated.
A singleton with a set of utility methods to use while reading/writing the RDB CDB.

RdbUtils is a singleton

Life cyle: the process is in charge to release the resource before exiting (or when does not need to access the RDB anymore) by calling close().

Author:
acaproni
  • Method Details

    • getRdbUtils

      public static RdbUtils getRdbUtils()
      Deprecated.
      Factory method returning the singleton
      Returns:
      The RdbUtils singleton
    • getSession

      public org.hibernate.Session getSession() throws IasCdbException
      Deprecated.
      Get a Session out of the SessionFactory
      Returns:
      a Session
      Throws:
      IasCdbException - in case of error getting the Session
    • close

      public void close()
      Deprecated.
      Close the factory releasing the associated resources
      See Also:
      • SessionFactory.close()
    • isClosed

      public boolean isClosed()
      Deprecated.
      Returns:
      true if the SessionFacory is closed
    • dropTables

      public void dropTables() throws IasCdbException
      Deprecated.
      Throws:
      IasCdbException
    • createTables

      public void createTables() throws IasCdbException
      Deprecated.
      Throws:
      IasCdbException