@Updatable(false) @Insertable(false) @Label("Length") public String getShortLength() { if(getLength() == null) { return null; } String[] suffix = new String[] { "", "K", "M", "G", "T" }; java.text.DecimalFormat decimalFormat = new java.text.DecimalFormat("##0E0"); String result = decimalFormat.format(getLength()); int suffixIndex = Character.getNumericValue(result.charAt(result.length() - 1)) / 3; return result.replaceAll("E[0-9]", suffix[suffixIndex]); }
@Insertable(false) @Updatable(false) public String getHqlQuery() { return "from " + StringUtils.defaultIfEmpty(entityName, actualEntityName); }
@Label("Type") @Updatable(false) @Insertable(false) public Type getType() { return type; }
@Label("In primary key") @Updatable(false) @Insertable(false) public boolean isInPk() { return inPk; }
/** * @author Paolo Predonzani - paolo.predonzani@manydesigns.com * @author Angelo Lupo - angelo.lupo@manydesigns.com * @author Giampiero Granatella - giampiero.granatella@manydesigns.com * @author Alessio Stalla - alessio.stalla@manydesigns.com */ public class EditChildPage { public static final String copyright = "Copyright (C) 2005-2017 ManyDesigns srl"; @Updatable(false) @Insertable(false) public String name; public boolean active; @Label("embed.in.parent") public boolean embedded; @Label("show.in.navigation") public boolean showInNavigation; @Updatable(false) @Insertable(false) public String title; }
@Label("Null") @Insertable(false) @Updatable(false) public boolean isReallyNullable() { return isNullable(); }
@Override @FieldSize(4) @Updatable(false) @Insertable(false) public Integer getLength() { return super.getLength(); }
@Label("Autoincrement") @Insertable(false) @Updatable(false) public boolean isReallyAutoincrement() { return isAutoincrement(); }
@Override @Updatable(false) @Insertable(false) @Label("Name") public String getColumnName() { return super.getColumnName(); }
@Override @FieldSize(4) @Updatable(false) @Insertable(false) public Integer getScale() { return super.getScale(); }