net.liftweb.db

DB

trait DB extends Loggable

Linear Supertypes
Loggable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. DB
  2. Loggable
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Type Members

  1. case class ConnectionHolder (conn: SuperConnection, cnt: Int, postCommit: List[() ⇒ Unit]) extends Product with Serializable

  2. type LogFunc = (DBLog, Long) ⇒ Any

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

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

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def addLogFunc (f: LogFunc): List[LogFunc]

  7. def appendPostFunc (name: ConnectionIdentifier, func: () ⇒ Unit): Unit

    Append a function to be invoked after the commit has taken place for the given connection identifier

  8. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  9. def buildLoanWrapper (eager: Boolean, in: List[ConnectionIdentifier]): LoanWrapper

    Build a LoanWrapper to pass into S.

    Build a LoanWrapper to pass into S.addAround() to make requests for the List of ConnectionIdentifiers transactional for the complete HTTP request

  10. def buildLoanWrapper (eager: Boolean): LoanWrapper

    Build a LoanWrapper to pass into S.

    Build a LoanWrapper to pass into S.addAround() to make requests for the DefaultConnectionIdentifier transactional for the complete HTTP request

  11. def buildLoanWrapper (in: List[ConnectionIdentifier]): LoanWrapper

    Build a LoanWrapper to pass into S.

    Build a LoanWrapper to pass into S.addAround() to make requests for the List of ConnectionIdentifiers transactional for the complete HTTP request

  12. def buildLoanWrapper (): LoanWrapper

    Build a LoanWrapper to pass into S.

    Build a LoanWrapper to pass into S.addAround() to make requests for the DefaultConnectionIdentifier transactional for the complete HTTP request

  13. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def currentConnection : Box[SuperConnection]

  15. lazy val defaultReservedWords : Set[String]

    The default reserved words.

    The default reserved words.

    TODO : Maybe this should be refactored to allow for driver-specific reserved words

  16. def defineConnectionManager (name: ConnectionIdentifier, mgr: ConnectionManager): Unit

  17. def doWithConnectionManagers [T] (mgrs: (ConnectionIdentifier, ConnectionManager)*)(f: ⇒ T): T

    Allows you to override the connection manager associated with particular connection identifiers for the duration of the call.

  18. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  19. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  20. def exec [T] (statement: PreparedStatement)(f: (ResultSet) ⇒ T): T

    Executes { @code statement } and converts the { @code ResultSet } to model instance { @code T } using { @code f }

  21. def exec [T] (db: SuperConnection, query: String)(f: (ResultSet) ⇒ T): T

  22. def finalize (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef
  24. var globalDefaultSchemaName : Box[String]

  25. def hashCode (): Int

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

    Attributes
    final
    Definition Classes
    Any
  27. def jndiJdbcConnAvailable_? : Boolean

    can we get a JDBC connection from JNDI?

  28. val logger : Logger

    Attributes
    protected
    Definition Classes
    Loggable
  29. def loggingEnabled_? : Boolean

  30. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  31. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  32. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  33. def performPostCommit (f: ⇒ Unit): Unit

    perform this function post-commit.

    perform this function post-commit. THis is helpful for sending messages to Actors after we know a transaction has committed

  34. def performQuery (query: String): (List[String], List[List[Any]])

  35. def performQuery (query: String, params: List[Any], connectionIdentifier: ConnectionIdentifier): (List[String], List[List[Any]])

    Executes the given parameterized query string with the given parameters.

    Executes the given parameterized query string with the given parameters. Parameters are substituted in order. For Date/Time types, passing a java.util.Date will result in a Timestamp parameter. If you want a specific SQL Date/Time type, use the corresponding java.sql.Date, java.sql.Time, or java.sql.Timestamp classes.

  36. def performQuery (query: String, params: List[Any]): (List[String], List[List[Any]])

    Executes the given parameterized query string with the given parameters.

    Executes the given parameterized query string with the given parameters. Parameters are substituted in order. For Date/Time types, passing a java.util.Date will result in a Timestamp parameter. If you want a specific SQL Date/Time type, use the corresponding java.sql.Date, java.sql.Time, or java.sql.Timestamp classes.

  37. def prepareStatement [T] (statement: String, autoColumns: Array[String], conn: SuperConnection)(f: (PreparedStatement) ⇒ T): T

    Prepares the given statement and then passes it to the given function for use.

    Prepares the given statement and then passes it to the given function for use. This method represents a loan pattern, and will automatically handle creation and closing of the PreparedStatement.

    If the driver supports it, generated keys for the given column names can be retrieved.

  38. def prepareStatement [T] (statement: String, autoColumns: Array[Int], conn: SuperConnection)(f: (PreparedStatement) ⇒ T): T

    Prepares the given statement and then passes it to the given function for use.

    Prepares the given statement and then passes it to the given function for use. This method represents a loan pattern, and will automatically handle creation and closing of the PreparedStatement.

    If the driver supports it, generated keys for the given column indices can be retrieved.

  39. def prepareStatement [T] (statement: String, autokeys: Int, conn: SuperConnection)(f: (PreparedStatement) ⇒ T): T

    Prepares the given statement and then passes it to the given function for use.

    Prepares the given statement and then passes it to the given function for use. This method represents a loan pattern, and will automatically handle creation and closing of the PreparedStatement.

    Retrieval of generated keys is controlled with the autokeys parameter, corresponding to the constants defined on java.sql.Statement: RETURN_GENERATED_KEYS or NO_GENERATED_KEYS

  40. def prepareStatement [T] (statement: String, conn: SuperConnection)(f: (PreparedStatement) ⇒ T): T

    Prepares the given statement and then passes it to the given function for use.

    Prepares the given statement and then passes it to the given function for use. This method represents a loan pattern, and will automatically handle creation and closing of the PreparedStatement.

  41. var queryCollector : LogFunc

    queryCollector can be used to collect all statements executed in a single request when passed to addLogFunc

    queryCollector can be used to collect all statements executed in a single request when passed to addLogFunc

    Use S.queryLog to get the list of (statement, duration) entries or set an analyzer function using S.addAnalyzer

  42. var queryTimeout : Box[Int]

  43. def reservedWords : Set[String]

    The SQL reserved words.

    The SQL reserved words. These words will be changed if they are used for column or table names.

  44. def resultSetTo (rs: ResultSet): (List[String], List[List[String]])

  45. def resultSetToAny (rs: ResultSet): (List[String], List[List[Any]])

  46. def rollback (name: ConnectionIdentifier): Unit

  47. def runQuery (query: String): (List[String], List[List[String]])

  48. def runQuery (query: String, params: List[Any], connectionIdentifier: ConnectionIdentifier): (List[String], List[List[String]])

    Executes the given parameterized query string with the given parameters.

    Executes the given parameterized query string with the given parameters. Parameters are substituted in order. For Date/Time types, passing a java.util.Date will result in a Timestamp parameter. If you want a specific SQL Date/Time type, use the corresponding java.sql.Date, java.sql.Time, or java.sql.Timestamp classes.

  49. def runQuery (query: String, params: List[Any]): (List[String], List[List[String]])

    Executes the given parameterized query string with the given parameters.

    Executes the given parameterized query string with the given parameters. Parameters are substituted in order. For Date/Time types, passing a java.util.Date will result in a Timestamp parameter. If you want a specific SQL Date/Time type, use the corresponding java.sql.Date, java.sql.Time, or java.sql.Timestamp classes.

  50. def runUpdate (query: String, params: List[Any], connectionIdentifier: ConnectionIdentifier): Int

    Executes the given parameterized update string with the given parameters.

    Executes the given parameterized update string with the given parameters. Parameters are substituted in order. For Date/Time types, passing a java.util.Date will result in a Timestamp parameter. If you want a specific SQL Date/Time type, use the corresponding java.sql.Date, java.sql.Time, or java.sql.Timestamp classes.

  51. def runUpdate (query: String, params: List[Any]): Int

    Executes the given parameterized update string with the given parameters.

    Executes the given parameterized update string with the given parameters. Parameters are substituted in order. For Date/Time types, passing a java.util.Date will result in a Timestamp parameter. If you want a specific SQL Date/Time type, use the corresponding java.sql.Date, java.sql.Time, or java.sql.Timestamp classes.

  52. def statement [T] (db: SuperConnection)(f: (Statement) ⇒ T): T

  53. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  54. def toString (): String

    Definition Classes
    AnyRef → Any
  55. def use [T] (name: ConnectionIdentifier)(f: (SuperConnection) ⇒ T): T

    Executes function { @code f } with the connection named { @code name }.

    Executes function { @code f } with the connection named { @code name }. Releases the connection before returning.

  56. var userReservedWords : Box[Set[String]]

    If you need to change some of the reserved word, you can supply your own set in Boot.

    If you need to change some of the reserved word, you can supply your own set in Boot.scala: DB.userReservedWords = Full(Set("foo", "bar"))

  57. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Loggable

Inherited from AnyRef

Inherited from Any