com.websudos.phantom.database

DatabaseImpl

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DatabaseImpl(connector: KeySpaceDef)

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. lazy val _collection: ArrayBuffer[CassandraTable[_, _]]

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

    Definition Classes
    Any
  8. def autocreate(): ExecutableCreateStatementsList

    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.

  9. def autodrop(): ExecutableStatementList

    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.

  10. def autotruncate(): ExecutableStatementList

    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.

  11. def clone(): AnyRef

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

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

    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.

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

    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.

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

    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.

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

    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.

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  27. implicit lazy val session: Session

  28. def shutdown(): Unit

  29. implicit val space: KeySpace

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

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

  32. def toString(): String

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

    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.

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

    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.

  35. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from EarlyInit[CassandraTable[_, _]]

Inherited from AnyRef

Inherited from Any

Ungrouped