Here you can find the source of toFlag(ResultSetMetaData metaData, int column)
public static int toFlag(ResultSetMetaData metaData, int column) throws SQLException
//package com.java2s; //License from project: Apache License import java.sql.ResultSetMetaData; import java.sql.SQLException; public class Main { public static int toFlag(ResultSetMetaData metaData, int column) throws SQLException { int flags = 0; if (metaData.isNullable(column) == 1) { flags |= 0001;/*from w w w . j a v a2 s. c o m*/ } if (metaData.isSigned(column)) { flags |= 0020; } if (metaData.isAutoIncrement(column)) { flags |= 0200; } return flags; } }