Class GraphHolder

    • Constructor Detail

      • GraphHolder

        public GraphHolder()
    • Method Detail

      • getReplacement

        public IObject getReplacement()
        a replacement is a managed entity instance which has the same primary key as this instance. Storing this value here allows for several optimizations.
        Returns:
        entity
      • setReplacement

        public void setReplacement​(IObject replacement)
        used mostly by ome.api.IUpdate. Improper use of this method may cause erratic behavior.
        Parameters:
        replacement -
      • hasToken

        public final boolean hasToken()
        tests if this GraphHolder contains a Token reference.
      • tokenMatches

        public final boolean tokenMatches​(Token token)
        check the Token for the IObject represented by this GraphHolder. This can be seen to approximate "ownership" of this Object within the JVM.
        Returns:
        true only if the two instances are identical.
      • setToken

        public final void setToken​(Token previousToken,
                                   Token newToken)
        set the Token for this GraphHolder but only if you posses the current Token. The first call to setToken(Token, Token) will succeed when token is null.
        Parameters:
        previousToken -
        newToken -