org.powerscala.datastore.impl.sql

SQLDatastore

class SQLDatastore extends Datastore

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

Instance Constructors

  1. new SQLDatastore(dataSource: DataSource = ...)

Type Members

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

    Definition Classes
    Datastore

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

    Definition Classes
    Datastore
  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.

    Definition Classes
    Datastore
  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

    Definition Classes
    Datastore
  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

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

    Definition Classes
    Datastore
  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

    Definition Classes
    Datastore
  14. val convertFunction: ConvertFunction

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

    Attributes
    protected[org.powerscala.datastore]
    Definition Classes
    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]

    Definition Classes
    Datastore
  17. def createSession(): Null

    returns

    a new session for use with this datastore

    Attributes
    protected
    Definition Classes
    SQLDatastoreDatastore
  18. def createSessionForThread(): Boolean

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

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

    Definition Classes
    Datastore
  21. val dataSource: DataSource

  22. val deletes: DatastoreDeleteProcessor

    Definition Classes
    Datastore
  23. def disconnect(): Unit

    Definition Classes
    Datastore
  24. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Indexes that need to be defined for this Datastore.

    Indexes that need to be defined for this Datastore.

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

    Definition Classes
    Datastore
  31. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    Listenable
  33. val listeners: Listeners

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

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

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

    Definition Classes
    AnyRef
  37. def parent: Null

    Definition Classes
    Datastore
  38. val persists: DatastorePersistProcessor

    Definition Classes
    Datastore
  39. 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

    Definition Classes
    Datastore
  40. def session: DatastoreSession

    returns

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

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

    Definition Classes
    AnyRef
  42. implicit val thisListenable: Listenable

    Definition Classes
    Listenable
  43. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Datastore

Inherited from Listenable

Inherited from AnyRef

Inherited from Any

Ungrouped