📄 criteria.java
字号:
package com.esri.solutions.jitk.personalization.dao;
import com.esri.solutions.jitk.personalization.enums.*;
/**
* @author Susan Herdina
* @version 1.0
* @created 07-Dec-2007 11:18:27 AM
*
* This class is used to hold the criteria that will be passed into the DAOs and used
* to filter the SQL statements.
*/
public class Criteria {
/**
* The user id
*/
private String user = null;
/**
* The map composition id - used to filter queries for Bookmarks and Queries
*/
private String mapCompositionId = null;
/**
* When retrieving Bookmark records, sort them by the specified OrderBy
*/
private String bookmarkOrderBy = BookmarkOrderBy.id.getBookmarkOrderBy();
/**
* When retrieving MapComposition records, sort them by the specified OrderBy
*/
private String mapCompositionOrderBy = MapCompositionOrderBy.id.getMapCompositionOrderBy();
/**
* When retrieving Query records, sort them by the specified OrderBy
*/
private String queryOrderBy = QueryOrderBy.id.getQueryOrderBy();
/**
* Constructor that takes input of all properties
* @param user
* @param bookmarkOrderBy
* @param mapCompositionOrderBy
* @param queryOrderBy
*/
public Criteria(String user, String bookmarkOrderBy, String mapCompositionOrderBy, String queryOrderBy){
this.user = user;
this.bookmarkOrderBy = bookmarkOrderBy;
this.queryOrderBy = queryOrderBy;
this.mapCompositionOrderBy = mapCompositionOrderBy;
}
/**
* Default constructor
*/
public Criteria(){
}
public void finalize() throws Throwable {
}
/**
*
* @return The User Id that will be used to filter the SQL statements.
*/
public String getUser() {
return user;
}
/**
* Set the User Id that will be used to filter the SQL statements.
* @param user
*/
public void setUser(String user) {
this.user = user;
}
/**
* @return The Map Composition Id that will be used to filter the SQL statements.
*/
public String getMapCompositionId() {
return mapCompositionId;
}
/**
* Set the Map Composition ID that will be used to filter the SQL statements.
* @param mapCompositionId
*/
public void setMapCompositionId(String mapCompositionId) {
this.mapCompositionId = mapCompositionId;
}
/**
*
* @return The Order By criteria that will be used for SQL Statements involving Map Compositions.
*/
public String getMapCompositionOrderBy() {
return mapCompositionOrderBy;
}
/**
* Set the Order By criteria that will be used for SQL Statements involving Map Compositions.
* @param mapCompositionOrderBy
*/
public void setMapCompositionOrderBy(String mapCompositionOrderBy) {
this.mapCompositionOrderBy = mapCompositionOrderBy;
}
/**
*
* @return The Order By criteria that will be used for SQL Statements involving Bookmarks.
*/
public String getBookmarkOrderBy() {
return bookmarkOrderBy;
}
/**
* Set the Order By criteria that will be used for SQL Statements involving Bookmarks.
* @param bookmarkOrderBy
*/
public void setBookmarkOrderBy(String bookmarkOrderBy) {
this.bookmarkOrderBy = bookmarkOrderBy;
}
/**
*
* @return The Order By criteria that will be used for SQL Statements involving Queries.
*/
public String getQueryOrderBy() {
return queryOrderBy;
}
/**
* Set the Order By criteria that will be used for SQL Statements involving Queries.
* @param queryOrderBy
*/
public void setQueryOrderBy(String queryOrderBy) {
this.queryOrderBy = queryOrderBy;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -