Interface CDOSession

    • Method Detail

      • getPackageRegistry

        CDOPackageRegistry getPackageRegistry()
        Returns the EMF package registry that is used by all objects of all views of this session.

        This registry is managed by the package unit manager of this session. All packages that are already persisted in the repository of this session are automatically registered with this registry. New packages can be locally registered with this registry and are committed to the repository through a transaction, if needed.

      • refresh

        long refresh()
        Refreshes the object caches of all (non-historical) views.
        Since:
        3.0
      • waitForUpdate

        void waitForUpdate​(long updateTime)
        Equivalent to calling CDOUpdatable.waitForUpdate(long) on each of this session's views. That is, this blocks the calling thread until all of this session's views have incorporated a commit operation with the given time stamp (or higher).
        Specified by:
        waitForUpdate in interface CDOUpdatable
      • waitForUpdate

        boolean waitForUpdate​(long updateTime,
                              long timeoutMillis)
        Equivalent to calling CDOUpdatable.waitForUpdate(long) on each of this session's views. That is, this blocks the calling thread until all of this session's views have incorporated a commit operation with the given time stamp (or higher) or the given total timeout has expired.
        Specified by:
        waitForUpdate in interface CDOUpdatable
        Returns:
        true if the specified commit operation has occurred within the given timeout period, false otherwise.
      • changeCredentials

        @Deprecated
        void changeCredentials()
        Deprecated.
        As of 4.13 use changeServerPassword().
        Initiates (possibly interactive) changing of credentials for the user logged in in this session. This is an optional operation of the session.
        Throws:
        java.lang.UnsupportedOperationException - if the session implementation does not permit changing credentials
        Since:
        4.3
        See Also:
        IPasswordCredentialsProvider.Provider.getCredentialsProvider()
      • changeServerPassword

        char[] changeServerPassword()
        Initiates (possibly interactive) changing of credentials for the user logged in in this session. This is an optional operation of the session.
        Throws:
        java.lang.UnsupportedOperationException - if the session implementation does not permit changing credentials
        Since:
        4.13
        See Also:
        IPasswordCredentialsProvider.Provider.getCredentialsProvider()
      • newClob

        CDOClob newClob​(java.io.Reader contents)
                 throws java.io.IOException
        Throws:
        java.io.IOException
        Since:
        4.13
      • newClob

        CDOClob newClob​(java.lang.String contents)
                 throws java.io.IOException
        Throws:
        java.io.IOException
        Since:
        4.13
      • newBlob

        CDOBlob newBlob​(java.io.InputStream contents)
                 throws java.io.IOException
        Throws:
        java.io.IOException
        Since:
        4.13
      • newBlob

        CDOBlob newBlob​(byte[] contents)
                 throws java.io.IOException
        Throws:
        java.io.IOException
        Since:
        4.13