org.squeryl.internals

DatabaseAdapter

trait DatabaseAdapter extends AnyRef

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

Type Members

  1. class Zip[T] extends AnyRef

  2. class ZipIterable[T] extends AnyRef

Abstract Value Members

  1. abstract def isTableDoesNotExistException(e: SQLException): Boolean

Concrete Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def aliasExport(parentOfTarget: QueryableExpressionNode, target: SelectElement): String

  7. final def arrayCreationType(ptype: Class[_]): String

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def bigDecimalTypeDeclaration(precision: Int, scale: Int): String

  10. def bigDecimalTypeDeclaration: String

  11. def binaryTypeDeclaration: String

  12. def booleanTypeDeclaration: String

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. 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

  15. def convertFromUuidForJdbc(u: UUID): AnyRef

  16. def convertParamsForJdbc(params: Iterable[AnyRef]): Iterable[AnyRef]

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

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

  18. 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

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

  20. def createSequenceName(fmd: FieldMetaData): String

  21. def createStatement(conn: Connection): Statement

    Attributes
    protected
  22. def currenSession: Session

    Attributes
    protected
  23. def databaseTypeFor(fieldMapper: FieldMapper, c: Class[_]): String

  24. def databaseTypeFor(fmd: FieldMetaData): String

  25. def dateTypeDeclaration: String

  26. def doubleArrayTypeDeclaration: String

  27. def doubleTypeDeclaration: String

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

  29. def dropTable(t: Table[_]): Unit

  30. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected
  33. 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
  34. def executeQuery(s: Session, sw: StatementWriter): (ResultSet, PreparedStatement)

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

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

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

  38. def failureOfStatementRequiresRollback: Boolean

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

  40. def fillParamsInto(params: Iterable[AnyRef], s: PreparedStatement): Unit

  41. def finalize(): Unit

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

  43. def foreignKeyConstraintName(foreignKeyTable: Table[_], idWithinSchema: Int): String

  44. 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 ,

  45. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  46. def getInsertableFields(fmd: Iterable[FieldMetaData]): Iterable[FieldMetaData]

    Attributes
    protected
  47. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  48. def intArrayTypeDeclaration: String

  49. def intTypeDeclaration: String

  50. def isFullOuterJoinSupported: Boolean

  51. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  52. 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

  53. def jdbcDoubleArrayCreationType: String

  54. def jdbcIntArrayCreationType: String

  55. def jdbcLongArrayCreationType: String

  56. def longArrayTypeDeclaration: String

  57. def longTypeDeclaration: String

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

    Definition Classes
    AnyRef
  59. final def notify(): Unit

    Definition Classes
    AnyRef
  60. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  61. def nvlToken: String

  62. def postCreateTable(t: 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

  63. def postDropTable(t: Table[_]): Unit

  64. def prepareStatement(conn: Connection, statement: String): PreparedStatement

    Attributes
    protected
  65. def quoteIdentifier(s: String): String

  66. def quoteName(s: String): String

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

  68. def stringTypeDeclaration(length: Int): String

  69. def stringTypeDeclaration: String

  70. def supportsAutoIncrementInColumnDeclaration: Boolean

  71. def supportsForeignKeyConstraints: Boolean

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

    Definition Classes
    AnyRef
  73. def timestampTypeDeclaration: String

  74. def toString(): String

    Definition Classes
    AnyRef → Any
  75. def uuidTypeDeclaration: String

  76. def viewAlias(vn: ViewExpressionNode[_]): String

  77. final def wait(): Unit

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

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

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

  81. def writeCompositePrimaryKeyConstraint(t: Table[_], cols: Iterable[FieldMetaData]): String

  82. def writeConcatFunctionCall(fn: FunctionNode, sw: StatementWriter): Unit

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

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

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

  86. def writeDropForeignKeyStatement(foreignKeyTable: Table[_], fkName: String): String

  87. def writeDropTable(tableName: String): String

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped