Class Namespace


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

      • PUBLIC

        public static final Namespace PUBLIC
        Namespace for published objects
      • PRIVATE

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

      • 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​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object