@Override public long getPrecision() { return column.getPrecision(); }
/** * @return Precision. */ public int precision() { return (int) col.getPrecision(); }
@Override public long getPrecision() { if (value != null) { return value.getPrecision(); } if (column != null) { return column.getPrecision(); } return 0; }
public void setDataType(Column col) { dataType = col.getType(); precision = col.getPrecision(); displaySize = col.getDisplaySize(); scale = col.getScale(); }
/** * @param c Column to take type definition from. * @return Type. */ public static GridSqlType fromColumn(Column c) { if (c.getName() != null) c = new Column(null, c.getType(), c.getPrecision(), c.getScale(), c.getDisplaySize()); return new GridSqlType(c.getType(), c.getScale(), c.getPrecision(), c.getDisplaySize(), c.getCreateSQL()); }
private void addParameter(StatementBuilder buff, Column col) { if (col.getType() == Value.STRING_FIXED && link.isOracle()) { // workaround for Oracle // create table test(id int primary key, name char(15)); // insert into test values(1, 'Hello') // select * from test where name = ? -- where ? = "Hello" > no rows buff.append("CAST(? AS CHAR(").append(col.getPrecision()).append("))"); } else { buff.append('?'); } }
prec = Math.max(c.getPrecision(), prec); scale = Math.max(c.getScale(), scale); displaySize = Math.max(c.getDisplaySize(), displaySize);
precision.put(e.getKey(), (int)col.getPrecision()); col.getType() == Value.STRING_FIXED || col.getType() == Value.STRING_IGNORECASE) precision.put(e.getKey(), (int)col.getPrecision());
v = l[row]; v = c.convert(v); v = v.convertPrecision(c.getPrecision(), false); v = v.convertScale(true, c.getScale());
comment = templateColumn.getComment(); original = templateColumn.getOriginalSQL(); precision = templateColumn.getPrecision(); displaySize = templateColumn.getDisplaySize(); scale = templateColumn.getScale();
/** * @return Precision. */ public int precision() { return (int) col.getPrecision(); }
@Override public long getPrecision() { return column.getPrecision(); }
@Override public long getPrecision() { if (value != null) { return value.getPrecision(); } if (column != null) { return column.getPrecision(); } return 0; }
@Override public long getPrecision() { if (value != null) { return value.getPrecision(); } if (column != null) { return column.getPrecision(); } return 0; }
public void setDataType(Column col) { dataType = col.getType(); precision = col.getPrecision(); displaySize = col.getDisplaySize(); scale = col.getScale(); }
public void setDataType(Column col) { dataType = col.getType(); precision = col.getPrecision(); displaySize = col.getDisplaySize(); scale = col.getScale(); }
public void setDataType(Column col) { dataType = col.getType(); precision = col.getPrecision(); displaySize = col.getDisplaySize(); scale = col.getScale(); }
/** * @param c Column to take type definition from. * @return Type. */ public static GridSqlType fromColumn(Column c) { if (c.getName() != null) c = new Column(null, c.getType(), c.getPrecision(), c.getScale(), c.getDisplaySize()); return new GridSqlType(c.getType(), c.getScale(), c.getPrecision(), c.getDisplaySize(), c.getCreateSQL()); }
private void addParameter(StatementBuilder buff, Column col) { if (col.getType() == Value.STRING_FIXED && link.isOracle()) { // workaround for Oracle // create table test(id int primary key, name char(15)); // insert into test values(1, 'Hello') // select * from test where name = ? -- where ? = "Hello" > no rows buff.append("CAST(? AS CHAR(").append(col.getPrecision()).append("))"); } else { buff.append('?'); } }
private void addParameter(StatementBuilder buff, Column col) { if (col.getType() == Value.STRING_FIXED && link.isOracle()) { // workaround for Oracle // create table test(id int primary key, name char(15)); // insert into test values(1, 'Hello') // select * from test where name = ? -- where ? = "Hello" > no rows buff.append("CAST(? AS CHAR(").append(col.getPrecision()).append("))"); } else { buff.append('?'); } }