public Object getAttributeValueFromObject(Object object) { if (((ForeignReferenceMapping)object).hasCustomSelectionQuery()) { return ((ForeignReferenceMapping)object).getSelectionQuery(); } return null; }
/** * PUBLIC: * This is a property on the mapping which will allow custom call to be * substituted for reading a reference object. */ public void setSelectionCall(Call call) { getSelectionQuery().setCall(call); setCustomSelectionQuery(getSelectionQuery()); }
public Object getAttributeValueFromObject(Object object) { if (((ForeignReferenceMapping)object).hasCustomSelectionQuery()) { return ((ForeignReferenceMapping)object).getSelectionQuery(); } return null; }
public Object getAttributeValueFromObject(Object object) { if (((ForeignReferenceMapping)object).hasCustomSelectionQuery()) { return ((ForeignReferenceMapping)object).getSelectionQuery(); } return null; }
public Object getAttributeValueFromObject(Object object) { if (((ForeignReferenceMapping)object).hasCustomSelectionQuery()) { return ((ForeignReferenceMapping)object).getSelectionQuery(); } return null; }
public Object getAttributeValueFromObject(Object object) { if (((ForeignReferenceMapping)object).hasCustomSelectionQuery()) { return ((ForeignReferenceMapping)object).getSelectionQuery(); } return null; }
/** * PUBLIC: * Sets the selection criteria to be used as a where clause to read * reference objects. This criteria is automatically generated by the * TopLink if not explicitly specified by the user. */ public void setSelectionCriteria(Expression anExpression) { getSelectionQuery().setSelectionCriteria(anExpression); }
/** * PUBLIC: * This is a property on the mapping which will allow custom SQL to be * substituted for reading a reference object. */ public void setSelectionSQLString(String sqlString) { getSelectionQuery().setSQLString(sqlString); setCustomSelectionQuery(getSelectionQuery()); }
/** * PUBLIC: * This is a property on the mapping which will allow custom call to be * substituted for reading a reference object. */ public void setSelectionCall(Call call) { getSelectionQuery().setCall(call); setCustomSelectionQuery(getSelectionQuery()); }
public Object getAttributeValueFromObject(Object object) { if (((ForeignReferenceMapping)object).hasCustomSelectionQuery()) { return ((ForeignReferenceMapping)object).getSelectionQuery(); } return null; }
/** * PUBLIC: * This is a property on the mapping which will allow custom call to be * substituted for reading a reference object. */ public void setSelectionCall(Call call) { getSelectionQuery().setCall(call); setCustomSelectionQuery(getSelectionQuery()); }
/** * PUBLIC: * Sets the selection criteria to be used as a where clause to read * reference objects. This criteria is automatically generated by the * TopLink if not explicitly specified by the user. */ public void setSelectionCriteria(Expression anExpression) { getSelectionQuery().setSelectionCriteria(anExpression); }
/** * PUBLIC: * This is a property on the mapping which will allow custom SQL to be * substituted for reading a reference object. */ public void setSelectionSQLString(String sqlString) { getSelectionQuery().setSQLString(sqlString); setCustomSelectionQuery(getSelectionQuery()); }
/** * PUBLIC: * Sets the selection criteria to be used as a where clause to read * reference objects. This criteria is automatically generated by the * TopLink if not explicitly specified by the user. */ public void setSelectionCriteria(Expression anExpression) { getSelectionQuery().setSelectionCriteria(anExpression); }
/** * PUBLIC: * This is a property on the mapping which will allow custom SQL to be * substituted for reading a reference object. */ public void setSelectionSQLString(String sqlString) { getSelectionQuery().setSQLString(sqlString); setCustomSelectionQuery(getSelectionQuery()); }
/** * PUBLIC: * Set the referenced class. */ public void setReferenceClass(Class referenceClass) { this.referenceClass = referenceClass; if (referenceClass != null) { setReferenceClassName(referenceClass.getName()); // Make sure the reference class of the selectionQuery is set. setSelectionQuery(getSelectionQuery()); } }
/** * PUBLIC: * Set the referenced class. */ public void setReferenceClass(Class referenceClass) { this.referenceClass = referenceClass; if (referenceClass != null) { setReferenceClassName(referenceClass.getName()); // Make sure the reference class of the selectionQuery is set. setSelectionQuery(getSelectionQuery()); } }
/** * PUBLIC: * Set the referenced class. */ public void setReferenceClass(Class referenceClass) { this.referenceClass = referenceClass; if (referenceClass != null) { setReferenceClassName(referenceClass.getName()); // Make sure the reference class of the selectionQuery is set. setSelectionQuery(getSelectionQuery()); } }
/** * INTERNAL: * The mapping clones itself to create deep copy. */ @Override public Object clone() { ForeignReferenceMapping clone = (ForeignReferenceMapping)super.clone(); clone.setIndirectionPolicy((IndirectionPolicy)indirectionPolicy.clone()); clone.setSelectionQuery((ReadQuery)getSelectionQuery().clone()); return clone; }
/** * INTERNAL: * The mapping clones itself to create deep copy. */ @Override public Object clone() { ForeignReferenceMapping clone = (ForeignReferenceMapping)super.clone(); clone.setIndirectionPolicy((IndirectionPolicy)indirectionPolicy.clone()); clone.setSelectionQuery((ReadQuery)getSelectionQuery().clone()); return clone; }