Sets up the persistent context before and after a Grails operation is invoked.
Type | Name and description |
---|---|
void |
clear() Clear any pending changes. |
void |
destroy() Called to finalize the persistent context. |
void |
disconnect() Disconnects the persistence context. |
void |
flush() Flushes any pending changes to the DB. |
void |
init() Called to intialisation the persistent context. |
boolean |
isOpen() Checks whether the persistence context is open. |
void |
reconnect() Reconnects the persistence context. |
void |
setReadOnly() Sets the persistence context to read-only mode. |
void |
setReadWrite() Sets the persistence context to read-write mode. |
Clear any pending changes.
Called to finalize the persistent context.
Disconnects the persistence context.
Flushes any pending changes to the DB.
Called to intialisation the persistent context.
Checks whether the persistence context is open.
Reconnects the persistence context.
Sets the persistence context to read-only mode.
Sets the persistence context to read-write mode.