|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connection
Represents the information required to connect to a server. It is associated with the deployed component, i.e. server, that can be accessed using the connection information. It may also be associated with the deployed components that can use the connection information to access the server..
Attributes of Connection are:
Associations of Connection 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(); Connection myObject = (Connection) factory.createComplexMetadataObject(objectStore, "Connection_Object", MetadataObjects.CONNECTION, "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_DATASOURCES_NAME
Constant used for the name of the DataSources association. |
static java.lang.String |
ASSOCIATION_DOMAIN_NAME
Constant used for the name of the Domain association. |
static java.lang.String |
ASSOCIATION_PASSTHRUPASSWORD_NAME
Constant used for the name of the PassthruPassword association. |
static java.lang.String |
ASSOCIATION_PROVIDERS_NAME
Constant used for the name of the Providers association. |
static java.lang.String |
ASSOCIATION_SAPW_NAME
Constant used for the name of the SAPW association. |
static java.lang.String |
ASSOCIATION_SOURCE_NAME
Constant used for the name of the Source association. |
static java.lang.String |
ATTRIBUTE_APPLICATIONPROTOCOL_NAME
Constant used for the name of the ApplicationProtocol attribute. |
static java.lang.String |
ATTRIBUTE_AUTHENTICATIONTYPE_NAME
Constant used for the name of the AuthenticationType attribute. |
static java.lang.String |
ATTRIBUTE_COMMUNICATIONPROTOCOL_NAME
Constant used for the name of the CommunicationProtocol attribute. |
Fields inherited from interface com.sas.metadata.remote.ContentLocation |
---|
ASSOCIATION_ASSOCIATEDCONTENTTYPE_NAME, ASSOCIATION_FILEREFS_NAME, ASSOCIATION_REPORTS_NAME, ASSOCIATION_TSASSOCIATEDNAMESPACE_NAME, ASSOCIATION_UNITOFTIMES_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 | |
---|---|
java.lang.String |
getApplicationProtocol()
Gets the String value of ApplicationProtocol |
int |
getApplicationProtocolMaxLength()
Gets the maximum length of ApplicationProtocol |
int |
getApplicationProtocolState()
Gets the Metadata State of ApplicationProtocol |
java.lang.String |
getAuthenticationType()
Gets the String value of AuthenticationType |
int |
getAuthenticationTypeMaxLength()
Gets the maximum length of AuthenticationType |
int |
getAuthenticationTypeState()
Gets the Metadata State of AuthenticationType |
java.lang.String |
getCommunicationProtocol()
Gets the String value of CommunicationProtocol |
int |
getCommunicationProtocolMaxLength()
Gets the maximum length of CommunicationProtocol |
int |
getCommunicationProtocolState()
Gets the Metadata State of CommunicationProtocol |
AssociationList |
getDataSources()
Gets the Association list of DataSources |
AssociationList |
getDataSources(boolean fGoToServer)
Gets the Associationlist of DataSources |
AuthenticationDomain |
getDomain()
Gets the AuthenticationDomain for Domain |
AssociationList |
getDomains()
Gets the AssociationList of Domains |
AssociationList |
getDomains(boolean fGoToServer)
Gets the Associationlist of Domains |
SASPassword |
getPassthruPassword()
Gets the SASPassword for PassthruPassword |
AssociationList |
getPassthruPasswords()
Gets the AssociationList of PassthruPasswords |
AssociationList |
getPassthruPasswords(boolean fGoToServer)
Gets the Associationlist of PassthruPasswords |
AssociationList |
getProviders()
Gets the AssociationList of Providers |
AssociationList |
getProviders(boolean fGoToServer)
Gets the Associationlist of Providers |
SASPassword |
getSAPW()
Gets the SASPassword for SAPW |
AssociationList |
getSAPWs()
Gets the AssociationList of SAPWs |
AssociationList |
getSAPWs(boolean fGoToServer)
Gets the Associationlist of SAPWs |
DeployedComponent |
getSource()
Gets the DeployedComponent for Source |
AssociationList |
getSources()
Gets the Association list of Sources |
AssociationList |
getSources(boolean fGoToServer)
Gets the Associationlist of Sources |
void |
initializePredObjects()
(S) Adds the Associated objects to the predObjects which are: Domain PassthruPassword Providers SAPW |
void |
initializeRequiredObjects()
(S) This initializes the Required Objects(Roles) which are: Source |
void |
setApplicationProtocol(java.lang.String inApplicationProtocol)
Sets the ApplicationProtocol value and sets the state to MetadataState.LOCAL. |
void |
setApplicationProtocol(java.lang.String inApplicationProtocol,
int state)
Sets the ApplicationProtocol Metadata State. |
void |
setApplicationProtocolState(int state)
Sets the Metadata State of ApplicationProtocol . |
void |
setAuthenticationType(java.lang.String inAuthenticationType)
Sets the AuthenticationType value and sets the state to MetadataState.LOCAL. |
void |
setAuthenticationType(java.lang.String inAuthenticationType,
int state)
Sets the AuthenticationType Metadata State. |
void |
setAuthenticationTypeState(int state)
Sets the Metadata State of AuthenticationType . |
void |
setCommunicationProtocol(java.lang.String inCommunicationProtocol)
Sets the CommunicationProtocol value and sets the state to MetadataState.LOCAL. |
void |
setCommunicationProtocol(java.lang.String inCommunicationProtocol,
int state)
Sets the CommunicationProtocol Metadata State. |
void |
setCommunicationProtocolState(int state)
Sets the Metadata State of CommunicationProtocol . |
void |
setDataSources(AssociationList list)
Sets the DataSources list to be list . |
void |
setDataSources(AssociationList inObjects,
int state)
Sets the entire DataSources list to match the passed in AssociationList, sets the state of the DataSources |
void |
setDomain(AuthenticationDomain inObject)
Sets the Domains list 0th element to be inObject . |
void |
setDomains(AssociationList list)
Sets the Domains list to be list . |
void |
setDomains(AssociationList list,
int state)
Sets the Domains list to be list . |
void |
setPassthruPassword(SASPassword inObject)
Sets the PassthruPasswords list 0th element to be inObject . |
void |
setPassthruPasswords(AssociationList list)
Sets the PassthruPasswords list to be list . |
void |
setPassthruPasswords(AssociationList list,
int state)
Sets the PassthruPasswords list to be list . |
void |
setProviders(AssociationList list)
Sets the Providers list to be list . |
void |
setProviders(AssociationList inObjects,
int state)
Sets the entire AssociationList to match the passed in Vector, sets the state of the AssociationList |
void |
setSAPW(SASPassword inObject)
Sets the SAPWs list 0th element to be inObject . |
void |
setSAPWs(AssociationList list)
Sets the SAPWs list to be list . |
void |
setSAPWs(AssociationList list,
int state)
Sets the SAPWs list to be list . |
void |
setSource(DeployedComponent inObject)
Sets the Sources list 0th element to be inObject . |
void |
setSources(AssociationList list)
Sets the Sources list to be list . |
void |
setSources(AssociationList list,
int state)
Sets the Sources list to be list . |
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_AUTHENTICATIONTYPE_NAME
AuthenticationType: This attribute indicates the type of authentication needed to connect to this server. It has an enumerated set of values: none user/password password certificate
static final java.lang.String ATTRIBUTE_COMMUNICATIONPROTOCOL_NAME
CommunicationProtocol: This attribute indicates the communication protocol: TCP, APPC and any others that may be supported.
static final java.lang.String ATTRIBUTE_APPLICATIONPROTOCOL_NAME
ApplicationProtocol: This attribute represents the application level protocol being used on this connection. It can have values like CONNECT, SHARE, Bridge, etc. It allows the list of connections to be queried by the type of usage expected, regardless of communication protocol.
static final java.lang.String ASSOCIATION_DOMAIN_NAME
Domain: The name of the authorization domain that maintains the user identities and credentials used to connect to the deployed component accessed through this connection object.
static final java.lang.String ASSOCIATION_PASSTHRUPASSWORD_NAME
PassthruPassword: The SAS password to use with the Remote SQL Passthru option PT2DBPW=.
static final java.lang.String ASSOCIATION_PROVIDERS_NAME
Providers: The deployed components that can use the connection information to access another component. For example, this is the list of DBMS clients, like a JDBC application, that can use the connection information to access a DBMS.
static final java.lang.String ASSOCIATION_SAPW_NAME
SAPW: The SAS password used for the RLS SASPW= option.
static final java.lang.String ASSOCIATION_DATASOURCES_NAME
DataSources: The data source name that uses this connection.
static final java.lang.String ASSOCIATION_SOURCE_NAME
Source: The deployed software component that can be accessed through this connection object.
Method Detail |
---|
void initializeRequiredObjects() throws java.rmi.RemoteException
Source
initializeRequiredObjects
in interface ContentLocation
initializeRequiredObjects
in interface DeployedDataPackage
initializeRequiredObjects
in interface MdObjectBaseUtil
initializeRequiredObjects
in interface PrimaryType
initializeRequiredObjects
in interface Root
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.void initializePredObjects() throws java.rmi.RemoteException
Domain
PassthruPassword
Providers
SAPW
initializePredObjects
in interface ContentLocation
initializePredObjects
in interface DeployedDataPackage
initializePredObjects
in interface MdObjectBase
initializePredObjects
in interface PrimaryType
initializePredObjects
in interface Root
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getAuthenticationType() throws java.rmi.RemoteException
String
value of AuthenticationType
AuthenticationType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getAuthenticationTypeState() throws java.rmi.RemoteException
AuthenticationType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getAuthenticationTypeMaxLength() throws java.rmi.RemoteException
AuthenticationType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getCommunicationProtocol() throws java.rmi.RemoteException
String
value of CommunicationProtocol
CommunicationProtocol
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getCommunicationProtocolState() throws java.rmi.RemoteException
CommunicationProtocol
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getCommunicationProtocolMaxLength() throws java.rmi.RemoteException
CommunicationProtocol
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getApplicationProtocol() throws java.rmi.RemoteException
String
value of ApplicationProtocol
ApplicationProtocol
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getApplicationProtocolState() throws java.rmi.RemoteException
ApplicationProtocol
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getApplicationProtocolMaxLength() throws java.rmi.RemoteException
ApplicationProtocol
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.AssociationList getDomains() throws java.rmi.RemoteException, MdException
Domains
Domains
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
AuthenticationDomain getDomain() throws java.rmi.RemoteException, MdException
AuthenticationDomain
for Domain
AuthenticationDomain
( null
if not set) of Domain
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 getPassthruPasswords() throws java.rmi.RemoteException, MdException
PassthruPasswords
PassthruPasswords
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
SASPassword getPassthruPassword() throws java.rmi.RemoteException, MdException
SASPassword
for PassthruPassword
SASPassword
( null
if not set) of PassthruPassword
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 getProviders() throws java.rmi.RemoteException, MdException
Providers
Providers
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 getSAPWs() throws java.rmi.RemoteException, MdException
SAPWs
SAPWs
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
SASPassword getSAPW() throws java.rmi.RemoteException, MdException
SASPassword
for SAPW
SASPassword
( null
if not set) of SAPW
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 getDataSources() throws java.rmi.RemoteException, MdException
DataSources
DataSources
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 getSources() throws java.rmi.RemoteException, MdException
Sources
Sources
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.DeployedComponent getSource() throws java.rmi.RemoteException, MdException
DeployedComponent
for Source
DeployedComponent
( null
if not set ) of Source
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 getDomains(boolean fGoToServer) throws java.rmi.RemoteException, MdException
Domains
fGoToServer
- boolean Get the value from the server.
Domains
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 getPassthruPasswords(boolean fGoToServer) throws java.rmi.RemoteException, MdException
PassthruPasswords
fGoToServer
- boolean Get the value from the server.
PassthruPasswords
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 getProviders(boolean fGoToServer) throws java.rmi.RemoteException, MdException
Providers
fGoToServer
- boolean Get the value from the server.
Providers
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 getSAPWs(boolean fGoToServer) throws java.rmi.RemoteException, MdException
SAPWs
fGoToServer
- boolean Get the value from the server.
SAPWs
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 getDataSources(boolean fGoToServer) throws java.rmi.RemoteException, MdException
DataSources
fGoToServer
- boolean Get the value from the server.
DataSources
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 getSources(boolean fGoToServer) throws java.rmi.RemoteException, MdException
Sources
fGoToServer
- boolean Get the value from the server.
Sources
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 setAuthenticationType(java.lang.String inAuthenticationType) throws java.rmi.RemoteException
AuthenticationType
value and sets the state to MetadataState.LOCAL.
inAuthenticationType
- String
java.rmi.RemoteException
- If error communicating with remote object.void setAuthenticationType(java.lang.String inAuthenticationType, int state) throws java.rmi.RemoteException
AuthenticationType
Metadata State.
inAuthenticationType
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setAuthenticationTypeState(int state) throws java.rmi.RemoteException
AuthenticationType
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setCommunicationProtocol(java.lang.String inCommunicationProtocol) throws java.rmi.RemoteException
CommunicationProtocol
value and sets the state to MetadataState.LOCAL.
inCommunicationProtocol
- String
java.rmi.RemoteException
- If error communicating with remote object.void setCommunicationProtocol(java.lang.String inCommunicationProtocol, int state) throws java.rmi.RemoteException
CommunicationProtocol
Metadata State.
inCommunicationProtocol
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setCommunicationProtocolState(int state) throws java.rmi.RemoteException
CommunicationProtocol
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setApplicationProtocol(java.lang.String inApplicationProtocol) throws java.rmi.RemoteException
ApplicationProtocol
value and sets the state to MetadataState.LOCAL.
inApplicationProtocol
- String
java.rmi.RemoteException
- If error communicating with remote object.void setApplicationProtocol(java.lang.String inApplicationProtocol, int state) throws java.rmi.RemoteException
ApplicationProtocol
Metadata State.
inApplicationProtocol
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setApplicationProtocolState(int state) throws java.rmi.RemoteException
ApplicationProtocol
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setDomains(AssociationList list) throws java.rmi.RemoteException
Domains
list to be list
. Object of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setDomains(AssociationList list, int state) throws java.rmi.RemoteException
Domains
list to be list
. Object of which can be of type:
list
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setDomain(AuthenticationDomain inObject) throws java.rmi.RemoteException
Domains
list 0th element to be inObject
.
inObject
- AuthenticationDomain
java.rmi.RemoteException
- If error communicating with remote object.void setPassthruPasswords(AssociationList list) throws java.rmi.RemoteException
PassthruPasswords
list to be list
. Object of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setPassthruPasswords(AssociationList list, int state) throws java.rmi.RemoteException
PassthruPasswords
list to be list
. Object of which can be of type:
list
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setPassthruPassword(SASPassword inObject) throws java.rmi.RemoteException
PassthruPasswords
list 0th element to be inObject
.
inObject
- SASPassword
java.rmi.RemoteException
- If error communicating with remote object.void setProviders(AssociationList list) throws java.rmi.RemoteException
Providers
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setProviders(AssociationList inObjects, int state) throws java.rmi.RemoteException
inObjects
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setSAPWs(AssociationList list) throws java.rmi.RemoteException
SAPWs
list to be list
. Object of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setSAPWs(AssociationList list, int state) throws java.rmi.RemoteException
SAPWs
list to be list
. Object of which can be of type:
list
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setSAPW(SASPassword inObject) throws java.rmi.RemoteException
SAPWs
list 0th element to be inObject
.
inObject
- SASPassword
java.rmi.RemoteException
- If error communicating with remote object.void setDataSources(AssociationList list) throws java.rmi.RemoteException
DataSources
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setDataSources(AssociationList inObjects, int state) throws java.rmi.RemoteException
inObjects
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setSources(AssociationList list) throws java.rmi.RemoteException
Sources
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setSources(AssociationList list, int state) throws java.rmi.RemoteException
Sources
list to be list
. Objects of which can be of type:
list
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setSource(DeployedComponent inObject) throws java.rmi.RemoteException
Sources
list 0th element to be inObject
.
inObject
- DeployedComponent
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 |