EntityAction

org.beangle.webmvc.support.action.EntityAction
trait EntityAction[T <: Entity[_]] extends EntitySupport[T]

Attributes

Graph
Supertypes
trait EntitySupport[T]
class Object
trait Matchable
class Any
Known subtypes
class RestfulAction[T]
class RestfulService[T]

Members list

Value members

Abstract methods

def entityDao: EntityDao

Concrete methods

protected def convertId[ID](entityType: EntityType, id: String): ID
protected def getEntity[E](entityClass: Class[E], simpleName: String): E
protected def getModel(id: Any): T
protected def getModel[E](entityType: EntityType, id: Any): E
protected def getModels[E](entityType: EntityType, ids: Iterable[_]): Seq[E]
final protected def getPageLimit: PageLimit

从request的参数或者cookie中(参数优先)取得分页信息

从request的参数或者cookie中(参数优先)取得分页信息

Attributes

protected def getQueryBuilder: OqlBuilder[T]
final protected def populate[E <: Entity[_]](clazz: Class[E]): E
final protected def populate[E <: Entity[_]](clazz: Class[E], simpleName: String): E

将request中的参数设置到clazz对应的bean。

将request中的参数设置到clazz对应的bean。

Attributes

final protected def populate[E <: Entity[_]](obj: E, simpleName: String): E
final protected def populate[E <: Entity[_]](entity: E, params: Map[String, Object]): E
final protected def populateConditions(builder: OqlBuilder[_]): Unit
final protected def populateConditions(builder: OqlBuilder[_], exclusiveAttrNames: String): Unit
protected def populateEntity(): T
protected def populateEntity[E <: Entity[_]](entityType: EntityType, simpleEntityName: String): E
protected def populateEntity[E](entityClass: Class[E], simpleEntityName: String): E
protected def remove[E](list: Seq[E]): Unit
protected def remove[E](obj: E): Unit
protected def saveOrUpdate[E](list: Iterable[E]): Unit
protected def saveOrUpdate[E](obj: E): Unit

Inherited methods

protected def simpleEntityName: String

Attributes

Inherited from:
EntitySupport

Inherited fields

val entityClass: Class[T]

Attributes

Inherited from:
EntitySupport