Persist

ostrat.Persist
trait Persist[T] extends ShowT[T] with Unshow[T]

A convenience trait type class trait for persistence, that combines the ShowT and Unshow type classes. Most if not all final classes that inherit from this trait will require type class instances of ShowT and UnShowT to implement Persist's members. It is most important that these implicit parameter instances be specified as separate ShowT and UnShowT parameters. Do not combine them into a Persist parameter. There are no implicit instances for Int, Double, List etc in the Persist companion object, the Persist components for these standard types will be found in the ShowT and UnShow companion objects.

Attributes

Graph
Supertypes
trait Unshow[T]
trait ShowT[T]
trait TypeStr
class Object
trait Matchable
class Any
Known subtypes
class PersistSeqLike[A, R]
class PersistIterable[A, R]
class ArrRefPersist[A]
trait DataDblNsPersist[A, M]
class DataDbl5sPersist[A, ArrA]
class Dbl2SeqDefPersist[A, M]
class Dbl3SeqDefPersist[A, M]
class Dbl4SeqLikePersist[A, ArrA]
trait IntNSeqLikePersist[A, M]
class Int4SeqLikePersist[B, ArrB]
class PersistArrInt2s[A, M]
object PersistImplicit.type
object PersistImplicit.type
object PersistImplicit.type
object PersistImplicit.type
trait LongNSeqDefPersist[B, ArrB]
trait PersistN[R]
trait Persist2[A1, A2, R]
class Persist2Imp[A1, A2, R]
trait PersistShow2[A1, A2, R]
class PersistShow2Imp[A1, A2, R]
trait Persist3[A1, A2, A3, R]
class Persist3Imp[A1, A2, A3, R]
trait PersistShow3[A1, A2, A3, R]
class PersistShow3Imp[A1, A2, A3, R]
trait PersistShowN[R]
class PersistSimple[A]
object PolityPersist.type
object PolityPersist.type
class PersistSum2[ST, A1, A2]

Members list

Concise view

Value members

Inherited methods

def findUniqueTFromStatements[ArrT <: Arr[T]](sts: RArr[Statement])(implicit arrBuild: ArrMapBuilder[T, ArrT]): EMon[T]
Implicitly added by arrayRefToPersist

Finds value of this UnShow type, returns error if more than one match.

Finds value of this UnShow type, returns error if more than one match.

Attributes

Inherited from:
Unshow
def findUniqueTFromStatements[ArrT <: Arr[T]](sts: RArr[Statement])(implicit arrBuild: ArrMapBuilder[T, ArrT]): EMon[T]
Implicitly added by optionPersistImplicit

Finds value of this UnShow type, returns error if more than one match.

Finds value of this UnShow type, returns error if more than one match.

Attributes

Inherited from:
Unshow
def findUniqueTFromStatements[ArrT <: Arr[T]](sts: RArr[Statement])(implicit arrBuild: ArrMapBuilder[T, ArrT]): EMon[T]
Implicitly added by somePersistImplicit

Finds value of this UnShow type, returns error if more than one match.

Finds value of this UnShow type, returns error if more than one match.

Attributes

Inherited from:
Unshow
def findUniqueTFromStatements[ArrT <: Arr[T]](sts: RArr[Statement])(implicit arrBuild: ArrMapBuilder[T, ArrT]): EMon[T]

Finds value of this UnShow type, returns error if more than one match.

Finds value of this UnShow type, returns error if more than one match.

Attributes

Inherited from:
Unshow
Implicitly added by arrayRefToPersist

Attributes

Inherited from:
Unshow
Implicitly added by optionPersistImplicit

Attributes

Inherited from:
Unshow
Implicitly added by somePersistImplicit

Attributes

Inherited from:
Unshow

Attributes

Inherited from:
Unshow
def fromExpr(expr: Expr): EMon[T]
Implicitly added by arrayRefToPersist

Tries to return a value of the type from an RSON expression Expr that has been parsed from a String or text file. This method must be implemented by all instances.

Tries to return a value of the type from an RSON expression Expr that has been parsed from a String or text file. This method must be implemented by all instances.

Attributes

Inherited from:
Unshow
def fromExpr(expr: Expr): EMon[T]
Implicitly added by optionPersistImplicit

Tries to return a value of the type from an RSON expression Expr that has been parsed from a String or text file. This method must be implemented by all instances.

Tries to return a value of the type from an RSON expression Expr that has been parsed from a String or text file. This method must be implemented by all instances.

Attributes

Inherited from:
Unshow
def fromExpr(expr: Expr): EMon[T]
Implicitly added by somePersistImplicit

Tries to return a value of the type from an RSON expression Expr that has been parsed from a String or text file. This method must be implemented by all instances.

Tries to return a value of the type from an RSON expression Expr that has been parsed from a String or text file. This method must be implemented by all instances.

Attributes

Inherited from:
Unshow
def fromExpr(expr: Expr): EMon[T]

Tries to return a value of the type from an RSON expression Expr that has been parsed from a String or text file. This method must be implemented by all instances.

Tries to return a value of the type from an RSON expression Expr that has been parsed from a String or text file. This method must be implemented by all instances.

Attributes

Inherited from:
Unshow
def fromSettingOrExpr(SettingStr: String, expr: Expr): EMon[T]
Implicitly added by arrayRefToPersist

Attributes

Inherited from:
Unshow
def fromSettingOrExpr(SettingStr: String, expr: Expr): EMon[T]
Implicitly added by optionPersistImplicit

Attributes

Inherited from:
Unshow
def fromSettingOrExpr(SettingStr: String, expr: Expr): EMon[T]
Implicitly added by somePersistImplicit

Attributes

Inherited from:
Unshow
def fromSettingOrExpr(SettingStr: String, expr: Expr): EMon[T]

Attributes

Inherited from:
Unshow
final def fromStatement(st: Statement): EMon[T]
Implicitly added by arrayRefToPersist

Trys to build an object of type T from the statement.

Trys to build an object of type T from the statement.

Attributes

Inherited from:
Unshow
final def fromStatement(st: Statement): EMon[T]
Implicitly added by optionPersistImplicit

Trys to build an object of type T from the statement.

Trys to build an object of type T from the statement.

Attributes

Inherited from:
Unshow
final def fromStatement(st: Statement): EMon[T]
Implicitly added by somePersistImplicit

Trys to build an object of type T from the statement.

Trys to build an object of type T from the statement.

Attributes

Inherited from:
Unshow
final def fromStatement(st: Statement): EMon[T]

Trys to build an object of type T from the statement.

Trys to build an object of type T from the statement.

Attributes

Inherited from:
Unshow
def keySettingFromStatement[KT](settingCode: KT, st: Statement)(implicit evST: Unshow[KT]): EMon[T]
Implicitly added by arrayRefToPersist

Finds a setting with a key / code of type KT and a value of the type of this UnShow instance from a [Statement].

Finds a setting with a key / code of type KT and a value of the type of this UnShow instance from a [Statement].

Attributes

Inherited from:
Unshow
def keySettingFromStatement[KT](settingCode: KT, st: Statement)(implicit evST: Unshow[KT]): EMon[T]
Implicitly added by optionPersistImplicit

Finds a setting with a key / code of type KT and a value of the type of this UnShow instance from a [Statement].

Finds a setting with a key / code of type KT and a value of the type of this UnShow instance from a [Statement].

Attributes

Inherited from:
Unshow
def keySettingFromStatement[KT](settingCode: KT, st: Statement)(implicit evST: Unshow[KT]): EMon[T]
Implicitly added by somePersistImplicit

Finds a setting with a key / code of type KT and a value of the type of this UnShow instance from a [Statement].

Finds a setting with a key / code of type KT and a value of the type of this UnShow instance from a [Statement].

Attributes

Inherited from:
Unshow
def keySettingFromStatement[KT](settingCode: KT, st: Statement)(implicit evST: Unshow[KT]): EMon[T]

Finds a setting with a key / code of type KT and a value of the type of this UnShow instance from a [Statement].

Finds a setting with a key / code of type KT and a value of the type of this UnShow instance from a [Statement].

Attributes

Inherited from:
Unshow
def keySettingFromStatements[KT](sts: RArr[Statement], settingCode: KT)(implicit evST: Unshow[KT]): EMon[T]
Implicitly added by arrayRefToPersist

Finds a key setting with Key type KT of the type of this UnShow instance from an Arr[Statement].

Finds a key setting with Key type KT of the type of this UnShow instance from an Arr[Statement].

Attributes

Inherited from:
Unshow
def keySettingFromStatements[KT](sts: RArr[Statement], settingCode: KT)(implicit evST: Unshow[KT]): EMon[T]
Implicitly added by optionPersistImplicit

Finds a key setting with Key type KT of the type of this UnShow instance from an Arr[Statement].

Finds a key setting with Key type KT of the type of this UnShow instance from an Arr[Statement].

Attributes

Inherited from:
Unshow
def keySettingFromStatements[KT](sts: RArr[Statement], settingCode: KT)(implicit evST: Unshow[KT]): EMon[T]
Implicitly added by somePersistImplicit

Finds a key setting with Key type KT of the type of this UnShow instance from an Arr[Statement].

Finds a key setting with Key type KT of the type of this UnShow instance from an Arr[Statement].

Attributes

Inherited from:
Unshow
def keySettingFromStatements[KT](sts: RArr[Statement], settingCode: KT)(implicit evST: Unshow[KT]): EMon[T]

Finds a key setting with Key type KT of the type of this UnShow instance from an Arr[Statement].

Finds a key setting with Key type KT of the type of this UnShow instance from an Arr[Statement].

Attributes

Inherited from:
Unshow
def settingFromStatements(sts: RArr[Statement], settingStr: String): EMon[T]
Implicitly added by arrayRefToPersist

Finds an identifier setting with a value type of this UnShow instance from an Arr[Statement].

Finds an identifier setting with a value type of this UnShow instance from an Arr[Statement].

Attributes

Inherited from:
Unshow
def settingFromStatements(sts: RArr[Statement], settingStr: String): EMon[T]
Implicitly added by optionPersistImplicit

Finds an identifier setting with a value type of this UnShow instance from an Arr[Statement].

Finds an identifier setting with a value type of this UnShow instance from an Arr[Statement].

Attributes

Inherited from:
Unshow
def settingFromStatements(sts: RArr[Statement], settingStr: String): EMon[T]
Implicitly added by somePersistImplicit

Finds an identifier setting with a value type of this UnShow instance from an Arr[Statement].

Finds an identifier setting with a value type of this UnShow instance from an Arr[Statement].

Attributes

Inherited from:
Unshow
def settingFromStatements(sts: RArr[Statement], settingStr: String): EMon[T]

Finds an identifier setting with a value type of this UnShow instance from an Arr[Statement].

Finds an identifier setting with a value type of this UnShow instance from an Arr[Statement].

Attributes

Inherited from:
Unshow
def settingTFromStatement(settingStr: String, st: Statement): EMon[T]
Implicitly added by arrayRefToPersist

Finds an identifier setting with a value of the type of this UnShow instance from a [Statement].

Finds an identifier setting with a value of the type of this UnShow instance from a [Statement].

Attributes

Inherited from:
Unshow
def settingTFromStatement(settingStr: String, st: Statement): EMon[T]
Implicitly added by optionPersistImplicit

Finds an identifier setting with a value of the type of this UnShow instance from a [Statement].

Finds an identifier setting with a value of the type of this UnShow instance from a [Statement].

Attributes

Inherited from:
Unshow
def settingTFromStatement(settingStr: String, st: Statement): EMon[T]
Implicitly added by somePersistImplicit

Finds an identifier setting with a value of the type of this UnShow instance from a [Statement].

Finds an identifier setting with a value of the type of this UnShow instance from a [Statement].

Attributes

Inherited from:
Unshow
def settingTFromStatement(settingStr: String, st: Statement): EMon[T]

Finds an identifier setting with a value of the type of this UnShow instance from a [Statement].

Finds an identifier setting with a value of the type of this UnShow instance from a [Statement].

Attributes

Inherited from:
Unshow
def showDecT(obj: T, style: ShowStyle, maxPlaces: Int, minPlaces: Int): String
Implicitly added by arrayRefToPersist

Attributes

Inherited from:
ShowT
def showDecT(obj: T, style: ShowStyle, maxPlaces: Int, minPlaces: Int): String
Implicitly added by optionPersistImplicit

Attributes

Inherited from:
ShowT
def showDecT(obj: T, style: ShowStyle, maxPlaces: Int, minPlaces: Int): String
Implicitly added by somePersistImplicit

Attributes

Inherited from:
ShowT
def showDecT(obj: T, style: ShowStyle, maxPlaces: Int, minPlaces: Int): String

Attributes

Inherited from:
ShowT
def showT(obj: T, style: ShowStyle): String
Implicitly added by arrayRefToPersist

Attributes

Inherited from:
ShowT
def showT(obj: T, style: ShowStyle): String
Implicitly added by optionPersistImplicit

Attributes

Inherited from:
ShowT
def showT(obj: T, style: ShowStyle): String
Implicitly added by somePersistImplicit

Attributes

Inherited from:
ShowT
def showT(obj: T, style: ShowStyle): String

Attributes

Inherited from:
ShowT
def strT(obj: T): String
Implicitly added by arrayRefToPersist

Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.

Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.

Attributes

Inherited from:
ShowT
def strT(obj: T): String
Implicitly added by optionPersistImplicit

Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.

Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.

Attributes

Inherited from:
ShowT
def strT(obj: T): String
Implicitly added by somePersistImplicit

Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.

Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.

Attributes

Inherited from:
ShowT
def strT(obj: T): String

Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.

Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.

Attributes

Inherited from:
ShowT
def syntaxDepthT(obj: T): Int
Implicitly added by arrayRefToPersist

Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.

Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.

Attributes

Inherited from:
ShowT
def syntaxDepthT(obj: T): Int
Implicitly added by optionPersistImplicit

Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.

Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.

Attributes

Inherited from:
ShowT
def syntaxDepthT(obj: T): Int
Implicitly added by somePersistImplicit

Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.

Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.

Attributes

Inherited from:
ShowT
def syntaxDepthT(obj: T): Int

Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.

Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.

Attributes

Inherited from:
ShowT
Implicitly added by arrayRefToPersist

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

Attributes

Inherited from:
TypeStr
Implicitly added by optionPersistImplicit

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

Attributes

Inherited from:
TypeStr
Implicitly added by somePersistImplicit

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

Attributes

Inherited from:
TypeStr

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

Attributes

Inherited from:
TypeStr
def valuesFromStatements[ArrT <: Arr[T]](sts: RArr[Statement])(implicit arrBuild: ArrMapBuilder[T, ArrT]): ArrT
Implicitly added by arrayRefToPersist

Produces an ArrImut of the UnShow type from Statements (Refs[Statement].

Produces an ArrImut of the UnShow type from Statements (Refs[Statement].

Attributes

Inherited from:
Unshow
def valuesFromStatements[ArrT <: Arr[T]](sts: RArr[Statement])(implicit arrBuild: ArrMapBuilder[T, ArrT]): ArrT
Implicitly added by optionPersistImplicit

Produces an ArrImut of the UnShow type from Statements (Refs[Statement].

Produces an ArrImut of the UnShow type from Statements (Refs[Statement].

Attributes

Inherited from:
Unshow
def valuesFromStatements[ArrT <: Arr[T]](sts: RArr[Statement])(implicit arrBuild: ArrMapBuilder[T, ArrT]): ArrT
Implicitly added by somePersistImplicit

Produces an ArrImut of the UnShow type from Statements (Refs[Statement].

Produces an ArrImut of the UnShow type from Statements (Refs[Statement].

Attributes

Inherited from:
Unshow
def valuesFromStatements[ArrT <: Arr[T]](sts: RArr[Statement])(implicit arrBuild: ArrMapBuilder[T, ArrT]): ArrT

Produces an ArrImut of the UnShow type from Statements (Refs[Statement].

Produces an ArrImut of the UnShow type from Statements (Refs[Statement].

Attributes

Inherited from:
Unshow