public ome.model.meta.ExternalInfo newInstance() { return new ome.model.meta.ExternalInfo(); }
public void setEntityType(java.lang.String entityType) { if (! _loaded ) errorIfUnloaded(); this.entityType = (java.lang.String) entityType; } protected java.lang.String lsid = null;
public ExternalInfo( java.lang.Long _entityId,java.lang.String _entityType ) { this(null, true); setEntityId(_entityId); setEntityType(_entityType); }
@Override public Object retrieve(String field) { if (field == null) { return null; } else if (field.equals(ID)) { return getId(); } else if (field.equals(ENTITYID)) { return getEntityId(); } else if (field.equals(ENTITYTYPE)) { return getEntityType(); } else if (field.equals(LSID)) { return getLsid(); } else if (field.equals(UUID)) { return getUuid(); } else if (field.equals(DETAILS)) { return getDetails(); } else { if (_dynamicFields != null) { return _dynamicFields.get(field); } return null; } }
@Override public void putAt(String field, Object value) { if (field == null) { return; } else if (field.equals(ID)) { setId((Long) value); } else if (field.equals(ENTITYID)) { setEntityId((java.lang.Long)value); } else if (field.equals(ENTITYTYPE)) { setEntityType((java.lang.String)value); } else if (field.equals(LSID)) { setLsid((java.lang.String)value); } else if (field.equals(UUID)) { setUuid((java.lang.String)value); } else if (field.equals(DETAILS)) { setDetails((ome.model.internal.Details)value); } else { if (_dynamicFields == null) { _dynamicFields = new java.util.HashMap<String, Object>(); } _dynamicFields.put(field,value); } }
/** * Main constructor. */ public ExternalInfo (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(); } }
/** * 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(); }
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()); }
public void setEntityId(java.lang.Long entityId) { if (! _loaded ) errorIfUnloaded(); this.entityId = (java.lang.Long) entityId; } protected java.lang.String entityType = null;
public ome.model.meta.ExternalInfo proxy() { return new ome.model.meta.ExternalInfo(this.id, false); }
/** * Use the {@link ome.model.internal.Details#copy(ome.model.internal.Details)} * or {@link ome.model.internal.Details#shallowCopy(ome.model.internal.Details)} * methods to set the {@link Details} instance instead. */ protected void setDetails(ome.model.internal.Details details) { if (! _loaded ) errorIfUnloaded(); this.details = (Details) details; }
public void setLsid(java.lang.String lsid) { if (! _loaded ) errorIfUnloaded(); this.lsid = (java.lang.String) lsid; } protected java.lang.String uuid = null;
public void setUuid(java.lang.String uuid) { if (! _loaded ) errorIfUnloaded(); this.uuid = (java.lang.String) uuid; } protected ome.model.internal.Details details = new Details();
/** * Simple field ome.model.meta.ExternalInfo.entityType (java.lang.String) */ // No @Type annotation @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.TOKENIZED, name="combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=false, unique=false, name="entityType", updatable=false) public java.lang.String getEntityType() { if (! _loaded ) errorIfUnloaded(); return this.entityType; }
/** * Simple field ome.model.meta.ExternalInfo.lsid (java.lang.String) */ // No @Type annotation @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.TOKENIZED, name="combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=true, unique=false, name="lsid", updatable=false) public java.lang.String getLsid() { if (! _loaded ) errorIfUnloaded(); return this.lsid; }
/** * Simple field ome.model.meta.ExternalInfo.entityId (java.lang.Long) */ // No @Type annotation @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name="combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=false, unique=false, name="entityId", updatable=false) public java.lang.Long getEntityId() { if (! _loaded ) errorIfUnloaded(); return this.entityId; }
/** * Simple field ome.model.meta.ExternalInfo.uuid (java.lang.String) */ // No @Type annotation @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.TOKENIZED, name="combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=true, unique=false, name="uuid", updatable=false) public java.lang.String getUuid() { if (! _loaded ) errorIfUnloaded(); return this.uuid; }
@Override public ome.model.internal.Details getDetails() { if (! _loaded ) errorIfUnloaded(); return this.details;