com.sas.iom
Class WorkspaceConnector
java.lang.Object
|
+--com.sas.iom.WorkspaceConnector
- 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 |
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. |
WorkspaceConnector
protected WorkspaceConnector(WorkspacePool pool,
ConnectionInterface cx,
com.sas.iom.SAS.IWorkspace iWorkspace)
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.
Copyright © 2006 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:28:51