|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.request.Criteria com.esri.gpt.framework.request.QueryCriteria com.esri.gpt.catalog.management.MmdQueryCriteria
public class MmdQueryCriteria
Maintains the query criteria for a manage metadata request.
Constructor Summary | |
---|---|
MmdQueryCriteria()
Default constructor. |
Method Summary | |
---|---|
protected void |
appendExpression(StringBuilder whereClause,
String expression)
Appends an expression to an SQL where clause. |
protected String |
appendValueFilter(StringBuilder whereClause,
String field,
String value,
boolean forceLike)
Appends a value filter to an SQL where clause. |
Map<String,Object> |
appendWherePhrase(String tableAlias,
StringBuilder wherePhrase,
Publisher publisher)
Appends WHERE phrase. |
void |
applyArgs(PreparedStatement st,
int n,
Map<String,Object> args)
Applies arguments to the statement. |
String |
getApprovalStatus()
Gets the approval status. |
String |
getContentAsEncryptedString()
Gets content as encrypted string. |
String |
getContentAsXml()
Gets query criteria as XML string. |
DateRange |
getDateRange()
Gets the date range. |
boolean |
getIsEmpty()
Checks if query criteria are empty. |
String |
getOwner()
Gets the document owner. |
String |
getProtocolType()
Gets protocol type. |
String |
getPublicationMethod()
Gets the publication method. |
String |
getSiteUuid()
Gets site UUID. |
String |
getTitle()
Gets the document title. |
String |
getUuid()
Gets the document UUID. |
void |
reset()
Resets criteria. |
void |
setApprovalStatus(String status)
Sets the approval status. |
void |
setContentAsEncryptedString(String content)
Sets content as encrypted string. |
void |
setContentAsXml(String content)
Sets query criteria from XML string. |
void |
setOwner(String owner)
Sets the document owner. |
void |
setProtocolType(String protocolType)
Sets protocol type. |
void |
setPublicationMethod(String method)
Sets the publication method. |
void |
setSiteUuid(String siteUuid)
Sets site UUID. |
void |
setTitle(String title)
Sets the document title. |
void |
setUuid(String uuid)
Sets the document UUID. |
Methods inherited from class com.esri.gpt.framework.request.QueryCriteria |
---|
getSortOption, setSortOption |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MmdQueryCriteria()
Method Detail |
---|
public boolean getIsEmpty()
true
if query criteria are emptypublic String getContentAsXml()
public void setContentAsXml(String content)
content
- query criteria from XML stringpublic String getContentAsEncryptedString()
public void setContentAsEncryptedString(String content)
content
- content as encrypted stringpublic void reset()
reset
in class QueryCriteria
public String getApprovalStatus()
public void setApprovalStatus(String status)
status
- the approval statuspublic DateRange getDateRange()
public String getOwner()
public void setOwner(String owner)
owner
- the document ownerpublic String getPublicationMethod()
public void setPublicationMethod(String method)
method
- the publication methodpublic String getTitle()
public void setTitle(String title)
title
- the document titlepublic String getUuid()
public void setUuid(String uuid)
uuid
- the document UUIDpublic String getSiteUuid()
public void setSiteUuid(String siteUuid)
siteUuid
- site UUIDpublic String getProtocolType()
public void setProtocolType(String protocolType)
protocolType
- protocol typepublic Map<String,Object> appendWherePhrase(String tableAlias, StringBuilder wherePhrase, Publisher publisher)
tableAlias
- alias of the table or null
if no aliaswherePhrase
- where phrase holder where the phrase will be appendedpublisher
- publisher which executes query
applyArgs(java.sql.PreparedStatement, int, java.util.Map)
methodpublic void applyArgs(PreparedStatement st, int n, Map<String,Object> args) throws SQLException
st
- statement to apply argumentsn
- initial index of the first argumentargs
- map of arguments obtained through appendWherePhrase(java.lang.String, java.lang.StringBuilder, com.esri.gpt.framework.security.principal.Publisher)
method
SQLException
- if arguments application failsprotected String appendValueFilter(StringBuilder whereClause, String field, String value, boolean forceLike)
This is intended for use within a PreparedStatement. The appended
filter will have the following forms:
field = ?
field LIKE ?
The value returned should be bound within the PreparedStatement:
preparedStatement.setString(n,value)
whereClause
- the where clausefield
- the fieldvalue
- the field valueforceLike
- if true force an SQL LIKE
protected void appendExpression(StringBuilder whereClause, String expression)
whereClause
- the where clauseexpression
- the expression
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |