Package org.adempiere.pipo2
Class IDFinder
java.lang.Object
org.adempiere.pipo2.IDFinder
Utility class for the looking up of record id.
- Author:
- Low Heng Sin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static Object
findIdByColumn
(String tableName, String columnName, Object value, int AD_Client_ID, boolean ignorecase, String trxName) Get ID from column value for a table.static Object
findIdByColumn
(String tableName, String columnName, Object value, int clientId, String trxName) static Object
findIdByColumnAndParentId
(String tableName, String columnName, String name, String tableNameMaster, Object masterID, int AD_Client_ID, boolean ignoreCase, String trxName) Get ID from column value for a table with a parent id reference.static Object
findIdByColumnAndParentId
(String tableName, String columnName, String name, String tableNameMaster, Object masterID, int AD_Client_ID, String trxName) Get ID from column value for a table with a parent id reference.static Object
findIdByName
(String tableName, String name, int AD_Client_ID, String trxName) Get ID from Name for a table.static Object
findIdByNameAndParentId
(String tableName, String name, String tableNameMaster, Object masterID, int AD_Client_ID, String trxName) Get ID from Name for a table with a parent reference ID.static Object
findIdByNameAndParentName
(String tableName, String name, String tableNameMaster, String nameMaster, int AD_Client_ID, String trxName) Get ID from Name for a table with a parent name reference.
-
Constructor Details
-
IDFinder
public IDFinder()
-
-
Method Details
-
findIdByColumn
public static Object findIdByColumn(String tableName, String columnName, Object value, int AD_Client_ID, boolean ignorecase, String trxName) Get ID from column value for a table.- Parameters:
tableName
-columnName
-value
-AD_Client_ID
-ignorecase
-trxName
-- Returns:
-
findIdByColumn
-
findIdByNameAndParentName
public static Object findIdByNameAndParentName(String tableName, String name, String tableNameMaster, String nameMaster, int AD_Client_ID, String trxName) Get ID from Name for a table with a parent name reference.- Parameters:
tableName
-name
-tableNameMaster
-nameMaster
-trxName
-
-
findIdByColumnAndParentId
public static Object findIdByColumnAndParentId(String tableName, String columnName, String name, String tableNameMaster, Object masterID, int AD_Client_ID, String trxName) Get ID from column value for a table with a parent id reference.- Parameters:
tableName
-columnName
-name
-tableNameMaster
-masterID
-AD_Client_ID
-trxName
-- Returns:
-
findIdByColumnAndParentId
public static Object findIdByColumnAndParentId(String tableName, String columnName, String name, String tableNameMaster, Object masterID, int AD_Client_ID, boolean ignoreCase, String trxName) Get ID from column value for a table with a parent id reference.- Parameters:
tableName
-name
-tableNameMaster
-masterID
-trxName
-
-
findIdByNameAndParentId
public static Object findIdByNameAndParentId(String tableName, String name, String tableNameMaster, Object masterID, int AD_Client_ID, String trxName) Get ID from Name for a table with a parent reference ID.- Parameters:
tableName
-name
-tableNameMaster
-masterID
-trxName
-
-
findIdByName
Get ID from Name for a table.- Parameters:
tableName
-name
-AD_Client_ID
-trxName
-
-
clearIDCache
public static void clearIDCache()
-