|
||||||||||
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 RequestSql
columnVisible
- 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 RequestSql
predicats
- a list of predicatescolumns
- a list of columns
public java.lang.String getFilter(Predicat predicat)
getFilter
in interface RequestSql
predicat
- the predicate
public java.lang.String convertColumnToStringAttribute(Column attribute)
convertColumnToStringAttribute
in interface RequestSql
attribute
- the column
public java.lang.String convertColumnToString(Column attribute)
convertColumnToString
in interface RequestSql
attribute
- the column to convert
public java.lang.String getOrderBy(DataSet ds)
RequestSql
getOrderBy
in interface RequestSql
ds
- the primary keys defined in the request
public java.lang.String getFromClauseAdvanced(SitoolsStructure structure)
RequestSql
getFromClauseAdvanced
in interface RequestSql
structure
- a SitoolsStructure
public java.lang.String getNodeFrom(java.util.List<StructureNodeComplete> nodeList, int level, java.lang.String parentheseFermante)
RequestSql
getNodeFrom
in interface RequestSql
nodeList
- the list of nodeslevel
- the levelparentheseFermante
- the closing parenthesis
public java.lang.String typeJointureToString(TypeJointure typeJointure)
RequestSql
typeJointureToString
in interface RequestSql
typeJointure
- the join type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |