org.squeryl.adapters

PostgreSqlAdapter

class PostgreSqlAdapter extends DatabaseAdapter

linear super types: DatabaseAdapter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. PostgreSqlAdapter
  2. DatabaseAdapter
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Instance constructors

  1. new PostgreSqlAdapter ()

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

    definition classes: DatabaseAdapter
  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

    definition classes: PostgreSqlAdapterDatabaseAdapter
  11. def bigDecimalTypeDeclaration : String

    definition classes: PostgreSqlAdapterDatabaseAdapter
  12. def binaryTypeDeclaration : String

    definition classes: PostgreSqlAdapterDatabaseAdapter
  13. def booleanTypeDeclaration : String

    definition classes: PostgreSqlAdapterDatabaseAdapter
  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

    definition classes: DatabaseAdapter
  16. def convertFromUuidForJdbc (u: UUID) : AnyRef

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

    definition classes: DatabaseAdapter
  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)

    definition classes: DatabaseAdapter
  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

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

    definition classes: PostgreSqlAdapterDatabaseAdapter
  21. def createSequenceName (fmd: FieldMetaData) : String

    definition classes: DatabaseAdapter
  22. def createStatement (conn: Connection) : Statement

    attributes: protected
    definition classes: DatabaseAdapter
  23. def currenSession : Session

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

    definition classes: DatabaseAdapter
  25. def databaseTypeFor (fmd: FieldMetaData) : String

    definition classes: DatabaseAdapter
  26. def dateTypeDeclaration : String

    definition classes: DatabaseAdapter
  27. def doubleTypeDeclaration : String

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

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

    definition classes: DatabaseAdapter
  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
    definition classes: DatabaseAdapter
  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
    definition classes: DatabaseAdapter
  34. def executeQuery (s: Session, sw: StatementWriter) : (ResultSet, PreparedStatement)

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

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

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

    definition classes: DatabaseAdapter
  38. def failureOfStatementRequiresRollback : Boolean

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

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

    definition classes: DatabaseAdapter
  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

    definition classes: DatabaseAdapter
  43. def foreignKeyConstraintName (foreignKeyTable: org.squeryl.Table[_], idWithinSchema: Int) : String

    definition classes: PostgreSqlAdapterDatabaseAdapter
  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 ,

    definition classes: DatabaseAdapter
  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
    definition classes: DatabaseAdapter
  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

    definition classes: PostgreSqlAdapterDatabaseAdapter
  49. def isFullOuterJoinSupported : Boolean

    definition classes: DatabaseAdapter
  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

    definition classes: DatabaseAdapter
  52. def isTableDoesNotExistException (e: SQLException) : Boolean

    definition classes: PostgreSqlAdapterDatabaseAdapter
  53. def longTypeDeclaration : String

    definition classes: PostgreSqlAdapterDatabaseAdapter
  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

    definition classes: DatabaseAdapter
  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

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

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

    attributes: protected
    definition classes: DatabaseAdapter
  61. def quoteIdentifier (s: String) : String

    definition classes: PostgreSqlAdapterDatabaseAdapter
  62. def quoteName (s: String) : String

    definition classes: DatabaseAdapter
  63. def sequenceName (t: org.squeryl.Table[_]) : String

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

    attributes: implicit
    definition classes: DatabaseAdapter
  65. def stringTypeDeclaration (length: Int) : String

    definition classes: PostgreSqlAdapterDatabaseAdapter
  66. def stringTypeDeclaration : String

    definition classes: PostgreSqlAdapterDatabaseAdapter
  67. def supportsAutoIncrementInColumnDeclaration : Boolean

    definition classes: PostgreSqlAdapterDatabaseAdapter
  68. def supportsForeignKeyConstraints : Boolean

    definition classes: DatabaseAdapter
  69. def synchronized [T0] (arg0: T0) : T0

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

    definition classes: DatabaseAdapter
  71. 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
  72. def uuidTypeDeclaration : String

    definition classes: PostgreSqlAdapterDatabaseAdapter
  73. def viewAlias (vn: org.squeryl.dsl.ast.ViewExpressionNode[_]) : String

    definition classes: DatabaseAdapter
  74. def wait () : Unit

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

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

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

    definition classes: DatabaseAdapter
  78. def writeCastInvocation (e: org.squeryl.dsl.ast.TypedExpressionNode[_], sw: StatementWriter) : Unit

    definition classes: DatabaseAdapter
  79. def writeColumnDeclaration (fmd: FieldMetaData, isPrimaryKey: Boolean, schema: Schema) : String

    definition classes: DatabaseAdapter
  80. def writeCompositePrimaryKeyConstraint (t: org.squeryl.Table[_], cols: Iterable[FieldMetaData]) : String

    definition classes: PostgreSqlAdapterDatabaseAdapter
  81. def writeConcatFunctionCall (fn: org.squeryl.dsl.ast.FunctionNode[_], sw: StatementWriter) : Unit

    definition classes: PostgreSqlAdapterDatabaseAdapter
  82. def writeConcatOperator (left: ExpressionNode, right: ExpressionNode, sw: StatementWriter) : Unit

    definition classes: DatabaseAdapter
  83. def writeCreateTable [T] (t: Table[T], sw: StatementWriter, schema: Schema) : Unit

    definition classes: DatabaseAdapter
  84. def writeDelete [T] (t: Table[T], whereClause: Option[ExpressionNode], sw: StatementWriter) : Unit

    definition classes: DatabaseAdapter
  85. def writeDropForeignKeyStatement (foreignKeyTable: org.squeryl.Table[_], fkName: String) : String

    definition classes: PostgreSqlAdapterDatabaseAdapter
  86. def writeDropTable (tableName: String) : String

    definition classes: DatabaseAdapter
  87. def writeEndOfFromHint (qen: QueryExpressionElements, sw: StatementWriter) : Unit

    definition classes: DatabaseAdapter
  88. def writeEndOfQueryHint (qen: QueryExpressionElements, sw: StatementWriter) : Unit

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

    definition classes: DatabaseAdapter
  90. def writeIndexDeclaration (columnDefs: Seq[FieldMetaData], name: Option[String], nameOfCompositeKey: Option[String], isUnique: Boolean) : String

    definition classes: DatabaseAdapter
  91. def writeInsert [T] (o: T, t: Table[T], sw: StatementWriter) : Unit

    definition classes: PostgreSqlAdapterDatabaseAdapter
  92. def writeJoin (queryableExpressionNode: QueryableExpressionNode, sw: StatementWriter) : Unit

    definition classes: DatabaseAdapter
  93. def writeNvlCall (left: ExpressionNode, right: ExpressionNode, sw: StatementWriter) : Unit

    definition classes: DatabaseAdapter
  94. def writePaginatedQueryDeclaration (qen: QueryExpressionElements, sw: StatementWriter) : Unit

    definition classes: DatabaseAdapter
  95. def writeQuery (qen: QueryExpressionElements, sw: StatementWriter, inverseOrderBy: Boolean, topHint: Option[String]) : Unit

    attributes: protected
    definition classes: DatabaseAdapter
  96. def writeQuery (qen: QueryExpressionElements, sw: StatementWriter) : Unit

    definition classes: DatabaseAdapter
  97. def writeRegexExpression (left: ExpressionNode, pattern: String, sw: StatementWriter) : Unit

    definition classes: DatabaseAdapter
  98. def writeSelectElementAlias (se: SelectElement, sw: StatementWriter) : Unit

    definition classes: DatabaseAdapter
  99. def writeUniquenessConstraint (t: org.squeryl.Table[_], cols: Iterable[FieldMetaData]) : String

    definition classes: DatabaseAdapter
  100. def writeUpdate (t: org.squeryl.Table[_], us: UpdateStatement, sw: StatementWriter) : Unit

    definition classes: DatabaseAdapter
  101. def writeUpdate [T] (o: T, t: Table[T], sw: StatementWriter, checkOCC: Boolean) : Unit

    definition classes: DatabaseAdapter
  102. def writeValue (o: AnyRef, fmd: FieldMetaData, sw: StatementWriter) : String

    attributes: protected
    definition classes: DatabaseAdapter
  103. implicit def zipIterable [T] (i: Iterable[T]) : ZipIterable[T]

    attributes: implicit
    definition classes: DatabaseAdapter

Inherited from DatabaseAdapter

Inherited from AnyRef

Inherited from Any