org.intermine.model
Interface FastPathObject

All Known Subinterfaces:
InterMineObject
All Known Implementing Classes:
ProxyReference

public interface FastPathObject

A root interface for all objects that can be stored in a InterMine database.


Method Summary
 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 field
value - 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