Adempiere 3.5.2a

org.adempiere.pipo
Class IDFinder

java.lang.Object
  extended by org.adempiere.pipo.IDFinder

public class IDFinder
extends Object

Utility class for the looking up of record id.

Author:
Low Heng Sin

Constructor Summary
IDFinder()
           
 
Method Summary
static int get_ID(String tableName, String name, int AD_Client_ID, String trxName)
          Get ID from Name for a table.
static int get_IDWithColumn(String tableName, String columnName, Object value, int AD_Client_ID, String trxName)
          Get ID from column value for a table.
static int get_IDWithMaster(String tableName, String name, String tableNameMaster, int masterID, String trxName)
          Get ID from Name for a table with a Master reference ID.
static int get_IDWithMaster(String tableName, String name, String tableNameMaster, String nameMaster, String trxName)
          Get ID from Name for a table with a Master reference.
static int get_IDWithMasterAndColumn(String tableName, String columnName, String name, String tableNameMaster, int masterID, String trxName)
          Get ID from Name for a table with a Master reference.
static int getIDbyName(String tableName, String name, int AD_Client_ID, String trxName)
          Get ID from Name for a table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDFinder

public IDFinder()
Method Detail

get_ID

public static int get_ID(String tableName,
                         String name,
                         int AD_Client_ID,
                         String trxName)
Get ID from Name for a table. TODO: substitute with PO.getAllIDs

Parameters:
tableName -
name -
AD_Client_ID -
trxName -

get_IDWithColumn

public static int get_IDWithColumn(String tableName,
                                   String columnName,
                                   Object value,
                                   int AD_Client_ID,
                                   String trxName)
Get ID from column value for a table.

Parameters:
tableName -
columName -
value -
AD_Client_ID -
trxName -

get_IDWithMaster

public static int get_IDWithMaster(String tableName,
                                   String name,
                                   String tableNameMaster,
                                   String nameMaster,
                                   String trxName)
Get ID from Name for a table with a Master reference.

Parameters:
tableName -
name -
tableNameMaster -
nameMaster -
trxName -

get_IDWithMasterAndColumn

public static int get_IDWithMasterAndColumn(String tableName,
                                            String columnName,
                                            String name,
                                            String tableNameMaster,
                                            int masterID,
                                            String trxName)
Get ID from Name for a table with a Master reference.

Parameters:
tableName -
name -
tableNameMaster -
masterID -
trxName -

get_IDWithMaster

public static int get_IDWithMaster(String tableName,
                                   String name,
                                   String tableNameMaster,
                                   int masterID,
                                   String trxName)
Get ID from Name for a table with a Master reference ID.

Parameters:
tableName -
name -
tableNameMaster -
masterID -
trxName -

getIDbyName

public static int getIDbyName(String tableName,
                              String name,
                              int AD_Client_ID,
                              String trxName)
Get ID from Name for a table. TODO: substitute with PO.getAllIDs

Parameters:
tableName -
name -
AD_Client_ID -
trxName -

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.