|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.cnes.sitools.dataset.database.jdbc.RequestMysql
public final class RequestMysql
MySQL request
| Constructor Summary | |
|---|---|
RequestMysql()
|
|
| Method Summary | |
|---|---|
java.lang.String |
convertColumnToString(Column attribute)
Get the SQL string corresponding to a column |
java.lang.String |
convertColumnToStringAttribute(Column attribute)
Built the left part of the filter SQL |
java.lang.String |
convertOperator(java.lang.String compareOperator)
convert a operator to a SQL operator |
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 |
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 |
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 RequestMysql()
| Method Detail |
|---|
public java.lang.String getAttributes(java.util.List<Column> columnVisible)
getAttributes in interface RequestSqlcolumnVisible - list of visible columns
public java.lang.String getFromClauseAdvanced(SitoolsStructure structure)
getFromClauseAdvanced in interface RequestSqlstructure - the 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
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 convertOperator(java.lang.String compareOperator)
compareOperator - the operator
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||