Package org.intermine.api.userprofile
Class SavedBag
- java.lang.Object
-
- org.intermine.api.userprofile.SavedBag
-
- All Implemented Interfaces:
FastPathObject,InterMineFastPathObject,InterMineObject
public class SavedBag extends java.lang.Object implements InterMineObject
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.DatedateCreatedprotected java.lang.Stringdescriptionprotected java.lang.Integeridprotected java.lang.Stringnameprotected intosbIdprotected java.lang.Stringstateprotected java.lang.Stringtypeprotected InterMineObjectuserProfile
-
Constructor Summary
Constructors Constructor Description SavedBag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCollectionElement(java.lang.String fieldName, InterMineObject element)booleanequals(java.lang.Object o)java.util.DategetDateCreated()java.lang.StringgetDescription()java.lang.Class<?>getElementType(java.lang.String fieldName)Returns the element type of a collection by name.java.lang.ObjectgetFieldProxy(java.lang.String fieldName)Returns the value of a field without dereferencing any ProxyReference objects.java.lang.Class<?>getFieldType(java.lang.String fieldName)Returns the type of a field by name.java.lang.ObjectgetFieldValue(java.lang.String fieldName)Returns the value of a field by name.java.lang.IntegergetId()Getter for the ID field - ensures that every object in the database has an ID.java.lang.StringgetName()StringConstructorgetoBJECT()Returns the NotXml serialised version of this object.intgetOsbId()java.lang.StringgetState()java.lang.StringgetType()UserProfilegetUserProfile()inthashCode()InterMineObjectproxGetUserProfile()voidproxyUserProfile(ProxyReference userProfile)voidsetDateCreated(java.util.Date dateCreated)voidsetDescription(java.lang.String description)voidsetFieldValue(java.lang.String fieldName, java.lang.Object value)Sets the value of a field by name.voidsetId(java.lang.Integer id)Setter for the ID field.voidsetName(java.lang.String name)voidsetoBJECT(java.lang.String[] notXml, ObjectStore os)Sets the values of the fields to the values in the given split NotXml.voidsetoBJECT(java.lang.String notXml, ObjectStore os)Sets the values of the fields to the values in the given NotXml.voidsetOsbId(int osbId)voidsetState(java.lang.String state)voidsetType(java.lang.String type)voidsetUserProfile(UserProfile userProfile)java.lang.StringtoString()
-
-
-
Field Detail
-
name
protected java.lang.String name
-
type
protected java.lang.String type
-
description
protected java.lang.String description
-
dateCreated
protected java.util.Date dateCreated
-
osbId
protected int osbId
-
state
protected java.lang.String state
-
userProfile
protected InterMineObject userProfile
-
id
protected java.lang.Integer id
-
-
Method Detail
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getType
public java.lang.String getType()
-
setType
public void setType(java.lang.String type)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getDateCreated
public java.util.Date getDateCreated()
-
setDateCreated
public void setDateCreated(java.util.Date dateCreated)
-
getOsbId
public int getOsbId()
-
setOsbId
public void setOsbId(int osbId)
-
getState
public java.lang.String getState()
-
setState
public void setState(java.lang.String state)
-
getUserProfile
public UserProfile getUserProfile()
-
setUserProfile
public void setUserProfile(UserProfile userProfile)
-
proxyUserProfile
public void proxyUserProfile(ProxyReference userProfile)
-
proxGetUserProfile
public InterMineObject proxGetUserProfile()
-
getId
public java.lang.Integer getId()
Description copied from interface:InterMineObjectGetter for the ID field - ensures that every object in the database has an ID.- Specified by:
getIdin interfaceInterMineFastPathObject- Specified by:
getIdin interfaceInterMineObject- Returns:
- an Integer
-
setId
public void setId(java.lang.Integer id)
Description copied from interface:InterMineObjectSetter for the ID field.- Specified by:
setIdin interfaceInterMineFastPathObject- Specified by:
setIdin interfaceInterMineObject- Parameters:
id- an Integer
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getFieldValue
public java.lang.Object getFieldValue(java.lang.String fieldName) throws java.lang.IllegalAccessExceptionDescription copied from interface:FastPathObjectReturns the value of a field by name.- Specified by:
getFieldValuein interfaceFastPathObject- Parameters:
fieldName- the name of the field- Returns:
- the value of the field
- Throws:
java.lang.IllegalAccessException- when something goes wrong
-
getFieldProxy
public java.lang.Object getFieldProxy(java.lang.String fieldName) throws java.lang.IllegalAccessExceptionDescription copied from interface:FastPathObjectReturns the value of a field without dereferencing any ProxyReference objects.- Specified by:
getFieldProxyin interfaceFastPathObject- Parameters:
fieldName- the name of the field- Returns:
- the value of the field, or a ProxyReference representing it
- Throws:
java.lang.IllegalAccessException- when something goes wrong
-
setFieldValue
public void setFieldValue(java.lang.String fieldName, java.lang.Object value)Description copied from interface:FastPathObjectSets the value of a field by name.- Specified by:
setFieldValuein interfaceFastPathObject- Parameters:
fieldName- the name of the fieldvalue- the value of the field, or a ProxyReference representing it
-
getFieldType
public java.lang.Class<?> getFieldType(java.lang.String fieldName)
Description copied from interface:FastPathObjectReturns the type of a field by name.- Specified by:
getFieldTypein interfaceFastPathObject- Parameters:
fieldName- the name of the field- Returns:
- the type of the field
-
getoBJECT
public StringConstructor getoBJECT()
Description copied from interface:InterMineObjectReturns the NotXml serialised version of this object.- Specified by:
getoBJECTin interfaceInterMineFastPathObject- Specified by:
getoBJECTin interfaceInterMineObject- Returns:
- a StringConstructor containing the NotXml
-
setoBJECT
public void setoBJECT(java.lang.String notXml, ObjectStore os)Description copied from interface:InterMineObjectSets the values of the fields to the values in the given NotXml.- Specified by:
setoBJECTin interfaceInterMineObject- Parameters:
notXml- a String containing NotXml for this classos- an ObjectStore from which to create proxies
-
setoBJECT
public void setoBJECT(java.lang.String[] notXml, ObjectStore os)Description copied from interface:InterMineObjectSets the values of the fields to the values in the given split NotXml.- Specified by:
setoBJECTin interfaceInterMineObject- Parameters:
notXml- a String array containing the NotXml split with the delimiteros- an ObjectStore from which to create proxies
-
addCollectionElement
public void addCollectionElement(java.lang.String fieldName, InterMineObject element)
-
getElementType
public java.lang.Class<?> getElementType(java.lang.String fieldName)
Description copied from interface:InterMineObjectReturns the element type of a collection by name.- Specified by:
getElementTypein interfaceInterMineFastPathObject- Specified by:
getElementTypein interfaceInterMineObject- Parameters:
fieldName- the name of the collection- Returns:
- the type of the elements of the collection
-
-