|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sitools.dataset.database.common.DataSetExplorerUtil
public class DataSetExplorerUtil
DBExplorerResource using DataSource for pooled connections
Constructor Summary | |
---|---|
DataSetExplorerUtil(DataSetApplication application,
org.restlet.Request request,
org.restlet.Context context)
Constructor with minimal arguments to build a Database Request parameters |
Method Summary | |
---|---|
static void |
addDatasetExplorerGetFilterInfo(org.restlet.ext.wadl.MethodInfo info,
FilterChained filterChained)
Add the Dataset Filter info to the MethodInfo |
static void |
addDatasetExplorerGetRequestInfo(org.restlet.ext.wadl.MethodInfo info)
Add the DatasetExplorer info to the MethodInfo |
java.util.List<Column> |
getAllColumnVisible()
Get the list of All visible column Warning : don't use this method to build SQL request, it will fail if there is some virtual columns |
DataSetApplication |
getApplication()
Gets the application value |
java.util.List<Predicat> |
getArrayPredicatsPostFilters()
Gets the arrayPredicatsPostFilters value |
java.lang.String |
getBaseRef()
Get the base reference |
java.util.List<Column> |
getColumnFromDataset()
Get the list of column defined in the DataSet |
Column |
getColumnFromDistinctQuery()
Get a Column of the specified ColumnALias |
java.util.List<Column> |
getColumnModel()
Get the model of columns |
org.restlet.Context |
getContext()
Gets the context value |
boolean |
getCountIsDone()
Read extend request parameter -> integer - 0 by default |
DatabaseRequestParameters |
getDatabaseParams()
Gets the databaseParams value |
DataSet |
getDataSet()
Get the DataSet associated to that resource |
SitoolsDataSource |
getDataSource()
Gets the SQL DataSource |
java.lang.Boolean |
getDistinct()
Get distinct |
int |
getFetchSize()
Gets the fetchSize value |
org.restlet.representation.Representation |
getFile(java.lang.String fileUrl,
org.restlet.security.User user)
Gets the representation of a File |
org.restlet.data.Form |
getForm()
Get the form with pagination |
java.lang.String |
getFromTableName(int i)
Get the reference from table |
int |
getMaxrows()
Gets the maxrows value |
Multisort |
getOrderBy()
Read extend request parameter -> integer - 0 by default |
int |
getPaginationExtend()
Read extend request parameter -> integer - 0 by default |
int |
getPaginationStartRecord()
Read startRecord request parameter -> integer - 0 by default |
java.util.ArrayList<Predicat> |
getPredicats()
Convert the request parameters to the list of predicates |
java.lang.String |
getQueryDistinct()
Get the QueryDistinct |
java.lang.String |
getRecordName()
Gets the recordName value |
org.restlet.Request |
getRequest()
Gets the request value |
java.lang.String |
getSchemaName(int i)
Gets the schemaName value |
java.util.List<Column> |
getSQLColumnVisible()
Get the list of the SQL visible column |
java.util.List<Structure> |
getStructures()
Gets the structure value |
java.lang.String |
getTableName(int i)
Gets the tableName value |
static java.lang.String |
getTemplateForm()
Gets the templateForm value |
void |
setApplication(DataSetApplication application)
Sets the value of application |
void |
setBaseRef(java.lang.String bref)
Set the base reference of the resource |
void |
setContext(org.restlet.Context context)
Sets the value of context |
void |
setDatabaseParams(DatabaseRequestParameters databaseParams)
Sets the value of databaseParams |
void |
setRecordName(java.lang.String recordName)
Sets the value of recordName |
void |
setRequest(org.restlet.Request request)
Sets the value of request |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataSetExplorerUtil(DataSetApplication application, org.restlet.Request request, org.restlet.Context context)
application
- the DataSetApplicationrequest
- the Request
context
- the Context
Method Detail |
---|
public java.lang.String getRecordName()
public void setRecordName(java.lang.String recordName)
recordName
- the recordName to setpublic org.restlet.Request getRequest()
public void setRequest(org.restlet.Request request)
request
- the request to setpublic final SitoolsDataSource getDataSource()
public final java.lang.String getTableName(int i)
i
- index
public final java.lang.String getQueryDistinct()
public final Column getColumnFromDistinctQuery()
public final java.util.List<Column> getSQLColumnVisible()
public final java.util.List<Column> getAllColumnVisible()
public final java.util.List<Column> getColumnFromDataset()
public final java.lang.String getSchemaName(int i)
i
- index
public final java.lang.String getFromTableName(int i)
i
- index
public final java.util.List<Structure> getStructures()
public final java.lang.String getBaseRef()
public final org.restlet.data.Form getForm()
public final int getPaginationStartRecord()
public final int getPaginationExtend()
public final boolean getCountIsDone()
public final Multisort getOrderBy()
public final java.util.ArrayList<Predicat> getPredicats()
public final java.util.List<Column> getColumnModel()
public final java.util.List<Predicat> getArrayPredicatsPostFilters()
public final java.lang.Boolean getDistinct()
public final DataSet getDataSet()
public final DatabaseRequestParameters getDatabaseParams()
public final void setDatabaseParams(DatabaseRequestParameters databaseParams)
databaseParams
- the databaseParams to setpublic final org.restlet.representation.Representation getFile(java.lang.String fileUrl, org.restlet.security.User user)
fileUrl
- the url of the fileuser
- the user
public static void addDatasetExplorerGetRequestInfo(org.restlet.ext.wadl.MethodInfo info)
info
- the MethodInfo
public static void addDatasetExplorerGetFilterInfo(org.restlet.ext.wadl.MethodInfo info, FilterChained filterChained)
MethodInfo
info
- the MethodInfo
filterChained
- the FilterChained
public final DataSetApplication getApplication()
public void setApplication(DataSetApplication application)
application
- the application to setpublic final void setBaseRef(java.lang.String bref)
bref
- the new base referencepublic final int getFetchSize()
public final int getMaxrows()
public static java.lang.String getTemplateForm()
public void setContext(org.restlet.Context context)
context
- the context to setpublic org.restlet.Context getContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |