|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.jdbc.depot.Modifier
public abstract class Modifier
Encapsulates a modification of persistent objects.
| Nested Class Summary | |
|---|---|
static class |
Modifier.CachingModifier<T extends PersistentRecord>
A convenience modifier that can perform cache updates in addition to invalidation: - Before #invoke(Connection), the CacheInvalidator is run, if given |
static class |
Modifier.Simple
A simple modifier that executes a single SQL statement. |
| Field Summary | |
|---|---|
protected CacheInvalidator |
_invalidator
|
| Constructor Summary | |
|---|---|
Modifier()
Constructs a Modifier without a cache invalidator. |
|
Modifier(CacheInvalidator invalidator)
Constructs a Modifier with the given cache invalidator. |
|
| Method Summary | |
|---|---|
void |
cacheInvalidation(PersistenceContext ctx)
Do any cache invalidation needed for this modification. |
void |
cacheUpdate(PersistenceContext ctx)
Do any cache updates needed for this modification. |
abstract int |
invoke(Connection conn,
DatabaseLiaison liaison)
Overriden to perform the actual database modifications represented by this object; should return the number of modified rows. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CacheInvalidator _invalidator
| Constructor Detail |
|---|
public Modifier()
Modifier without a cache invalidator.
public Modifier(CacheInvalidator invalidator)
Modifier with the given cache invalidator.
| Method Detail |
|---|
public abstract int invoke(Connection conn,
DatabaseLiaison liaison)
throws SQLException
SQLExceptionpublic void cacheInvalidation(PersistenceContext ctx)
public void cacheUpdate(PersistenceContext ctx)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||