Package org.openbravo.erpCommon.utility
Class ComboTableQueryData
- java.lang.Object
-
- org.openbravo.erpCommon.utility.ComboTableQueryData
-
- All Implemented Interfaces:
Serializable
,FieldProvider
public class ComboTableQueryData extends Object implements FieldProvider
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description String
clause
String
columnname
String
displayname
String
isvaluedisplayed
String
keyname
String
name
String
orderbyclause
String
reference
String
referenceid
String
referencevalue
String
required
String
tablename
String
whereclause
-
Constructor Summary
Constructors Constructor Description ComboTableQueryData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getBaseReferenceID(ConnectionProvider connectionProvider, String value)
String
getField(String fieldName)
String
getInitRecordNumber()
static String
getReferenceID(ConnectionProvider connectionProvider, String value, String validationtype)
static String
getValidation(ConnectionProvider connectionProvider, String adValRuleId)
static String
getValidationID(ConnectionProvider connectionProvider, String value)
static ComboTableQueryData[]
identifierColumns(ConnectionProvider connectionProvider, String tableName)
static ComboTableQueryData[]
identifierColumns(ConnectionProvider connectionProvider, String tableName, int firstRegister, int numberRegisters)
static boolean
isValueDisplayed(ConnectionProvider connectionProvider, String reference)
static ComboTableQueryData[]
selectRefTable(ConnectionProvider connectionProvider, String reference)
static ComboTableQueryData[]
selectRefTable(ConnectionProvider connectionProvider, String reference, int firstRegister, int numberRegisters)
static ComboTableQueryData[]
selectTranslatedColumn(ConnectionProvider connectionProvider, String tablename, String columnname)
static ComboTableQueryData[]
selectTranslatedColumn(ConnectionProvider connectionProvider, String tablename, String columnname, int firstRegister, int numberRegisters)
-
-
-
Field Detail
-
referenceid
public String referenceid
-
tablename
public String tablename
-
keyname
public String keyname
-
displayname
public String displayname
-
isvaluedisplayed
public String isvaluedisplayed
-
columnname
public String columnname
-
whereclause
public String whereclause
-
orderbyclause
public String orderbyclause
-
clause
public String clause
-
name
public String name
-
reference
public String reference
-
required
public String required
-
referencevalue
public String referencevalue
-
-
Method Detail
-
getInitRecordNumber
public String getInitRecordNumber()
-
getField
public String getField(String fieldName)
- Specified by:
getField
in interfaceFieldProvider
-
selectRefTable
public static ComboTableQueryData[] selectRefTable(ConnectionProvider connectionProvider, String reference) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
selectRefTable
public static ComboTableQueryData[] selectRefTable(ConnectionProvider connectionProvider, String reference, int firstRegister, int numberRegisters) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
isValueDisplayed
public static boolean isValueDisplayed(ConnectionProvider connectionProvider, String reference) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
identifierColumns
public static ComboTableQueryData[] identifierColumns(ConnectionProvider connectionProvider, String tableName) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
identifierColumns
public static ComboTableQueryData[] identifierColumns(ConnectionProvider connectionProvider, String tableName, int firstRegister, int numberRegisters) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
getValidation
public static String getValidation(ConnectionProvider connectionProvider, String adValRuleId) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
selectTranslatedColumn
public static ComboTableQueryData[] selectTranslatedColumn(ConnectionProvider connectionProvider, String tablename, String columnname) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
selectTranslatedColumn
public static ComboTableQueryData[] selectTranslatedColumn(ConnectionProvider connectionProvider, String tablename, String columnname, int firstRegister, int numberRegisters) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
getReferenceID
public static String getReferenceID(ConnectionProvider connectionProvider, String value, String validationtype) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
getBaseReferenceID
public static String getBaseReferenceID(ConnectionProvider connectionProvider, String value) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
getValidationID
public static String getValidationID(ConnectionProvider connectionProvider, String value) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
-