com.sas.iom
Interface Connection

All Known Implementing Classes:
WorkspaceConnector

public interface Connection

This is the interface between pooled connections to IWorkspace objects and the pool manager. Users may obtain a workspace by calling getWorkspace(), and they may notify the pool manager that they are done with the workspace by calling close().


Method Summary
 void close()
          Notify the workspace factory that you are done with the IWorkspace object obtained from this connector.
 com.sas.iom.SAS.IWorkspace getWorkspace()
          Gets an IWorkspace object.
 

Method Detail

close

public void close()
Notify the workspace factory that you are done with the IWorkspace object obtained from this connector. After you call this method, the connection to the IWorkspace object will be returned to the pool and possibly used by another user. You do not have to call Close() on the IWorkspace object before calling this method, but it does not cause problems if you do. You may call this method multiple time without causing problems, but the behavior is undefined if you call either getWorkspace() or any methods on the IWorkspace object after calling this method.

getWorkspace

public com.sas.iom.SAS.IWorkspace getWorkspace()
Gets an IWorkspace object. This method returns the same instance of the IWorkspace object each time it is called. The behavior of this method is undefined when it is called after a call to close().
Returns:
an IOM workspace object