Class ReferenceUtils

java.lang.Object
org.adempiere.pipo2.ReferenceUtils

public class ReferenceUtils extends Object
  • Constructor Details

    • ReferenceUtils

      public ReferenceUtils()
  • Method Details

    • resolveReferenceAsInt

      public static int resolveReferenceAsInt(Properties ctx, Element e, String trxName)
      Parameters:
      ctx -
      e -
      trxName -
      Returns:
      positive id if found
    • resolveReference

      public static Object resolveReference(Properties ctx, Element e, String trxName)
      Parameters:
      ctx -
      e -
      trxName -
      Returns:
      positive id if found
    • resolveReferenceMulti

      public static Object resolveReferenceMulti(Properties ctx, Element e, String trxName)
      Parameters:
      ctx -
      e -
      trxName -
      Returns:
      list of IDs or UUIDs if found
    • isLookup

      public static boolean isLookup(Element element)
    • isIDLookup

      public static boolean isIDLookup(Element element)
    • isUUIDLookup

      public static boolean isUUIDLookup(Element element)
    • getTableReference

      public static String getTableReference(String tableName, int id, AttributesImpl atts, String trxName)
    • getTableReferenceUUID

      public static String getTableReferenceUUID(String tableName, String uuid, AttributesImpl atts)
    • getTableReferenceMulti

      public static String getTableReferenceMulti(String tableName, String values, AttributesImpl atts, String trxName)