@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, wait
count, countBy, createQuery, createQuery, delete, delete, deleteAll, deleteBy, deleteById, drop, findAll, findAllAsList, findBy, findById, findByIdList, findLastModified, findLatest, findOneBy, getId, q, q, reload, save, save, save
protected 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 AppContextAware
public void destroy()
destroy
in interface Destroyable
public java.lang.Class<ID_TYPE> idType()
Dao
Returns 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()
Dao
Returns 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()
Dao
Returns 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 Destroyable
public void setSecurityContext(SecurityContext context)
setSecurityContext
in interface SecurityContextAware
protected void releaseResources()
public java.lang.Class<? extends java.lang.annotation.Annotation> scope()
scope
in interface Destroyable
protected final ActContext appContext()
protected final SecurityContext securityContext()
Copyright © 2014–2017 ActFramework. All rights reserved.