trait SkinnyModel[Id, Model] extends AnyRef
Model interface for SkinnyResource.
- Id
id
- Model
model
- Alphabetic
- By Inheritance
- SkinnyModel
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def countAllModels(): Long
Returns the count of all models.
Returns the count of all models.
- returns
the count of all models
- abstract def createNewModel(parameters: PermittedStrongParameters): Id
Creates new entity with parameters.
Creates new entity with parameters.
- parameters
parameters
- returns
generated id
- abstract def deleteModelById(id: Id): Int
Deletes the specified entity if exists.
Deletes the specified entity if exists.
- id
id
- returns
deleted count
- abstract def findAllModels(): List[Model]
Returns all models.
Returns all models.
- returns
all models
- abstract def findModel(id: Id): Option[Model]
Returns the specified entity if exists.
Returns the specified entity if exists.
- id
id
- returns
entity if exists
- abstract def findModels(pageSize: Int, pageNo: Int): List[Model]
Returns models by paging.
Returns models by paging.
- pageSize
page size
- pageNo
page no
- returns
models
- abstract def findModelsDesc(pageSize: Int, pageNo: Int): List[Model]
Returns models by paging in descending order.
Returns models by paging in descending order.
- pageSize
page size
- pageNo
page no
- returns
models
- abstract def idToRawValue(id: Id): Any
Extracts raw value from Identity.
Extracts raw value from Identity.
- id
id
- returns
raw value
- abstract def rawValueToId(value: Any): Id
Converts raw value to Identity.
Converts raw value to Identity.
- value
raw value
- returns
id
- abstract def updateModelById(id: Id, parameters: PermittedStrongParameters): Int
Updates the specified entity with parameters if exists.
Updates the specified entity with parameters if exists.
- id
id
- parameters
parameters
- returns
updated count
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.CloneNotSupportedException])
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.InterruptedException])