com.sas.iom
Class WorkspaceConnector

java.lang.Object
  |
  +--com.sas.iom.WorkspaceConnector

public class WorkspaceConnector
extends java.lang.Object
implements Connection

This class is the interface between pooled connection to IWorkspace objects and the workspace factory. Users may obtain a workspace by calling getWorkspace(), and they may notify the workspace factory 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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().
Specified by:
getWorkspace in interface Connection
Returns:
an IOM workspace object

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 possible 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.
Specified by:
close in interface Connection