public class CellContentConverter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CellContentConverter.NCharWrapper |
static class |
CellContentConverter.PObjectWrapper |
class |
CellContentConverter.SQLExpressionWrapper |
static class |
CellContentConverter.TimestampWithNano |
| Modifier and Type | Field and Description |
|---|---|
static char[] |
hexChar
All hex digits.
|
static int |
TIMESTAMP_WITH_NANO |
| Constructor and Description |
|---|
CellContentConverter(java.sql.ResultSetMetaData resultSetMetaData,
Session session,
DBMS targetConfiguration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getObject(java.sql.ResultSet resultSet,
int i)
Gets object from result-set.
|
java.lang.Object |
getObject(java.sql.ResultSet resultSet,
java.lang.String columnName)
Gets object from result-set.
|
static java.lang.String |
getSmallLob(java.lang.Object lob,
DBMS targetConfiguration,
java.lang.Integer maxBlobLength,
java.lang.Integer maxClobLength)
Gets SQL expression for a C/BLOB for small LOBS.
|
java.lang.String |
getSmallLob(java.sql.ResultSet resultSet,
int i)
Gets SQL expression for a C/BLOB for small LOBS.
|
static boolean |
isPostgresObjectType(java.lang.String columnTypeName) |
java.lang.String |
toSql(java.lang.Object content)
Converts a cell-content to valid SQL-literal.
|
public static final int TIMESTAMP_WITH_NANO
public static final char[] hexChar
public CellContentConverter(java.sql.ResultSetMetaData resultSetMetaData,
Session session,
DBMS targetConfiguration)
resultSetMetaData - meta data of the result set to read fromsession - database sessiontargetConfiguration - configuration of the target DBMSpublic java.lang.String toSql(java.lang.Object content)
content - the contentpublic java.lang.Object getObject(java.sql.ResultSet resultSet,
int i)
throws java.sql.SQLException
resultSet - result-seti - column indexjava.sql.SQLExceptionpublic static boolean isPostgresObjectType(java.lang.String columnTypeName)
public java.lang.Object getObject(java.sql.ResultSet resultSet,
java.lang.String columnName)
throws java.sql.SQLException
resultSet - result-setcolumnName - column namejava.sql.SQLExceptionpublic java.lang.String getSmallLob(java.sql.ResultSet resultSet,
int i)
resultSet - the result seti - index of LOB columnpublic static java.lang.String getSmallLob(java.lang.Object lob,
DBMS targetConfiguration,
java.lang.Integer maxBlobLength,
java.lang.Integer maxClobLength)
lob - the lob