Package org.adempiere.pipo2
Class POFinder
- java.lang.Object
-
- org.adempiere.pipo2.POFinder
-
public class POFinder extends Object
- Author:
- hengsin
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends PO>
TfindPO(PIPOContext ctx, Element element)Find po by uuid or idstatic StringgetTargetUUID(Properties ctx, String tableName, String uuid, String trxName)static voidupdateUUIDMap(PIPOContext ctx, String tableName, String uuid, String targetUUID)
-
-
-
Method Detail
-
getTargetUUID
public static String getTargetUUID(Properties ctx, String tableName, String uuid, String trxName)
- Parameters:
ctx-tableName-uuid-trxName-- Returns:
- target uuid
-
updateUUIDMap
public static void updateUUIDMap(PIPOContext ctx, String tableName, String uuid, String targetUUID)
- Parameters:
ctx-tableName-uuid-targetUUID-
-
findPO
public static <T extends PO> T findPO(PIPOContext ctx, Element element)
Find po by uuid or id- Type Parameters:
T-- Parameters:
ctx-element-- Returns:
- T
-
-