H - type of owning objectR - Type of remote objectT - target type of accessorpublic abstract class RemoteSQLValue<H extends uk.ac.ed.epcc.webapp.model.data.DataObject,R extends uk.ac.ed.epcc.webapp.model.data.DataObject,T>
extends java.lang.Object
implements uk.ac.ed.epcc.webapp.jdbc.expr.SQLValue<T>, uk.ac.ed.epcc.webapp.jdbc.expr.FilterProvider<H,T>
| Modifier and Type | Field and Description |
|---|---|
static uk.ac.ed.epcc.webapp.Feature |
CACHE_REMOTE_ACCESSOR_FEATURE |
| Constructor and Description |
|---|
RemoteSQLValue(uk.ac.ed.epcc.webapp.AppContext c,
uk.ac.ed.epcc.webapp.model.data.IndexedFieldValue<H,R> a) |
| Modifier and Type | Method and Description |
|---|---|
int |
add(java.lang.StringBuilder sb,
boolean qualify) |
uk.ac.ed.epcc.webapp.AppContext |
getContext() |
java.util.List<uk.ac.ed.epcc.webapp.jdbc.filter.PatternArgument> |
getParameters(java.util.List<uk.ac.ed.epcc.webapp.jdbc.filter.PatternArgument> list) |
uk.ac.ed.epcc.webapp.model.data.IndexedFieldValue<H,R> |
getReferenceValue()
SQLValue for remote object Reference
|
abstract T |
getRemoteValue(R o)
Get the remote value from the referenced object
|
abstract T |
getRemoteValueFromNull()
get the remote value corresponding to a null reference.
|
T |
getRemoteValueFromReference(uk.ac.ed.epcc.webapp.model.data.reference.IndexedReference<R> ref) |
uk.ac.ed.epcc.webapp.jdbc.filter.SQLFilter |
getRequiredFilter() |
T |
makeObject(java.sql.ResultSet rs,
int pos) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final uk.ac.ed.epcc.webapp.Feature CACHE_REMOTE_ACCESSOR_FEATURE
public RemoteSQLValue(uk.ac.ed.epcc.webapp.AppContext c,
uk.ac.ed.epcc.webapp.model.data.IndexedFieldValue<H,R> a)
throws PropertyCastException
PropertyCastExceptionpublic uk.ac.ed.epcc.webapp.model.data.IndexedFieldValue<H,R> getReferenceValue()
public T getRemoteValueFromReference(uk.ac.ed.epcc.webapp.model.data.reference.IndexedReference<R> ref)
public abstract T getRemoteValue(R o)
o - public abstract T getRemoteValueFromNull()
public uk.ac.ed.epcc.webapp.AppContext getContext()
public final T makeObject(java.sql.ResultSet rs, int pos) throws uk.ac.ed.epcc.webapp.jdbc.exception.DataException
makeObject in interface uk.ac.ed.epcc.webapp.jdbc.expr.SQLValue<T>uk.ac.ed.epcc.webapp.jdbc.exception.DataExceptionpublic int add(java.lang.StringBuilder sb,
boolean qualify)
add in interface uk.ac.ed.epcc.webapp.jdbc.expr.SQLValue<T>public java.util.List<uk.ac.ed.epcc.webapp.jdbc.filter.PatternArgument> getParameters(java.util.List<uk.ac.ed.epcc.webapp.jdbc.filter.PatternArgument> list)
getParameters in interface uk.ac.ed.epcc.webapp.jdbc.expr.SQLValue<T>public uk.ac.ed.epcc.webapp.jdbc.filter.SQLFilter getRequiredFilter()
getRequiredFilter in interface uk.ac.ed.epcc.webapp.jdbc.expr.SQLValue<T>