Class DatabaseConnection
java.lang.Object
database.DatabaseConnection
All OdinMS servers maintain a Database Connection. This class therefore
"singletonices" the connection per process.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe constant indicating that allResultSetobjects that have previously been kept open should be closed when callinggetMoreResults.static final intstatic final intThe constant indicating that an error occured while executing a batch statement.static final intThe constant indicating that the currentResultSetobject should not be closed when callinggetMoreResults.static final intThe constant indicating that generated keys should not be made available for retrieval.static final intThe constant indicating that generated keys should be made available for retrieval.static final intThe constant indicating that a batch statement executed successfully but that no count of the number of rows it affected is available. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CLOSE_CURRENT_RESULT
public static final int CLOSE_CURRENT_RESULT- See Also:
-
KEEP_CURRENT_RESULT
public static final int KEEP_CURRENT_RESULTThe constant indicating that the currentResultSetobject should not be closed when callinggetMoreResults.- Since:
- 1.4
- See Also:
-
CLOSE_ALL_RESULTS
public static final int CLOSE_ALL_RESULTSThe constant indicating that allResultSetobjects that have previously been kept open should be closed when callinggetMoreResults.- Since:
- 1.4
- See Also:
-
SUCCESS_NO_INFO
public static final int SUCCESS_NO_INFOThe 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_FAILEDThe 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_KEYSThe 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_KEYSThe constant indicating that generated keys should not be made available for retrieval.- Since:
- 1.4
- See Also:
-
-
Constructor Details
-
DatabaseConnection
public DatabaseConnection()
-
-
Method Details
-
getConnection
-
closeAll
- Throws:
SQLException
-