Class DatabaseConnection

java.lang.Object
database.DatabaseConnection

public class DatabaseConnection extends Object
All OdinMS servers maintain a Database Connection. This class therefore "singletonices" the connection per process.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The constant indicating that all ResultSet objects that have previously been kept open should be closed when calling getMoreResults.
    static final int
     
    static final int
    The constant indicating that an error occured while executing a batch statement.
    static final int
    The constant indicating that the current ResultSet object should not be closed when calling getMoreResults.
    static final int
    The constant indicating that generated keys should not be made available for retrieval.
    static final int
    The constant indicating that generated keys should be made available for retrieval.
    static final int
    The constant indicating that a batch statement executed successfully but that no count of the number of rows it affected is available.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    static final Connection
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CLOSE_CURRENT_RESULT

      public static final int CLOSE_CURRENT_RESULT
      See Also:
    • KEEP_CURRENT_RESULT

      public static final int KEEP_CURRENT_RESULT
      The constant indicating that the current ResultSet object should not be closed when calling getMoreResults.
      Since:
      1.4
      See Also:
    • CLOSE_ALL_RESULTS

      public static final int CLOSE_ALL_RESULTS
      The constant indicating that all ResultSet objects that have previously been kept open should be closed when calling getMoreResults.
      Since:
      1.4
      See Also:
    • SUCCESS_NO_INFO

      public static final int SUCCESS_NO_INFO
      The constant indicating that a batch statement executed successfully but that no count of the number of rows it affected is available.
      Since:
      1.4
      See Also:
    • EXECUTE_FAILED

      public static final int EXECUTE_FAILED
      The constant indicating that an error occured while executing a batch statement.
      Since:
      1.4
      See Also:
    • RETURN_GENERATED_KEYS

      public static final int RETURN_GENERATED_KEYS
      The constant indicating that generated keys should be made available for retrieval.
      Since:
      1.4
      See Also:
    • NO_GENERATED_KEYS

      public static final int NO_GENERATED_KEYS
      The constant indicating that generated keys should not be made available for retrieval.
      Since:
      1.4
      See Also:
  • Constructor Details

    • DatabaseConnection

      public DatabaseConnection()
  • Method Details