*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.iom
Class WorkspaceConnector
java.lang.Object
com.sas.iom.WorkspaceConnector
@SASScope("ALL")
@BinaryCompatibilityOnly
public class WorkspaceConnector
extends Object
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
Modifier and TypeMethodDescriptionvoidclose()Notify the workspace factory that you are done with the IWorkspace object obtained from this connector.IWorkspaceGets an IWorkspace object.Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getWorkspace
public 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 toclose().- 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 callClose()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 eithergetWorkspace()or any methods on the IWorkspace object after calling this method.
-