public class StringStrategy extends Object implements MappingStrategy
| Constructor and Description |
|---|
StringStrategy(MappingStrategy delegate)
The SQL get/set strategy class implementation write as a string all types mapped as a String.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getSQLAttributeType(int sqlType)
Convert database type to connector supported set of attribute types
|
SQLParam |
getSQLParam(ResultSet resultSet,
int i,
String name,
int sqlType)
Retrieve the SQL value from result set
|
void |
setSQLParam(PreparedStatement stmt,
int idx,
SQLParam parm)
Convert database type to connector supported set of attribute types
|
public StringStrategy(MappingStrategy delegate)
delegate - public SQLParam getSQLParam(ResultSet resultSet, int i, String name, int sqlType) throws SQLException
MappingStrategygetSQLParam in interface MappingStrategyresultSet - the result seti - indexname - of the paramsqlType - expected SQL type or Types.NULL for genericSQLException - any SQL errorpublic Class<?> getSQLAttributeType(int sqlType)
MappingStrategygetSQLAttributeType in interface MappingStrategysqlType - #Typespublic void setSQLParam(PreparedStatement stmt, int idx, SQLParam parm) throws SQLException
MappingStrategysetSQLParam in interface MappingStrategySQLExceptionCopyright © 2018–2025. All rights reserved.