com.lutris.appserver.server.sql |
|
Java Source File Name | Type | Comment |
AbstractDBConnectionFactory.java | Interface | |
AbstractDBTransactionFactory.java | Interface | |
ConnectionAllocator.java | Interface | Defines the connection allocator. |
DatabaseManager.java | Interface | The database management object interface. |
DatabaseManagerException.java | Class | Exception for database manager failures. |
DBConnection.java | Interface | This interface defines a database connection. |
DBQuery.java | Interface | Utility for querying object from a database. |
DBRowUpdateException.java | Class | DBRowUpdateException is thrown when a CoreDO update fails.
Two values are used to uniquely identify a row in a table:
oId and version.
The executeUpdate() method creates an SQL UPDATE command
to write the new values in a CoreDO object back to
the correct row in the database.
The row is identifed by the oId and version values specified
in the WHERE-clause of the UPDATE command.
So, if no row has the specified oId and version combination,
the UPDATE will fail, and report that 0 rows were updated.
Note: other database problems (e.g. |
DBTransaction.java | Interface | Used to perform database transactions.
Example - adding a new user:
import org.enhydra.dods.DODS;
import com.lutris.appserver.server.sql.*;
DBTransaction transaction =
DODS.getDatabaseManager().createTransaction(DATABASE_NAME);
// NOTE: class CustomerDO implements Transaction { ... |
LogicalDatabase.java | Interface | Interface for a logical database. |
ObjectId.java | Class | Represents an object id used by LBS data objects. |
ObjectIdException.java | Class | Exception for object id failures. |
Query.java | Interface | Interface that must be implemented by objects accessed by DBQuery. |
Transaction.java | Interface | Interface that must be implemented by objects accessed by DBTransaction. |