Transaction

platdb.Transaction

platdb transaction.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

def allCollection(): Try[Seq[(String, String)]]

return all collection objects in current db,format is (name,dataType).

return all collection objects in current db,format is (name,dataType).

Attributes

def closed: Boolean

if the transaction is closed.

if the transaction is closed.

Attributes

def commit(): Try[Unit]

commit transaction,if its already closed then return an exception message.

commit transaction,if its already closed then return an exception message.

Attributes

def copyToFile(path: String): Try[Long]

backup the database file in current transaction view to a file.

backup the database file in current transaction view to a file.

Attributes

def createBSet(name: String): Try[BSet]

create a new set,if already exists will return an exception message.

create a new set,if already exists will return an exception message.

Attributes

def createBSetIfNotExists(name: String): Try[BSet]

create a set,if exists then return the set.

create a set,if exists then return the set.

Attributes

def createBucket(name: String): Try[Bucket]

create a new bucket,if already exists will return an exception message.

create a new bucket,if already exists will return an exception message.

Attributes

def createBucketIfNotExists(name: String): Try[Bucket]

create a bucket,if exists then return the bucket.

create a bucket,if exists then return the bucket.

Attributes

def createList(name: String): Try[BList]

create a new list,if already exists will return an exception message.

create a new list,if already exists will return an exception message.

Attributes

def createListIfNotExists(name: String): Try[BList]

create a list,if exists then return the list.

create a list,if exists then return the list.

Attributes

def createRegion(name: String, dimension: Int): Try[Region]

create a region with a specified dimension, and return an exception message if the object already exists.

create a region with a specified dimension, and return an exception message if the object already exists.

Attributes

def createRegionIfNotExists(name: String, dimension: Int): Try[Region]

create a region,if exists then return the region.

create a region,if exists then return the region.

Attributes

def deleteBSet(name: String): Try[Unit]

delete a bucket,if bucket not exists will return an exception message.

delete a bucket,if bucket not exists will return an exception message.

Attributes

def deleteBucket(name: String): Try[Unit]

delete a bucket,if bucket not exists will return an exception message.

delete a bucket,if bucket not exists will return an exception message.

Attributes

def deleteList(name: String): Try[Unit]

delete a list,if bucket not exists will return an exception message.

delete a list,if bucket not exists will return an exception message.

Attributes

def deleteRegion(name: String): Try[Unit]

delete a regison,if not exists will return an exception message.

delete a regison,if not exists will return an exception message.

Attributes

def id: Long

return current transactions identity.

return current transactions identity.

Attributes

def openBSet(name: String): Try[BSet]

open a set,if not exists will return an exception message.

open a set,if not exists will return an exception message.

Attributes

def openBucket(name: String): Try[Bucket]

open a bucket,if not exists will return an exception message.

open a bucket,if not exists will return an exception message.

Attributes

def openList(name: String): Try[BList]

open a list,if not exists will return an exception message.

open a list,if not exists will return an exception message.

Attributes

def openRegion(name: String): Try[Region]

open a region,if not exists will return an exception message.

open a region,if not exists will return an exception message.

Attributes

def rollback(): Try[Unit]

rollback transaction,if its already closed then return an exception message.

rollback transaction,if its already closed then return an exception message.

Attributes

def size: Long

return db bytes size in current transaction view.

return db bytes size in current transaction view.

Attributes

def writable: Boolean

readonly or read-write transaction.

readonly or read-write transaction.

Attributes