org.squeryl.internals

DatabaseAdapter

trait DatabaseAdapter extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. DatabaseAdapter
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Type Members

  1. class Zip [T] extends AnyRef

  2. class ZipIterable [T] extends AnyRef

Abstract Value Members

  1. def isTableDoesNotExistException (e: SQLException): Boolean

    Attributes
    abstract

Concrete 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 aliasExport (parentOfTarget: QueryableExpressionNode, target: SelectElement): String

  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def bigDecimalTypeDeclaration (precision: Int, scale: Int): String

  9. def bigDecimalTypeDeclaration : String

  10. def binaryTypeDeclaration : String

  11. def booleanTypeDeclaration : String

  12. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def convertFromBooleanForJdbc (b: Boolean): Boolean

    unused at the moment, since all jdbc drivers adhere to the standard that : 1 == true, false otherwise.

    unused at the moment, since all jdbc drivers adhere to the standard that : 1 == true, false otherwise. If a new driver would not adhere to this, the call can be uncommented in method convertToJdbcValue

  14. def convertFromUuidForJdbc (u: UUID): AnyRef

  15. def convertToBooleanForJdbc (rs: ResultSet, i: Int): Boolean

    unused for the same reason as def convertFromBooleanForJdbc (see comment)

  16. def convertToJdbcValue (r: AnyRef): AnyRef

    Converts field instances so they can be fed, and understood by JDBC will not do conversion from None/Some, so @arg r should be a java primitive type or a CustomType

  17. def convertToUuidForJdbc (rs: ResultSet, i: Int): UUID

  18. def createSequenceName (fmd: FieldMetaData): String

  19. def currenSession : Session

    Attributes
    protected
  20. def databaseTypeFor (fmd: FieldMetaData): String

  21. def dateTypeDeclaration : String

  22. def doubleTypeDeclaration : String

  23. def dropForeignKeyStatement (foreignKeyTable: org.squeryl.Table[_], fkName: String, session: Session): Unit

  24. def dropTable (t: org.squeryl.Table[_]): Unit

  25. def eq (arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  27. def exec [A] (s: Session, sw: StatementWriter)(block: ⇒ A): A

    Attributes
    protected
  28. def execFailSafeExecute (sw: StatementWriter, silenceException: (SQLException) ⇒ Boolean): Unit

    Some methods like 'dropTable' issue their statement, and will silence the exception.

    Some methods like 'dropTable' issue their statement, and will silence the exception. For example dropTable will silence when isTableDoesNotExistException(theExceptionThrown). It must be used carefully, and an exception should not be silenced unless identified.

    Attributes
    protected
  29. def executeQuery (s: Session, sw: StatementWriter): (ResultSet, PreparedStatement)

  30. def executeUpdate (s: Session, sw: StatementWriter): (Int, PreparedStatement)

  31. def executeUpdateAndCloseStatement (s: Session, sw: StatementWriter): Int

  32. def executeUpdateForInsert (s: Session, sw: StatementWriter, ps: PreparedStatement): Int

  33. def failureOfStatementRequiresRollback : Boolean

  34. def fieldAlias (n: QueryableExpressionNode, fse: FieldSelectElement): String

  35. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. def floatTypeDeclaration : String

  37. def foreignKeyConstraintName (foreignKeyTable: org.squeryl.Table[_], idWithinSchema: Int): String

  38. def generateAlmostUniqueSuffixWithHash (s: String): String

    This will create an probabilistically unique string of length no longer than 11 chars, it can be used to create "almost unique" names where uniqueness is not an absolute requirement, is not ,

  39. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  40. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  41. def intTypeDeclaration : String

  42. def isFullOuterJoinSupported : Boolean

  43. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  44. def isNotNullConstraintViolation (e: SQLException): Boolean

    Figures out from the SQLException (ex.

    Figures out from the SQLException (ex.: vendor specific error code) if it's cause is a NOT NULL constraint violation

  45. def longTypeDeclaration : String

  46. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  49. def nvlToken : String

  50. def postCreateTable (t: org.squeryl.Table[_], printSinkWhenWriteOnlyMode: Option[(String) ⇒ Unit]): Unit

    When @arg printSinkWhenWriteOnlyMode is not None, the adapter will not execute any statement, but only silently give it to the String=>Unit closure

  51. def postDropTable (t: org.squeryl.Table[_]): Unit

  52. def prepareStatement (c: Connection, sw: StatementWriter, s: PreparedStatement, session: Session): PreparedStatement

  53. def quoteIdentifier (s: String): String

  54. def quoteName (s: String): String

  55. implicit def string2StatementWriter (s: String): StatementWriter

    Attributes
    implicit
  56. def stringTypeDeclaration (length: Int): String

  57. def stringTypeDeclaration : String

  58. def supportsAutoIncrementInColumnDeclaration : Boolean

  59. def supportsForeignKeyConstraints : Boolean

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

    Attributes
    final
    Definition Classes
    AnyRef
  61. def timestampTypeDeclaration : String

  62. def toString (): String

    Definition Classes
    AnyRef → Any
  63. def uuidTypeDeclaration : String

  64. def viewAlias (vn: org.squeryl.dsl.ast.ViewExpressionNode[_]): String

  65. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  68. def writeColumnDeclaration (fmd: FieldMetaData, isPrimaryKey: Boolean, schema: Schema): String

  69. def writeConcatFunctionCall (fn: org.squeryl.dsl.ast.FunctionNode[_], sw: StatementWriter): Unit

  70. def writeConcatOperator (left: ExpressionNode, right: ExpressionNode, sw: StatementWriter): Unit

  71. def writeCreateTable [T] (t: Table[T], sw: StatementWriter, schema: Schema): Unit

  72. def writeDelete [T] (t: Table[T], whereClause: Option[ExpressionNode], sw: StatementWriter): Unit

  73. def writeDropForeignKeyStatement (foreignKeyTable: org.squeryl.Table[_], fkName: String): String

  74. def writeDropTable (tableName: String): String

  75. def writeEndOfFromHint (qen: QueryExpressionElements, sw: StatementWriter): Unit

  76. def writeEndOfQueryHint (qen: QueryExpressionElements, sw: StatementWriter): Unit

  77. def writeForeignKeyDeclaration (foreignKeyTable: org.squeryl.Table[_], foreignKeyColumnName: String, primaryKeyTable: org.squeryl.Table[_], primaryKeyColumnName: String, referentialAction1: Option[ReferentialAction], referentialAction2: Option[ReferentialAction], fkId: Int): String

  78. def writeIndexDeclaration (columnDefs: Seq[FieldMetaData], name: Option[String], nameOfCompositeKey: Option[String], isUnique: Boolean): String

  79. def writeInsert [T] (o: T, t: Table[T], sw: StatementWriter): Unit

  80. def writeJoin (queryableExpressionNode: QueryableExpressionNode, sw: StatementWriter): Unit

  81. def writeNvlCall (left: ExpressionNode, right: ExpressionNode, sw: StatementWriter): Unit

  82. def writeOuterJoinDEPRECATED (oje: OuterJoinExpression, sw: StatementWriter): Unit

  83. def writePaginatedQueryDeclaration (qen: QueryExpressionElements, sw: StatementWriter): Unit

  84. def writeQuery (qen: QueryExpressionElements, sw: StatementWriter, inverseOrderBy: Boolean, topHint: Option[String]): Unit

    Attributes
    protected
  85. def writeQuery (qen: QueryExpressionElements, sw: StatementWriter): Unit

  86. def writeRegexExpression (left: ExpressionNode, pattern: String, sw: StatementWriter): Unit

  87. def writeSelectElementAlias (se: SelectElement, sw: StatementWriter): Unit

  88. def writeUniquenessConstraint (t: org.squeryl.Table[_], cols: Iterable[FieldMetaData]): String

  89. def writeUpdate (t: org.squeryl.Table[_], us: UpdateStatement, sw: StatementWriter): Unit

  90. def writeUpdate [T] (o: T, t: Table[T], sw: StatementWriter, checkOCC: Boolean): Unit

  91. def writeValue (o: AnyRef, fmd: FieldMetaData, sw: StatementWriter): String

    Attributes
    protected
  92. implicit def zipIterable [T] (i: Iterable[T]): ZipIterable[T]

    Attributes
    implicit
  93. def foreingKeyConstraintName (foreingKeyTable: org.squeryl.Table[_], idWithinSchema: Int): String

    Annotations
    @deprecated
    Deprecated

    Use foreignKeyConstraintName instead

  94. def writeForeingKeyDeclaration (foreingKeyTable: org.squeryl.Table[_], foreingKeyColumnName: String, primaryKeyTable: org.squeryl.Table[_], primaryKeyColumnName: String, referentialAction1: Option[ReferentialAction], referentialAction2: Option[ReferentialAction], fkId: Int): String

    Annotations
    @deprecated
    Deprecated

    Use writeForeignKeyDeclaration instead

Inherited from AnyRef

Inherited from Any