class KNIMEBasedMappingElement extends RowElement
Modifier and Type | Field and Description |
---|---|
(package private) static Class<?>[] |
COLUMN_CLASSES
The column classes
|
(package private) static String[] |
COLUMN_NAMES
The column names
|
(package private) static DataType |
DEFAULT_KNIME_TYPE
Default KNIME type
|
(package private) static boolean |
DEFAULT_NOT_NULL
Default not null value
|
(package private) static String |
DEFAULT_PREFIX
Default prefix of this element
|
(package private) static String |
DEFAULT_SQL_TYPE
Default SQL type
|
(package private) static int |
KNIME_TYPE_IDX
The column index of the knime type in the table
|
(package private) static int |
NOT_NULL_IDX
The column index of the not null in the table
|
(package private) static int |
SQL_TYPE_IDX
The column index of the SQL type in the table
|
Constructor and Description |
---|
KNIMEBasedMappingElement(DataType knimeType,
String sqlType,
boolean notNull)
Creates a new instance of KnimeBasedMappingElement
|
KNIMEBasedMappingElement(NodeSettingsRO settings)
Creates a new instance of KnimeBasedMappingElement
|
Modifier and Type | Method and Description |
---|---|
DataType |
getKnimeType()
Returns the Knime data type
|
String |
getSqlType()
Returns the SQL data type
|
boolean |
isNotNull()
Returns true if the generated column cannot be null, otherwise returns false
|
protected void |
loadSettingsFrom(NodeSettingsRO settings)
Load the attributes of RowElement from the given NodeSettingsRO instance
|
protected void |
saveSettingsTo(NodeSettingsWO settings)
Save the properties of RowElement to the NodeSettingsWO instance
|
(package private) void |
setKnimeType(DataType knimeType)
Sets the Knime data type
|
(package private) void |
setNotNull(boolean notNull)
Sets to true if the generated column cannot be null, otherwise sets to false
|
(package private) void |
setSqlType(String sqlType)
Sets the SQL data type
|
getPrefix
static final String DEFAULT_PREFIX
static final int KNIME_TYPE_IDX
static final int SQL_TYPE_IDX
static final int NOT_NULL_IDX
static final String[] COLUMN_NAMES
static final Class<?>[] COLUMN_CLASSES
static final DataType DEFAULT_KNIME_TYPE
static final String DEFAULT_SQL_TYPE
static final boolean DEFAULT_NOT_NULL
KNIMEBasedMappingElement(DataType knimeType, String sqlType, boolean notNull)
knimeType
- the Knime data type to mapsqlType
- the SQL data type to be mapped tonotNull
- default not null value of the generated columnKNIMEBasedMappingElement(NodeSettingsRO settings)
settings
- the NodeSettingsRO instance to load frompublic DataType getKnimeType()
void setKnimeType(DataType knimeType)
knimeType
- the knimeType to setpublic String getSqlType()
void setSqlType(String sqlType)
sqlType
- the sqlType to setpublic boolean isNotNull()
void setNotNull(boolean notNull)
notNull
- true if the generated column cannot be null, otherwise falseprotected void loadSettingsFrom(NodeSettingsRO settings)
loadSettingsFrom
in class RowElement
settings
- the NodeSettingsRO instance to load fromprotected void saveSettingsTo(NodeSettingsWO settings)
saveSettingsTo
in class RowElement
settings
- the NodeSettingsWO instance to save to
KNIME GmbH, Konstanz, Germany
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.