Trait

org.scalarelational.extra

PersistentProperties

Related Doc: package extra

Permalink

trait PersistentProperties extends Datastore

Persistent Properties allows key/value pairs to be persisted to a table for later retrieval and modification.

Convenience methods are provided to get, set, and remove the value for a property and to create a Property instance that can update the database in an event-driven manner.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PersistentProperties
  2. Datastore
  3. BasicFunctionTypes
  4. DDLDSLSupport
  5. DataTypeSupport
  6. DDLSupport
  7. SQLContainer
  8. DSLSupport
  9. SessionSupport
  10. Logging
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class CallableInstructions extends AnyRef

    Permalink
    Definition Classes
    Datastore

Abstract Value Members

  1. abstract def catalog: Option[String]

    Permalink

    The catalog name for the database.

    The catalog name for the database. Should be defined to help filtering jdbc metadata if supported by the database.

    Attributes
    protected
    Definition Classes
    Datastore
  2. abstract def column2Create[T, S](column: Column[T, S]): CreateColumn[T, S]

    Permalink
    Definition Classes
    DDLSupport
  3. abstract def dataSource: Option[DataSource]

    Permalink
    Definition Classes
    Datastore
  4. abstract def ddl(drop: DropIndex): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLSupport
  5. abstract def ddl(drop: DropColumn): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLSupport
  6. abstract def ddl(drop: DropTable): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLSupport
  7. abstract def ddl[T, S](alter: ChangeColumnType[T, S]): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLSupport
  8. abstract def ddl(alter: RestartColumn): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLSupport
  9. abstract def ddl(alter: RenameColumn): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLSupport
  10. abstract def ddl(create: CreateIndex): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLSupport
  11. abstract def ddl(alter: CreateForeignKey): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLSupport
  12. abstract def ddl[T, S](create: CreateColumn[T, S]): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLSupport
  13. abstract def ddl(create: CreateTable): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLSupport
  14. abstract def ddl(tables: List[Table], ifNotExists: Boolean = true): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLSupport
  15. abstract def describe[E, R](query: Query[E, R]): (String, List[TypedValue[_, _]])

    Permalink

    Converts the Query to a SQL String and a List of arguments.

    Converts the Query to a SQL String and a List of arguments.

    E

    expressions

    R

    result

    query

    to describe

    returns

    (String, List[TypedValue[_, _])

    Definition Classes
    Datastore
  16. abstract def invoke(delete: Delete)(implicit session: Session): Int

    Permalink
    Attributes
    protected
    Definition Classes
    Datastore
  17. abstract def invoke[T](update: Update[T])(implicit session: Session): Int

    Permalink
    Attributes
    protected
    Definition Classes
    Datastore
  18. abstract def invoke(merge: Merge)(implicit session: Session): Int

    Permalink
    Attributes
    protected
    Definition Classes
    Datastore
  19. abstract def invoke(insert: InsertMultiple)(implicit session: Session): List[Int]

    Permalink
    Attributes
    protected
    Definition Classes
    Datastore
  20. abstract def invoke[T](insert: InsertSingle[T])(implicit session: Session): Int

    Permalink
    Attributes
    protected
    Definition Classes
    Datastore
  21. abstract def invoke[E, R](query: Query[E, R])(implicit session: Session): ResultSet

    Permalink
    Attributes
    protected
    Definition Classes
    Datastore
  22. abstract def table2Create(table: Table, ifNotExists: Boolean = true): CreateTable

    Permalink
    Definition Classes
    DDLSupport

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val Avg: DerivedFunctionType

    Permalink
    Definition Classes
    BasicFunctionTypes
  5. val BoolAnd: SpecificFunctionType[Boolean, Boolean]

    Permalink
    Definition Classes
    BasicFunctionTypes
  6. val BoolOr: SpecificFunctionType[Boolean, Boolean]

    Permalink
    Definition Classes
    BasicFunctionTypes
  7. val Concat: ValueFunctionType[String, String]

    Permalink
    Definition Classes
    BasicFunctionTypes
  8. val Count: SpecificFunctionType[Long, Long]

    Permalink
    Definition Classes
    BasicFunctionTypes
  9. def DefaultBinaryLength: Int

    Permalink
    Definition Classes
    Datastore
  10. def DefaultVarCharLength: Int

    Permalink
    Definition Classes
    Datastore
  11. val GroupConcat: SpecificFunctionType[String, String]

    Permalink
    Definition Classes
    BasicFunctionTypes
  12. val Max: DerivedFunctionType

    Permalink
    Definition Classes
    BasicFunctionTypes
  13. val Min: DerivedFunctionType

    Permalink
    Definition Classes
    BasicFunctionTypes
  14. val Now: DefaultFunctionType[Timestamp, Timestamp]

    Permalink

    Definition Classes
    BasicFunctionTypes
    Note

    Not available in H2

  15. val PersistentKeyLength: Int

    Permalink
    Attributes
    protected
  16. val PersistentValueLength: Int

    Permalink
    Attributes
    protected
  17. val Sum: DerivedFunctionType

    Permalink
    Definition Classes
    BasicFunctionTypes
  18. val UnixTimestamp: DefaultFunctionType[Long, Long]

    Permalink

    Definition Classes
    BasicFunctionTypes
    Note

    Not available in H2

  19. val _session: ThreadLocal[Option[Session]] { def initialValue(): None.type }

    Permalink
    Attributes
    protected
    Definition Classes
    SessionSupport
  20. def add(table: Table): Unit

    Permalink
    Attributes
    protected[org.scalarelational]
    Definition Classes
    Datastore
  21. def afterInvoke(delete: Delete): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SQLContainer
  22. def afterInvoke[T](update: Update[T]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SQLContainer
  23. def afterInvoke(merge: Merge): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SQLContainer
  24. def afterInvoke(insert: InsertMultiple): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SQLContainer
  25. def afterInvoke[T](insert: InsertSingle[T]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SQLContainer
  26. def afterInvoke[E, R](query: Query[E, R]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SQLContainer
  27. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  28. def async[Result](f: (Session) ⇒ Result): Future[Result]

    Permalink

    Executes the inline function asynchronously and surrounds in a session returning Future[Result].

    Executes the inline function asynchronously and surrounds in a session returning Future[Result].

    Definition Classes
    SessionSupport
  29. def beforeInvoke(delete: Delete): Delete

    Permalink
    Attributes
    protected
    Definition Classes
    SQLContainer
  30. def beforeInvoke[T](update: Update[T]): Update[T]

    Permalink
    Attributes
    protected
    Definition Classes
    SQLContainer
  31. def beforeInvoke(merge: Merge): Merge

    Permalink
    Attributes
    protected
    Definition Classes
    SQLContainer
  32. def beforeInvoke(insert: InsertMultiple): InsertMultiple

    Permalink
    Attributes
    protected
    Definition Classes
    SQLContainer
  33. def beforeInvoke[T](insert: InsertSingle[T]): InsertSingle[T]

    Permalink
    Attributes
    protected
    Definition Classes
    SQLContainer
  34. def beforeInvoke[E, R](query: Query[E, R]): Query[E, R]

    Permalink
    Attributes
    protected
    Definition Classes
    SQLContainer
  35. implicit def bigDecimalType: SimpleDataType[BigDecimal]

    Permalink
    Definition Classes
    DataTypeSupport
  36. implicit def blobType: SimpleDataType[Blob]

    Permalink
    Definition Classes
    DataTypeSupport
  37. implicit def booleanType: SimpleDataType[Boolean]

    Permalink
    Definition Classes
    DataTypeSupport
  38. implicit def byteArrayType: SimpleDataType[Array[Byte]]

    Permalink
    Definition Classes
    DataTypeSupport
  39. def calling(instructionType: InstructionType, sql: String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SQLContainer
  40. def changeColumnType[T, S](tableName: String, columnName: String, properties: ColumnProperty*)(implicit dataType: DataType[T, S]): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLDSLSupport
  41. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def create(tables: Table*)(implicit session: Session): Int

    Permalink
    Definition Classes
    Datastore
  43. def createColumn[T](tableName: String, columnName: String, columnProperty: ColumnProperty*)(implicit dataType: SimpleDataType[T]): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLDSLSupport
  44. def createColumn[T, S](tableName: String, columnName: String, columnProperty: ColumnProperty*)(implicit dataType: DataType[T, S]): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLDSLSupport
  45. def createColumn[T, S](column: Column[T, S]): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLDSLSupport
  46. def createSession(): (Boolean, Session)

    Permalink
    Attributes
    protected
    Definition Classes
    SessionSupport
  47. def createTable(tableName: String): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLDSLSupport
  48. def createTable(table: Table): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLDSLSupport
  49. def creating(): Unit

    Permalink

    Called when the datastore is being created for the first time.

    Called when the datastore is being created for the first time. This does not mean the tables are being created but just the datastore.

    Definition Classes
    Datastore
  50. def dataTypeForInstance[T, S](dataTypeInstance: DataTypeInstance[T, S]): DataType[T, S]

    Permalink

    All columns that are created receive a DataType responsible for converting data between Scala and the database.

    All columns that are created receive a DataType responsible for converting data between Scala and the database. This processor receives all of those DataTypes before they are assigned to the column allowing modification by database implementations or other customizations of how the datastore interacts with the database.

    Definition Classes
    Datastore
  51. def delete(table: Table): Delete

    Permalink
    Definition Classes
    DSLSupport
  52. def dispose(): Unit

    Permalink
    Definition Classes
    Datastore
  53. def disposeDataSource(dataSource: DataSource): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Datastore
  54. def disposeSession(session: Session): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SessionSupport
  55. implicit def doubleType: SimpleDataType[Double]

    Permalink
    Definition Classes
    DataTypeSupport
  56. def dropColumn(tableName: String, columnName: String): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLDSLSupport
  57. def dropColumn(column: Column[_, _]): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLDSLSupport
  58. def dropIndex(tableName: String, indexName: String): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLDSLSupport
  59. def dropIndex(table: Table, indexName: String): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLDSLSupport
  60. def dropTable(tableName: String, cascade: Boolean): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLDSLSupport
  61. def dropTable(table: Table, cascade: Boolean): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLDSLSupport
  62. def empty()(implicit session: Session): Boolean

    Permalink
    Definition Classes
    Datastore
  63. implicit def enum[T <: EnumEntry](implicit enumeration: Enum[T], manifest: Manifest[T]): DataType[T, String]

    Permalink
    Definition Classes
    DataTypeSupport
  64. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  65. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  66. def executionContext: ExecutionContextExecutor

    Permalink
    Attributes
    protected
    Definition Classes
    SessionSupport
  67. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  68. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  69. def hasSession: Boolean

    Permalink
    Definition Classes
    SessionSupport
  70. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  71. def insert(values: ColumnValue[_, _]*): InsertSingle[Int]

    Permalink
    Definition Classes
    DSLSupport
  72. implicit def insert2Rows(inserts: Seq[Insert[_]]): Seq[Seq[ColumnValue[_, _]]]

    Permalink
    Definition Classes
    DSLSupport
  73. def insertBatch(rows: Seq[Seq[ColumnValue[_, _]]]): InsertMultiple

    Permalink
    Definition Classes
    DSLSupport
  74. def insertInto(table: Table, values: Any*): InsertSingle[Int]

    Permalink
    Definition Classes
    DSLSupport
  75. def instantiateSession(): Session

    Permalink
    Attributes
    protected
    Definition Classes
    SessionSupport
  76. implicit def intType: SimpleDataType[Int]

    Permalink
    Definition Classes
    DataTypeSupport
  77. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  78. def jdbcColumns(tableName: String)(implicit session: Session): Set[String]

    Permalink
    Definition Classes
    Datastore
  79. def jdbcTables(implicit session: Session): Set[String]

    Permalink
    Definition Classes
    Datastore
  80. def logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  81. def loggerName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  82. implicit def longTimestampType: DataType[Long, Timestamp]

    Permalink
    Definition Classes
    DataTypeSupport
  83. implicit def longType: SimpleDataType[Long]

    Permalink
    Definition Classes
    DataTypeSupport
  84. def merge(key: Column[_, _], values: ColumnValue[_, _]*): Merge

    Permalink
    Definition Classes
    DSLSupport
  85. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  86. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  87. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  88. implicit def option[T, S](implicit dataType: DataType[T, S]): DataType[Option[T], S]

    Permalink
    Definition Classes
    DataTypeSupport
  89. object persistence

    Permalink
  90. object persistentProperties extends Table

    Permalink
  91. implicit def reference[T]: DataType[Ref[T], Int]

    Permalink
    Definition Classes
    DataTypeSupport
  92. def renameColumn(tableName: String, oldName: String, newName: String): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLDSLSupport
  93. def restartColumn(tableName: String, columnName: String, value: Long): List[CallableInstruction]

    Permalink
    Definition Classes
    DDLDSLSupport
  94. def select(expressions: List[SelectExpression[_]]): SelectQueryPart[Vector[SelectExpression[_]], QueryResult]

    Permalink
    Definition Classes
    DSLSupport
  95. def select[E1, E2, E3, E4, E5, E6, E7, E8, E9, E10](e1: SelectExpression[E1], e2: SelectExpression[E2], e3: SelectExpression[E3], e4: SelectExpression[E4], e5: SelectExpression[E5], e6: SelectExpression[E6], e7: SelectExpression[E7], e8: SelectExpression[E8], e9: SelectExpression[E9], e10: SelectExpression[E10]): SelectQueryPart[(E1, E2, E3, E4, E5, E6, E7, E8, E9, E10), (E1, E2, E3, E4, E5, E6, E7, E8, E9, E10)]

    Permalink
    Definition Classes
    DSLSupport
  96. def select[E1, E2, E3, E4, E5, E6, E7, E8, E9](e1: SelectExpression[E1], e2: SelectExpression[E2], e3: SelectExpression[E3], e4: SelectExpression[E4], e5: SelectExpression[E5], e6: SelectExpression[E6], e7: SelectExpression[E7], e8: SelectExpression[E8], e9: SelectExpression[E9]): SelectQueryPart[(E1, E2, E3, E4, E5, E6, E7, E8, E9), (E1, E2, E3, E4, E5, E6, E7, E8, E9)]

    Permalink
    Definition Classes
    DSLSupport
  97. def select[E1, E2, E3, E4, E5, E6, E7, E8](e1: SelectExpression[E1], e2: SelectExpression[E2], e3: SelectExpression[E3], e4: SelectExpression[E4], e5: SelectExpression[E5], e6: SelectExpression[E6], e7: SelectExpression[E7], e8: SelectExpression[E8]): SelectQueryPart[(E1, E2, E3, E4, E5, E6, E7, E8), (E1, E2, E3, E4, E5, E6, E7, E8)]

    Permalink
    Definition Classes
    DSLSupport
  98. def select[E1, E2, E3, E4, E5, E6, E7](e1: SelectExpression[E1], e2: SelectExpression[E2], e3: SelectExpression[E3], e4: SelectExpression[E4], e5: SelectExpression[E5], e6: SelectExpression[E6], e7: SelectExpression[E7]): SelectQueryPart[(E1, E2, E3, E4, E5, E6, E7), (E1, E2, E3, E4, E5, E6, E7)]

    Permalink
    Definition Classes
    DSLSupport
  99. def select[E1, E2, E3, E4, E5, E6](e1: SelectExpression[E1], e2: SelectExpression[E2], e3: SelectExpression[E3], e4: SelectExpression[E4], e5: SelectExpression[E5], e6: SelectExpression[E6]): SelectQueryPart[(E1, E2, E3, E4, E5, E6), (E1, E2, E3, E4, E5, E6)]

    Permalink
    Definition Classes
    DSLSupport
  100. def select[E1, E2, E3, E4, E5](e1: SelectExpression[E1], e2: SelectExpression[E2], e3: SelectExpression[E3], e4: SelectExpression[E4], e5: SelectExpression[E5]): SelectQueryPart[(E1, E2, E3, E4, E5), (E1, E2, E3, E4, E5)]

    Permalink
    Definition Classes
    DSLSupport
  101. def select[E1, E2, E3, E4](e1: SelectExpression[E1], e2: SelectExpression[E2], e3: SelectExpression[E3], e4: SelectExpression[E4]): SelectQueryPart[(E1, E2, E3, E4), (E1, E2, E3, E4)]

    Permalink
    Definition Classes
    DSLSupport
  102. def select[E1, E2, E3](e1: SelectExpression[E1], e2: SelectExpression[E2], e3: SelectExpression[E3]): SelectQueryPart[(E1, E2, E3), (E1, E2, E3)]

    Permalink
    Definition Classes
    DSLSupport
  103. def select[E1, E2](e1: SelectExpression[E1], e2: SelectExpression[E2]): SelectQueryPart[(E1, E2), (E1, E2)]

    Permalink
    Definition Classes
    DSLSupport
  104. def select[E](e1: SelectExpression[E]): SelectQueryPart[E, E]

    Permalink
    Definition Classes
    DSLSupport
  105. implicit def stringType: SimpleDataType[String]

    Permalink
    Definition Classes
    DataTypeSupport
  106. def supportsBatchInsertResponse: Boolean

    Permalink

    True if this database implementation supports multiple id responses on batch insert.

    True if this database implementation supports multiple id responses on batch insert.

    Definition Classes
    Datastore
  107. def supportsMerge: Boolean

    Permalink

    True if this database implementation supports merges.

    True if this database implementation supports merges.

    Definition Classes
    Datastore
  108. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  109. def tableByName(name: String): Option[Table]

    Permalink
    Definition Classes
    Datastore
  110. def tableExists(name: String)(implicit session: Session): Boolean

    Permalink
    Definition Classes
    Datastore
  111. implicit def thisDatastore: Datastore

    Permalink
    Definition Classes
    Datastore
  112. implicit def timestampType: SimpleDataType[Timestamp]

    Permalink
    Definition Classes
    DataTypeSupport
  113. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  114. def transaction[Result](f: (Session) ⇒ Result): Result

    Permalink
    Definition Classes
    SessionSupport
  115. def update(values: ColumnValue[_, _]*): Update[Int]

    Permalink
    Definition Classes
    DSLSupport
  116. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  117. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  118. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  119. def withSession[Result](f: (Session) ⇒ Result): Result

    Permalink
    Definition Classes
    SessionSupport

Inherited from Datastore

Inherited from BasicFunctionTypes

Inherited from DDLDSLSupport

Inherited from DataTypeSupport

Inherited from DDLSupport

Inherited from SQLContainer

Inherited from DSLSupport

Inherited from SessionSupport

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped