trait EntityDao extends AnyRef
dao 查询辅助类
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- EntityDao
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
- abstract def count(entityClass: Class[_], keyName: String, value: Any): Long
- abstract def domain: Domain
- abstract def duplicate[T <: Entity[_]](clazz: Class[T], id: Any, codeName: String, codeValue: Any): Boolean
- abstract def duplicate(entityName: String, id: Any, params: Map[String, _]): Boolean
- abstract def duplicate(entityClass: Class[_], id: Any, params: Map[String, _]): Boolean
- abstract def evict(entity: AnyRef): Unit
-
abstract
def
execute(builder: Builder): Unit
执行一个操作构建者提供的一系列操作
-
abstract
def
execute(opts: Operation*): Unit
在同一个session保存、删除
- abstract def executeUpdate(queryString: String, arguments: Any*): Int
- abstract def executeUpdate(queryString: String, parameterMap: Map[String, _]): Int
- abstract def executeUpdateRepeatly(queryString: String, arguments: Iterable[Iterable[_]]): List[Int]
- abstract def exists(entityName: String, attr: String, value: Any): Boolean
- abstract def exists(entityClass: Class[_], attr: String, value: Any): Boolean
- abstract def find[T <: Entity[ID], ID](clazz: Class[T], ids: Iterable[ID]): Seq[T]
-
abstract
def
find[T <: Entity[ID], ID](clazz: Class[T], id: ID): Option[T]
find T by id.
- abstract def findBy[T <: Entity[_]](entityName: String, keyName: String, values: Iterable[_]): Seq[T]
- abstract def findBy[T <: Entity[_]](entityClass: Class[T], keyName: String, values: Iterable[_]): Seq[T]
-
abstract
def
get[T <: Entity[ID], ID](clazz: Class[T], id: ID): T
查询指定id的对象
查询指定id的对象
- clazz
类型
- id
唯一标识
- abstract def getAll[T <: Entity[_]](clazz: Class[T]): Seq[T]
-
abstract
def
initialize[T](entity: T): T
Initialize entity whenever session close or open
- abstract def refresh[T](entity: T): T
-
abstract
def
remove[T <: Entity[ID], ID](clazz: Class[T], id: ID, ids: ID*): Unit
remove entities by id
-
abstract
def
remove[E](first: E, entities: E*): Unit
remove entities.
-
abstract
def
remove[E](entities: Iterable[E]): Unit
remove entities.
-
abstract
def
saveOrUpdate[E](entities: Iterable[E]): Unit
save or update entities
-
abstract
def
saveOrUpdate[E](first: E, entities: E*): Unit
save or update entities
- abstract def search[T](queryString: String, params: Map[String, _], limit: PageLimit, cacheable: Boolean): Seq[T]
- abstract def search[T](queryString: String, params: Map[String, _]): Seq[T]
- abstract def search[T](query: String, params: Any*): Seq[T]
-
abstract
def
search[T](query: Query[T]): Seq[T]
Search Query
-
abstract
def
search[T](builder: QueryBuilder[T]): Seq[T]
Search by QueryBuilder
-
abstract
def
uniqueResult[T](builder: QueryBuilder[T]): T
Search Unique Result
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( ... )
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )