Options

molecule.base.api.DataModelApi.Options
sealed trait Options[Self, Tpe, BaseTpe] extends Requierable

Attribute options.

Attributes

Source
DataModelApi.scala
Graph
Supertypes
trait Requierable
class Object
trait Matchable
class Any
Known subtypes
object oneBigDecimal.type
trait oneBigInt
object oneBigInt.type
trait oneBoolean
object oneBoolean.type
trait oneByte
object oneByte.type
trait oneChar
object oneChar.type
trait oneDate
object oneDate.type
trait oneDouble
object oneDouble.type
trait oneDuration
object oneDuration.type
trait oneFloat
object oneFloat.type
trait oneInstant
object oneInstant.type
trait oneInt
object oneInt.type
trait oneLocalDate
object oneLocalDate.type
object oneLocalDateTime.type
trait oneLocalTime
object oneLocalTime.type
trait oneLong
object oneLong.type
object oneOffsetDateTime.type
object oneOffsetTime.type
trait oneShort
object oneShort.type
trait oneURI
object oneURI.type
trait oneUUID
object oneUUID.type
object oneZonedDateTime.type
object setBigDecimal.type
trait setBigInt
object setBigInt.type
trait setBoolean
object setBoolean.type
trait setByte
object setByte.type
trait setChar
object setChar.type
trait setDate
object setDate.type
trait setDouble
object setDouble.type
trait setDuration
object setDuration.type
trait setFloat
object setFloat.type
trait setInstant
object setInstant.type
trait setInt
object setInt.type
trait setLocalDate
object setLocalDate.type
object setLocalDateTime.type
trait setLocalTime
object setLocalTime.type
trait setLong
object setLong.type
object setOffsetDateTime.type
object setOffsetTime.type
trait setShort
object setShort.type
trait setURI
object setURI.type
trait setUUID
object setUUID.type
object setZonedDateTime.type
trait stringOptions[Self, Tpe]
trait oneString
object oneString.type
trait setString
object setString.type
Show all

Members list

Value members

Concrete methods

def alias(altAttrName: String): Self

Alias to non-compatible attribute name like type or first-name etc.

Alias to non-compatible attribute name like type or first-name etc.

Molecule then creates an alias to the special name in the schema so that queries will match both the attribute name and the alias.

Attributes

Source
DataModelApi.scala
def apply(description: String): Self

Attributes

Source
DataModelApi.scala
def descr(description: String): Self

Description of attribute

Description of attribute

Attributes

Source
DataModelApi.scala
def enums(vs: BaseTpe*): Self

Attributes

Source
DataModelApi.scala
def enums(vs: Seq[BaseTpe], failureMsg: String): Self

Attributes

Source
DataModelApi.scala
def require(attrs: Requierable*): Self

Attributes

Source
DataModelApi.scala
def validate(ok: BaseTpe => Boolean, errorMsg: String): Self

Attributes

Source
DataModelApi.scala
def validate(err2msg: PartialFunction[BaseTpe, String]): Self

Attributes

Source
DataModelApi.scala

Concrete fields

lazy val index: Self

Index option (defaults to true).

Generated index for this attribute. By default all attributes are set with the indexed option automatically by Molecule, so you don't need to set this.

Index option (defaults to true).

Generated index for this attribute. By default all attributes are set with the indexed option automatically by Molecule, so you don't need to set this.

Attributes

Source
DataModelApi.scala
lazy val mandatory: Self

Attributes

Source
DataModelApi.scala
lazy val noHistory: Self

No history option.

No history option.

Attributes

Source
DataModelApi.scala
lazy val unique: Self

Unique value option.

Attribute value is unique to each entity.

Attempts to insert a duplicate value for a different entity id will fail.

Unique value option.

Attribute value is unique to each entity.

Attempts to insert a duplicate value for a different entity id will fail.

Attributes

Source
DataModelApi.scala
lazy val uniqueIdentity: Self

Unique identity option.

Attribute value is unique to each entity and "upsert" is enabled.

Attempts to insert a duplicate value for a temporary entity id will cause all attributes associated with that temporary id to be merged with the entity already in the database.

Unique identity option.

Attribute value is unique to each entity and "upsert" is enabled.

Attempts to insert a duplicate value for a temporary entity id will cause all attributes associated with that temporary id to be merged with the entity already in the database.

Attributes

Source
DataModelApi.scala
val value: Tpe

Attributes

Source
DataModelApi.scala