public void toString(StringBuilder sb) { sb.append(";perm="); sb.append(_perms == null ? null : _perms.toString()); if (_externalInfo != null) { sb.append(";external=" + _externalInfo.getId()); } sb.append("user="); sb.append(_owner == null ? null : _owner.getId()); sb.append(";group="); sb.append(_group == null ? null : _group.getId()); sb.append(";create="); sb.append(_creation == null ? null : _creation.getId()); sb.append(";update="); sb.append(_update == null ? null : _update.getId()); }
return null; } else if (field.equals(ID)) { return getId(); } else if (field.equals(STATUS)) { return getStatus();
public void setEvent(Event event) { this.event = event; this.ceId = event.getId(); if (event.isLoaded()) { if (event.getType().isLoaded()) { this.ceType = event.getType().getValue(); } } }
public long setStatsInfo(Channel ch, StatsInfo si) { final Details d = ch.getDetails(); final long id = nextValue("seq_statsinfo", 1); _jdbc().update(_lookup("stats_info_creation"), //$NON-NLS-1$ id, Utils.internalForm(d.getPermissions()), si.getGlobalMax(), si.getGlobalMin(), d.getCreationEvent().getId(), d.getGroup().getId(), d.getOwner().getId(), d.getUpdateEvent().getId()); _jdbc().update(_lookup("stats_info_set_on_channel"), //$NON-NLS-1$ id, ch.getId()); return id; }
/** * Method which takes all the fields of the given {@link Details} instance * and sets unloaded proxies of them into the current instance. */ public void shallowCopy(Details copy) { if (copy == null) { throw new IllegalArgumentException("argument may not be null"); } setOwner(copy.getOwner() == null ? null : new Experimenter(copy .getOwner().getId(), false)); setGroup(copy.getGroup() == null ? null : new ExperimenterGroup(copy .getGroup().getId(), false)); setCreationEvent(copy.getCreationEvent() == null ? null : new Event( copy.getCreationEvent().getId(), false)); setPermissions(copy.getPermissions() == null ? null : new Permissions(copy.getPermissions())); setExternalInfo(copy.getExternalInfo() == null ? null : new ExternalInfo(copy.getExternalInfo().getId(), false)); setUpdateEvent(copy.getUpdateEvent() == null ? null : new Event(copy .getUpdateEvent().getId(), false)); _filteredCollections = copy.filteredSet(); }