Enhances a class with GORM behavior
Type | Name and description |
---|---|
Datastore |
datastore |
java.util.List<FinderMethod> |
finders |
org.springframework.transaction.PlatformTransactionManager |
transactionManager |
Constructor and description |
---|
GormEnhancer
(Datastore datastore) |
GormEnhancer
(Datastore datastore, org.springframework.transaction.PlatformTransactionManager transactionManager) |
Type | Name and description |
---|---|
void |
enhance(boolean onlyExtendedMethods = false) Enhances all persistent entities. |
void |
enhance(PersistentEntity e, boolean onlyExtendedMethods = false) Enhance and individual entity |
protected java.util.List<FinderMethod> |
getAllDynamicFinders() |
protected GormInstanceApi<D> |
getInstanceApi(java.lang.Class<D> cls) |
protected GormStaticApi<D> |
getStaticApi(java.lang.Class<D> cls) |
protected GormValidationApi<D> |
getValidationApi(java.lang.Class<D> cls) |
protected void |
registerConstraints(Datastore datastore) |
protected void |
registerNamedQueries(PersistentEntity entity, java.lang.Object namedQueries) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Enhances all persistent entities.
onlyExtendedMethods
- If only to add additional methods provides by subclasses of the GORM APIsEnhance and individual entity
e
- The entityonlyExtendedMethods
- If only to add additional methods provides by subclasses of the GORM APIs