# Uses of Interface
com.sas.metadata.remote.Connection

Packages that use Connection
Package
Description
com.sas.metadata.remote
Provides a java object interface to the metadata server using the SAS/Open Metadata Architecture.
com.sas.metadata.remote.impl
Provides the implementation of the remote java interface to the SAS Metadata Server.

- ## Uses of Connection in com.sas.metadata.remote

  Subinterfaces of Connection in com.sas.metadata.remote
  Modifier and Type
  Interface
  Description
  `interface`
  `COMConnection`
  Represents a COM connection.
  `interface`
  `OpenClientConnection`
  An abstract type that represents the connection information needed by an open client to access a deployed component.
  `interface`
  `SASClientConnection`
  Represents the information needed by SAS software to connect to other servers.
  `interface`
  `TCPIPConnection`
  Contains information for making a TCP/IP connection to a server.
  Methods in com.sas.metadata.remote that return Connection
  Modifier and Type
  Method
  Description
  `Connection`
  DataSourceName.`getDataSourceConnection()`
  Gets the `Connection` for `DataSourceConnection`
  Methods in com.sas.metadata.remote with parameters of type Connection
  Modifier and Type
  Method
  Description
  `String`
  MdModelUtil.SAS9Generator.`genCredentials(SASLibrary iMeta, Connection c, boolean b_quoteUser, boolean b_quotePassword)`
  Generate a String containing a libraries username and password
  `protected Map<String,Object>`
  MdModelUtil.PromptingGenerator.`getCredentials(SASLibrary iMeta, Connection iConn)`
  Get credentials from provided connection.
  `protected Map<String,Object>`
  MdModelUtil.SAS9Generator.`getCredentials(SASLibrary iMeta, Connection iConn)`
  Get credentials from provided connection querying server for logins found under the connection's authDomain.
  `int`
  MdModelUtil.PromptingGenerator.`resolveAuthType(Connection c, MdFactory factory)`
  Resolve the Authentication type associated with the provided connection
  `void`
  DataSourceName.`setDataSourceConnection(Connection inObject)`
  Sets the `DataSourceConnections` list 0th element to be `inObject`.

- ## Uses of Connection in com.sas.metadata.remote.impl

  Methods in com.sas.metadata.remote.impl that return Connection
  Modifier and Type
  Method
  Description
  `Connection`
  DataSourceNameImpl.`getDataSourceConnection()`
  Gets the `Connection` for `DataSourceConnection` NOTE: If the list already exists and its state is MetadataState.AL_PARTIALSET and this object is not a new object, then the list will merge what is here with what is obtained from OMR.
  Methods in com.sas.metadata.remote.impl with parameters of type Connection
  Modifier and Type
  Method
  Description
  `void`
  DataSourceNameImpl.`setDataSourceConnection(Connection inObject)`
  Sets the `DataSourceConnections` list 0th element to be `inObject`.