Package com.cbe

Class Database

java.lang.Object
com.cbe.Database

public class Database extends Object
A database of hierarcical containers and items.
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • Database

      public Database(long cPtr, boolean cMemoryOwn)
    • Database

      public Database()
    • Database

      public Database(DefaultCtor arg0)
  • Method Details

    • getCPtr

      public static long getCPtr(Database obj)
    • finalize

      public void finalize()
      Overrides:
      finalize in class Object
    • delete

      public void delete()
    • name

      public String name()
      The database name.

      Returns:
      std::string
    • databaseId

      public long databaseId()
      The databaseId number.

      Returns:
      cbe::DatabaseId
    • containerId

      public long containerId()
      The containerId number.

      Refers to the top rootContainer of the database.

      Returns:
      cbe::ContainerId
    • ownerId

      public long ownerId()
      The userId number of the owner.

      Returns:
      cbe::UserId
    • created

      public long created()
      Timestamp of when it was created.

      Given in unix epoch number format.

      Returns:
      cbe::Date
    • readLocked

      public boolean readLocked()
      Checks if it has a read lock.

      Returns:
      true
    • writeLocked

      public boolean writeLocked()
      Checks if it has a write lock.

      Returns:
      true
    • rootContainer

      public Container rootContainer()
      The top container of the database.

      The whole container object.

      Returns:
      cbe::Container