|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.tn.db.Query
com.wm.app.tn.db.ProfileQuery
public class ProfileQuery
Field Summary | |
---|---|
static java.lang.String |
A_TBL
|
static java.lang.String |
ADDRESS_TBL
|
static java.lang.String |
CITY
|
static java.lang.String |
CORP
|
static java.lang.String |
COUNTRY
|
static java.lang.String |
EXPOSED_FLDID
|
static java.lang.String |
EXPOSED_FLDNAME
|
static java.lang.String |
EXPOSED_FLDVALUE
|
static java.lang.String |
EXTFLDNAME
|
static java.lang.String |
EXTFLDOP
|
static java.lang.String |
EXTFLDVALUE
|
static java.lang.String |
GROUP
|
static java.lang.String |
GROUPID
|
static java.lang.String |
IDT_TBL
|
static java.lang.String |
IDT_TYPE
|
static java.lang.String |
IDTYPE
|
static java.lang.String |
IDTYPE_TBL
|
static java.lang.String |
IDVALUE
|
static java.lang.String |
INCL_PENDING
|
static java.lang.String |
INCL_UNKNOWN
|
static java.lang.String |
INTID
|
static java.lang.String |
ONBOARDING
|
static java.lang.String |
P_TBL
|
static java.lang.String |
PARTNER_ID_ID
|
static java.lang.String |
PARTNER_TBL
|
static java.lang.String |
PARTNERID_TBL
|
static java.lang.String |
PARTNERPROFILEFIELD_TBL
|
static java.lang.String |
PARTNERPROFILEGROUP_TBL
|
static java.lang.String |
PARTNERUSER_TBL
|
static java.lang.String |
PENDING
|
static java.lang.String |
PF_DEFAULT_VAL
|
static java.lang.String |
PF_TBL
|
static java.lang.String |
PFID
|
static java.lang.String |
PG_TBL
|
static java.lang.String |
PID
|
static java.lang.String |
PID_IDTYPE
|
static java.lang.String |
PID_TBL
|
static java.lang.String |
PPF_TBL
|
static java.lang.String |
PPG_TBL
|
static java.lang.String |
PROFILEFIELD_TBL
|
static java.lang.String |
PROFILEGROUP_TBL
|
static java.lang.String |
PU_TBL
|
static java.lang.String |
s_NegationPrefix
|
static java.lang.String[] |
SEARCH_COLS
For internal use only |
static java.lang.String |
STATE
|
static java.lang.String |
STATUS
|
static java.lang.String |
SUBSTATUS
|
static java.lang.String |
UNIT
|
static java.lang.String |
USERNAME
|
static java.lang.String |
VIEW_EXTENDED_FIELDS
|
static java.lang.String |
VIEW_PERMISSION
|
boolean |
WITH_DLS
|
static java.lang.String |
ZIP
|
Constructor Summary | |
---|---|
ProfileQuery()
Default query is "select * from partner". |
Method Summary | |
---|---|
void |
clearAllExtFldQueries()
Clear all ext fld queries. |
void |
clearExtFldQuery(java.lang.String extFld)
Clear ext fld query for the specified ext fld. |
void |
clearSortColumn()
|
static com.wm.data.IData |
create()
For internal use only |
java.lang.Object |
getCity()
|
java.lang.Object |
getCorporation()
|
java.lang.Object |
getCountry()
|
com.wm.data.IDataCursor |
getCursor()
|
java.util.Vector |
getExtFldQueries()
Get all extended field queries. |
java.lang.String |
getGenericQuery()
|
java.lang.Object |
getGroup()
|
com.wm.data.IDataHashCursor |
getHashCursor()
For internal use only |
java.lang.Object |
getIDType()
|
java.lang.Object |
getIDValue()
|
com.wm.data.IDataIndexCursor |
getIndexCursor()
For internal use only |
com.wm.data.IDataSharedCursor |
getSharedCursor()
|
java.lang.String |
getSortColumn()
Deprecated. As of TN 7.0, replaced by setSortColumns(String[][]) |
java.lang.String[][] |
getSortColumns()
Get the sort columns in the format of {{CORP, "ASC"}, {STATUS, "DESC"}}. |
java.lang.Object |
getState()
|
java.lang.Object |
getStatus()
|
java.lang.Object |
getSubstatus()
|
com.wm.data.IDataTreeCursor |
getTreeCursor()
For internal use only |
java.lang.Object |
getUnit()
|
java.lang.Object |
getUsername()
|
java.util.Enumeration |
getVisibleColumns()
|
java.util.Vector |
getVisibleExtFlds()
|
java.lang.Object |
getZip()
|
boolean |
isCityVisible()
|
boolean |
isCorporationVisible()
|
boolean |
isCountryVisible()
|
boolean |
isExtFldVisible(java.lang.String fldId)
|
boolean |
isGroupVisible()
|
boolean |
isIDVisible()
|
boolean |
isIncludeUnknown()
|
boolean |
isIncudePending()
|
boolean |
isInternalIDVisible()
|
boolean |
isIntIdOnly()
|
boolean |
isQueryOnID()
|
boolean |
isSortAscending()
|
boolean |
isStateVisible()
|
boolean |
isStatusVisible()
|
boolean |
isSubstatusVisible()
|
boolean |
isUnitVisible()
|
boolean |
isUsernameVisible()
|
boolean |
isWithDLS()
|
boolean |
isZipVisible()
|
void |
preSql()
For internal use only |
void |
setCity(java.lang.String s)
Search for partner profile from address - city. |
void |
setCity(java.lang.String[][] opVal,
boolean isORquery)
Search for partner profiles using multiple criteria on city. |
void |
setCityVisible(boolean b)
|
void |
setCorporation(java.lang.String s)
Search for partner profile from corp name. |
void |
setCorporation(java.lang.String[][] opVal,
boolean isORquery)
Search for partner profiles using multiple criteria on corp name. |
void |
setCorporationVisible(boolean b)
|
void |
setCountry(java.lang.String s)
Search for partner profile from address - country. |
void |
setCountry(java.lang.String[][] opVal,
boolean isORquery)
Search for partner profiles using multiple criteria on country. |
void |
setCountryVisible(boolean b)
|
void |
setExtFieldQuery(java.lang.String fld,
java.lang.String[][] opVal,
boolean isORquery)
Search for partner profile from extended field value |
void |
setExtFldQuery(java.lang.String fldId,
java.lang.String[][] opVal,
boolean isORquery)
Search for partner profile from extended field value |
void |
setExtFldQuery(java.lang.String fldId,
java.lang.String op,
java.lang.String val)
Add an extended field query. |
void |
setExtFldVisible(java.lang.String fldId,
boolean show)
|
void |
setGenericQuery(java.lang.String query)
|
void |
setGroup(java.lang.String s)
Search for partner profile from profile group name. |
void |
setGroup(java.lang.String[][] opVal,
boolean isORquery)
Search for partner profiles using multiple criteria on profile group name. |
void |
setGroupVisible(boolean b)
|
void |
setID(java.lang.String[][] typeVal,
boolean isORquery)
Search for partner profile from external id type description and value. |
void |
setID(java.lang.String type,
java.lang.String value)
Search for partner profile from external id type description and value. |
void |
setIDVisible(boolean b)
|
void |
setIncludePending(boolean b)
|
void |
setIncludeUnknown(boolean b)
|
void |
setInternalIDVisible(boolean b)
|
void |
setIntIdOnly(boolean b)
|
void |
setIsQueryOnID(boolean b)
|
void |
setKeywordQuery(java.lang.String[] keywords)
|
void |
setSortColumn(java.lang.String col,
boolean asc)
Deprecated. As of TN 7.0, replaced by setSortColumns(String[][]) |
void |
setSortColumns(java.lang.String[][] columnOrder)
Set the sort columns and order for this query. |
void |
setState(java.lang.String s)
Search for partner profile from address - state. |
void |
setState(java.lang.String[][] opVal,
boolean isORquery)
Search for partner profiles using multiple criteria on state. |
void |
setStateVisible(boolean b)
|
void |
setStatus(java.lang.String s)
Search for partner profile from partner profile status. |
void |
setStatus(java.lang.String[][] opVal,
boolean isORquery)
Search for partner profiles using multiple criteria on profile status. |
void |
setStatusVisible(boolean b)
|
void |
setSubstatus(java.lang.String s)
Search for partner profile from partner profile sub status. |
void |
setSubstatus(java.lang.String[][] opVal,
boolean isORquery)
Search for partner profiles using multiple criteria on profile substatus. |
void |
setSubstatusVisible(boolean b)
|
void |
setUnit(java.lang.String s)
Search for partner profile from unit name. |
void |
setUnit(java.lang.String[][] opVal,
boolean isORquery)
Search for partner profiles using multiple criteria on unit name. |
void |
setUnitVisible(boolean b)
|
void |
setUsername(java.lang.String username)
|
void |
setUsername(java.lang.String[][] opVal,
boolean isORquery)
Search for partner profiles using multiple criteria on user name. |
void |
setUsernameVisible(boolean b)
|
void |
setViewPermission(java.lang.String viewPermission)
|
void |
setWithDLS(boolean b)
|
void |
setZip(java.lang.String s)
Search for partner profile from address - zip. |
void |
setZip(java.lang.String[][] opVal,
boolean isORquery)
Search for partner profiles using multiple criteria on zip. |
void |
setZipVisible(boolean b)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CORP
public static final java.lang.String UNIT
public static final java.lang.String IDTYPE
public static final java.lang.String IDVALUE
public static final java.lang.String GROUP
public static final java.lang.String STATUS
public static final java.lang.String CITY
public static final java.lang.String STATE
public static final java.lang.String ZIP
public static final java.lang.String COUNTRY
public static final java.lang.String PID
public static final java.lang.String INTID
public static final java.lang.String PID_IDTYPE
public static final java.lang.String GROUPID
public static final java.lang.String PFID
public static final java.lang.String IDT_TYPE
public static final java.lang.String USERNAME
public static final java.lang.String PARTNER_ID_ID
public static final java.lang.String SUBSTATUS
public static final java.lang.String ONBOARDING
public static final java.lang.String PENDING
public static final java.lang.String EXTFLDNAME
public static final java.lang.String EXTFLDVALUE
public static final java.lang.String EXTFLDOP
public static final java.lang.String PARTNER_TBL
public static final java.lang.String P_TBL
public static final java.lang.String ADDRESS_TBL
public static final java.lang.String A_TBL
public static final java.lang.String PARTNERID_TBL
public static final java.lang.String PID_TBL
public static final java.lang.String IDTYPE_TBL
public static final java.lang.String IDT_TBL
public static final java.lang.String PROFILEGROUP_TBL
public static final java.lang.String PG_TBL
public static final java.lang.String PARTNERPROFILEGROUP_TBL
public static final java.lang.String PPG_TBL
public static final java.lang.String PROFILEFIELD_TBL
public static final java.lang.String PARTNERPROFILEFIELD_TBL
public static final java.lang.String PF_TBL
public static final java.lang.String PF_DEFAULT_VAL
public static final java.lang.String PPF_TBL
public static final java.lang.String PU_TBL
public static final java.lang.String PARTNERUSER_TBL
public static final java.lang.String EXPOSED_FLDNAME
public static final java.lang.String EXPOSED_FLDVALUE
public static final java.lang.String EXPOSED_FLDID
public static java.lang.String VIEW_PERMISSION
public static java.lang.String VIEW_EXTENDED_FIELDS
public static final java.lang.String INCL_UNKNOWN
public static final java.lang.String INCL_PENDING
public boolean WITH_DLS
public static final java.lang.String s_NegationPrefix
public static final java.lang.String[] SEARCH_COLS
Constructor Detail |
---|
public ProfileQuery()
Method Detail |
---|
public com.wm.data.IDataCursor getCursor()
getCursor
in interface com.wm.data.IData
public com.wm.data.IDataSharedCursor getSharedCursor()
getSharedCursor
in interface com.wm.data.IData
public com.wm.data.IDataIndexCursor getIndexCursor()
getIndexCursor
in interface com.wm.data.IData
public com.wm.data.IDataTreeCursor getTreeCursor()
getTreeCursor
in interface com.wm.data.IData
public com.wm.data.IDataHashCursor getHashCursor()
getHashCursor
in interface com.wm.data.IData
public static com.wm.data.IData create()
public void setIncludeUnknown(boolean b)
public boolean isIncludeUnknown()
public void setIncludePending(boolean b)
public boolean isIncudePending()
public void setIntIdOnly(boolean b)
public boolean isIntIdOnly()
public void setWithDLS(boolean b)
public boolean isWithDLS()
public java.util.Vector getVisibleExtFlds()
public void setCorporation(java.lang.String s)
public void setCorporation(java.lang.String[][] opVal, boolean isORquery)
opValue
- is the operator and value pair in String[][] (e.g. {{Query.OP_COMP_EQ, "AAA"}, {Query.OP_COMP_NEQ,
"BBB"}})isORquery
- should OR operator be used between these criteria (e.g. if isORquery = true, the where clause
will be WHERE p.CorporationName = 'AAA' OR p.CorporationName <> 'BBB' else if isORquery = false WHERE
p.CorporationName = 'AAA' AND p.CorporationName <> 'BBB' )public void setUnit(java.lang.String s)
public void setUnit(java.lang.String[][] opVal, boolean isORquery)
opValue
- is the operator and value pair in String[][] (e.g. {{Query.OP_COMP_EQ, "AAA"}, {Query.OP_COMP_NEQ,
"BBB"}})isORquery
- should OR operator be used between these criteria (e.g. if isORquery = true, the where clause
will be WHERE p.OrgUnitName = 'AAA' OR p.OrgUnitName <> 'BBB' else if isORquery = false WHERE p.OrgUnitName =
'AAA' AND p.OrgUnitName <> 'BBB' )public void setID(java.lang.String type, java.lang.String value)
public void setID(java.lang.String[][] typeVal, boolean isORquery)
typeValue
- is the idtype, idvalue in String[][] the operator is always "=", Query class should
automatically convert "=" to "LIKE" when wild card is presented (not implemented yet) (e.g. {{"DUNS",
"12345678"}, {"EULER", "abcd"}, {null, "a%"}) if isORquery = true, the where clause is WHERE idt.type =
pid.IDType AND (idt.Description = 'DUNS' AND pid.ExternalID = '12345678') OR (idt.Description = 'EULER' AND
pid.ExternalID = 'abcd') OR (pid.ExternalId LIKE a%)isORquery
- should OR operator be used between these criteriapublic void setUsername(java.lang.String username)
public void setUsername(java.lang.String[][] opVal, boolean isORquery)
opValue
- is the operator and value pair in String[][] (e.g. {{Query.OP_COMP_EQ, "AAA"}, {Query.OP_COMP_NEQ,
"BBB"}})isORquery
- should OR operator be used between these criteria (e.g. if isORquery = true, the where clause
will be WHERE pu.UserName = 'AAA' OR pu.UserName <> 'BBB' else if isORquery = false WHERE pu.UserName = 'AAA' AND
pu.UserName <> 'BBB' )public void setGroup(java.lang.String s)
public void setGroup(java.lang.String[][] opVal, boolean isORquery)
opValue
- is the operator and value pair in String[][] (e.g. {{Query.OP_COMP_EQ, "AAA"}, {Query.OP_COMP_NEQ,
"BBB"}})isORquery
- should OR operator be used between these criteria (e.g. if isORquery = true, the where clause
will be WHERE pg.GroupName = 'AAA' OR pg.GroupName <> 'BBB' else if isORquery = false WHERE pg.GroupName = 'AAA'
AND pg.GroupName <> 'BBB' )public void setStatus(java.lang.String s)
public void setStatus(java.lang.String[][] opVal, boolean isORquery)
opValue
- is the operator and value pair in String[][] (e.g. {{Query.OP_COMP_EQ, "AAA"}, {Query.OP_COMP_NEQ,
"BBB"}})isORquery
- should OR operator be used between these criteria (e.g. if isORquery = true, the where clause
will be WHERE p.Status = 'AAA' OR p.Status <> 'BBB' else if isORquery = false WHERE p.Status = 'AAA' AND p.Status
<> 'BBB' )public void setSubstatus(java.lang.String s)
public void setSubstatus(java.lang.String[][] opVal, boolean isORquery)
opValue
- is the operator and value pair in String[][] (e.g. {{Query.OP_COMP_EQ, "AAA"}, {Query.OP_COMP_NEQ,
"BBB"}})isORquery
- should OR operator be used between these criteria (e.g. if isORquery = true, the where clause
will be WHERE p.Substatus = 'AAA' OR p.Substatus <> 'BBB' else if isORquery = false WHERE p.Substatus = 'AAA' AND
p.Substatus <> 'BBB' )public void setCity(java.lang.String s)
public void setCity(java.lang.String[][] opVal, boolean isORquery)
opValue
- is the operator and value pair in String[][] (e.g. {{Query.OP_COMP_EQ, "AAA"}, {Query.OP_COMP_NEQ,
"BBB"}})isORquery
- should OR operator be used between these criteria (e.g. if isORquery = true, the where clause
will be WHERE a.City = 'AAA' OR a.City <> 'BBB' else if isORquery = false WHERE a.City = 'AAA' AND a.City <>
'BBB' )public void setState(java.lang.String s)
public void setState(java.lang.String[][] opVal, boolean isORquery)
opValue
- is the operator and value pair in String[][] (e.g. {{Query.OP_COMP_EQ, "AAA"}, {Query.OP_COMP_NEQ,
"BBB"}})isORquery
- should OR operator be used between these criteria (e.g. if isORquery = true, the where clause
will be WHERE a.State_Province = 'AAA' OR a.State_Province <> 'BBB' else if isORquery = false WHERE
a.State_Province = 'AAA' AND a.State_Province <> 'BBB' )public void setZip(java.lang.String s)
public void setZip(java.lang.String[][] opVal, boolean isORquery)
opValue
- is the operator and value pair in String[][] (e.g. {{Query.OP_COMP_EQ, "AAA"}, {Query.OP_COMP_NEQ,
"BBB"}})isORquery
- should OR operator be used between these criteria (e.g. if isORquery = true, the where clause
will be WHERE a.Zip_PostalCode = 'AAA' OR a.Zip_PostalCode <> 'BBB' else if isORquery = false WHERE
a.Zip_PostalCode = 'AAA' AND a.Zip_PostalCode <> 'BBB' )public void setCountry(java.lang.String s)
public void setCountry(java.lang.String[][] opVal, boolean isORquery)
opValue
- is the operator and value pair in String[][] (e.g. {{Query.OP_COMP_EQ, "AAA"}, {Query.OP_COMP_NEQ,
"BBB"}})isORquery
- should OR operator be used between these criteria (e.g. if isORquery = true, the where clause
will be WHERE a.Country = 'AAA' OR a.Country <> 'BBB' else if isORquery = false WHERE a.Country = 'AAA' AND
a.Country <> 'BBB' )public java.lang.Object getCorporation()
public java.lang.Object getUnit()
public java.lang.Object getIDType()
public java.lang.Object getIDValue()
public java.lang.Object getGroup()
public java.lang.Object getUsername()
public java.lang.Object getStatus()
public java.lang.Object getSubstatus()
public java.lang.Object getCity()
public java.lang.Object getState()
public java.lang.Object getZip()
public java.lang.Object getCountry()
public final java.util.Vector getExtFldQueries()
public void setExtFldQuery(java.lang.String fldId, java.lang.String op, java.lang.String val)
public void setExtFieldQuery(java.lang.String fld, java.lang.String[][] opVal, boolean isORquery)
fld
- is FieldName:GroupNameopValue
- is the operator, value in String[][] (e.g. {{Query.OP_COMP_EQ, "icecream"}, {Query.OP_COMP_NEQ,
"apple pie"}})isORquery
- should OR operator be used between these criteriapublic void setExtFldQuery(java.lang.String fldId, java.lang.String[][] opVal, boolean isORquery)
fldId
- is PartnerProfileField.ProfileFieldIDopValue
- is the operator, value in String[][] (e.g. {{Query.OP_COMP_EQ, "icecream"}, {Query.OP_COMP_NEQ,
"apple pie"}})isORquery
- should OR operator be used between these criteriapublic void clearExtFldQuery(java.lang.String extFld)
public void clearAllExtFldQueries()
public void setSortColumn(java.lang.String col, boolean asc)
setSortColumns(String[][])
public java.lang.String getSortColumn()
setSortColumns(String[][])
public void setSortColumns(java.lang.String[][] columnOrder)
setSortColumns
in class Query
columnOrder
- takes column names and sort orders (e.g. {{CORP, "ASC"}, {STATUS, "DESC"}} )public java.lang.String[][] getSortColumns()
public boolean isSortAscending()
public void clearSortColumn()
public void setCorporationVisible(boolean b)
public void setUnitVisible(boolean b)
public void setIDVisible(boolean b)
public void setGroupVisible(boolean b)
public void setStatusVisible(boolean b)
public void setSubstatusVisible(boolean b)
public void setCityVisible(boolean b)
public void setStateVisible(boolean b)
public void setZipVisible(boolean b)
public void setCountryVisible(boolean b)
public void setInternalIDVisible(boolean b)
public void setUsernameVisible(boolean b)
public boolean isCorporationVisible()
public boolean isUnitVisible()
public boolean isIDVisible()
public boolean isGroupVisible()
public boolean isStatusVisible()
public boolean isSubstatusVisible()
public boolean isCityVisible()
public boolean isStateVisible()
public boolean isZipVisible()
public boolean isCountryVisible()
public boolean isInternalIDVisible()
public boolean isUsernameVisible()
public void setExtFldVisible(java.lang.String fldId, boolean show)
public boolean isExtFldVisible(java.lang.String fldId)
public void preSql()
Query
preSql
in class Query
public java.util.Enumeration getVisibleColumns()
public java.lang.String toString()
toString
in class java.lang.Object
public void setGenericQuery(java.lang.String query)
public void setKeywordQuery(java.lang.String[] keywords)
public java.lang.String getGenericQuery()
public void setIsQueryOnID(boolean b)
public boolean isQueryOnID()
public void setViewPermission(java.lang.String viewPermission)
setViewPermission
in class Query
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |