@NoBind public abstract class DaoBase<ID_TYPE,MODEL_TYPE,QUERY_TYPE extends Dao.Query<MODEL_TYPE,QUERY_TYPE>> extends java.lang.Object implements Dao<ID_TYPE,MODEL_TYPE,QUERY_TYPE>
Dao.Query<MODEL_TYPE,QUERY_TYPE extends Dao.Query<MODEL_TYPE,QUERY_TYPE>>Destroyable.Util| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<ID_TYPE> |
idClass |
protected java.lang.reflect.Type |
idType |
protected java.lang.Class<MODEL_TYPE> |
modelClass |
protected java.lang.reflect.Type |
modelType |
protected java.lang.Class<QUERY_TYPE> |
queryClass |
protected java.lang.reflect.Type |
queryType |
| Constructor and Description |
|---|
DaoBase() |
DaoBase(java.lang.Class<ID_TYPE> idType,
java.lang.Class<MODEL_TYPE> modelType) |
| Modifier and Type | Method and Description |
|---|---|
protected ActContext |
appContext() |
void |
destroy() |
java.lang.Class<ID_TYPE> |
idType()
Returns the identifier type
|
boolean |
isDestroyed() |
java.lang.Class<MODEL_TYPE> |
modelType()
Returns the class of the Model entity this Dao operates on
|
java.lang.Class<QUERY_TYPE> |
queryType()
Returns the class of the bounded query type
|
protected void |
releaseResources() |
java.lang.Class<? extends java.lang.annotation.Annotation> |
scope() |
protected SecurityContext |
securityContext() |
void |
setAppContext(ActContext context) |
void |
setSecurityContext(SecurityContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, countBy, createQuery, createQuery, delete, delete, deleteAll, deleteBy, deleteById, drop, findAll, findAllAsList, findBy, findById, findByIdList, findOneBy, getId, q, q, reload, save, save, saveprotected java.lang.reflect.Type modelType
protected java.lang.Class<MODEL_TYPE> modelClass
protected java.lang.reflect.Type idType
protected java.lang.Class<ID_TYPE> idClass
protected java.lang.reflect.Type queryType
protected java.lang.Class<QUERY_TYPE extends Dao.Query<MODEL_TYPE,QUERY_TYPE>> queryClass
public DaoBase()
public DaoBase(java.lang.Class<ID_TYPE> idType, java.lang.Class<MODEL_TYPE> modelType)
public void setAppContext(ActContext context)
setAppContext in interface AppContextAwarepublic void destroy()
destroy in interface Destroyablepublic java.lang.Class<ID_TYPE> idType()
DaoReturns the identifier type
idType in interface Dao<ID_TYPE,MODEL_TYPE,QUERY_TYPE extends Dao.Query<MODEL_TYPE,QUERY_TYPE>>public java.lang.Class<MODEL_TYPE> modelType()
DaoReturns the class of the Model entity this Dao operates on
modelType in interface Dao<ID_TYPE,MODEL_TYPE,QUERY_TYPE extends Dao.Query<MODEL_TYPE,QUERY_TYPE>>public java.lang.Class<QUERY_TYPE> queryType()
DaoReturns the class of the bounded query type
queryType in interface Dao<ID_TYPE,MODEL_TYPE,QUERY_TYPE extends Dao.Query<MODEL_TYPE,QUERY_TYPE>>public boolean isDestroyed()
isDestroyed in interface Destroyablepublic void setSecurityContext(SecurityContext context)
setSecurityContext in interface SecurityContextAwareprotected void releaseResources()
public java.lang.Class<? extends java.lang.annotation.Annotation> scope()
scope in interface Destroyableprotected final ActContext appContext()
protected final SecurityContext securityContext()
Copyright © 2014–2017 ActFramework. All rights reserved.