Packages

class H2Adapter extends DatabaseAdapter

Source
H2Adapter.scala
Linear Supertypes
DatabaseAdapter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. H2Adapter
  2. DatabaseAdapter
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new H2Adapter()

Type Members

  1. class Zip[T] extends AnyRef
    Definition Classes
    DatabaseAdapter
  2. class ZipIterable[T] extends AnyRef
    Definition Classes
    DatabaseAdapter

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
    Definition Classes
    DatabaseAdapter
  5. final def arrayCreationType(ptype: Class[_]): String
    Definition Classes
    DatabaseAdapter
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def bigDecimalTypeDeclaration(precision: Int, scale: Int): String
    Definition Classes
    DatabaseAdapter
  8. def bigDecimalTypeDeclaration: String
    Definition Classes
    DatabaseAdapter
  9. def binaryTypeDeclaration: String
    Definition Classes
    DatabaseAdapter
  10. def booleanTypeDeclaration: String
    Definition Classes
    DatabaseAdapter
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  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

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

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

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

    Definition Classes
    DatabaseAdapter
  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

    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

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

    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 ,

    Definition Classes
    DatabaseAdapter
  42. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  43. def getInsertableFields(fmd: Iterable[FieldMetaData]): Iterable[FieldMetaData]
    Attributes
    protected
    Definition Classes
    DatabaseAdapter
  44. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  45. def intArrayTypeDeclaration: String
    Definition Classes
    DatabaseAdapter
  46. def intTypeDeclaration: String
    Definition Classes
    DatabaseAdapter
  47. def isFullOuterJoinSupported: Boolean
    Definition Classes
    H2AdapterDatabaseAdapter
  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

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

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

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

    Definition Classes
    DatabaseAdapter
  63. def postDropTable(t: Table[_]): Unit
    Definition Classes
    DatabaseAdapter
  64. def prepareStatement(conn: Connection, statement: String): PreparedStatement
    Attributes
    protected
    Definition Classes
    DatabaseAdapter
  65. def quoteIdentifier(s: String): String
    Definition Classes
    DatabaseAdapter
  66. def quoteName(s: String): String
    Definition Classes
    DatabaseAdapter
  67. def setParamInto(s: PreparedStatement, p: StatementParam, i: Int): Unit
    Definition Classes
    DatabaseAdapter
  68. implicit def string2StatementWriter(s: String): StatementWriter
    Definition Classes
    DatabaseAdapter
  69. def stringArrayTypeDeclaration: String
    Definition Classes
    DatabaseAdapter
  70. def stringTypeDeclaration(length: Int): String
    Definition Classes
    DatabaseAdapter
  71. def stringTypeDeclaration: String
    Definition Classes
    DatabaseAdapter
  72. def supportsAutoIncrementInColumnDeclaration: Boolean
    Definition Classes
    DatabaseAdapter
  73. def supportsCommonTableExpressions: Boolean
    Definition Classes
    H2AdapterDatabaseAdapter
  74. def supportsForeignKeyConstraints: Boolean
    Definition Classes
    DatabaseAdapter
  75. def supportsUnionQueryOptions: Boolean
    Definition Classes
    DatabaseAdapter
  76. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  77. def timestampTypeDeclaration: String
    Definition Classes
    DatabaseAdapter
  78. def toString(): String
    Definition Classes
    AnyRef → Any
  79. def uuidTypeDeclaration: String
    Definition Classes
    H2AdapterDatabaseAdapter
  80. 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

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

    name

    the name specified in the Schema, when not None, it must be used as the name

    nameOfCompositeKey

    when not None, the column group forms a composite key, 'nameOfCompositeKey' can be used as part of the name to create a more meaningfull name for the constraint, when 'name' is None

    Definition Classes
    DatabaseAdapter
  98. def writeInsert[T](o: T, t: Table[T], sw: StatementWriter): Unit
    Definition Classes
    DatabaseAdapter
  99. def writeJoin(queryableExpressionNode: QueryableExpressionNode, sw: StatementWriter): Unit
    Definition Classes
    DatabaseAdapter
  100. def writeNvlCall(left: ExpressionNode, right: ExpressionNode, sw: StatementWriter): Unit
    Definition Classes
    DatabaseAdapter
  101. def writePaginatedQueryDeclaration(page: () => Option[(Int, Int)], qen: QueryExpressionElements, sw: StatementWriter): Unit
    Definition Classes
    DatabaseAdapter
  102. def writeQuery(qen: QueryExpressionElements, sw: StatementWriter, inverseOrderBy: Boolean, topHint: Option[String]): Unit
    Attributes
    protected
    Definition Classes
    DatabaseAdapter
  103. def writeQuery(qen: QueryExpressionElements, sw: StatementWriter): Unit
    Definition Classes
    DatabaseAdapter
  104. def writeRegexExpression(left: ExpressionNode, pattern: String, sw: StatementWriter): ArrayBuffer[StatementParam]
    Definition Classes
    DatabaseAdapter
  105. def writeSelectElementAlias(se: SelectElement, sw: StatementWriter): Unit
    Definition Classes
    DatabaseAdapter
  106. def writeUnionQueryOptions(qen: QueryExpressionElements, sw: StatementWriter): Unit
    Definition Classes
    DatabaseAdapter
  107. def writeUniquenessConstraint(t: Table[_], cols: Iterable[FieldMetaData]): String
    Definition Classes
    DatabaseAdapter
  108. def writeUpdate(t: Table[_], us: UpdateStatement, sw: StatementWriter): Unit
    Definition Classes
    DatabaseAdapter
  109. def writeUpdate[T](o: T, t: Table[T], sw: StatementWriter, checkOCC: Boolean): Unit
    Definition Classes
    DatabaseAdapter
  110. def writeValue(o: AnyRef, fmd: FieldMetaData, sw: StatementWriter): String
    Attributes
    protected
    Definition Classes
    DatabaseAdapter
  111. implicit def zipIterable[T](i: Iterable[T]): ZipIterable[T]
    Definition Classes
    DatabaseAdapter

Inherited from DatabaseAdapter

Inherited from AnyRef

Inherited from Any

Ungrouped