Object/Class

com.rocketfuel.sdbc.base

CompiledStatement

Related Docs: class CompiledStatement | package base

Permalink

object CompiledStatement extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CompiledStatement
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. object NameManglers

    Permalink
  5. def apply(sc: StringContext): CompiledStatement

    Permalink

    Since the original variable names can't be gotten from the string context (they're replaced by empty strings), use numbers to represent the parameter names, starting from 0.

  6. implicit def apply(originalQueryText: String): CompiledStatement

    Permalink

    Given a query with named parameters beginning with '@', construct the query for use with JDBC, so that names are replaced by '?', and each parameter has a map to its positions in the query.

    Given a query with named parameters beginning with '@', construct the query for use with JDBC, so that names are replaced by '?', and each parameter has a map to its positions in the query.

    Parameter names must start with a unicode letter or underscore, and then any character after the first one can be a unicode letter, unicode number, or underscore. A parameter that does not follow this scheme must be quoted by backticks. Parameter names are case sensitive.

    Two '@' in a row are replaced with a single '@'. This follows the same rules as String), so that "@@@abc" becomes "@?".

    Examples of identifiers:

    "@hello"
    "@`hello there`"
    "@_i_am_busy"
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  15. def isParameterChar(c: Int): Boolean

    Permalink
  16. def literal(queryText: String): CompiledStatement

    Permalink

    Construct a CompiledStatement without altering the queryText.

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def readClassResource(clazz: Class[_], fileName: String, nameMangler: (Class[_], String) ⇒ String = NameManglers.default, hasParameters: Boolean = true)(implicit codec: Codec = scala.io.Codec.default): CompiledStatement

    Permalink

    Read a query from a resource where constructing the full path to the resource requires the class.

    Read a query from a resource where constructing the full path to the resource requires the class.

    Using a different nameMangler allows different naming schemes depending on your requirements. The default is to look for resources in the same package as the given class. See NameManglers for more examples.

    Name mangling is generally required, because if you have a class a.B, package a.B containing query files can not also exist.

  21. def readInputStream(stream: InputStream, hasParameters: Boolean = true)(implicit codec: Codec = scala.io.Codec.default): CompiledStatement

    Permalink
  22. def readPath(path: Path, hasParameters: Boolean = true)(implicit codec: Codec = scala.io.Codec.default): CompiledStatement

    Permalink
  23. def readResource(path: String, hasParameters: Boolean = true)(implicit codec: Codec = scala.io.Codec.default): CompiledStatement

    Permalink
  24. def readSource(source: Source, hasParameters: Boolean = true)(implicit codec: Codec = scala.io.Codec.default): CompiledStatement

    Permalink
  25. def readTypeResource[A](fileName: String, nameMangler: (Class[_], String) ⇒ String = NameManglers.default, hasParameters: Boolean = true)(implicit codec: Codec = scala.io.Codec.default, tag: ClassTag[A]): CompiledStatement

    Permalink

    Read a query from a resource where constructing the full path to the resource requires the class.

    Read a query from a resource where constructing the full path to the resource requires the class.

    Using a different nameMangler allows different naming schemes depending on your requirements. The default is to look for resources in the same package as the given class. See NameManglers for more examples.

    Name mangling is generally required, because if you have a class a.B, package a.B containing query files can not also exist.

  26. def readUrl(u: URL, hasParameters: Boolean = true)(implicit codec: Codec = scala.io.Codec.default): CompiledStatement

    Permalink
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped