com.ibm.di.connector.dpa.provider
Class SQLUtilities
java.lang.Object
com.ibm.di.connector.dpa.provider.SQLUtilities
public class SQLUtilities
- extends Object
Class SQLUtilities provides static methods for manipulating SQL expressions and statements.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_VARGRAPHIC
public static final String TYPE_VARGRAPHIC
- See Also:
- Constant Field Values
SQLUtilities
public SQLUtilities()
formatVargraphic
public static String formatVargraphic(String value)
- Parameters:
value
-
- Returns:
- String
getValue
public static Object getValue(String columnName,
int columnType,
ResultSet resultSet,
boolean ignoreFieldErrors)
throws SQLException,
IOException
- Parameters:
columnName
- columnType
- resultSet
- ignoreFieldErrors
-
- Returns:
- Object
- Throws:
SQLException
IOException
setValue
public static void setValue(PreparedStatement statement,
int paramIndex,
Object value)
throws SQLException
- Parameters:
statement
- paramIndex
- value
-
- Throws:
SQLException
getRowData
public static Map<String,Object> getRowData(ResultSet resultSet,
boolean ignoreFieldErrors)
throws SQLException,
IOException
- Parameters:
resultSet
- ignoreFieldErrors
-
- Returns:
- Map
- Throws:
SQLException
IOException