Package ome.model.meta
Class Share
- java.lang.Object
-
- ome.model.meta.Session
-
- ome.model.meta.Share
-
- All Implemented Interfaces:
java.io.Serializable
,IAnnotated
,IGlobal
,IMutable
,IObject
,Filterable
@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class Share extends Session implements java.io.Serializable, IObject, IGlobal, IMutable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ome.model.meta.Session
Session.Details
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Boolean
active
static java.lang.String
ACTIVE
protected byte[]
data
static java.lang.String
DATA
static java.util.Set<java.lang.String>
FIELDS
protected ExperimenterGroup
group
static java.lang.String
GROUP
protected java.lang.Long
itemCount
static java.lang.String
ITEMCOUNT
-
Fields inherited from class ome.model.meta.Session
_dynamicFields, _loaded, annotationLinks, ANNOTATIONLINKS, ANNOTATIONLINKSCOUNTPEROWNER, closed, CLOSED, defaultEventType, DEFAULTEVENTTYPE, details, DETAILS, EVENT_FILTER_ANNOTATIONLINKS, events, EVENTS, GROUP_FILTER_ANNOTATIONLINKS, id, ID, message, MESSAGE, node, NODE, owner, OWNER, OWNER_FILTER_ANNOTATIONLINKS, PERMS_FILTER_ANNOTATIONLINKS, started, STARTED, sudoer, SUDOER, timeToIdle, TIMETOIDLE, timeToLive, TIMETOLIVE, userAgent, USERAGENT, userIP, USERIP, uuid, UUID, version, VERSION
-
-
Constructor Summary
Constructors Modifier Constructor Description Share()
protected
Share(java.lang.Long id)
Share(java.lang.Long id, boolean loaded)
Main constructor.Share(ExperimenterGroup _group, java.lang.Long _itemCount, java.lang.Boolean _active, byte[] _data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptFilter(Filter __filter)
java.util.Set<java.lang.String>
fields()
returns a Set of field names that belong to this classjava.lang.Boolean
getActive()
Simple field ome.model.meta.Share.active (java.lang.Boolean)byte[]
getData()
Simple field ome.model.meta.Share.data (byte[])ExperimenterGroup
getGroup()
Many-to-one field ome.model.meta.Share.group (ome.model.meta.ExperimenterGroup)java.lang.Long
getItemCount()
Simple field ome.model.meta.Share.itemCount (java.lang.Long)boolean
isValid()
calls the class-specific validator for this instance and returns the value fromValidation.isValid()
Share
newInstance()
Share
proxy()
void
putAt(java.lang.String field, java.lang.Object value)
stores a value in this instance.java.lang.Object
retrieve(java.lang.String field)
retrieves a value from this instance.void
setActive(java.lang.Boolean active)
void
setData(byte[] data)
void
setGroup(ExperimenterGroup group)
void
setItemCount(java.lang.Long itemCount)
protected void
throwNullCollectionException(java.lang.String propertyName)
java.lang.String
toString()
void
unload()
set the loaded field to false, and set all non-ID fields to null.Validation
validate()
calls the class-specific validator for this instance and returns theValidation
object.-
Methods inherited from class ome.model.meta.Session
addEvent, addEventSet, addSessionAnnotationLink, addSessionAnnotationLink, addSessionAnnotationLinkSet, clearAnnotationLinks, clearEvents, collectAnnotationLinks, collectEvents, eachLinkedAnnotation, errorIfUnloaded, findSessionAnnotationLink, getAnnotationLinks, getAnnotationLinksCountPerOwner, getClosed, getDefaultEventType, getDetails, getEvents, getGraphHolder, getId, getMessage, getNode, getOwner, getStarted, getSudoer, getTimeToIdle, getTimeToLive, getUserAgent, getUserIP, getUuid, getVersion, isLoaded, iterateAnnotationLinks, iterateEvents, linkAnnotation, linkedAnnotationIterator, linkedAnnotationList, removeEvent, removeEventSet, removeSessionAnnotationLink, removeSessionAnnotationLink, removeSessionAnnotationLinkSet, setAnnotationLinks, setAnnotationLinksCountPerOwner, setClosed, setDefaultEventType, setDetails, setEvents, setId, setMessage, setNode, setOwner, setStarted, setSudoer, setTimeToIdle, setTimeToLive, setUserAgent, setUserIP, setUuid, setVersion, sizeOfAnnotationLinks, sizeOfEvents, unlinkAnnotation, unmodifiableAnnotationLinks, unmodifiableEvents
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ome.model.IMutable
getVersion, setVersion
-
Methods inherited from interface ome.model.IObject
getDetails, getGraphHolder, getId, isLoaded, setId
-
-
-
-
Field Detail
-
group
protected ExperimenterGroup group
-
itemCount
protected java.lang.Long itemCount
-
active
protected java.lang.Boolean active
-
data
protected byte[] data
-
GROUP
public static final java.lang.String GROUP
- See Also:
- Constant Field Values
-
ITEMCOUNT
public static final java.lang.String ITEMCOUNT
- See Also:
- Constant Field Values
-
ACTIVE
public static final java.lang.String ACTIVE
- See Also:
- Constant Field Values
-
DATA
public static final java.lang.String DATA
- See Also:
- Constant Field Values
-
FIELDS
public static final java.util.Set<java.lang.String> FIELDS
-
-
Constructor Detail
-
Share
public Share()
-
Share
protected Share(java.lang.Long id)
-
Share
public Share(java.lang.Long id, boolean loaded)
Main constructor.
-
Share
public Share(ExperimenterGroup _group, java.lang.Long _itemCount, java.lang.Boolean _active, byte[] _data)
-
-
Method Detail
-
getGroup
public ExperimenterGroup getGroup()
Many-to-one field ome.model.meta.Share.group (ome.model.meta.ExperimenterGroup)
-
setGroup
public void setGroup(ExperimenterGroup group)
-
getItemCount
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Long getItemCount()
Simple field ome.model.meta.Share.itemCount (java.lang.Long)
-
setItemCount
public void setItemCount(java.lang.Long itemCount)
-
getActive
public java.lang.Boolean getActive()
Simple field ome.model.meta.Share.active (java.lang.Boolean)
-
setActive
public void setActive(java.lang.Boolean active)
-
getData
public byte[] getData()
Simple field ome.model.meta.Share.data (byte[])
-
setData
public void setData(byte[] data)
-
isValid
public boolean isValid()
Description copied from interface:IObject
calls the class-specific validator for this instance and returns the value fromValidation.isValid()
-
validate
public Validation validate()
Description copied from interface:IObject
calls the class-specific validator for this instance and returns theValidation
object.
-
newInstance
public Share newInstance()
- Overrides:
newInstance
in classSession
-
acceptFilter
public boolean acceptFilter(Filter __filter)
- Specified by:
acceptFilter
in interfaceFilterable
- Overrides:
acceptFilter
in classSession
-
fields
public java.util.Set<java.lang.String> fields()
Description copied from interface:IObject
returns a Set of field names that belong to this class
-
retrieve
public java.lang.Object retrieve(java.lang.String field)
Description copied from interface:IObject
retrieves a value from this instance. Values forfield
which match a field of this instance will be delegated to the accessors. Otherwise, values will be retrieved from a lazy-loaded map filled by calls toIObject.putAt(String, Object)
-
putAt
public void putAt(java.lang.String field, java.lang.Object value)
Description copied from interface:IObject
stores a value in this instance. Values forfield
which match a field of this instance will be delegated to the accessors. Otherwise, values will be stored in a lazy-loaded map.
-
unload
public void unload()
Description copied from interface:IObject
set the loaded field to false, and set all non-ID fields to null. Subsequent calls to all accessors other than getId/setId will throw an ApiUsageException
-
throwNullCollectionException
protected void throwNullCollectionException(java.lang.String propertyName)
- Overrides:
throwNullCollectionException
in classSession
-
-