AbstractProtected ReadonlyentityProtected ReadonlyfieldDelete an object by ID.
query context with which to perform the deletion
the field in the object that is the ID
the value of the ID field in the object
Protected AbstractdeleteFetch many objects where key is one of values.
query context with which to perform the fetch
load key being queried
load values being queried
map from value to objects that match the query for that value
Protected AbstractfetchFetch one objects where key is equal to value, null if no matching object exists. Returned object is not guaranteed to be deterministic. Most concrete implementations will implement this with a "first" or "limit 1" query.
query context with which to perform the fetch
load key being queried
object that matches the query for the value
Protected AbstractfetchProtected AbstractgetTransformer definitions for field types. Used to modify values as they are read from or written to the database. Override in concrete subclasses to change transformation behavior. If a field type is not present in the map, then fields of that type will not be transformed.
Insert an object.
query context with which to perform the insert
the object to insert
the inserted object
Protected AbstractinsertUpdate an object.
query context with which to perform the update
the field in the object that is the ID
the value of the ID field in the object
the object to update
the updated object
Protected Abstractupdate
A database adapter is an interface by which entity objects can be fetched, inserted, updated, and deleted from a database. This base class handles all entity field transformation. Subclasses are responsible for implementing database-specific logic for a type of database.