com.sas.util.connection
Class WorkspaceBean

com.sas.util.connection.WorkspaceBean
All Implemented Interfaces:
WorkspacePropertyInterface

public class WorkspaceBean
implements WorkspacePropertyInterface

The WorkspaceBean class is a Java bean that wraps the com.sas.iom.SAS.IWorkspace class. This bean provides a way for a workspace to be manipulated in an IDE.

It is used in conjunction with the ConnectionFactoryBean, where workspace beans are returned via the ConnectionFactoryBean.requestWorkspace() method.

The bean has just one property, workspace, which contains the actual IOM workspace (com.sas.iom.SAS.IWorkspace).


Field Summary
protected  com.sas.iom.SAS.IWorkspace workspace
          The internal workspace
 
Constructor Summary
WorkspaceBean()
          Default constructor
WorkspaceBean(com.sas.iom.SAS.IWorkspace workspace)
          Constructor that takes a workspace and sets it internally.
 
Method Summary
static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
          Returns information used by the com.sas.beans.Introspector to augment the automatically introspected information about this WorkspaceBean.
 com.sas.iom.SAS.IWorkspace getWorkspace()
          Returns an instance of com.sas.iom.SAS.IWorkspace.
 void setWorkspace(com.sas.iom.SAS.IWorkspace workspace)
          Sets a workspace on an object.
 

Field Detail

workspace

protected com.sas.iom.SAS.IWorkspace workspace
The internal workspace

Constructor Detail

WorkspaceBean

public WorkspaceBean()
Default constructor


WorkspaceBean

public WorkspaceBean(com.sas.iom.SAS.IWorkspace workspace)
Constructor that takes a workspace and sets it internally.

Parameters:
workspace - The workspace to set on this object.
Method Detail

getWorkspace

public com.sas.iom.SAS.IWorkspace getWorkspace()
Returns an instance of com.sas.iom.SAS.IWorkspace.

Specified by:
getWorkspace in interface WorkspacePropertyInterface
Returns:
The workspace defined for this object.
See Also:
setWorkspace(IWorkspace)

setWorkspace

public void setWorkspace(com.sas.iom.SAS.IWorkspace workspace)
Sets a workspace on an object.

Specified by:
setWorkspace in interface WorkspacePropertyInterface
Parameters:
workspace - An instance of com.sas.iom.SAS.IWorkspace
See Also:
getWorkspace()

getExtendedBeanInfo

public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
Returns information used by the com.sas.beans.Introspector to augment the automatically introspected information about this WorkspaceBean.

Returns:
the ExtendedBeanInfo for this class



Copyright © 2009 SAS Institute Inc. All Rights Reserved.