@Override
    public String getCastTypeNameForCode(int code) {
        switch (code) {
            case Types.VARCHAR:  return "varchar(4000)";
            default: return super.getCastTypeNameForCode(code);
        }
    }
{@code DB2Templates} is an SQL dialect for DB2 10.1.2

@author tiwe
querydsl-sql/src/main/java/com/querydsl/sql/DB2Templates.java