trait DatabaseAdapter extends AnyRef
- Alphabetic
- By Inheritance
- DatabaseAdapter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- class Zip [T] extends AnyRef
- class ZipIterable [T] extends AnyRef
Abstract Value Members
- abstract def isTableDoesNotExistException(e: SQLException): Boolean
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def aliasExport(parentOfTarget: QueryableExpressionNode, target: SelectElement): String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bigDecimalTypeDeclaration(precision: Int, scale: Int): String
- def bigDecimalTypeDeclaration: String
- def binaryTypeDeclaration: String
- def booleanTypeDeclaration: String
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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
- def convertFromUuidForJdbc(u: UUID): AnyRef
- def convertParamsForJdbc(params: Iterable[AnyRef]): Iterable[AnyRef]
-
def
convertToBooleanForJdbc(rs: ResultSet, i: Int): Boolean
unused for the same reason as def convertFromBooleanForJdbc (see comment)
-
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
- def convertToUuidForJdbc(rs: ResultSet, i: Int): UUID
- def createSequenceName(fmd: FieldMetaData): String
-
def
createStatement(conn: Connection): Statement
- Attributes
- protected
-
def
currenSession: Session
- Attributes
- protected
- def databaseTypeFor(c: Class[_]): String
- def databaseTypeFor(fmd: FieldMetaData): String
- def dateTypeDeclaration: String
- def doubleTypeDeclaration: String
- def dropForeignKeyStatement(foreignKeyTable: Table[_], fkName: String, session: Session): Unit
- def dropTable(t: Table[_]): Unit
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exec[A](s: Session, sw: StatementWriter)(block: (Iterable[AnyRef]) ⇒ A): A
- Attributes
- protected
-
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
- def executeQuery(s: Session, sw: StatementWriter): (ResultSet, PreparedStatement)
- def executeUpdate(s: Session, sw: StatementWriter): (Int, PreparedStatement)
- def executeUpdateAndCloseStatement(s: Session, sw: StatementWriter): Int
- def executeUpdateForInsert(s: Session, sw: StatementWriter, ps: PreparedStatement): Int
- def failureOfStatementRequiresRollback: Boolean
- def fieldAlias(n: QueryableExpressionNode, fse: FieldSelectElement): String
- def fillParamsInto(params: Iterable[AnyRef], s: PreparedStatement): Unit
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def floatTypeDeclaration: String
- def foreignKeyConstraintName(foreignKeyTable: Table[_], idWithinSchema: Int): String
-
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 ,
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getInsertableFields(fmd: Iterable[FieldMetaData]): Iterable[FieldMetaData]
- Attributes
- protected
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- def intTypeDeclaration: String
- def isFullOuterJoinSupported: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
- def longTypeDeclaration: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def nvlToken: String
-
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
- def postDropTable(t: Table[_]): Unit
-
def
prepareStatement(conn: Connection, statement: String): PreparedStatement
- Attributes
- protected
- def quoteIdentifier(s: String): String
- def quoteName(s: String): String
- implicit def string2StatementWriter(s: String): StatementWriter
- def stringTypeDeclaration(length: Int): String
- def stringTypeDeclaration: String
- def supportsAutoIncrementInColumnDeclaration: Boolean
- def supportsForeignKeyConstraints: Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def timestampTypeDeclaration: String
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def uuidTypeDeclaration: String
- def viewAlias(vn: ViewExpressionNode[_]): String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def writeCaseStatement(toMatch: Option[ExpressionNode], cases: Iterable[(ExpressionNode, TypedExpressionNode[_])], otherwise: TypedExpressionNode[_], sw: StatementWriter): Unit
- def writeCastInvocation(e: TypedExpressionNode[_], sw: StatementWriter): Unit
- def writeColumnDeclaration(fmd: FieldMetaData, isPrimaryKey: Boolean, schema: Schema): String
- def writeCompositePrimaryKeyConstraint(t: Table[_], cols: Iterable[FieldMetaData]): String
- def writeConcatFunctionCall(fn: FunctionNode[_], sw: StatementWriter): Unit
- def writeConcatOperator(left: ExpressionNode, right: ExpressionNode, sw: StatementWriter): Unit
- def writeCreateTable[T](t: Table[T], sw: StatementWriter, schema: Schema): Unit
- def writeDelete[T](t: Table[T], whereClause: Option[ExpressionNode], sw: StatementWriter): Unit
- def writeDropForeignKeyStatement(foreignKeyTable: Table[_], fkName: String): String
- def writeDropTable(tableName: String): String
- def writeEndOfFromHint(qen: QueryExpressionElements, sw: StatementWriter): Unit
- def writeEndOfQueryHint(qen: QueryExpressionElements, sw: StatementWriter): Unit
- def writeForeignKeyDeclaration(foreignKeyTable: Table[_], foreignKeyColumnName: String, primaryKeyTable: Table[_], primaryKeyColumnName: String, referentialAction1: Option[ReferentialAction], referentialAction2: Option[ReferentialAction], fkId: Int): String
- def writeIndexDeclaration(columnDefs: Seq[FieldMetaData], name: Option[String], nameOfCompositeKey: Option[String], isUnique: Boolean): String
- def writeInsert[T](o: T, t: Table[T], sw: StatementWriter): Unit
- def writeJoin(queryableExpressionNode: QueryableExpressionNode, sw: StatementWriter): Unit
- def writeNvlCall(left: ExpressionNode, right: ExpressionNode, sw: StatementWriter): Unit
- def writePaginatedQueryDeclaration(qen: QueryExpressionElements, sw: StatementWriter): Unit
-
def
writeQuery(qen: QueryExpressionElements, sw: StatementWriter, inverseOrderBy: Boolean, topHint: Option[String]): Unit
- Attributes
- protected
- def writeQuery(qen: QueryExpressionElements, sw: StatementWriter): Unit
- def writeRegexExpression(left: ExpressionNode, pattern: String, sw: StatementWriter): Unit
- def writeSelectElementAlias(se: SelectElement, sw: StatementWriter): Unit
- def writeUniquenessConstraint(t: Table[_], cols: Iterable[FieldMetaData]): String
- def writeUpdate(t: Table[_], us: UpdateStatement, sw: StatementWriter): Unit
- def writeUpdate[T](o: T, t: Table[T], sw: StatementWriter, checkOCC: Boolean): Unit
-
def
writeValue(o: AnyRef, fmd: FieldMetaData, sw: StatementWriter): String
- Attributes
- protected
- implicit def zipIterable[T](i: Iterable[T]): ZipIterable[T]