public class MboQbe extends java.lang.Object implements FixedLoggers
Last Updated: Wednesday, January 10, 2001
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
MboQbe(MboSetInfo ms,
boolean processML,
UserInfo userInfo)
Construct the Query, attached to a certain MboSet with default Locale
|
MboQbe(MboSetInfo ms,
java.util.Locale l,
java.util.TimeZone tz,
boolean ml,
UserInfo userInfo)
Construct the Query, attached to a certain MboSet with specified Locale
|
Modifier and Type | Method and Description |
---|---|
void |
addSubQbe(java.lang.String name,
java.lang.String[] attributes,
java.lang.String operator)
Add a child QBE object to this QBE.
|
void |
addSubQbe(java.lang.String name,
java.lang.String[] attributes,
java.lang.String op,
boolean exactMatch)
Add a child QBE object to this QBE.
|
java.util.Enumeration |
getAllQbeKeys()
Get all the qbe field
|
java.lang.String |
getOperator()
Returns the operator.
|
java.lang.String[][] |
getQbe()
Get array of Qbe for a attrbiutes.
|
java.lang.String |
getQbe(java.lang.String attrStr)
Get the Qbe for a certain attrbiute.
|
java.lang.String |
getWhere()
Get the SQL where clause associated with the Qbe.
|
java.lang.String |
getWhere(java.lang.String alias)
Get the SQL where clause associated with the Qbe.
|
void |
ignoreQbeExactMatchSet(boolean flag)
method needed for UI to ignore QBE exact match set
|
boolean |
isCaseSensitive()
Is the query case sensitive ?
|
boolean |
isExactMatch()
Does the query look for exact matches ?
|
boolean |
isIgnoreQbeExactMatchSet()
is flag set to ignore QBE exact match set
|
void |
resetQbe()
Reset the QBE and start again.
|
void |
setCaseSensitive(boolean state)
Set QBE to be case sensitive or not.
|
void |
setExactMatch(boolean state)
Should there be an exact match when Querying ? Default is NO.
|
void |
setLocale(java.util.Locale l,
java.util.TimeZone t)
Set the locale and Timezone to use when parsing dates from the
user.
|
void |
setOperatorAnd()
Sets the operator to "AND".
|
void |
setOperatorOr()
Sets the operator to "OR".
|
void |
setQbe(java.lang.String[] attr,
java.lang.String exp)
Sets a bunch of QBEs at the same time.
|
void |
setQbe(java.lang.String[] attr,
java.lang.String[] exp)
Sets a bunch of QBEs at the same time.
|
void |
setQbe(java.lang.String attr,
java.lang.String expr)
Set the QBE expression for the specified attribute.
|
void |
setQbe(java.lang.String attr,
java.lang.String[] exp) |
void |
setWhereQbe(java.lang.String attrStr,
java.lang.String value,
java.lang.String clause)
Sets the where clause for the QBE.
|
public MboQbe(MboSetInfo ms, boolean processML, UserInfo userInfo)
public MboQbe(MboSetInfo ms, java.util.Locale l, java.util.TimeZone tz, boolean ml, UserInfo userInfo)
public void addSubQbe(java.lang.String name, java.lang.String[] attributes, java.lang.String op, boolean exactMatch)
name
- The name of the child QBE. It is used to identify the sub qbe within
this QBE.attributes
- An array of attributes when setQbe is called, the control of
constructing the where clause will be passed down to the child QBE.operator
- The AND or OR operator of the child QBE.exactMatch
- Whether the child QBE is exact match or not.public void addSubQbe(java.lang.String name, java.lang.String[] attributes, java.lang.String operator)
name
- The name of the child QBE. It is used to identify the sub qbe within
this QBE.attributes
- An array of attributes when setQbe is called, the control of
constructing the where clause will be passed down to the child QBE.operator
- The AND or OR operator of the child QBE.public void setCaseSensitive(boolean state)
public boolean isCaseSensitive()
public void setOperatorOr()
public void setOperatorAnd()
public java.lang.String getOperator()
public void setExactMatch(boolean state)
public boolean isExactMatch()
public void ignoreQbeExactMatchSet(boolean flag)
public boolean isIgnoreQbeExactMatchSet()
public void setLocale(java.util.Locale l, java.util.TimeZone t)
public void setQbe(java.lang.String[] attr, java.lang.String exp)
public void setQbe(java.lang.String[] attr, java.lang.String[] exp)
public void setQbe(java.lang.String attr, java.lang.String[] exp) throws MXException
MXException
public void setQbe(java.lang.String attr, java.lang.String expr) throws MXException
attribute
- The attribute to set the QBE on.expr
- The expression to use, i.e. "= 'BOILER'"MXSystemException
- Group "System", key "noattribute" if attribute is not found
in the MboSet.MXException
public void setWhereQbe(java.lang.String attrStr, java.lang.String value, java.lang.String clause) throws MXException
attrStr
- original
- Valuewhere
- clause replaced for the original value.MXException
public java.util.Enumeration getAllQbeKeys()
public java.lang.String getQbe(java.lang.String attrStr) throws MXException
MXException
public java.lang.String[][] getQbe()
public void resetQbe()
public java.lang.String getWhere() throws MXException
MXException
public java.lang.String getWhere(java.lang.String alias) throws MXException
alias
- The table alias to prefix to the attribute nameMXException