Class Namespace

java.lang.Object
oracle.pgx.api.Namespace

public class Namespace extends Object
Represents a namespace for objects (e.g. graphs, properties) in PGX
  • Field Details

    • PUBLIC

      public static final Namespace PUBLIC
      Namespace for published objects
    • PRIVATE

      public static final Namespace PRIVATE
      Namespace for session-private objects
  • Method Details

    • fromId

      public static Namespace fromId(oracle.pgx.common.PgxId namespaceId)
      Creates a namespace from the given PgxId.

      Throws an exception if no namespace with the given id exists.

      Parameters:
      namespaceId - an id that represents a namespace
      Returns:
      a namespace associated with the id
    • getNamespaceId

      public oracle.pgx.common.PgxId getNamespaceId()
      Returns:
      the id associated with this namespace
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object