@Override public boolean acceptFilter(ome.util.Filter __filter){ try { this.id = (Long) __filter.filter(ID, this.id); this.value = (java.lang.String) __filter.filter(VALUE, this.value ); this.details = (ome.model.internal.Details) __filter.filter(DETAILS, this.details ); return true; } catch (RuntimeException re) { // ticket:1183 - Caused by Utils.trueClass(Annotation.class) if (re.getCause() instanceof InstantiationException) { this.unload(); return true; } else { throw re; } } }
/** * Main constructor. */ public JobStatus (Long id, boolean loaded) { setId(id); if (loaded) { getDetails().setContext(this); } else { if (this.id == null) { throw new ApiUsageException("Id cannot be null for a proxy"); } unload(); } }