Package org.adempiere.pipo2
Class ReferenceUtils
java.lang.Object
org.adempiere.pipo2.ReferenceUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getTableReference
(String tableName, int id, AttributesImpl atts, String trxName) static String
getTableReferenceMulti
(String tableName, String values, AttributesImpl atts, String trxName) static String
getTableReferenceUUID
(String tableName, String uuid, AttributesImpl atts) static boolean
isIDLookup
(Element element) static boolean
static boolean
isUUIDLookup
(Element element) static Object
resolveReference
(Properties ctx, Element e, String trxName) static int
resolveReferenceAsInt
(Properties ctx, Element e, String trxName) static Object
resolveReferenceMulti
(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)
-