public class JdbcQuery extends Bean implements JdbcSource
Modifier and Type | Class and Description |
---|---|
static class |
JdbcQuery.Cardinality |
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Constructor and Description |
---|
JdbcQuery() |
JdbcQuery(String name,
String query) |
addExceptionProperties, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecord
newInstanceFromJson
forEachGrandChildElement, fromXml, fromXml, fromXmlElement, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, toXmlElement, writeXml, writeXml
public JdbcConnection getConnection()
protected JdbcQuery setConnection(JdbcConnection connection)
public String getName()
getName
in interface JdbcSource
public String getQuery()
getQuery
in interface JdbcSource
public List<JdbcQueryParameter> getParameters()
public JdbcQuery setParameters(Collection<JdbcQueryParameter> parameters)
public JdbcQuery addParameter(JdbcQueryParameter parameter)
public JdbcQuery addParameter(String name, Class<?> javaType, Integer sqlType, String exampleValueExpression)
public JdbcQuery addParameter(String name, Class<?> javaType, String exampleValueExpression)
public List<JdbcQueryColumn> getColumns()
public JdbcQuery setColumns(Collection<JdbcQueryColumn> columns)
public JdbcQuery addColumn(JdbcQueryColumn column)
public JdbcQuery.Cardinality getCardinality()
public JdbcQuery setCardinality(JdbcQuery.Cardinality cardinality)
public JdbcSourceType getSourceType()
getSourceType
in interface JdbcSource
public JdbcQuery sortColumns()
public Record toRecord()
toRecord
in interface RecordSerializable
toRecord
in class Bean
public JdbcQuery fromRecord(Record source)
RecordSerializable
this
(for fluid API call chaining).
For fluid API call chaining, the overridden method should change the declared return type to its class.fromRecord
in interface RecordSerializable
fromRecord
in class Bean
Copyright (c) 2006-2023 North Concepts Inc. All Rights Reserved.