Example usage for java.sql JDBCType LONGNVARCHAR

List of usage examples for java.sql JDBCType LONGNVARCHAR

Introduction

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

Prototype

JDBCType LONGNVARCHAR

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

Click Source Link

Document

Identifies the generic SQL type LONGNVARCHAR .

Usage

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

/**
 * /* w  ww  .j ava  2s  .  co m*/
 * @param colNum
 * @return <code>true</code> if value can be passed as String for the column
 */
boolean passDataAsString(int colNum) {
    return (JDBCType.CHAR == getColumn(colNum).getJdbctype()
            || JDBCType.VARCHAR == getColumn(colNum).getJdbctype()
            || JDBCType.NCHAR == getColumn(colNum).getJdbctype()
            || JDBCType.NVARCHAR == getColumn(colNum).getJdbctype()
            || JDBCType.TIMESTAMP == getColumn(colNum).getJdbctype()
            || JDBCType.DATE == getColumn(colNum).getJdbctype()
            || JDBCType.TIME == getColumn(colNum).getJdbctype()
            || JDBCType.LONGVARCHAR == getColumn(colNum).getJdbctype()
            || JDBCType.LONGNVARCHAR == getColumn(colNum).getJdbctype());
}