Class ConnectionElement
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.datamanager.metadataelements.ConnectionElement
-
- All Implemented Interfaces:
Serializable,MetadataElement
public class ConnectionElement extends Object implements MetadataElement, Serializable
ConnectionElement contains the properties and header for a connection retrieved from the metadata repository.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConnectionElement()Default constructorConnectionElement(ConnectionElement template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Return comparison result based on the content of the properties.ConnectionPropertiesgetConnectionProperties()Return the properties for the connection.ElementStubgetConnectorType()Returns a copy of the properties for this connection's connector type.ElementHeadergetElementHeader()Return the element header associated with the properties.List<EmbeddedConnection>getEmbeddedConnections()Return the list of embedded connections for this virtual connection.ElementStubgetEndpoint()Returns a copy of the properties for this connection's endpoint.inthashCode()Return hash code for this objectvoidsetConnectionProperties(ConnectionProperties connectionProperties)Set up the properties for the connection.voidsetConnectorType(ElementStub connectorType)Set up the connector type properties for this Connection.voidsetElementHeader(ElementHeader elementHeader)Set up the element header associated with the properties.voidsetEmbeddedConnections(List<EmbeddedConnection> embeddedConnections)Set up the list of embedded connections for this virtual connection.voidsetEndpoint(ElementStub endpoint)Set up the endpoint properties for this Connection.StringtoString()JSON-style toString
-
-
-
Constructor Detail
-
ConnectionElement
public ConnectionElement()
Default constructor
-
ConnectionElement
public ConnectionElement(ConnectionElement template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getElementHeader
public ElementHeader getElementHeader()
Return the element header associated with the properties.- Specified by:
getElementHeaderin interfaceMetadataElement- Returns:
- element header object
-
setElementHeader
public void setElementHeader(ElementHeader elementHeader)
Set up the element header associated with the properties.- Specified by:
setElementHeaderin interfaceMetadataElement- Parameters:
elementHeader- element header object
-
getConnectionProperties
public ConnectionProperties getConnectionProperties()
Return the properties for the connection.- Returns:
- asset properties (using appropriate subclass)
-
setConnectionProperties
public void setConnectionProperties(ConnectionProperties connectionProperties)
Set up the properties for the connection.- Parameters:
connectionProperties- asset properties
-
setConnectorType
public void setConnectorType(ElementStub connectorType)
Set up the connector type properties for this Connection.- Parameters:
connectorType- ConnectorType properties object
-
getConnectorType
public ElementStub getConnectorType()
Returns a copy of the properties for this connection's connector type. A null means there is no connection type.- Returns:
- connector type for the connection
-
setEndpoint
public void setEndpoint(ElementStub endpoint)
Set up the endpoint properties for this Connection.- Parameters:
endpoint- Endpoint properties object
-
getEndpoint
public ElementStub getEndpoint()
Returns a copy of the properties for this connection's endpoint. Null means no endpoint information available.- Returns:
- endpoint for the connection
-
getEmbeddedConnections
public List<EmbeddedConnection> getEmbeddedConnections()
Return the list of embedded connections for this virtual connection.- Returns:
- list of EmbeddedConnection objects
-
setEmbeddedConnections
public void setEmbeddedConnections(List<EmbeddedConnection> embeddedConnections)
Set up the list of embedded connections for this virtual connection.- Parameters:
embeddedConnections- list of EmbeddedConnection objects
-
toString
public String toString()
JSON-style toString
-
equals
public boolean equals(Object objectToCompare)
Return comparison result based on the content of the properties.
-
-