org.powerscala.datastore

Datastore

trait Datastore extends Listenable

Linear Supertypes
Listenable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Datastore
  2. Listenable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class ConvertFunction extends (String, Any, EnhancedClass) ⇒ Any

Abstract Value Members

  1. abstract def createSession(): DatastoreSession

    returns

    a new session for use with this datastore

    Attributes
    protected

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def alias(f: (Class[_]) ⇒ Option[String]): Unit

  7. final def aliasName(name: String, clazz: Class[_]): String

    Allows overriding the collection name being utilized for the datastore.

    Allows overriding the collection name being utilized for the datastore.

    Defaults to return the same value passed in or the simple class name if name is null.

  8. def apply[T](f: (DatastoreSession) ⇒ T): T

    Executes the supplied function within a local session.

    Executes the supplied function within a local session. If a session already exists it will be utilized or a new one will be created and terminated upon completion of the session block.

    f

    the function to execute within the session

    returns

    the result from the function

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def collection[T <: Identifiable, R](f: (DatastoreCollection[T]) ⇒ R)(implicit manifest: Manifest[T]): R

  12. def collectionNameForClass(clazz: Class[_]): String

  13. def convert(name: String, value: Any, resultType: EnhancedClass, values: Map[String, Any]): Any

    Called during deserialization from the datastore to support conversion from one type (what is persisted in the datastore) to another type (what is represented in the class structure).

    Called during deserialization from the datastore to support conversion from one type (what is persisted in the datastore) to another type (what is represented in the class structure). This can be useful for refactors of the class structure without having to immediately update the datastore.

    name

    the name of the field for this value being converted

    value

    the value found in the datastore

    resultType

    the expected result type

    values

    the other values for the other fields for this conversion

    returns

    value converted to resultType

  14. val convertFunction: ConvertFunction

    Attributes
    protected[org.powerscala.datastore]
  15. val convertValues: LocalStack[Map[String, Any]]

    Attributes
    protected[org.powerscala.datastore]
  16. def createCollection[T <: Identifiable](name: String, session: DatastoreSession, creator: (String) ⇒ DatastoreCollection[T])(implicit manifest: Manifest[T]): DatastoreCollection[T]

    Called by DatastoreSession to create an instance of a DatastoreCollection.

    Called by DatastoreSession to create an instance of a DatastoreCollection.

    By default this method simply invokes: creator(name)

    T

    the type of collection to be created

    name

    the name of this collection

    session

    the current session the collection is to be created with

    creator

    the default creator function

    returns

    DatastoreCollection[T]

  17. def createSessionForThread(): Boolean

  18. def createdCollection[T <: Identifiable](name: String, session: DatastoreSession, collection: DatastoreCollection[T])(implicit manifest: Manifest[T]): Unit

  19. def creatingCollection[T <: Identifiable](name: String, session: DatastoreSession)(implicit manifest: Manifest[T]): Unit

  20. val deletes: DatastoreDeleteProcessor

  21. def disconnect(): Unit

  22. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  27. def indexes: List[Field[_, _]]

    Indexes that need to be defined for this Datastore.

  28. def initializeCollection[T <: Identifiable](name: String, session: DatastoreSession, collection: DatastoreCollection[T], clazz: Class[_]): Unit

  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def listen[Event, Response, Result](name: String, priority: Priority, modes: ListenMode*)(f: (Event) ⇒ Response)(implicit eventManifest: Manifest[Event]): FunctionalListener[Event, Response]

    Definition Classes
    Listenable
  31. val listeners: Listeners

    Definition Classes
    Listenable
  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  35. def parent: Null

  36. val persists: DatastorePersistProcessor

  37. def register(clazz: Class[_]): Unit

    Creates an alias for all classes that are subclasses of clazz to map to the clazz.

    Creates an alias for all classes that are subclasses of clazz to map to the clazz.getSimpleName.

    clazz

  38. def session: DatastoreSession

    returns

    the existing session for this thread or null if one does not exist.

  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. implicit val thisListenable: Listenable

    Definition Classes
    Listenable
  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Listenable

Inherited from AnyRef

Inherited from Any

Ungrouped