public boolean isBinary(){ return this.equals(Binary); }
JdbcTypeKind kind = jdbcType.getKind(); if (kind.isBinary()) { return "(binary)";
@Override public String toSqlDefaultValue(int typeCode, Object value) { if (Types.BOOLEAN == typeCode || Types.BIT == typeCode) { Boolean bool = Converts.toBoolean(value); return bool ? getBooleanTrueString() : getBooleanFalseString(); } JdbcType type = JdbcTypes.forTypeCode(typeCode); if (type.getKind().isNumeric()) { return Converts.toString(value); } else { String s = Converts.toString(value); if (s.endsWith(")")) { return s; } else if (s.startsWith("'") && s.endsWith("'")) { return s; } else if (typeCode == Types.VARCHAR || typeCode == Types.CHAR) { return "'" + Converts.toString(value) + "'"; } else { return s; } } }
public boolean isSpecial(){ return this.equals(Special); } }
public boolean isTemporal(){ return this.equals(Temporal); }
public boolean isText(){ return this.equals(Text); }
public boolean isNumeric(){ return this.equals(Numeric); }
if(type.getJdbcType().getKind().equals(JdbcTypeKind.Temporal)) { Date date = Converts.convert(string, Date.class); entry.setValue(date);