fr.cnes.sitools.dataset.database.mongodb
Class RequestMongoDB

java.lang.Object
  extended by fr.cnes.sitools.dataset.database.mongodb.RequestMongoDB
All Implemented Interfaces:
RequestNoSQL

public class RequestMongoDB
extends java.lang.Object
implements RequestNoSQL

MongoDB Request

Author:
m.gond

Constructor Summary
RequestMongoDB()
           
 
Method Summary
 java.lang.String getAttributes(java.util.List<Column> columnVisible)
          Get the attributes of the request
 java.lang.String getFilter(Predicat predicat)
          Convert a predicate to a SQL filter
 java.lang.String getFilterClause(java.util.List<Predicat> predicats, java.util.List<Column> columns)
          Get the WHERE clause
 java.lang.String getOrderBy(DataSet ds)
          Get the order by defined
 java.lang.String getOrderBy(Multisort multisort)
          Get the Sorting Order for the given Multisort as a String
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestMongoDB

public RequestMongoDB()
Method Detail

getAttributes

public java.lang.String getAttributes(java.util.List<Column> columnVisible)
Description copied from interface: RequestNoSQL
Get the attributes of the request

Specified by:
getAttributes in interface RequestNoSQL
Parameters:
columnVisible - list of visible columns
Returns:
attributes

getFilterClause

public java.lang.String getFilterClause(java.util.List<Predicat> predicats,
                                        java.util.List<Column> columns)
Description copied from interface: RequestNoSQL
Get the WHERE clause

Specified by:
getFilterClause in interface RequestNoSQL
Parameters:
predicats - a list of predicates
columns - a list of columns
Returns:
the WHERE clause

getFilter

public java.lang.String getFilter(Predicat predicat)
Description copied from interface: RequestNoSQL
Convert a predicate to a SQL filter

Specified by:
getFilter in interface RequestNoSQL
Parameters:
predicat - the predicate
Returns:
the filter

getOrderBy

public java.lang.String getOrderBy(DataSet ds)
Description copied from interface: RequestNoSQL
Get the order by defined

Specified by:
getOrderBy in interface RequestNoSQL
Parameters:
ds - the primary keys defined in the request
Returns:
the ORDER BY clause

getOrderBy

public java.lang.String getOrderBy(Multisort multisort)
Get the Sorting Order for the given Multisort as a String

Parameters:
multisort - the sort order definition
Returns:
the Sorting order as a String


Copyright © 2010-2013 CNES. All Rights Reserved.