|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataSourceName
Represents a data source name (DSN) that is a construct used by the SAS table server to identify a data source definition. A data source definition specifies how to locate and access a data source, including any authentication (such as a user name and password) that a user must supply in order to access the data and any properties used to connect to a particular data source or data sources. By using a DSN, a user can avoid specifying connection parameters to connect to a data source. An administrator can also configure a data source, determine the level of security, and share the DSN with others.
Attributes of DataSourceName are:
Associations of DataSourceName are:
factory
create methods. // create a store to contain your objects for this change. If you do not have an existing object // or store to use. You may obtain the store from another object by using Object.getObjectStore(). MdFactory factory; //where "factory" is a valid MdFactory instance MdObjectStore objectStore = factory.createObjectStore(); DataSourceName myObject = (DataSourceName) factory.createComplexMetadataObject(objectStore, "DataSourceName_Object", MetadataObjects.DATASOURCENAME, "AAAAAAAA"); myObject.updateMetadataAll(); // Write object to server objectStore.dispose(); // dispose of the object store if it is no longer needed
MdOMIUtil
.
updateMetadataAll
method.
delete
method can be used.
This will flag the object as being deleted on the client, and will require an update call to persist
the change to the server.
Field Summary | |
---|---|
static java.lang.String |
ASSOCIATION_CHILDDATASOURCES_NAME
Constant used for the name of the ChildDataSources association. |
static java.lang.String |
ASSOCIATION_DATASOURCECONNECTION_NAME
Constant used for the name of the DataSourceConnection association. |
static java.lang.String |
ASSOCIATION_DEFAULTLOGIN_NAME
Constant used for the name of the DefaultLogin association. |
static java.lang.String |
ASSOCIATION_PARENTDATASOURCES_NAME
Constant used for the name of the ParentDataSources association. |
static java.lang.String |
ATTRIBUTE_DRIVER_NAME
Constant used for the name of the Driver attribute. |
static java.lang.String |
ATTRIBUTE_LOGICALNAME_NAME
Constant used for the name of the LogicalName attribute. |
Fields inherited from interface com.sas.metadata.remote.RelationalSchema |
---|
ASSOCIATION_SCHEMAPACKAGE_NAME, ASSOCIATION_TABLES_NAME |
Fields inherited from interface com.sas.metadata.remote.DeployedDataPackage |
---|
ASSOCIATION_ALIASES_NAME, ASSOCIATION_ALIASFOR_NAME, ASSOCIATION_DEPLOYEDCOMPONENTS_NAME, ASSOCIATION_TABLECOLLECTIONS_NAME, ASSOCIATION_USEDBYPACKAGES_NAME, ASSOCIATION_USINGPACKAGES_NAME |
Fields inherited from interface com.sas.metadata.remote.PrimaryType |
---|
ASSOCIATION_FAVORITESCONTAINERS_NAME, ATTRIBUTE_ISHIDDEN_NAME, ATTRIBUTE_PUBLICTYPE_NAME |
Fields inherited from interface com.sas.metadata.remote.MdObjectBase |
---|
ATTRIBUTE_DESC_NAME, ATTRIBUTE_ID_NAME, ATTRIBUTE_METADATACREATED_NAME, ATTRIBUTE_METADATAUPDATED_NAME, ATTRIBUTE_NAME_NAME |
Method Summary | |
---|---|
AssociationList |
getChildDataSources()
Gets the AssociationList of ChildDataSources |
AssociationList |
getChildDataSources(boolean fGoToServer)
Gets the Associationlist of ChildDataSources |
Connection |
getDataSourceConnection()
Gets the Connection for DataSourceConnection |
AssociationList |
getDataSourceConnections()
Gets the AssociationList of DataSourceConnections |
AssociationList |
getDataSourceConnections(boolean fGoToServer)
Gets the Associationlist of DataSourceConnections |
Login |
getDefaultLogin()
Gets the Login for DefaultLogin |
AssociationList |
getDefaultLogins()
Gets the Association list of DefaultLogins |
AssociationList |
getDefaultLogins(boolean fGoToServer)
Gets the Associationlist of DefaultLogins |
java.lang.String |
getDriver()
Gets the String value of Driver |
int |
getDriverMaxLength()
Gets the maximum length of Driver |
int |
getDriverState()
Gets the Metadata State of Driver |
java.lang.String |
getLogicalName()
Gets the String value of LogicalName |
int |
getLogicalNameMaxLength()
Gets the maximum length of LogicalName |
int |
getLogicalNameState()
Gets the Metadata State of LogicalName |
AssociationList |
getParentDataSources()
Gets the Association list of ParentDataSources |
AssociationList |
getParentDataSources(boolean fGoToServer)
Gets the Associationlist of ParentDataSources |
void |
initializePredObjects()
(S) Adds the Associated objects to the predObjects which are: ChildDataSources DataSourceConnection |
void |
initializeRequiredObjects()
(S) This initializes the Required Objects(Roles) which are: |
void |
setChildDataSources(AssociationList list)
Sets the ChildDataSources list to be list . |
void |
setChildDataSources(AssociationList inObjects,
int state)
Sets the entire AssociationList to match the passed in Vector, sets the state of the AssociationList |
void |
setDataSourceConnection(Connection inObject)
Sets the DataSourceConnections list 0th element to be inObject . |
void |
setDataSourceConnections(AssociationList list)
Sets the DataSourceConnections list to be list . |
void |
setDataSourceConnections(AssociationList list,
int state)
Sets the DataSourceConnections list to be list . |
void |
setDefaultLogin(Login inObject)
Sets the DefaultLogins list 0th element to be inObject . |
void |
setDefaultLogins(AssociationList list)
Sets the DefaultLogins list to be list . |
void |
setDefaultLogins(AssociationList list,
int state)
Sets the DefaultLogins list to be list . |
void |
setDriver(java.lang.String inDriver)
Sets the Driver value and sets the state to MetadataState.LOCAL. |
void |
setDriver(java.lang.String inDriver,
int state)
Sets the Driver Metadata State. |
void |
setDriverState(int state)
Sets the Metadata State of Driver . |
void |
setLogicalName(java.lang.String inLogicalName)
Sets the LogicalName value and sets the state to MetadataState.LOCAL. |
void |
setLogicalName(java.lang.String inLogicalName,
int state)
Sets the LogicalName Metadata State. |
void |
setLogicalNameState(int state)
Sets the Metadata State of LogicalName . |
void |
setParentDataSources(AssociationList list)
Sets the ParentDataSources list to be list . |
void |
setParentDataSources(AssociationList inObjects,
int state)
Sets the entire ParentDataSources list to match the passed in AssociationList, sets the state of the ParentDataSources |
Methods inherited from interface com.sas.metadata.remote.RelationalSchema |
---|
getSchemaPackage, getSchemaPackages, getSchemaPackages, getTables, getTables, setSchemaPackage, setSchemaPackages, setSchemaPackages, setTables, setTables |
Methods inherited from interface com.sas.metadata.remote.DeployedDataPackage |
---|
getAliases, getAliases, getAliasFor, getAliasFors, getAliasFors, getDeployedComponents, getDeployedComponents, getTableCollections, getTableCollections, getUsedByPackages, getUsedByPackages, getUsingPackages, getUsingPackages, setAliases, setAliases, setAliasFor, setAliasFors, setAliasFors, setDeployedComponents, setDeployedComponents, setTableCollections, setTableCollections, setUsedByPackages, setUsedByPackages, setUsingPackages, setUsingPackages |
Methods inherited from interface com.sas.metadata.remote.PrimaryType |
---|
getFavoritesContainers, getFavoritesContainers, getIsHidden, getIsHiddenState, getPublicType, getPublicTypeMaxLength, getPublicTypeState, setFavoritesContainers, setFavoritesContainers, setIsHidden, setIsHidden, setIsHidden, setIsHidden, setIsHiddenState, setPublicType, setPublicType, setPublicTypeState |
Methods inherited from interface com.sas.metadata.remote.MdObjectBaseXML |
---|
closeUpdateMetadataXML, createEmptyXML, createObjectRefreshXML, createObjectXML, createObjectXML, createUpdateAssociationXML, createUpdateAssociationXML, createUpdateSimpleXML, doCreateUpdateXML, getUpdateSimpleSubstring, updateMetadataAll |
Field Detail |
---|
static final java.lang.String ATTRIBUTE_LOGICALNAME_NAME
LogicalName: The name used to reference this DSN.
static final java.lang.String ATTRIBUTE_DRIVER_NAME
Driver: The driver used to implement this DSN.
static final java.lang.String ASSOCIATION_CHILDDATASOURCES_NAME
ChildDataSources: The data source names that are nested as part of the root data source name.
static final java.lang.String ASSOCIATION_DATASOURCECONNECTION_NAME
DataSourceConnection: The connection used for this data source name.
static final java.lang.String ASSOCIATION_DEFAULTLOGIN_NAME
DefaultLogin: The default login used by this data source name.
static final java.lang.String ASSOCIATION_PARENTDATASOURCES_NAME
ParentDataSources: The data source name that act as the parent for this data source name. Note that the hierarchy should not be traversed from this side of the association since this data source name may be part of more than one hierarchy.
Method Detail |
---|
void initializeRequiredObjects() throws java.rmi.RemoteException
initializeRequiredObjects
in interface DeployedDataPackage
initializeRequiredObjects
in interface MdObjectBaseUtil
initializeRequiredObjects
in interface PrimaryType
initializeRequiredObjects
in interface RelationalSchema
initializeRequiredObjects
in interface Root
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.void initializePredObjects() throws java.rmi.RemoteException
ChildDataSources
DataSourceConnection
initializePredObjects
in interface DeployedDataPackage
initializePredObjects
in interface MdObjectBase
initializePredObjects
in interface PrimaryType
initializePredObjects
in interface RelationalSchema
initializePredObjects
in interface Root
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getLogicalName() throws java.rmi.RemoteException
String
value of LogicalName
LogicalName
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getLogicalNameState() throws java.rmi.RemoteException
LogicalName
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getLogicalNameMaxLength() throws java.rmi.RemoteException
LogicalName
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getDriver() throws java.rmi.RemoteException
String
value of Driver
Driver
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getDriverState() throws java.rmi.RemoteException
Driver
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getDriverMaxLength() throws java.rmi.RemoteException
Driver
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.AssociationList getChildDataSources() throws java.rmi.RemoteException, MdException
ChildDataSources
ChildDataSources
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getDataSourceConnections() throws java.rmi.RemoteException, MdException
DataSourceConnections
DataSourceConnections
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
Connection getDataSourceConnection() throws java.rmi.RemoteException, MdException
Connection
for DataSourceConnection
Connection
( null
if not set) of DataSourceConnection
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getDefaultLogins() throws java.rmi.RemoteException, MdException
DefaultLogins
DefaultLogins
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.Login getDefaultLogin() throws java.rmi.RemoteException, MdException
Login
for DefaultLogin
Login
( null
if not set ) of DefaultLogin
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getParentDataSources() throws java.rmi.RemoteException, MdException
ParentDataSources
ParentDataSources
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getChildDataSources(boolean fGoToServer) throws java.rmi.RemoteException, MdException
ChildDataSources
fGoToServer
- boolean Get the value from the server.
ChildDataSources
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getDataSourceConnections(boolean fGoToServer) throws java.rmi.RemoteException, MdException
DataSourceConnections
fGoToServer
- boolean Get the value from the server.
DataSourceConnections
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getDefaultLogins(boolean fGoToServer) throws java.rmi.RemoteException, MdException
DefaultLogins
fGoToServer
- boolean Get the value from the server.
DefaultLogins
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getParentDataSources(boolean fGoToServer) throws java.rmi.RemoteException, MdException
ParentDataSources
fGoToServer
- boolean Get the value from the server.
ParentDataSources
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.void setLogicalName(java.lang.String inLogicalName) throws java.rmi.RemoteException
LogicalName
value and sets the state to MetadataState.LOCAL.
inLogicalName
- String
java.rmi.RemoteException
- If error communicating with remote object.void setLogicalName(java.lang.String inLogicalName, int state) throws java.rmi.RemoteException
LogicalName
Metadata State.
inLogicalName
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setLogicalNameState(int state) throws java.rmi.RemoteException
LogicalName
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setDriver(java.lang.String inDriver) throws java.rmi.RemoteException
Driver
value and sets the state to MetadataState.LOCAL.
inDriver
- String
java.rmi.RemoteException
- If error communicating with remote object.void setDriver(java.lang.String inDriver, int state) throws java.rmi.RemoteException
Driver
Metadata State.
inDriver
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setDriverState(int state) throws java.rmi.RemoteException
Driver
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setChildDataSources(AssociationList list) throws java.rmi.RemoteException
ChildDataSources
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setChildDataSources(AssociationList inObjects, int state) throws java.rmi.RemoteException
inObjects
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setDataSourceConnections(AssociationList list) throws java.rmi.RemoteException
DataSourceConnections
list to be list
. Object of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setDataSourceConnections(AssociationList list, int state) throws java.rmi.RemoteException
DataSourceConnections
list to be list
. Object of which can be of type:
list
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setDataSourceConnection(Connection inObject) throws java.rmi.RemoteException
DataSourceConnections
list 0th element to be inObject
.
inObject
- Connection
java.rmi.RemoteException
- If error communicating with remote object.void setDefaultLogins(AssociationList list) throws java.rmi.RemoteException
DefaultLogins
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setDefaultLogins(AssociationList list, int state) throws java.rmi.RemoteException
DefaultLogins
list to be list
. Objects of which can be of type:
list
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setDefaultLogin(Login inObject) throws java.rmi.RemoteException
DefaultLogins
list 0th element to be inObject
.
inObject
- Login
java.rmi.RemoteException
- If error communicating with remote object.void setParentDataSources(AssociationList list) throws java.rmi.RemoteException
ParentDataSources
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setParentDataSources(AssociationList inObjects, int state) throws java.rmi.RemoteException
inObjects
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.
|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |