|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sitools.dataset.database.DatabaseRequestParameters
public class DatabaseRequestParameters
Object to store the parameters for a particular Database request
Field Summary | |
---|---|
static int |
RETURN_ALL
Return datasource limit ( limit=-1 specified ) |
static int |
RETURN_FIRST_PAGE
Constant used when returning first page ( no limit specified ) |
Constructor Summary | |
---|---|
DatabaseRequestParameters()
default parameter |
|
DatabaseRequestParameters(SitoolsDataSource db,
int startIndex,
java.lang.Boolean distinct,
boolean isCountDone,
DataSet dataset,
java.util.List<Predicat> predicats,
java.util.List<Structure> structures,
Multisort orderBy,
Column columnFromDistinctQuery,
java.util.List<Column> sqlVisibleColumns,
int paginationExtend,
java.lang.String baseRef,
java.lang.String[] idList,
java.util.List<Range> ranges,
java.util.List<Column> allVisibleColumns)
Create a new DatabaseRequestParameters |
Method Summary | |
---|---|
java.util.List<Column> |
getAllVisibleColumns()
Gets the list of all the visible columns in the request set to visible or asked (SQL + Virtual) NoClientAccess column are not added |
java.lang.String |
getBaseRef()
Gets the baseRef value |
Column |
getColumnFromDistinctQuery()
Get a Column of the specified ColumnALias |
DataSet |
getDataset()
Gets the DataSet value |
java.lang.String |
getDatasetId()
Gets the datasetId value |
SitoolsDataSource |
getDb()
Gets the DataSource value |
java.lang.Boolean |
getDistinct()
Gets the distinct value |
java.lang.String[] |
getIdList()
Gets the idList value |
int |
getMaxrows()
Gets the max rows value |
Multisort |
getOrderBy()
Gets the orderBy value |
int |
getPaginationExtend()
Gets the paginationExtend value |
java.util.List<Predicat> |
getPredicats()
Gets the predicates value |
java.util.List<Range> |
getRanges()
Gets the ranges value |
java.util.List<Column> |
getSqlVisibleColumns()
Gets the list of the sql visible columns used in the database request |
int |
getStartIndex()
Gets the startIndex value |
java.util.List<Structure> |
getStructures()
Gets the structures value |
boolean |
isCountDone()
Gets the isCountDone value |
void |
setAllVisibleColumns(java.util.List<Column> allVisibleColumns)
Sets the list of all the visible columns in the request (SQL + Virtual) |
void |
setBaseRef(java.lang.String baseRef)
Sets the value of baseRef |
void |
setColumnFromDisctinctQuery(Column columnFromDistinctQuery)
Sets the value of columnFromDistinctQuery |
void |
setCountDone(boolean isCountDone)
Sets the value of isCountDone Set it to true to do a count before the request, false otherwise |
void |
setDataset(DataSet dataset)
Sets the value of DataSet |
void |
setDatasetId(java.lang.String datasetId)
Sets the value of datasetId |
void |
setDb(SitoolsDataSource db)
Sets the value of DataSource |
void |
setDistinct(java.lang.Boolean distinct)
Sets the value of distinct |
void |
setIdList(java.lang.String[] idList)
Sets the value of idList |
void |
setMaxrows(int maxrows)
Sets the value of max rows |
void |
setOrderBy(Multisort orderBy)
Sets the value of orderBy |
void |
setPaginationExtend(int paginationExtend)
Sets the value of paginationExtend |
void |
setPredicats(java.util.List<Predicat> predicats)
Sets the value of predicates |
void |
setRanges(java.util.List<Range> ranges)
Sets the value of ranges |
void |
setSqlVisibleColumns(java.util.List<Column> sqlVisibleColumns)
Sets the list of the sql visible columns used in the database request |
void |
setStartIndex(int startIndex)
Sets the value of startIndex |
void |
setStructures(java.util.List<Structure> structures)
Sets the value of structures |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RETURN_FIRST_PAGE
public static final int RETURN_ALL
Constructor Detail |
---|
public DatabaseRequestParameters()
public DatabaseRequestParameters(SitoolsDataSource db, int startIndex, java.lang.Boolean distinct, boolean isCountDone, DataSet dataset, java.util.List<Predicat> predicats, java.util.List<Structure> structures, Multisort orderBy, Column columnFromDistinctQuery, java.util.List<Column> sqlVisibleColumns, int paginationExtend, java.lang.String baseRef, java.lang.String[] idList, java.util.List<Range> ranges, java.util.List<Column> allVisibleColumns)
db
- the DataSourcestartIndex
- the start indexdistinct
- true if the request must return distinct records. Used for auto-completion.isCountDone
- Indicates if the count is donedataset
- The DataSetpredicats
- The list of predicatesstructures
- the list of structuresorderBy
- orderBycolumnFromDistinctQuery
- the from column listsqlVisibleColumns
- the visible column listpaginationExtend
- the pagination neededbaseRef
- baseRefidList
- the list of ids neededranges
- the list of range neededallVisibleColumns
- list of all visible columnsMethod Detail |
---|
public final SitoolsDataSource getDb()
public final void setDb(SitoolsDataSource db)
db
- the DataSource to setpublic final int getStartIndex()
public final void setStartIndex(int startIndex)
startIndex
- the startIndex to setpublic final java.lang.Boolean getDistinct()
public final void setDistinct(java.lang.Boolean distinct)
distinct
- the distinct to setpublic final boolean isCountDone()
public final void setCountDone(boolean isCountDone)
Set it to true to do a count before the request, false otherwise
isCountDone
- the isCountDone to setpublic final DataSet getDataset()
public final void setDataset(DataSet dataset)
dataset
- the DataSet to setpublic final java.util.List<Predicat> getPredicats()
public final void setPredicats(java.util.List<Predicat> predicats)
predicats
- the predicates to setpublic final java.util.List<Structure> getStructures()
public final void setStructures(java.util.List<Structure> structures)
structures
- the structures to setpublic final Multisort getOrderBy()
public final void setOrderBy(Multisort orderBy)
orderBy
- the orderBy to setpublic final Column getColumnFromDistinctQuery()
public final void setColumnFromDisctinctQuery(Column columnFromDistinctQuery)
columnFromDistinctQuery
- the columnFromDistinctQuery to setpublic java.util.List<Column> getSqlVisibleColumns()
public void setSqlVisibleColumns(java.util.List<Column> sqlVisibleColumns)
sqlVisibleColumns
- the sqlVisibleColumn to setpublic final int getPaginationExtend()
public final void setPaginationExtend(int paginationExtend)
paginationExtend
- the paginationExtend to setpublic final java.lang.String getBaseRef()
public final void setBaseRef(java.lang.String baseRef)
baseRef
- the baseRef to setpublic final void setDatasetId(java.lang.String datasetId)
datasetId
- the datasetId to setpublic final java.lang.String getDatasetId()
public final int getMaxrows()
public final void setMaxrows(int maxrows)
maxrows
- the max rows to setpublic final void setIdList(java.lang.String[] idList)
idList
- the idList to setpublic final java.lang.String[] getIdList()
public void setRanges(java.util.List<Range> ranges)
ranges
- the ranges to setpublic java.util.List<Range> getRanges()
public java.util.List<Column> getAllVisibleColumns()
public void setAllVisibleColumns(java.util.List<Column> allVisibleColumns)
allVisibleColumns
- the allVisibleColumns to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |