***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.iom
Class WorkspaceConnector

com.sas.iom.WorkspaceConnector

public class WorkspaceConnector

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.
 

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().

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.


***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.