t

org.squeryl.internals

DatabaseAdapter

trait DatabaseAdapter extends AnyRef

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DatabaseAdapter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
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: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def aliasExport(parentOfTarget: QueryableExpressionNode, target: SelectElement): String
  5. final def arrayCreationType(ptype: Class[_]): String
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def bigDecimalTypeDeclaration(precision: Int, scale: Int): String
  8. def bigDecimalTypeDeclaration: String
  9. def binaryTypeDeclaration: String
  10. def booleanTypeDeclaration: String
  11. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. 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

  13. def convertFromUuidForJdbc(u: UUID): AnyRef
  14. def convertToBooleanForJdbc(rs: ResultSet, i: Int): Boolean

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

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

  16. def convertToUuidForJdbc(rs: ResultSet, i: Int): UUID
  17. def createSequenceName(fmd: FieldMetaData): String
  18. def createStatement(conn: Connection): Statement
    Attributes
    protected
  19. def currenSession: AbstractSession
    Attributes
    protected
  20. def databaseTypeFor(fieldMapper: FieldMapper, c: Class[_]): String
  21. def databaseTypeFor(fmd: FieldMetaData): String
  22. def dateTypeDeclaration: String
  23. def doubleArrayTypeDeclaration: String
  24. def doubleTypeDeclaration: String
  25. def dropForeignKeyStatement(foreignKeyTable: Table[_], fkName: String, session: AbstractSession): Unit
  26. def dropTable(t: Table[_]): Unit
  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  29. def exec[A](s: AbstractSession, sw: StatementWriter)(block: (Iterable[StatementParam]) ⇒ A): A
    Attributes
    protected
  30. 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
  31. def executeQuery(s: AbstractSession, sw: StatementWriter): (ResultSet, PreparedStatement)
  32. def executeUpdate(s: AbstractSession, sw: StatementWriter): (Int, PreparedStatement)
  33. def executeUpdateAndCloseStatement(s: AbstractSession, sw: StatementWriter): Int
  34. def executeUpdateForInsert(s: AbstractSession, sw: StatementWriter, ps: PreparedStatement): Int
  35. def failureOfStatementRequiresRollback: Boolean
  36. def fieldAlias(n: QueryableExpressionNode, fse: FieldSelectElement): String
  37. def fillParamsInto(params: Iterable[StatementParam], s: PreparedStatement): Unit
  38. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  39. def floatTypeDeclaration: String
  40. def foreignKeyConstraintName(foreignKeyTable: Table[_], idWithinSchema: Int): String
  41. 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 ,

  42. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  43. def getInsertableFields(fmd: Iterable[FieldMetaData]): Iterable[FieldMetaData]
    Attributes
    protected
  44. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  45. def intArrayTypeDeclaration: String
  46. def intTypeDeclaration: String
  47. def isFullOuterJoinSupported: Boolean
  48. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  49. def isNotNullConstraintViolation(e: SQLException): Boolean

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

  50. def jdbcDoubleArrayCreationType: String
  51. def jdbcIntArrayCreationType: String
  52. def jdbcLongArrayCreationType: String
  53. def jdbcStringArrayCreationType: String
  54. def jdbcTypeConstantFor(c: Class[_]): Int
  55. def longArrayTypeDeclaration: String
  56. def longTypeDeclaration: String
  57. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  58. final def notify(): Unit
    Definition Classes
    AnyRef
  59. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  60. def nvlToken: String
  61. 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

  62. def postDropTable(t: Table[_]): Unit
  63. def prepareStatement(conn: Connection, statement: String): PreparedStatement
    Attributes
    protected
  64. def quoteIdentifier(s: String): String
  65. def quoteName(s: String): String
  66. def setParamInto(s: PreparedStatement, p: StatementParam, i: Int): Unit
  67. implicit def string2StatementWriter(s: String): StatementWriter
  68. def stringArrayTypeDeclaration: String
  69. def stringTypeDeclaration(length: Int): String
  70. def stringTypeDeclaration: String
  71. def supportsAutoIncrementInColumnDeclaration: Boolean
  72. def supportsForeignKeyConstraints: Boolean
  73. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  74. def timestampTypeDeclaration: String
  75. def toString(): String
    Definition Classes
    AnyRef → Any
  76. def uuidTypeDeclaration: String
  77. def verifyDeleteByPK: Boolean

    Should we verify that when we delete by primary key the JDBC driver reports that no more than one row was affected? MonetDB in particular seems to act badly here

    Should we verify that when we delete by primary key the JDBC driver reports that no more than one row was affected? MonetDB in particular seems to act badly here

    returns

    true if we should throw an exception if the driver reports more than 1 affected row

  78. def viewAlias(vn: ViewExpressionNode[_]): String
  79. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  81. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  82. def writeColumnDeclaration(fmd: FieldMetaData, isPrimaryKey: Boolean, schema: Schema): String
  83. def writeCompositePrimaryKeyConstraint(t: Table[_], cols: Iterable[FieldMetaData]): String
  84. def writeConcatFunctionCall(fn: FunctionNode, sw: StatementWriter): Unit
  85. def writeConcatOperator(left: ExpressionNode, right: ExpressionNode, sw: StatementWriter): Unit
  86. def writeCreateTable[T](t: Table[T], sw: StatementWriter, schema: Schema): Unit
  87. def writeDelete[T](t: Table[T], whereClause: Option[ExpressionNode], sw: StatementWriter): Unit
  88. def writeDropForeignKeyStatement(foreignKeyTable: Table[_], fkName: String): String
  89. def writeDropTable(tableName: String): String
  90. def writeEndOfFromHint(qen: QueryExpressionElements, sw: StatementWriter): Unit
  91. def writeEndOfQueryHint(qen: QueryExpressionElements, sw: StatementWriter): Unit
  92. def writeForeignKeyDeclaration(foreignKeyTable: Table[_], foreignKeyColumnName: String, primaryKeyTable: Table[_], primaryKeyColumnName: String, referentialAction1: Option[ReferentialAction], referentialAction2: Option[ReferentialAction], fkId: Int): String
  93. def writeIndexDeclaration(columnDefs: Seq[FieldMetaData], name: Option[String], nameOfCompositeKey: Option[String], isUnique: Boolean): String

  94. def writeInsert[T](o: T, t: Table[T], sw: StatementWriter): Unit
  95. def writeJoin(queryableExpressionNode: QueryableExpressionNode, sw: StatementWriter): Unit
  96. def writeNvlCall(left: ExpressionNode, right: ExpressionNode, sw: StatementWriter): Unit
  97. def writePaginatedQueryDeclaration(qen: QueryExpressionElements, sw: StatementWriter): Unit
  98. def writeQuery(qen: QueryExpressionElements, sw: StatementWriter, inverseOrderBy: Boolean, topHint: Option[String]): Unit
    Attributes
    protected
  99. def writeQuery(qen: QueryExpressionElements, sw: StatementWriter): Unit
  100. def writeRegexExpression(left: ExpressionNode, pattern: String, sw: StatementWriter): Unit
  101. def writeSelectElementAlias(se: SelectElement, sw: StatementWriter): Unit
  102. def writeUniquenessConstraint(t: Table[_], cols: Iterable[FieldMetaData]): String
  103. def writeUpdate(t: Table[_], us: UpdateStatement, sw: StatementWriter): Unit
  104. def writeUpdate[T](o: T, t: Table[T], sw: StatementWriter, checkOCC: Boolean): Unit
  105. def writeValue(o: AnyRef, fmd: FieldMetaData, sw: StatementWriter): String
    Attributes
    protected
  106. implicit def zipIterable[T](i: Iterable[T]): ZipIterable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped