EntityAction

trait EntityAction[T <: Entity[_]] extends RouteSupport with ParamSupport with EntitySupport[T] with Logging
trait Logging
trait EntitySupport[T]
trait ParamSupport
trait RouteSupport
trait MessageSupport
class Object
trait Matchable
class Any
class RestfulAction[T]

Value members

Concrete methods

protected def convertId[ID](id: String): ID
protected def getEntity[E <: Entity[_]](entityName: String, name: String): E
protected def getEntity[E](entityClass: Class[E], simpleEntityName: String): E
protected def getModel(id: Serializable): T
protected def getModel[E](entityName: String, id: Any): E
protected def getModels[E](entityName: String, ids: Iterable[_]): Seq[E]
final protected def getPageIndex: Int
final protected def getPageLimit: PageLimit

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

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

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

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

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

final protected def populate[E <: Entity[_]](obj: E, simpleEntityName: String): E
final protected def populate[E <: Entity[_]](clazz: Class[E]): E
final protected def populate(entityName: String): Object
final protected def populate(entityName: String, simpleEntityName: String): Object
final protected def populate[E <: Entity[_]](obj: E, entityName: String, simpleEntityName: String): E
final protected def populate[E <: Entity[_]](entity: E, entityName: String, params: Map[String, Any]): 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[_]](entityName: String, 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

@ignore
final protected def actionErrors: List[String]

获得aciton错误消息<br>

获得aciton错误消息<br>

Inherited from
MessageSupport
@ignore
final protected def actionMessages: List[String]

获得action消息

获得action消息

Inherited from
MessageSupport
final protected def addError(msgKey: String, args: Any*): Unit
Inherited from
MessageSupport
final protected def addFlashError(msgKey: String, args: Any*): Unit
Inherited from
MessageSupport
final protected def addFlashMessage(msgKey: String, args: Any*): Unit
Inherited from
MessageSupport
final protected def addMessage(msgKey: String, args: Any*): Unit
Inherited from
MessageSupport
final protected def attribute[T](name: String, clazz: Class[T]): T
Inherited from
ParamSupport
final protected def attribute(name: String): Any
Inherited from
ParamSupport
@ignore
final protected def entityName: String
Inherited from
EntitySupport
@ignore
final protected def forward(action: To, message: String): View
Inherited from
RouteSupport
@ignore
final protected def forward(action: To): View
Inherited from
RouteSupport
@ignore
final protected def forward(view: String, message: String): PathView
Inherited from
RouteSupport
@ignore
final protected def forward(view: String): PathView
Inherited from
RouteSupport
final protected def get[T](name: String, clazz: Class[T]): Option[T]
Inherited from
ParamSupport
final protected def get[T](paramName: String, defaultValue: T): T
Inherited from
ParamSupport
final protected def get(paramName: String): Option[String]
Inherited from
ParamSupport
final protected def getAll[T](paramName: String, clazz: Class[T])(implicit evidence$1: ClassTag[T]): Iterable[T]
Inherited from
ParamSupport
final protected def getAll(paramName: String): Iterable[Any]
Inherited from
ParamSupport
final protected def getBoolean(name: String, defaultValue: Boolean): Boolean
Inherited from
ParamSupport
final protected def getBoolean(name: String): Option[Boolean]
Inherited from
ParamSupport
final protected def getDate(name: String): Option[LocalDate]
Inherited from
ParamSupport
final protected def getDateTime(name: String): Option[LocalDateTime]
Inherited from
ParamSupport
final protected def getFloat(name: String): Option[Float]
Inherited from
ParamSupport
final protected def getId[E](name: String, clazz: Class[E]): Option[E]

Get entity's id from shortname.id,shortnameId,id

Get entity's id from shortname.id,shortnameId,id

Inherited from
EntitySupport
protected def getId(name: String): Option[String]
Inherited from
EntitySupport
final protected def getInstant(name: String): Option[Instant]
Inherited from
ParamSupport
final protected def getInt(name: String, defaultValue: Int): Int
Inherited from
ParamSupport
final protected def getInt(name: String): Option[Int]
Inherited from
ParamSupport
final protected def getLong(name: String): Option[Long]
Inherited from
ParamSupport
final protected def getShort(name: String): Option[Short]
Inherited from
ParamSupport
final protected def getText(key: String, defaultValue: String, args: Any*): String
Inherited from
MessageSupport
final protected def getText(aTextName: String): String
Inherited from
MessageSupport
final protected def getTextInternal(msgKey: String, args: Any*): String
Inherited from
MessageSupport
final protected def id[E](name: String, clazz: Class[E]): E

Get entity's id from shortname.id,shortnameId,id

Get entity's id from shortname.id,shortnameId,id

Inherited from
EntitySupport
@ignore
protected def id(name: String): String
Inherited from
EntitySupport
final protected def ids[X](name: String, clazz: Class[X]): List[X]

Get entity's id array from parameters shortname.id,shortname.ids,shortnameIds

Get entity's id array from parameters shortname.id,shortname.ids,shortnameIds

Inherited from
EntitySupport
final protected def intId(shortName: String): Int
Inherited from
EntitySupport
final protected def intIds(shortName: String): List[Int]

Get entity's long id array from parameters shortname.id,shortname.ids,shortnameIds

Get entity's long id array from parameters shortname.id,shortname.ids,shortnameIds

Inherited from
EntitySupport
final protected def longId(shortName: String): Long
Inherited from
EntitySupport
final protected def longIds(shortName: String): List[Long]

Get entity's long id array from parameters shortname.id,shortname.ids,shortnameIds

Get entity's long id array from parameters shortname.id,shortname.ids,shortnameIds

Inherited from
EntitySupport
final protected def put(key: String, value: Any): Unit
Inherited from
ParamSupport
@ignore
final protected def redirect(action: To, message: String): View
Inherited from
RouteSupport
@ignore
final protected def redirect(method: String, params: String, message: String): View
Inherited from
RouteSupport
@ignore
final protected def redirect(method: String, message: String): View
Inherited from
RouteSupport
@ignore
final protected def redirect(method: String): View
Inherited from
RouteSupport
@ignore
protected def simpleEntityName: String
Inherited from
EntitySupport
@ignore
final protected def to(uri: String): To
Inherited from
RouteSupport
@ignore
final protected def to(uri: String, params: String): ToURI
Inherited from
RouteSupport
@ignore
final protected def to(clazz: Class[_], method: String, params: String): ToClass
Inherited from
RouteSupport
@ignore
final protected def to(clazz: Class[_], method: String): ToClass
Inherited from
RouteSupport
@ignore
final protected def to(obj: Object, method: String, params: String): ToClass
Inherited from
RouteSupport
@ignore
final protected def to(obj: Object, method: String): ToClass
Inherited from
RouteSupport

Concrete fields

var config: PropertyConfig
var entityDao: EntityDao

Inherited fields

@noreflect
val entityType: Class[T]
Inherited from
EntitySupport
protected val logger: Logger
Inherited from
Logging