Interface NFEDataSource

  • All Known Subinterfaces:
    NFEConnectionDataSource
    All Known Implementing Classes:
    JdbcDataSource, NFEAbstractDataSource

    public interface NFEDataSource
    This interface provides the database connection that will be used by the NFE services. It provides access methods for the workspace used by the Oracle Workspace Manager.
    • Method Detail

      • getConnection

        java.sql.Connection getConnection()
                                   throws InvalidDBConnectionException
        Returns a Connection and throws the appropriate exception if it can not do so. The connection will use the active workspace.
        Returns:
        connection
        Throws:
        InvalidDBConnectionException - if the connection is not valid.
      • setActiveWorkspace

        void setActiveWorkspace​(java.lang.String workspaceName)
        Sets the active workspace that will be used by the connection. Reload the model after to change the active workspace.
        Parameters:
        workspaceName - name of the workspace that will be used by the connection
      • getActiveWorkspace

        java.lang.String getActiveWorkspace()
        Returns the active workspace. The method should not return null. If the model is not version enabled then LIVE should be returned.
        Returns:
        active workspace