org.squeryl.internals

DatabaseAdapter

trait DatabaseAdapter extends AnyRef

linear super types: AnyRef, Any
known subclasses: PostgreSqlAdapter, OracleAdapter, MySQLAdapter, MySQLInnoDBAdapter, MSSQLServer, H2Adapter, DerbyAdapter, DB2Adapter
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. DatabaseAdapter
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Type Members

  1. class Zip [T] extends AnyRef

  2. class ZipIterable [T] extends AnyRef

Value Members

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

    attributes: final
    definition classes: AnyRef
  2. def != (arg0: Any) : Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ## () : Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf [T0] () : T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf [T0] () : Boolean

    attributes: final
    definition classes: AnyRef
  6. def == (arg0: AnyRef) : Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  7. def == (arg0: Any) : Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  8. def aliasExport (parentOfTarget: QueryableExpressionNode, target: SelectElement) : String

  9. def asInstanceOf [T0] : T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  10. def bigDecimalTypeDeclaration (precision: Int, scale: Int) : String

  11. def bigDecimalTypeDeclaration : String

  12. def binaryTypeDeclaration : String

  13. def booleanTypeDeclaration : String

  14. def clone () : AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected
    definition classes: AnyRef
  15. 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

  16. def convertFromUuidForJdbc (u: UUID) : AnyRef

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

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

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

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

  21. def createSequenceName (fmd: FieldMetaData) : String

  22. def createStatement (conn: Connection) : Statement

    attributes: protected
  23. def currenSession : Session

    attributes: protected
  24. def databaseTypeFor (c: Class[_]) : String

  25. def databaseTypeFor (fmd: FieldMetaData) : String

  26. def dateTypeDeclaration : String

  27. def doubleTypeDeclaration : String

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

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

  30. def eq (arg0: AnyRef) : Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality.

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  31. def equals (arg0: Any) : Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    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

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected
    definition classes: AnyRef
  42. def floatTypeDeclaration : String

  43. def foreignKeyConstraintName (foreignKeyTable: org.squeryl.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 ,

    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. def getClass () : java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  46. def getInsertableFields (fmd: Iterable[FieldMetaData]) : Iterable[FieldMetaData]

    attributes: protected
  47. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: AnyRef → Any
  48. def intTypeDeclaration : String

  49. def isFullOuterJoinSupported : Boolean

  50. def isInstanceOf [T0] : Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  51. 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

  52. def isTableDoesNotExistException (e: SQLException) : Boolean

    attributes: abstract
  53. def longTypeDeclaration : String

  54. def ne (arg0: AnyRef) : Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  55. def notify () : Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  56. def notifyAll () : Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  57. def nvlToken : String

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

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

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

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

    attributes: protected
  61. def quoteIdentifier (s: String) : String

  62. def quoteName (s: String) : String

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

    attributes: implicit
  64. def stringTypeDeclaration (length: Int) : String

  65. def stringTypeDeclaration : String

  66. def supportsAutoIncrementInColumnDeclaration : Boolean

  67. def supportsForeignKeyConstraints : Boolean

  68. def synchronized [T0] (arg0: T0) : T0

    attributes: final
    definition classes: AnyRef
  69. def timestampTypeDeclaration : String

  70. def toString () : String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: AnyRef → Any
  71. def uuidTypeDeclaration : String

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

  73. def wait () : Unit

    attributes: final
    definition classes: AnyRef
  74. def wait (arg0: Long, arg1: Int) : Unit

    attributes: final
    definition classes: AnyRef
  75. def wait (arg0: Long) : Unit

    attributes: final
    definition classes: AnyRef
  76. def writeCaseStatement (toMatch: Option[ExpressionNode], cases: Iterable[(ExpressionNode, org.squeryl.dsl.ast.TypedExpressionNode[_])], otherwise: org.squeryl.dsl.ast.TypedExpressionNode[_], sw: StatementWriter) : Unit

  77. def writeCastInvocation (e: org.squeryl.dsl.ast.TypedExpressionNode[_], sw: StatementWriter) : Unit

  78. def writeColumnDeclaration (fmd: FieldMetaData, isPrimaryKey: Boolean, schema: Schema) : String

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

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

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

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

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

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

  85. def writeDropTable (tableName: String) : String

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

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

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

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

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

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

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

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

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

    attributes: protected
  95. def writeQuery (qen: QueryExpressionElements, sw: StatementWriter) : Unit

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

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

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

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

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

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

    attributes: protected
  102. implicit def zipIterable [T] (i: Iterable[T]) : ZipIterable[T]

    attributes: implicit

Inherited from AnyRef

Inherited from Any