.. java:import:: org.apache.commons.lang StringUtils .. java:import:: org.motechproject.mds.dto LookupDto .. java:import:: org.motechproject.mds.dto LookupFieldDto .. java:import:: org.motechproject.mds.util LookupName .. java:import:: org.motechproject.mds.util ValidationUtil .. java:import:: javax.jdo.annotations IdGeneratorStrategy .. java:import:: javax.jdo.annotations IdentityType .. java:import:: javax.jdo.annotations Join .. java:import:: javax.jdo.annotations PersistenceCapable .. java:import:: javax.jdo.annotations Persistent .. java:import:: javax.jdo.annotations PrimaryKey .. java:import:: java.util ArrayList .. java:import:: java.util Collections .. java:import:: java.util HashMap .. java:import:: java.util List .. java:import:: java.util Map .. java:import:: java.util Objects Lookup ====== .. java:package:: org.motechproject.mds.domain :noindex: .. java:type:: @PersistenceCapable public class Lookup The \ ``Lookup``\ class contains information about single lookup Constructors ------------ Lookup ^^^^^^ .. java:constructor:: public Lookup() :outertype: Lookup Lookup ^^^^^^ .. java:constructor:: public Lookup(String lookupName, boolean singleObjectReturn, boolean exposedViaRest, List fields) :outertype: Lookup Lookup ^^^^^^ .. java:constructor:: public Lookup(String lookupName, boolean singleObjectReturn, boolean exposedViaRest, List fields, boolean readOnly, String methodName) :outertype: Lookup Lookup ^^^^^^ .. java:constructor:: public Lookup(String lookupName, boolean singleObjectReturn, boolean exposedViaRest, List fields, boolean readOnly, String methodName, List rangeLookupFields, List setLookupFields, Map customOperators) :outertype: Lookup Lookup ^^^^^^ .. java:constructor:: public Lookup(String lookupName, boolean singleObjectReturn, boolean exposedViaRest, List fields, boolean readOnly, String methodName, List rangeLookupFields, List setLookupFields, Map customOperators, Map useGenericParams) :outertype: Lookup Lookup ^^^^^^ .. java:constructor:: public Lookup(String lookupName, boolean singleObjectReturn, boolean exposedViaRest, List fields, Entity entity) :outertype: Lookup Lookup ^^^^^^ .. java:constructor:: public Lookup(LookupDto lookupDto, List lookupFields) :outertype: Lookup Methods ------- copy ^^^^ .. java:method:: public Lookup copy(List fields) :outertype: Lookup getCustomOperators ^^^^^^^^^^^^^^^^^^ .. java:method:: public Map getCustomOperators() :outertype: Lookup getEntity ^^^^^^^^^ .. java:method:: public Entity getEntity() :outertype: Lookup getFields ^^^^^^^^^ .. java:method:: public List getFields() :outertype: Lookup getId ^^^^^ .. java:method:: public Long getId() :outertype: Lookup getLookupFieldById ^^^^^^^^^^^^^^^^^^ .. java:method:: public final Field getLookupFieldById(Long id) :outertype: Lookup getLookupFieldByName ^^^^^^^^^^^^^^^^^^^^ .. java:method:: public final Field getLookupFieldByName(String name) :outertype: Lookup getLookupName ^^^^^^^^^^^^^ .. java:method:: public String getLookupName() :outertype: Lookup getMethodName ^^^^^^^^^^^^^ .. java:method:: public String getMethodName() :outertype: Lookup getRangeLookupFields ^^^^^^^^^^^^^^^^^^^^ .. java:method:: public final List getRangeLookupFields() :outertype: Lookup getSetLookupFields ^^^^^^^^^^^^^^^^^^ .. java:method:: public final List getSetLookupFields() :outertype: Lookup getUseGenericParams ^^^^^^^^^^^^^^^^^^^ .. java:method:: public Map getUseGenericParams() :outertype: Lookup isExposedViaRest ^^^^^^^^^^^^^^^^ .. java:method:: public boolean isExposedViaRest() :outertype: Lookup isRangeParam ^^^^^^^^^^^^ .. java:method:: public boolean isRangeParam(Field field) :outertype: Lookup isReadOnly ^^^^^^^^^^ .. java:method:: public boolean isReadOnly() :outertype: Lookup isSetParam ^^^^^^^^^^ .. java:method:: public boolean isSetParam(Field field) :outertype: Lookup isSingleObjectReturn ^^^^^^^^^^^^^^^^^^^^ .. java:method:: public boolean isSingleObjectReturn() :outertype: Lookup setCustomOperators ^^^^^^^^^^^^^^^^^^ .. java:method:: public void setCustomOperators(Map customOperators) :outertype: Lookup setEntity ^^^^^^^^^ .. java:method:: public void setEntity(Entity entity) :outertype: Lookup setExposedViaRest ^^^^^^^^^^^^^^^^^ .. java:method:: public void setExposedViaRest(boolean exposedViaRest) :outertype: Lookup setFields ^^^^^^^^^ .. java:method:: public void setFields(List fields) :outertype: Lookup setId ^^^^^ .. java:method:: public void setId(Long id) :outertype: Lookup setLookupName ^^^^^^^^^^^^^ .. java:method:: public final void setLookupName(String lookupName) :outertype: Lookup setMethodName ^^^^^^^^^^^^^ .. java:method:: public void setMethodName(String methodName) :outertype: Lookup setRangeLookupFields ^^^^^^^^^^^^^^^^^^^^ .. java:method:: public void setRangeLookupFields(List rangeLookupFields) :outertype: Lookup setReadOnly ^^^^^^^^^^^ .. java:method:: public void setReadOnly(boolean readOnly) :outertype: Lookup setSetLookupFields ^^^^^^^^^^^^^^^^^^ .. java:method:: public void setSetLookupFields(List setLookupFields) :outertype: Lookup setSingleObjectReturn ^^^^^^^^^^^^^^^^^^^^^ .. java:method:: public void setSingleObjectReturn(boolean singleObjectReturn) :outertype: Lookup setUseGenericParams ^^^^^^^^^^^^^^^^^^^ .. java:method:: public void setUseGenericParams(Map useGenericParams) :outertype: Lookup toDto ^^^^^ .. java:method:: public LookupDto toDto() :outertype: Lookup update ^^^^^^ .. java:method:: public final void update(LookupDto lookupDto, List lookupFields) :outertype: Lookup