@Override public Value divide(Value v) { ValueByte other = (ValueByte) v; if (other.value == 0) { throw DbException.get(ErrorCode.DIVISION_BY_ZERO_1, getSQL()); } return ValueByte.get((byte) (value / other.value)); }
@Override public Value modulus(Value v) { ValueByte other = (ValueByte) v; if (other.value == 0) { throw DbException.get(ErrorCode.DIVISION_BY_ZERO_1, getSQL()); } return ValueByte.get((byte) (value % other.value)); }
@Override public Value modulus(Value v) { ValueByte other = (ValueByte) v; if (other.value == 0) { throw DbException.get(ErrorCode.DIVISION_BY_ZERO_1, getSQL()); } return ValueByte.get((byte) (value % other.value)); }
public Value divide(Value v) throws SQLException { ValueByte other = (ValueByte) v; if (other.value == 0) { throw Message.getSQLException(ErrorCode.DIVISION_BY_ZERO_1, getSQL()); } return ValueByte.get((byte) (value / other.value)); }
@Override public Value divide(Value v) { ValueByte other = (ValueByte) v; if (other.value == 0) { throw DbException.get(ErrorCode.DIVISION_BY_ZERO_1, getSQL()); } return ValueByte.get((byte) (value / other.value)); }
@Override public Value divide(Value v) { ValueByte other = (ValueByte) v; if (other.value == 0) { throw DbException.get(ErrorCode.DIVISION_BY_ZERO_1, getSQL()); } return ValueByte.get((byte) (value / other.value)); }
@Override public Value modulus(Value v) { ValueByte other = (ValueByte) v; if (other.value == 0) { throw DbException.get(ErrorCode.DIVISION_BY_ZERO_1, getSQL()); } return ValueByte.get((byte) (value % other.value)); }