Retrieves an instance by id.
Retrieves an instance by id.
the primary key to look up the instance
Option[T]
Determines the class representation for the supplied QueryResult row.
Determines the class representation for the supplied QueryResult row. Overriding this allows for polymorphism to function properly on this table. Defaults to using table's type.
the class representation for this row
EnhancedClass
Deletes the supplied instance.
Deletes the supplied instance.
the instance to delete
true if the delete was successful - will only be false if "deleting" event processor returns None
Fired immediately after successful delete.
Fired immediately after successful delete.
Fired immediately before deleting an object from the database.
Fired immediately before deleting an object from the database. The instance may be modified or None returned to avoid deletion.
True if the supplied instance has an id assigned (meaning it has been persisted).
True if the supplied instance has an id assigned (meaning it has been persisted).
Returns an optional ColumnValue[C] for the supplied instance based on whether it has been persisted.
Returns an optional ColumnValue[C] for the supplied instance based on whether it has been persisted.
Inserts the supplied instance into the datastore.
Inserts the supplied instance into the datastore.
the instance to insert
updated instance reflecting any changes resulting from the insert
Fired immediate after successful insert.
Fired immediate after successful insert.
Fired immediately before inserting a new object into the database.
Fired immediately before inserting a new object into the database. The instance may be modified in the response.
Merges the instance into the database.
Merges the instance into the database. If a row already exists matching the primary keys of the instance it will be replaced, otherwise the record will be inserted.
the instance to merge
updated instance reflecting any changes resulting from the merge
Fired immediate after successful merge.
Fired immediate after successful merge.
Fired immediately before merging a new object into the database.
Fired immediately before merging a new object into the database. The instance may be modified in the response.
Converts the supplied object to a MappedObject representing the modified object (during persistence) along with the column values to send to the database.
Converts the supplied object to a MappedObject representing the modified object (during persistence) along with the column values to send to the database.
true if only the changed values should be supplied
MappedObject[T]
Inserts or updates the supplied instance based on whether an id is assigned to the instance.
Inserts or updates the supplied instance based on whether an id is assigned to the instance.
the instance to persist
updated instance reflecting any changes resulting from the persist
Fired if an exception is thrown during persistence (insert, update, or merge).
Fired if an exception is thrown during persistence (insert, update, or merge). If Some(t) is returned the attempt is made another time with the updated value.
Fired immediate after successful persisting.
Fired immediate after successful persisting. Persisted is called after insert, merge, and update.
Fired immediately before persisting an object to the database.
Fired immediately before persisting an object to the database. The instance may be modified in the response. Persisting is called before insert, merge, and update.
Retrieves a list of ColumnValue entries representing the primary keys for this table and their values based upon the supplied instance.
Retrieves a list of ColumnValue entries representing the primary keys for this table and their values based upon the supplied instance.
List of primary keys tied to columns
Generates a query that will pull back all necessary fields and joins to represent the instance.
Generates a query that will pull back all necessary fields and joins to represent the instance.
Fired immediately after querying an instance.
Fired immediately after querying an instance. Listeners have the ability to modify the resulting instance.
Queries the datastore for results based upon the supplied query.
Queries the datastore for results based upon the supplied query.
the query to utilize
iterator to cycle through instances derived from query result rows
Responsible method for converting a QueryResult into an instance of T.
Responsible method for converting a QueryResult into an instance of T.
representation of result as an object T
T
Updates the provided instance to the database.
Updates the provided instance to the database.
the instance to update
updated instance reflecting any changes resulting from the update to the database
Updates the supplied instance with a new id and returns the updated instance.
Updates the supplied instance with a new id and returns the updated instance.
the instance to assign an id to
the id to be assigned
a copy of the instance with the new id
Fired immediately after successful update.
Fired immediately after successful update.
Fired immediately before updating an object in the database.
Fired immediately before updating an object in the database. The instance may be modified in the response.