public class CellContentConverter extends Object
| Constructor and Description |
|---|
CellContentConverter(ResultSetMetaData resultSetMetaData,
Session session,
DBMS targetConfiguration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getObject(ResultSet resultSet,
int i)
Gets object from result-set.
|
Object |
getObject(ResultSet resultSet,
String columnName)
Gets object from result-set.
|
String |
getSmallLob(ResultSet resultSet,
int i)
Gets SQL expression for a C/BLOB for small LOBS.
|
String |
toSql(Object content)
Converts a cell-content to valid SQL-literal.
|
public CellContentConverter(ResultSetMetaData resultSetMetaData, Session session, DBMS targetConfiguration)
resultSetMetaData - meta data of the result set to read fromsession - database sessiontargetDBMSConfiguration - configuration of the target DBMSpublic String toSql(Object content)
object - the contentpublic Object getObject(ResultSet resultSet, int i) throws SQLException
resultSet - result-seti - column indexSQLExceptionpublic Object getObject(ResultSet resultSet, String columnName) throws SQLException
resultSet - result-setcolumnName - column nametypeCache - for caching typesSQLExceptionpublic String getSmallLob(ResultSet resultSet, int i) throws SQLException, IOException
resultSet - the result seti - index of LOB columnSQLExceptionIOException