org.knime.core.node.port.database
Class DatabasePortObjectSpec

java.lang.Object
  extended by org.knime.core.node.port.database.DatabasePortObjectSpec
All Implemented Interfaces:
PortObjectSpec

public class DatabasePortObjectSpec
extends Object
implements PortObjectSpec

Class used as database port object holding a DataTableSpec and a ModelContentRO to create a database connection.

Author:
Thomas Gabriel, University of Konstanz

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.knime.core.node.port.PortObjectSpec
PortObjectSpec.PortObjectSpecSerializer<T extends PortObjectSpec>
 
Constructor Summary
DatabasePortObjectSpec(DataTableSpec spec, ModelContentRO conn)
          Creates a new database port object spec.
 
Method Summary
 boolean equals(Object obj)
          
 ModelContentRO getConnectionModel()
           
 DataTableSpec getDataTableSpec()
           
static PortObjectSpec.PortObjectSpecSerializer<DatabasePortObjectSpec> getPortObjectSpecSerializer()
          Serializer used to save DatabasePortObjectSpec.
 JComponent[] getViews()
          The returned views are displayed in the out port view of the referring node.
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabasePortObjectSpec

public DatabasePortObjectSpec(DataTableSpec spec,
                              ModelContentRO conn)
Creates a new database port object spec.

Parameters:
spec - underlying table spec
conn - connection model
Method Detail

getDataTableSpec

public DataTableSpec getDataTableSpec()
Returns:
underlying table spec

getConnectionModel

public ModelContentRO getConnectionModel()
Returns:
connection model

getPortObjectSpecSerializer

public static PortObjectSpec.PortObjectSpecSerializer<DatabasePortObjectSpec> getPortObjectSpecSerializer()
Serializer used to save DatabasePortObjectSpec.

Returns:
a new database spec serializer

getViews

public JComponent[] getViews()
The returned views are displayed in the out port view of the referring node. Each component is displayed in an extra tab. The name of the component is used as the title for the tab. It is important that no external members are kept in the component so it can be deleted, when the port object is deleted. If the port object has no view return an empty array.

Specified by:
getViews in interface PortObjectSpec
Returns:
an array of views for the port object spec, each displayed as a tab in the out port view

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.