Example usage for java.sql JDBCType BINARY

List of usage examples for java.sql JDBCType BINARY

Introduction

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

Prototype

JDBCType BINARY

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

Click Source Link

Document

Identifies the generic SQL type BINARY .

Usage

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

/**
 * //from   ww w.  j  a  v  a  2  s .  com
 * @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());
}