Example usage for java.sql JDBCType VARBINARY

List of usage examples for java.sql JDBCType VARBINARY

Introduction

In this page you can find the example usage for java.sql JDBCType VARBINARY.

Prototype

JDBCType VARBINARY

To view the source code for java.sql JDBCType VARBINARY.

Click Source Link

Document

Identifies the generic SQL type VARBINARY .

Usage

From source file:com.microsoft.sqlserver.testframework.DBTable.java

/**
 * /*from  ww w .  j av  a 2 s.co  m*/
 * @param colNum
 * @return <code>true</code> if value can be passed as Hex for the column
 */

boolean passDataAsHex(int colNum) {
    return (JDBCType.BINARY == getColumn(colNum).getJdbctype()
            || JDBCType.VARBINARY == getColumn(colNum).getJdbctype()
            || JDBCType.LONGVARBINARY == getColumn(colNum).getJdbctype());
}