/** * Creates default column meta data with the given column name, but without * any type or constraint information. Use the fluent builder methods to * further configure it. * * @throws NullPointerException * if the name is null */ public static ColumnMetadata named(String name) { return new ColumnMetadata(null, name, null, true, UNDEFINED, UNDEFINED); }
public ColumnMetadata withDigits(int decimalDigits) { return new ColumnMetadata(index, name, jdbcType, nullable, size, decimalDigits); }
public ColumnMetadata withSize(int size) { return new ColumnMetadata(index, name, jdbcType, nullable, size, decimalDigits); }
public ColumnMetadata withIndex(int index) { return new ColumnMetadata(index, name, jdbcType, nullable, size, decimalDigits); }
public ColumnMetadata ofType(int jdbcType) { return new ColumnMetadata(index, name, jdbcType, nullable, size, decimalDigits); }
public ColumnMetadata notNull() { return new ColumnMetadata(index, name, jdbcType, false, size, decimalDigits); }