org.beangle.data.dao

EntityDao

Related Doc: package dao

trait EntityDao extends AnyRef

dao 查询辅助类

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EntityDao
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def count(entityClass: Class[_], keyName: String, value: Any): Long

  2. abstract def duplicate[T <: Entity[_]](clazz: Class[T], id: Any, codeName: String, codeValue: Any): Boolean

  3. abstract def duplicate(entityName: String, id: Any, params: Map[String, Any]): Boolean

  4. abstract def duplicate(entityClass: Class[_], id: Any, params: Map[String, Any]): Boolean

  5. abstract def evict(entity: AnyRef): Unit

  6. abstract def execute(builder: Builder): Unit

    执行一个操作构建者提供的一系列操作

    执行一个操作构建者提供的一系列操作

    builder

  7. abstract def execute(opts: Operation*): Unit

    在同一个session保存、删除

  8. abstract def executeUpdate(queryString: String, arguments: Any*): Int

  9. abstract def executeUpdate(queryString: String, parameterMap: Map[String, Any]): Int

  10. abstract def executeUpdateRepeatly(queryString: String, arguments: Seq[Seq[Any]]): List[Int]

  11. abstract def exists(entityName: String, attr: String, value: Any): Boolean

  12. abstract def exists(entityClass: Class[_], attr: String, value: Any): Boolean

  13. abstract def find[T <: Entity[ID], ID](clazz: Class[T], ids: Iterable[ID]): Seq[T]

  14. abstract def find[T <: Entity[ID], ID](clazz: Class[T], id: ID): Option[T]

    find T by id.

  15. abstract def findBy[T <: Entity[_]](entityName: String, keyName: String, values: Iterable[_]): Seq[T]

  16. abstract def findBy[T <: Entity[_]](entityClass: Class[T], keyName: String, values: Iterable[_]): Seq[T]

  17. abstract def get[T <: Entity[ID], ID](clazz: Class[T], id: ID): T

    查询指定id的对象

    查询指定id的对象

    clazz

    类型

    id

    唯一标识

  18. abstract def getAll[T <: Entity[_]](clazz: Class[T]): Seq[T]

  19. abstract def initialize[T](entity: T): T

    Initialize entity whenever session close or open

  20. abstract def refresh[T](entity: T): T

  21. abstract def remove[T <: Entity[ID], ID](clazz: Class[T], id: ID, ids: ID*): Unit

    remove entities by id

  22. abstract def remove[E](first: E, entities: E*): Unit

    remove entities.

  23. abstract def remove[E](entities: Iterable[E]): Unit

    remove entities.

  24. abstract def saveOrUpdate[E](entities: Iterable[E]): Unit

    save or update entities

  25. abstract def saveOrUpdate[E](first: E, entities: E*): Unit

    save or update entities

  26. abstract def search[T](queryString: String, params: Map[String, Any], limit: PageLimit, cacheable: Boolean): Seq[T]

  27. abstract def search[T](queryString: String, params: Map[String, Any]): Seq[T]

  28. abstract def search[T](query: String, params: Any*): Seq[T]

  29. abstract def search[T](query: Query[T]): Seq[T]

    Search Query

  30. abstract def search[T](builder: QueryBuilder[T]): Seq[T]

    Search by QueryBuilder

  31. abstract def uniqueResult[T](builder: QueryBuilder[T]): T

    Search Unique Result

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  16. def toString(): String

    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped