Package org.adempiere.pipo2
Class ReferenceUtils
java.lang.Object
org.adempiere.pipo2.ReferenceUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetTableReference(String tableName, int id, AttributesImpl atts, String trxName) static StringgetTableReferenceMulti(String tableName, String values, AttributesImpl atts, String trxName) static StringgetTableReferenceUUID(String tableName, String uuid, AttributesImpl atts) static booleanisIDLookup(Element element) static booleanstatic booleanisUUIDLookup(Element element) static ObjectresolveReference(Properties ctx, Element e, String trxName) static intresolveReferenceAsInt(Properties ctx, Element e, String trxName) static ObjectresolveReferenceMulti(Properties ctx, Element e, String trxName)
-
Constructor Details
-
ReferenceUtils
public ReferenceUtils()
-
-
Method Details
-
resolveReferenceAsInt
- Parameters:
ctx-e-trxName-- Returns:
- positive id if found
-
resolveReference
- Parameters:
ctx-e-trxName-- Returns:
- positive id if found
-
resolveReferenceMulti
- Parameters:
ctx-e-trxName-- Returns:
- list of IDs or UUIDs if found
-
isLookup
-
isIDLookup
-
isUUIDLookup
-
getTableReference
public static String getTableReference(String tableName, int id, AttributesImpl atts, String trxName) -
getTableReferenceUUID
-
getTableReferenceMulti
public static String getTableReferenceMulti(String tableName, String values, AttributesImpl atts, String trxName)
-