public class JdbcFieldDefinition extends FieldDefinition
| Constructor and Description |
|---|
JdbcFieldDefinition(String dbName,
String name,
DataType type,
int sqlType,
int length,
int scale,
boolean required,
String description,
Map<String,Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumnName(StringBuilder sql,
String tablePrefix) |
void |
addInsertStatementPlaceHolder(StringBuilder sql,
boolean generateKeys) |
void |
addSelectStatementPlaceHolder(StringBuilder sql) |
void |
addStatementPlaceHolder(StringBuilder sql) |
JdbcFieldDefinition |
clone() |
static JdbcFieldDefinition |
createAttribute(Object value) |
String |
getDbName() |
int |
getSqlType() |
boolean |
isQuoteName() |
int |
setFieldValueFromResultSet(ResultSet resultSet,
int columnIndex,
Record record) |
int |
setInsertPreparedStatementValue(PreparedStatement statement,
int parameterIndex,
Record record) |
int |
setPreparedStatementValue(PreparedStatement statement,
int parameterIndex,
Object value) |
void |
setQuoteName(boolean quoteName) |
void |
setSqlType(int sqlType) |
addAllowedValue, appendType, convert, create, equals, getAllowedValues, getCodeTable, getDefaultValue, getDescription, getIndex, getLength, getMaxStringLength, getMaxValue, getMinValue, getName, getRecordDefinition, getScale, getSimpleType, getTitle, getType, getTypeClass, getTypeDescription, hashCode, isRequired, setAllowedValues, setAllowedValues, setCodeTable, setDefaultValue, setDescription, setLength, setMaxValue, setMinValue, setRecordDefinition, setRequired, setScale, setTitle, setType, setValue, toMap, toString, validateclearProperties, close, getProperties, getProperty, getProperty, removeProperty, setProperties, setProperty, setPropertySoft, setPropertyWeakpublic static JdbcFieldDefinition createAttribute(Object value)
public void addColumnName(StringBuilder sql, String tablePrefix)
public void addInsertStatementPlaceHolder(StringBuilder sql, boolean generateKeys)
public void addSelectStatementPlaceHolder(StringBuilder sql)
public void addStatementPlaceHolder(StringBuilder sql)
public JdbcFieldDefinition clone()
clone in class FieldDefinitionpublic String getDbName()
public int getSqlType()
public boolean isQuoteName()
public int setFieldValueFromResultSet(ResultSet resultSet, int columnIndex, Record record) throws SQLException
SQLExceptionpublic int setInsertPreparedStatementValue(PreparedStatement statement, int parameterIndex, Record record) throws SQLException
SQLExceptionpublic int setPreparedStatementValue(PreparedStatement statement, int parameterIndex, Object value) throws SQLException
SQLExceptionpublic void setQuoteName(boolean quoteName)
public void setSqlType(int sqlType)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.