|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.cnes.sitools.dataset.database.jdbc.RequestPostgres
public final class RequestPostgres
PostgresSQL request
| Constructor Summary | |
|---|---|
RequestPostgres()
|
|
| Method Summary | |
|---|---|
java.lang.String |
convertColumnToString(Column attribute)
Get the SQL string corresponding to a column without alias |
java.lang.String |
convertColumnToStringAttribute(Column attribute)
build the the attributes of a Select query |
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 |
getFromClause(java.util.List<Structure> structures)
Get from clause |
java.lang.String |
getFromClauseAdvanced(SitoolsStructure structure)
Get from clause |
java.lang.String |
getNodeFrom(java.util.List<StructureNodeComplete> nodeList,
int level,
java.lang.String parentheseFermante)
Get the node from the node list, the level and the closing parenthesis |
java.lang.String |
getOrderBy(DataSet ds)
Get the order by defined |
java.lang.String |
getWhereClause(java.util.List<Predicat> predicats,
java.util.List<Column> columns)
Get the WHERE clause |
java.lang.String |
tableToString(Table table)
Transform a table to a string |
java.lang.String |
typeJointureToString(TypeJointure typeJointure)
Transform a join type to string |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestPostgres()
| Method Detail |
|---|
public java.lang.String getAttributes(java.util.List<Column> columnVisible)
getAttributes in interface RequestSqlcolumnVisible - list of visible columns
public java.lang.String tableToString(Table table)
table - the table to transform
public java.lang.String getFromClause(java.util.List<Structure> structures)
structures - a list of structures
public java.lang.String getWhereClause(java.util.List<Predicat> predicats,
java.util.List<Column> columns)
getWhereClause in interface RequestSqlpredicats - a list of predicatescolumns - a list of columns
public java.lang.String getFilter(Predicat predicat)
getFilter in interface RequestSqlpredicat - the predicate
public java.lang.String convertColumnToStringAttribute(Column attribute)
convertColumnToStringAttribute in interface RequestSqlattribute - the column
public java.lang.String convertColumnToString(Column attribute)
convertColumnToString in interface RequestSqlattribute - the column to convert
public java.lang.String getOrderBy(DataSet ds)
RequestSql
getOrderBy in interface RequestSqlds - the primary keys defined in the request
public java.lang.String getFromClauseAdvanced(SitoolsStructure structure)
RequestSql
getFromClauseAdvanced in interface RequestSqlstructure - a SitoolsStructure
public java.lang.String getNodeFrom(java.util.List<StructureNodeComplete> nodeList,
int level,
java.lang.String parentheseFermante)
RequestSql
getNodeFrom in interface RequestSqlnodeList - the list of nodeslevel - the levelparentheseFermante - the closing parenthesis
public java.lang.String typeJointureToString(TypeJointure typeJointure)
RequestSql
typeJointureToString in interface RequestSqltypeJointure - the join type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||