Class

com.websudos.phantom.database

DatabaseImpl

Related Doc: package database

Permalink

abstract class DatabaseImpl extends EarlyInit[CassandraTable[_, _]]

Linear Supertypes
EarlyInit[CassandraTable[_, _]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DatabaseImpl
  2. EarlyInit
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DatabaseImpl(connector: KeySpaceDef)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. lazy val _collection: ArrayBuffer[CassandraTable[_, _]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    EarlyInit
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def autocreate(): ExecutableCreateStatementsList

    Permalink

    Returns a list of executable statements that will be parallelized with futures to create the entire database schema in a single call.

    Returns a list of executable statements that will be parallelized with futures to create the entire database schema in a single call.

    Every future in the statement list will contain the CQL schema generation query for a single table. Processing order is not guaranteed however the tables are generally processed in the order they are written in, even though ordering is not a guarantee required at this level of an application.

    returns

    An executable statement list that can be used with Scala or Twitter futures to simultaneously execute an entire sequence of queries.

  7. def autodrop(): ExecutableStatementList

    Permalink

    Returns a list of executable statements that will be parallelized with futures to drop the entire database schema in a single call.

    Returns a list of executable statements that will be parallelized with futures to drop the entire database schema in a single call.

    Every future in the statement list will contain the ALTER DROP drop query for a single table. Processing order is not guaranteed however the tables are generally processed in the order they are written in, even though ordering is not a guarantee required at this level of an application.

    returns

    An executable statement list that can be used with Scala or Twitter futures to simultaneously execute an entire sequence of queries.

  8. def autotruncate(): ExecutableStatementList

    Permalink

    Returns a list of executable statements that will be parallelized with futures to truncate the entire database schema in a single call.

    Returns a list of executable statements that will be parallelized with futures to truncate the entire database schema in a single call.

    Every future in the statement list will contain the CQL truncation query for a single table. Processing order is not guaranteed however the tables are generally processed in the order they are written in, even though ordering is not a guarantee required at this level of an application.

    returns

    An executable statement list that can be used with Scala or Twitter futures to simultaneously execute an entire sequence of queries.

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val connector: KeySpaceDef

    Permalink
  11. def create(timeout: FiniteDuration = defaultTimeout)(implicit ex: ExecutionContextExecutor): Seq[ResultSet]

    Permalink

    A blocking method that will create all the tables.

    A blocking method that will create all the tables. This is designed to prevent the requirement of the implicit session to escape the enclosure of the database object.

    timeout

    The timeout for the initialisation call. Defaults to com.websudos.phantom.database.DatabaseImpl#defaultTimeout

    returns

    A sequence of result sets, where every result is the result of a single create operation.

  12. def createAsync()(implicit ex: ExecutionContextExecutor): Future[Seq[ResultSet]]

    Permalink

    An asynchronous method that will create all the tables.

    An asynchronous method that will create all the tables. This is designed to prevent the requirement of the implicit session to escape the enclosure of the database object.

    returns

    A sequence of result sets, where every result is the result of a single create operation.

  13. def drop(timeout: FiniteDuration = defaultTimeout)(implicit ex: ExecutionContextExecutor): Seq[ResultSet]

    Permalink

    A blocking method that will drop all the tables.

    A blocking method that will drop all the tables. This is designed to prevent the requirement of the implicit session to escape the enclosure of the database object.

    timeout

    The timeout for the initialisation call. Defaults to com.websudos.phantom.database.DatabaseImpl#defaultTimeout

    returns

    A sequence of result sets, where every result is the result of a single drop operation.

  14. def dropAsync()(implicit ex: ExecutionContextExecutor): Future[Seq[ResultSet]]

    Permalink

    An async method that will drop all the tables.

    An async method that will drop all the tables. This is designed to prevent the requirement of the implicit session to escape the enclosure of the database object.

    returns

    A sequence of result sets, where every result is the result of a single drop operation.

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def initialize()(implicit typeTag: scala.reflect.api.JavaUniverse.TypeTag[CassandraTable[_, _]]): Seq[CassandraTable[_, _]]

    Permalink
    Definition Classes
    EarlyInit
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. implicit lazy val session: Session

    Permalink
  26. def shutdown(): Unit

    Permalink
  27. implicit val space: KeySpace

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

    Permalink
    Definition Classes
    AnyRef
  29. lazy val tables: Set[CassandraTable[_, _]]

    Permalink
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def truncate(timeout: FiniteDuration = defaultTimeout)(implicit ex: ExecutionContextExecutor): Seq[ResultSet]

    Permalink

    A blocking method that will truncate all the tables.

    A blocking method that will truncate all the tables. This is designed to prevent the requirement of the implicit session to escape the enclosure of the database object.

    timeout

    The timeout for the initialisation call. Defaults to com.websudos.phantom.database.DatabaseImpl#defaultTimeout

    returns

    A sequence of result sets, where every result is the result of a single truncate operation.

  32. def truncateAsync()(implicit ex: ExecutionContextExecutor): Future[Seq[ResultSet]]

    Permalink

    An async method that will truncate all the tables.

    An async method that will truncate all the tables. This is designed to prevent the requirement of the implicit session to escape the enclosure of the database object.

    returns

    A sequence of result sets, where every result is the result of a single truncate operation.

  33. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from EarlyInit[CassandraTable[_, _]]

Inherited from AnyRef

Inherited from Any

Ungrouped