fr.cnes.sitools.dataset.database.mongodb
Interface RequestNoSQL

All Known Implementing Classes:
RequestMongoDB

public interface RequestNoSQL

Interface for NoSQL Request A voir si c'est vraiment utile, et si c'est assez générique pour d'autres types de base NoSQL => Certainement pas

Author:
m.gond

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
 

Method Detail

getAttributes

java.lang.String getAttributes(java.util.List<Column> columnVisible)
Get the attributes of the request

Parameters:
columnVisible - list of visible columns
Returns:
attributes

getFilter

java.lang.String getFilter(Predicat predicat)
Convert a predicate to a SQL filter

Parameters:
predicat - the predicate
Returns:
the filter

getOrderBy

java.lang.String getOrderBy(DataSet ds)
Get the order by defined

Parameters:
ds - the primary keys defined in the request
Returns:
the ORDER BY clause

getFilterClause

java.lang.String getFilterClause(java.util.List<Predicat> predicats,
                                 java.util.List<Column> columns)
Get the WHERE clause

Parameters:
predicats - a list of predicates
columns - a list of columns
Returns:
the WHERE clause


Copyright © 2010-2013 CNES. All Rights Reserved.