Class EmbeddedConnection
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.EmbeddedConnection
-
- All Implemented Interfaces:
Serializable
public class EmbeddedConnection extends PropertyBase
The EmbeddedConnection is used within a VirtualConnection. It contains a connection and additional properties the VirtualConnection uses when working with the EmbeddedConnection.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>argumentsprotected StringdisplayNameprotected ConnectionembeddedConnectionprotected intposition-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description EmbeddedConnection()Default constructorEmbeddedConnection(EmbeddedConnection template)Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.Map<String,Object>getArguments()Return the arguments for the embedded connection.StringgetDisplayName()Return the printable name of the embedded connection.ConnectiongetEmbeddedConnection()Return the embedded connection.intgetPosition()Return the position that this connector is in the list of embedded connectors.inthashCode()Create a hash code for this element type.voidsetArguments(Map<String,Object> arguments)Set up the arguments for the embedded connection.voidsetDisplayName(String displayName)Set up the printable name of the embedded connection.voidsetEmbeddedConnection(Connection embeddedConnection)Set up the embedded connectionvoidsetPosition(int position)Set up the position that this connector is in the list of embedded connectors.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
-
-
-
Field Detail
-
position
protected int position
-
displayName
protected String displayName
-
embeddedConnection
protected Connection embeddedConnection
-
-
Constructor Detail
-
EmbeddedConnection
public EmbeddedConnection()
Default constructor
-
EmbeddedConnection
public EmbeddedConnection(EmbeddedConnection template)
Copy/clone constructor.- Parameters:
template- element to copy
-
-
Method Detail
-
getPosition
public int getPosition()
Return the position that this connector is in the list of embedded connectors.- Returns:
- int
-
setPosition
public void setPosition(int position)
Set up the position that this connector is in the list of embedded connectors.- Parameters:
position- int
-
getDisplayName
public String getDisplayName()
Return the printable name of the embedded connection.- Returns:
- String name
-
setDisplayName
public void setDisplayName(String displayName)
Set up the printable name of the embedded connection.- Parameters:
displayName- String name
-
getArguments
public Map<String,Object> getArguments()
Return the arguments for the embedded connection.- Returns:
- property map
-
setArguments
public void setArguments(Map<String,Object> arguments)
Set up the arguments for the embedded connection.- Parameters:
arguments- property map
-
getEmbeddedConnection
public Connection getEmbeddedConnection()
Return the embedded connection.- Returns:
- Connection object.
-
setEmbeddedConnection
public void setEmbeddedConnection(Connection embeddedConnection)
Set up the embedded connection- Parameters:
embeddedConnection- Connection object
-
toString
public String toString()
Standard toString method.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classPropertyBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCodein classPropertyBase- Returns:
- int hash code
-
-