@Summary(index = 0) public int getId() { return resourceId; }
index = field.getAnnotation(Summary.class).index(); } else if (property.getReadMethod() != null && property.getReadMethod().isAnnotationPresent(Summary.class)) { add = true; index = property.getReadMethod().getAnnotation(Summary.class).index(); if (property.getReadMethod() != null && property.getReadMethod().isAnnotationPresent(Summary.class)) { add = true; index = property.getReadMethod().getAnnotation(Summary.class).index();
@Summary(index = 3) public ResourceType getResourceType() { return resource.getResourceType(); }
@Summary(index = 1) public String getName() { return resource.getName(); }
@Summary(index = 2) public String getVersion() { return resource.getVersion(); }
@Summary(index = 2) public String getDescription() { return definition.getDescription(); }
@Summary(index = 1) public String getDescription() { return this.definition.getDescription(); }
@Summary(index = 0) public String getName() { return definition.getDisplayName(); }
@Summary(index = 1) public String getDisplayValue() { Object val = getValue(); if (val instanceof Number) { return MeasurementConverter.format(((Number) val).doubleValue(), getUnits(), true); } else { return String.valueOf(val); } }
@Summary(index = 0) public String getName() { return simpleName(this.definition.getDisplayName()); }
@Column(name = "ID", nullable = false) @GeneratedValue(strategy = GenerationType.AUTO, generator = "RHQ_RESOURCE_TYPE_ID_SEQ") @Summary(index = 0) private int id; @Summary(index = 1) private String name; @Summary(index = 2) private ResourceCategory category; @Summary(index = 3) private String plugin;
@GeneratedValue(strategy = GenerationType.AUTO, generator = "RHQ_RESOURCE_ID_SEQ") @Id @Summary(index = 0) private int id; @Summary(index = 1) private String name; @Summary(index = 2) private String version; @ManyToOne(optional = false) @Summary(index = 4) private ResourceType resourceType; @Summary(index = 3) private ResourceAvailability currentAvailability;