Package org.intermine.model
Interface FastPathObject
-
- All Known Subinterfaces:
InterMineFastPathObject
,InterMineObject
- All Known Implementing Classes:
Attribute
,Item
,PermanentToken
,ProxyReference
,Reference
,ReferenceList
,SavedBag
,SavedQuery
,SavedTemplateQuery
,Tag
,TemplateSummary
,UserProfile
public interface FastPathObject
A root interface for all objects that can be stored in a InterMine database.- Author:
- Matthew Wakeling, Andrew Varley
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
getFieldProxy(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.Object
getFieldValue(java.lang.String fieldName)
Returns the value of a field by name.void
setFieldValue(java.lang.String fieldName, java.lang.Object value)
Sets the value of a field by name.
-
-
-
Method Detail
-
getFieldValue
java.lang.Object getFieldValue(java.lang.String fieldName) throws java.lang.IllegalAccessException
Returns the value of a field by name.- Parameters:
fieldName
- the name of the field- Returns:
- the value of the field
- Throws:
java.lang.IllegalAccessException
- when something goes wrong
-
getFieldProxy
java.lang.Object getFieldProxy(java.lang.String fieldName) throws java.lang.IllegalAccessException
Returns the value of a field without dereferencing any ProxyReference objects.- 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
void setFieldValue(java.lang.String fieldName, java.lang.Object value)
Sets the value of a field by name.- Parameters:
fieldName
- the name of the fieldvalue
- the value of the field, or a ProxyReference representing it
-
getFieldType
java.lang.Class<?> getFieldType(java.lang.String fieldName)
Returns the type of a field by name.- Parameters:
fieldName
- the name of the field- Returns:
- the type of the field
-
-