|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.peer.sql.LySqlRequestInfo
public class LySqlRequestInfo
This class is used to keep the encoding context of a request when going into multiple encoders.
LySqlRequestEncoder
Nested Class Summary | |
---|---|
static class |
LySqlRequestInfo.Join
Join type to merge at parent level the new aliases only. |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySqlRequestInfo(LyClass c)
Constructor. |
Method Summary | |
---|---|
void |
addUnionSelectInfos(java.lang.String filter)
This mode applies when an union select validation is requested Internal use only for SQL Optimization. |
void |
addUsedClass(java.lang.String name)
Add a name to the Classes names actually used in the where clause. |
void |
clearCurrentUsedClasses()
Reset Classes names actually used in the where clause. |
void |
completeDetectingUnionSelect()
Internal use only : checks wether an union select is pertinent or not. |
LySqlRequestInfo.Join |
getChildType()
Type of child, one of the CHILD_xxx types. |
java.util.ArrayList<java.lang.String> |
getCurrentUsedClasses()
Classes names actually used in the where clause. |
LyClass |
getDataClass()
Retrieves the class of data handled by this data source. |
boolean |
getForceUseAlias()
Accessor : Force using alias an not just table names Example : see FFT00757 when using left join clauses |
LySqlRequestInfo |
getParent()
Access to the parent info of this request info |
LySqlRequestInfo |
getRootParent()
Access to the root parent request info of this request info |
java.lang.String |
getSQLFormatDateInOrderByClause(java.lang.String id)
Accessor : Force using alias an not just table names Example : see FFT00757 when using left join clauses |
java.lang.Object[] |
getUnionSelectInfos(int i)
This mode applies when an union select validation is requested Internal use only for SQL Optimization. |
boolean |
isDetectingUnionSelect()
This mode applies when an union select validation is requested Internal use only for SQL Optimization. |
boolean |
isSQLFormatDateInOrderByClauseEmpty()
|
boolean |
isUsingAlias()
Indicates if 'real' aliases are used in this request. |
void |
removeUsedClass(java.lang.String className)
|
void |
reportUsedClasses(LySqlRequestInfo child)
Report to parent the used table names. |
void |
setDetectingUnionSelect(boolean unionSelect)
This mode applies when an union select validation is requested Internal use only for SQL Optimization. |
void |
setForceUseAlias(boolean b)
Force using alias an not just table names Example : see FFT00757 when using left join clauses |
void |
setParent(LySqlRequestInfo parent,
LySqlRequestInfo.Join childType)
sets the Parent request info. |
void |
setSQLFormatDateInOrderByClause(java.lang.String id,
java.lang.String sqlFormattedDate)
Force using alias an not just table names Example : see FFT00757 when using left join clauses |
java.lang.String |
toString()
Overriden to display an understandable information for debug. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LySqlRequestInfo(LyClass c)
provider
- dataSource
- valueSep
- Method Detail |
---|
public void setParent(LySqlRequestInfo parent, LySqlRequestInfo.Join childType)
parent
- new parent, if null this object is removed from the parent children listchildType
- the type of child, one of the TYPE_xxx constants. parameter is ignored when
parent is null.public LySqlRequestInfo getRootParent()
public LySqlRequestInfo getParent()
public final LyClass getDataClass()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isUsingAlias()
public LySqlRequestInfo.Join getChildType()
public void reportUsedClasses(LySqlRequestInfo child)
public void addUsedClass(java.lang.String name)
name
- the name of the table which is usedpublic java.util.ArrayList<java.lang.String> getCurrentUsedClasses()
public void clearCurrentUsedClasses()
public void removeUsedClass(java.lang.String className)
public boolean isDetectingUnionSelect()
public void setDetectingUnionSelect(boolean unionSelect)
true
- to activate detectiuon mode. Applicationshall never invoke this method directlypublic void completeDetectingUnionSelect()
public java.lang.Object[] getUnionSelectInfos(int i)
public void addUnionSelectInfos(java.lang.String filter)
public void setForceUseAlias(boolean b)
b
- new alias using statuspublic boolean getForceUseAlias()
public void setSQLFormatDateInOrderByClause(java.lang.String id, java.lang.String sqlFormattedDate)
b
- new alias using statuspublic java.lang.String getSQLFormatDateInOrderByClause(java.lang.String id)
public boolean isSQLFormatDateInOrderByClauseEmpty()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |