public ColumnExpression(PDatum datum) {
   this.type = datum.getDataType();
   this.isNullable = datum.isNullable();
   this.maxLength = datum.getMaxLength();
   this.scale = datum.getScale();
   this.sortOrder = datum.getSortOrder();
 }
예제 #2
0
 public static int getFixedByteSize(PDatum e) {
   assert (e.getDataType().isFixedWidth());
   Integer maxLength = e.getMaxLength();
   return maxLength == null ? e.getDataType().getByteSize() : maxLength;
 }