class SQLToCollectionImpl[A, E <: WithExtractor] extends SQL[A, E] with SQLToCollection[A, E]
- Source
- SQL.scala
- Alphabetic
- By Inheritance
- SQLToCollectionImpl
- SQLToCollection
- SQL
- Extractor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SQLToCollectionImpl(statement: String, rawParameters: Seq[Any])(extractor: (WrappedResultSet) ⇒ A)
Type Members
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
-
def
apply[C[_]]()(implicit session: DBSession, context: ConnectionPoolContext = NoConnectionPoolContext, hasExtractor: =:=[ThisSQL, SQLWithExtractor], factory: Factory[A, C[A]]): C[A]
- Definition Classes
- SQLToCollection
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
batch(parameters: Seq[Any]*): SQLBatch
Binds parameters for batch
-
def
batchAndReturnGeneratedKey(generatedKeyName: String, parameters: Seq[Any]*): SQLBatchWithGeneratedKey
Binds parameters for batch
Binds parameters for batch
- generatedKeyName
generated key name
- parameters
parameters
- returns
SQL for batch
- Definition Classes
- SQL
-
def
batchAndReturnGeneratedKey(parameters: Seq[Any]*): SQLBatchWithGeneratedKey
Binds parameters for batch
-
def
batchByName(parameters: Seq[(Symbol, Any)]*): SQLBatch
Binds parameters for batch
-
def
bind(parameters: Any*): SQL[A, E]
Binds parameters to SQL template in order.
Binds parameters to SQL template in order.
- parameters
parameters
- returns
SQL instance
- Definition Classes
- SQL
-
def
bindByName(parametersByName: (Symbol, Any)*): SQL[A, E]
Binds named parameters to SQL template.
Binds named parameters to SQL template.
- parametersByName
named parameters
- returns
SQL instance
- Definition Classes
- SQL
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
collection: SQLToCollection[A, E]
Set execution type as collection.
-
def
createDBSessionAttributesSwitcher(): DBSessionAttributesSwitcher
Creates a new DBSessionAttributesSwitcher which enables switching the attributes for a DBSession.
Creates a new DBSessionAttributesSwitcher which enables switching the attributes for a DBSession.
- Attributes
- protected
- Definition Classes
- SQL
-
def
dbSettingSettings(settings: SettingsProvider): SQLToCollectionImpl.this.type
- Definition Classes
- SQL
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
execute(): SQLExecution
Set execution type as execute
-
def
executeUpdate(): SQLUpdate
Set execution type as executeUpdate
-
def
executeUpdateWithFilters(before: (PreparedStatement) ⇒ Unit, after: (PreparedStatement) ⇒ Unit): SQLUpdate
Set execution type as executeUpdate with filters
Set execution type as executeUpdate with filters
- before
before filter
- after
after filter
- returns
SQL instance
- Definition Classes
- SQL
-
def
executeWithFilters(before: (PreparedStatement) ⇒ Unit, after: (PreparedStatement) ⇒ Unit): SQLExecution
Set execution type as execute with filters
Set execution type as execute with filters
- before
before filter
- after
after filter
- returns
SQL instance
- Definition Classes
- SQL
-
val
extractor: (WrappedResultSet) ⇒ A
- Definition Classes
- SQLToCollectionImpl → SQL → Extractor
-
def
fetchSize: Option[Int]
Returns fetchSize for this query.
-
def
fetchSize(fetchSize: Option[Int]): SQLToCollectionImpl.this.type
- Definition Classes
- SQL
-
def
fetchSize(fetchSize: Int): SQLToCollectionImpl.this.type
Set fetchSize for this query.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
first(): SQLToOption[A, E]
Set execution type as first.
-
def
foldLeft[A](z: A)(op: (A, WrappedResultSet) ⇒ A)(implicit session: DBSession): A
folding into one value
-
def
foreach(op: (WrappedResultSet) ⇒ Unit)(implicit session: DBSession): Unit
Apply the operation to all elements of result set
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
headOption(): SQLToOption[A, E]
Same as #first.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iterable(): SQLToIterable[A, E]
Set execution type as iterable.
-
def
largeBatch(parameters: Seq[Any]*): SQLLargeBatch
Binds parameters for largeBatch
-
def
largeUpdate(): SQLLargeUpdate
Set execution type as
executeLargeUpdate
-
def
largeUpdateWithFilters(before: (PreparedStatement) ⇒ Unit, after: (PreparedStatement) ⇒ Unit): SQLLargeUpdate
Set execution type as
executeLargeUpdate
with filtersSet execution type as
executeLargeUpdate
with filters- before
before filter
- after
after filter
- returns
SQL instance
- Definition Classes
- SQL
-
def
list(): SQLToList[A, E]
Set execution type as list.
-
def
map[A](f: (WrappedResultSet) ⇒ A): SQL[A, HasExtractor]
Maps values from each scalikejdbc.WrappedResultSet object.
Maps values from each scalikejdbc.WrappedResultSet object.
- A
return type
- f
extractor function
- returns
SQL instance
- Definition Classes
- SQL
-
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()
-
def
one[Z](f: (WrappedResultSet) ⇒ A): OneToXSQL[A, E, Z]
Returns One-to-X API builder.
Returns One-to-X API builder.
- Definition Classes
- SQL
-
final
lazy val
parameters: Seq[Any]
- Definition Classes
- SQL
-
def
queryTimeout: Option[Int]
Returns queryTimeout for this query.
-
def
queryTimeout(seconds: Option[Int]): SQLToCollectionImpl.this.type
- Definition Classes
- SQL
-
def
queryTimeout(seconds: Int): SQLToCollectionImpl.this.type
Set queryTimeout for this query.
-
val
rawParameters: Seq[Any]
- Definition Classes
- SQLToCollectionImpl → SQLToCollection → SQL
-
def
single(): SQLToOption[A, E]
Set execution type as single.
-
val
statement: String
- Definition Classes
- SQLToCollectionImpl → SQLToCollection → SQL
-
def
stripMargin: SQL[A, E]
- Definition Classes
- SQL
-
def
stripMargin(marginChar: Char): SQL[A, E]
- Definition Classes
- SQL
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tags: Seq[String]
Returns tags for this SQL object.
-
def
tags(tags: String*): SQLToCollectionImpl.this.type
Appends tags to this SQL object.
-
def
toCollection: SQLToCollection[A, E]
Same as #collection
-
def
toIterable(): SQLToIterable[A, E]
Same as #iterable.
-
def
toList(): SQLToList[A, E]
Same as #list
-
def
toMap(): SQL[Map[String, Any], HasExtractor]
Maps values as a Map value from each scalikejdbc.WrappedResultSet object.
Maps values as a Map value from each scalikejdbc.WrappedResultSet object.
- returns
SQL instance
- Definition Classes
- SQL
-
def
toOption(): SQLToOption[A, E]
Same as #single.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
update(): SQLUpdate
Set execution type as executeUpdate
-
def
updateAndReturnGeneratedKey(index: Int): SQLUpdateWithGeneratedKey
- Definition Classes
- SQL
-
def
updateAndReturnGeneratedKey(name: String): SQLUpdateWithGeneratedKey
- Definition Classes
- SQL
-
def
updateAndReturnGeneratedKey(): SQLUpdateWithGeneratedKey
Set execution type as updateAndReturnGeneratedKey
-
def
updateWithFilters(before: (PreparedStatement) ⇒ Unit, after: (PreparedStatement) ⇒ Unit): SQLUpdate
Set execution type as executeUpdate with filters
Set execution type as executeUpdate with filters
- before
before filter
- after
after filter
- returns
SQL instance
- Definition Classes
- SQL
-
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( ... )
-
def
withExtractor[B](f: (WrappedResultSet) ⇒ B): SQLToCollection[B, HasExtractor]
- Attributes
- protected
- Definition Classes
- SQLToCollectionImpl → SQL
-
def
withParameters(params: Seq[Any]): SQLToCollection[A, E]
- Attributes
- protected
- Definition Classes
- SQLToCollectionImpl → SQL
-
def
withStatementAndParameters(state: String, params: Seq[Any]): SQLToCollection[A, E]
- Attributes
- protected
- Definition Classes
- SQLToCollectionImpl → SQL
Deprecated Value Members
-
def
toTraverable(): SQLToIterable[A, E]
- Definition Classes
- SQL
- Annotations
- @deprecated
- Deprecated
(Since version 3.3.0) will be removed. use toIterable() instead
-
def
traversable(): SQLToIterable[A, E]
- Definition Classes
- SQL
- Annotations
- @deprecated
- Deprecated
(Since version 3.3.0) will be removed. use iterable() instead