case class LongevityConfig(backEnd: BackEnd, modelVersion: Option[String], autoOpenConnection: Boolean, autoCreateSchema: Boolean, optimisticLocking: Boolean, writeTimestamps: Boolean, cassandra: CassandraConfig, mongodb: MongoDBConfig, jdbc: JdbcConfig, test: TestConfig) extends PersistenceConfig with Product with Serializable
the longevity configuration. see the reference.conf
resource file for all
the longevity config settings, and their defaults.
- backEnd
the back end used by the longevity context
- modelVersion
the domain model version.
None
whenever the model is unversioned- autoOpenConnection
should longevity automatically open the connection when the repositories are created?
- autoCreateSchema
should longevity autocreate schema when the connection is opened?
- optimisticLocking
is optimistic locking turned on?
- cassandra
the cassandra configuration
- mongodb
the mongo configuration
- jdbc
the JDBC configuration. used by the SQLite back end
- test
the test configuration
- Source
- LongevityConfig.scala
- Alphabetic
- By Inheritance
- LongevityConfig
- Serializable
- Serializable
- Product
- Equals
- PersistenceConfig
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
LongevityConfig(backEnd: BackEnd, modelVersion: Option[String], autoOpenConnection: Boolean, autoCreateSchema: Boolean, optimisticLocking: Boolean, writeTimestamps: Boolean, cassandra: CassandraConfig, mongodb: MongoDBConfig, jdbc: JdbcConfig, test: TestConfig)
- backEnd
the back end used by the longevity context
- modelVersion
the domain model version.
None
whenever the model is unversioned- autoOpenConnection
should longevity automatically open the connection when the repositories are created?
- autoCreateSchema
should longevity autocreate schema when the connection is opened?
- optimisticLocking
is optimistic locking turned on?
- cassandra
the cassandra configuration
- mongodb
the mongo configuration
- jdbc
the JDBC configuration. used by the SQLite back end
- test
the test configuration
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from LongevityConfig to any2stringadd[LongevityConfig] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (LongevityConfig, B)
- Implicit
- This member is added by an implicit conversion from LongevityConfig to ArrowAssoc[LongevityConfig] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
autoCreateSchema: Boolean
should longevity automatically create schema when the connection is opened?
should longevity automatically create schema when the connection is opened?
- Definition Classes
- LongevityConfig → PersistenceConfig
-
val
autoOpenConnection: Boolean
should longevity automatically open the connection when the repositories are created?
should longevity automatically open the connection when the repositories are created?
- Definition Classes
- LongevityConfig → PersistenceConfig
- val backEnd: BackEnd
- val cassandra: CassandraConfig
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
ensuring(cond: (LongevityConfig) ⇒ Boolean, msg: ⇒ Any): LongevityConfig
- Implicit
- This member is added by an implicit conversion from LongevityConfig to Ensuring[LongevityConfig] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (LongevityConfig) ⇒ Boolean): LongevityConfig
- Implicit
- This member is added by an implicit conversion from LongevityConfig to Ensuring[LongevityConfig] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): LongevityConfig
- Implicit
- This member is added by an implicit conversion from LongevityConfig to Ensuring[LongevityConfig] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): LongevityConfig
- Implicit
- This member is added by an implicit conversion from LongevityConfig to Ensuring[LongevityConfig] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from LongevityConfig to StringFormat[LongevityConfig] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val jdbc: JdbcConfig
-
val
modelVersion: Option[String]
the domain model version.
the domain model version.
None
whenever the model is unversioned- Definition Classes
- LongevityConfig → PersistenceConfig
- val mongodb: MongoDBConfig
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
optimisticLocking: Boolean
is optimistic locking turned on?
is optimistic locking turned on?
- Definition Classes
- LongevityConfig → PersistenceConfig
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val test: TestConfig
-
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
- @native() @throws( ... )
-
val
writeTimestamps: Boolean
stamp rows with
createdTimestamp
andupdatedTimestamp
?stamp rows with
createdTimestamp
andupdatedTimestamp
?- Definition Classes
- LongevityConfig → PersistenceConfig
-
def
→[B](y: B): (LongevityConfig, B)
- Implicit
- This member is added by an implicit conversion from LongevityConfig to ArrowAssoc[LongevityConfig] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc