Compiere 3.1

org.compiere.framework
Class ZoomTarget

java.lang.Object
  extended by org.compiere.framework.ZoomTarget

public class ZoomTarget
extends Object

Zoom Target identifier. Used in Zoom across (Where used) and Zoom into

Version:
$Id: ZoomTarget.java,v 1.0 2007/10/17 00:51:27 nnayak Exp $
Author:
Jorg Janke

Constructor Summary
ZoomTarget()
           
 
Method Summary
static boolean evaluateWhereClause(ArrayList<ValueNamePair> columnValues, String whereClause)
          Evaluate where clause
static int getZoomAD_Window_ID(String targetTableName, int curWindow_ID, String targetWhereClause, boolean isSOTrx)
          Get the Zoom Into Target for a table.
static ArrayList<KeyNamePair> getZoomTargets(String targetTableName, int curWindow_ID, String targetWhereClause)
          Get the Zoom Across Targets for a table.
static ArrayList<KeyNamePair> getZoomTargets(String targetTableName, int curWindow_ID, String targetWhereClause, Object[] params)
          Get the Zoom Across Targets for a table.
static void parseColumns(ArrayList<String> list, String parseString)
          Parse String and add columnNames to the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZoomTarget

public ZoomTarget()
Method Detail

parseColumns

public static void parseColumns(ArrayList<String> list,
                                String parseString)
Parse String and add columnNames to the list. String should be of the format ColumnName= AND ColumnName2=

Parameters:
list - list to be added to
parseString - string to parse for variables

evaluateWhereClause

public static boolean evaluateWhereClause(ArrayList<ValueNamePair> columnValues,
                                          String whereClause)
Evaluate where clause

Parameters:
columnValues - columns with the values
whereClause - where clause
Returns:
true if where clause evaluates to true

getZoomAD_Window_ID

public static int getZoomAD_Window_ID(String targetTableName,
                                      int curWindow_ID,
                                      String targetWhereClause,
                                      boolean isSOTrx)
Get the Zoom Into Target for a table.

Parameters:
targetTableName - for Target Table for zoom
curWindow_ID - Window from where zoom is invoked
targetWhereClause - Where Clause in the format "Record_ID="
isSOTrx - Sales contex of window from where zoom is invoked

getZoomTargets

public static ArrayList<KeyNamePair> getZoomTargets(String targetTableName,
                                                    int curWindow_ID,
                                                    String targetWhereClause,
                                                    Object[] params)
Get the Zoom Across Targets for a table.

Parameters:
targetTableName - for Target Table for zoom
curWindow_ID - Window from where zoom is invoked
targetWhereClause - Where Clause in the format "WHERE Record_ID=?"
params[] - parameter to whereClause. Should be the Record_ID

getZoomTargets

public static ArrayList<KeyNamePair> getZoomTargets(String targetTableName,
                                                    int curWindow_ID,
                                                    String targetWhereClause)
Get the Zoom Across Targets for a table.

Parameters:
targetTableName - for Target Table for zoom
curWindow_ID - Window from where zoom is invoked
targetWhereClause - Where Clause in the format "Record_ID="

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.