All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.squeryl.dsl.DelegateQuery.scala Maven / Gradle / Ivy

package org.squeryl.dsl

import org.squeryl.Query
import org.squeryl.internals.ResultSetMapper
import java.sql.ResultSet

class DelegateQuery[M](val q: Query[M]) extends Query[M] {

  def iterator = q.iterator

  def distinct = q.distinct

  def forUpdate = q.forUpdate

  def dumpAst = q.dumpAst

  def page(offset:Int, length:Int) = q.page(offset, length)

  def statement: String = q.statement

  def ast = q.ast

  protected[squeryl] def invokeYield(rsm: ResultSetMapper, rs: ResultSet) =
    q.invokeYield(rsm, rs)

  override private[squeryl] def copy(asRoot:Boolean) =
    q.copy(asRoot)

  def name = q.name

  private[squeryl] def give(rsm: ResultSetMapper, rs: ResultSet) =
    q.invokeYield(rsm, rs)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy