예제 #1
0
  public Object readSet(DbReadContext ctx, EntityBean bean) throws SQLException {

    try {
      Object value = scalarType.read(ctx.getDataReader());
      if (bean != null) {
        setValue(bean, value);
      }
      return value;
    } catch (Exception e) {
      throw new PersistenceException("Error readSet on " + descriptor + "." + name, e);
    }
  }
예제 #2
0
 public Object read(DbReadContext ctx) throws SQLException {
   return scalarType.read(ctx.getDataReader());
 }