public abstract class AbstractSqlClause extends Object implements SqlClause, Serializable
| 修飾子とタイプ | クラスと説明 |
|---|---|
protected class |
AbstractSqlClause.RownumPagingProcessor |
protected static class |
AbstractSqlClause.UnionQueryInfo |
SqlClause.QueryUpdateSetCalculationHandler| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected int |
_aliasNameLimitSize
The limit size of alias name to adjust alias length on query.
|
protected Map<String,Map<String,SpecifiedColumn>> |
_backupSpecifiedSelectColumnMap
Specified select column map for backup.
|
protected List<QueryClause> |
_backupWhereList
The backup list of where clause.
|
protected List<QueryClause> |
_baseTableInlineWhereList
The list of in-line where clause for base table.
|
protected Map<String,DBMeta> |
_cachedDBMetaMap
The cache map of DB meta for basically related tables.
|
protected List<ClauseLazyReflector> |
_clauseLazyReflectorList
The list of lazy reflector for clause.
|
protected boolean |
_columnNullObjectAllowed
Does it allow the handling of column null object?
|
protected boolean |
_columnNullObjectGearedToSpecify
Is column null object geared to specify?
|
protected Map<String,Set<ColumnInfo>> |
_columnNullObjectSpecifiedMap
The map of specified column null object. map:{ alias-name = set:{ column-info } } (NullAllowed: lazy-loaded)
|
protected Map<String,Object> |
_columyQueryObjectMap
The map for column query objects.
|
protected OrScopeQueryInfo |
_currentTmpOrScopeQueryInfo
The current temporary information of or-scope query?
|
protected DBMeta |
_dbmeta
The DB meta of table.
|
protected DBMetaProvider |
_dbmetaProvider
The DB meta of target table.
|
protected boolean |
_emptyStringQueryAllowed
Does it accept an empty string for query?
|
protected int |
_fetchPageNumber
Fetch page number.
|
protected boolean |
_fetchScopeEffective
Is fetch-narrowing effective?
|
protected int |
_fetchSize
Fetch size.
|
protected int |
_fetchStartIndex
Fetch start index.
|
protected List<FixedConditionLazyChecker> |
_fixedConditionLazyChecker
The list of lazy checker for fixed-condition e.g. dynamic parameters.
|
protected Map<String,Object> |
_freeParameterMap
The map for free parameters.
|
protected GearedCipherManager |
_gearedCipherManager
The manager of geared cipher.
|
protected List<InnerJoinLazyReflector> |
_innerJoinLazyReflector
The list of lazy reflector for auto-detected inner-join.
|
protected List<HpInvalidQueryInfo> |
_invalidQueryList
The list of invalid query info.
|
protected boolean |
_locked
Is the clause object locked?
|
protected Map<String,Object> |
_manualOrderParameterMap
The map for ManualOrder parameters.
|
protected boolean |
_nullOrEmptyChecked
Does it check an invalid query?
|
protected OrderByClause |
_orderByClause
The clause of order-by.
|
protected boolean |
_orderByEffective
Is order-by effective?
|
protected boolean |
_orScopeQueryAndPartEffective
Is or-scope query in and-part?
|
protected int |
_orScopeQueryAndPartIdentity
The identity for and-part of or-scope query
|
protected boolean |
_orScopeQueryEffective
Is or-scope query effective?
|
protected Map<String,LeftOuterJoinInfo> |
_outerJoinMap
The map of left-outer-join info.
|
protected boolean |
_overridingQueryAllowed
Does it allow overriding query?
|
protected boolean |
_pagingAdjustmentEnabled
Is the clause for paging select?
|
protected boolean |
_pagingCountLaterEnabled
Is the count executed later?
|
protected boolean |
_pagingCountLeastJoinEnabled
Is the joins of count least?
|
protected boolean |
_pkOnlySelectForcedlyEnabled
Does it forcedly select only primary key?
|
protected SelectClauseType |
_previousSelectClauseType
The previous type of select clause.
|
protected HpCBPurpose |
_purpose
The purpose of condition-bean for check at condition-query.
|
protected boolean |
_queryUpdateForcedDirectEffective
Does it allowed to use in-scope clause in query update?
|
protected Map<String,String> |
_relationPathForeignAliasMap
The map of relationPath and foreignAliasName.
|
protected ScalarSelectOption |
_scalarSelectOption
The option for ScalarSelect.
|
protected Map<String,String> |
_selectClauseRealColumnAliasMap
The map of real column and alias of select clause. map:{realColumnName : aliasName} (NullAllowed: lazy-load)
|
protected SelectClauseType |
_selectClauseType
The type of select clause.
|
protected boolean |
_selectColumnCipherEffective
Does it use cipher for select columns?
|
protected Map<String,String> |
_selectColumnKeyNameMap
The map of key name of select column by on-query name.
|
protected Set<String> |
_selectedNextConnectingRelationSet
The set of relation connecting to selected next relation.
|
protected Map<String,String> |
_selectedRelationBasicMap
The basic map of selected relation.
|
protected Map<String,Map<String,SelectedRelationColumn>> |
_selectedRelationColumnMap
The column map of selected relation.
|
protected Map<String,String> |
_selectedRelationPathToTableAliasMap
The path-to-alias map of selected relation.
|
protected Map<String,Map<String,Integer>> |
_selectIndexMap
The map of select index by key name of select column.
|
protected Map<String,HpDerivingSubQueryInfo> |
_specifiedDerivingSubQueryMap
Specified derive sub-query map.
|
protected Map<String,Map<String,SpecifiedColumn>> |
_specifiedSelectColumnMap
Specified select column map.
|
protected boolean |
_structuralPossibleInnerJoinEnabled
Does it allow to auto-detect joins that can be structural-possible inner-join?
|
protected SubQueryIndentProcessor |
_subQueryIndentProcessor
The processor for sub-query indent.
|
protected int |
_subQueryLevel
The hierarchy level of sub-query.
|
protected String |
_tableDbName
The DB name of table.
|
protected boolean |
_thatsBadTimingDetectEffective
Does it allow "that's bad timing" check?
|
protected List<AbstractSqlClause.UnionQueryInfo> |
_unionQueryInfoList
The list of union clause.
|
protected boolean |
_useInScopeSubQueryForExistsReferrer
Does it use in-scope sub-query for exists-referrer?
|
protected boolean |
_useSelectIndex
Is use select index?
|
protected List<QueryClauseFilter> |
_whereClauseSimpleFilterList
The filter for where clause.
|
protected List<QueryClause> |
_whereList
The list of where clause.
|
protected boolean |
_whereUsedInnerJoinEnabled
Does it allow to auto-detect joins that can be where-used inner-join?
|
protected static SelectClauseType |
DEFAULT_SELECT_CLAUSE_TYPE |
protected static String |
SELECT_HINT |
BASE_POINT_ALIAS_NAME, BASE_POINT_HANDLING_ENTITY_NO, RELATION_PATH_DELIMITER| コンストラクタと説明 |
|---|
AbstractSqlClause(String tableDbName)
Constructor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
acceptScalarSelectOption(ScalarSelectOption option)
Accept the option of scalar-select.
|
void |
addManualOrderToPreviousOrderByElement(ManualOrderOption manualOrderOption) |
void |
addNullsFirstToPreviousOrderBy() |
void |
addNullsLastToPreviousOrderBy() |
protected void |
addUnionQueryInfo(AbstractSqlClause.UnionQueryInfo unionQueryInfo) |
void |
addWhereClauseSimpleFilter(QueryClauseFilter whereClauseSimpleFilter) |
void |
adjustLikeSearchDBWay(LikeSearchOption option)
Adjust like-search of DB way.
|
protected void |
analyzeSelectedNextConnectingRelation(String foreignRelationPath) |
protected void |
appendSelectHint(StringBuilder sb) |
protected void |
assertAlreadyOuterJoin(String foreignAliasName) |
protected void |
assertCurrentTmpOrScopeQueryInfo() |
protected void |
assertJoinOnMapNotEmpty(Map<ColumnRealName,ColumnRealName> joinOnMap,
String foreignAliasName) |
protected void |
assertNotYetOuterJoin(String aliasName) |
protected void |
assertObjectNotNull(String variableName,
Object value) |
protected void |
assertStringNotNullAndNotTrimmedEmpty(String variableName,
String value) |
void |
backupSpecifiedSelectColumn()
Back up specified select columns.
|
void |
backupWhereClauseOnBaseQuery()
Back up where clause on base query.
|
void |
beginOrScopeQuery()
Begin or-scope query.
|
void |
beginOrScopeQueryAndPart()
Begin or-scope query to and-part.
|
protected String |
buildClauseFromWhereAsTemplate(boolean template) |
protected void |
buildClauseWithoutMainSelect(StringBuilder sb,
String selectClause) |
protected String |
buildColumnQueryObjectBindExp(String relativePath) |
protected String |
buildFreeParameterBindExp(String relativePath) |
protected void |
buildFromClause(StringBuilder sb) |
protected void |
buildJoinOnClause(StringBuilder sb,
LeftOuterJoinInfo joinInfo,
Map<ColumnRealName,ColumnRealName> joinOnMap) |
protected void |
buildJoinTableClause(StringBuilder sb,
LeftOuterJoinInfo joinInfo,
String joinExp,
boolean canBeInnerJoin) |
protected void |
buildLeftOuterJoinClause(StringBuilder sb,
String foreignAliasName,
LeftOuterJoinInfo joinInfo,
boolean structuralPossibleInnerJoinAllowed) |
protected String |
buildManualOrderParameterBindExp(String relativePath) |
protected void |
buildQueryUpdateDirectClause(Map<String,Object> columnParameterMap,
String whereClause,
DBMeta dbmeta,
StringBuilder sb) |
protected void |
buildQueryUpdateInScopeClause(Map<String,Object> columnParameterMap,
DBMeta dbmeta,
StringBuilder sb) |
protected void |
buildQueryUpdateSetClause(Map<String,Object> columnParameterMap,
DBMeta dbmeta,
StringBuilder sb,
String aliasName) |
protected String |
buildSelectClauseAvg(String aliasName) |
protected String |
buildSelectClauseCount() |
protected String |
buildSelectClauseCountDistinct(String aliasName) |
protected String |
buildSelectClauseMax(String aliasName) |
protected String |
buildSelectClauseMin(String aliasName) |
protected String |
buildSelectClauseScalar(String aliasName) |
protected String |
buildSelectClauseSpecifiedScalar(String aliasName,
String function) |
protected String |
buildSelectClauseSum(String aliasName) |
protected String |
buildSelectIndexAlias(ColumnSqlName sqlName,
String aliasName,
int selectIndex,
String entityNo) |
protected String |
buildSelectIndexCuttingName(int selectIndex,
String baseName,
int limitSize) |
protected String |
buildSelectIndexSimpleName(int selectIndex) |
protected String |
buildSpaceBar(int size) |
protected void |
buildWhereClause(StringBuilder sb) |
protected void |
buildWhereClause(StringBuilder sb,
boolean template) |
protected boolean |
canBeCountLeastJoin(LeftOuterJoinInfo joinInfo) |
protected boolean |
canBeInnerJoin(LeftOuterJoinInfo joinInfo,
boolean structuralPossibleInnerJoinAllowed) |
protected boolean |
canBeNullObjectSpecifiedColumn(ColumnInfo columnInfo) |
protected boolean |
canPagingCountLater() |
boolean |
canPagingCountLeastJoin()
Can it be paging count least join?
|
protected boolean |
canUseDeleteTableAliasHint() |
protected boolean |
canUseQueryUpdateInScope(DBMeta dbmeta) |
boolean |
canUseRelationCache(String relationPath)
Can it use the relation cache for entity mapping?
|
void |
changeAliasNameLimitSize(int aliasNameLimitSize)
Change limit size of alias name.
|
protected void |
changeSelectClauseType(SelectClauseType selectClauseType) |
void |
changeToInnerJoin(String foreignAliasName)
Change the join type for the relation to inner join manually.
|
protected boolean |
checkCountLeastJoinAllowed() |
protected void |
checkFixedConditionLazily() |
void |
checkNullOrEmptyQuery()
Check null-or-empty query.
|
protected boolean |
checkStructuralPossibleInnerJoinAllowed() |
AbstractSqlClause |
cipherManager(GearedCipherManager manager)
Set the manager of geared cipher.
|
void |
classifySelectClauseType(SelectClauseType selectClauseType)
Classify the type of select clause into specified type.
|
void |
clearBaseTableInlineWhereClause() |
void |
clearOrderBy()
Clear order-by information in this clause.
|
protected void |
clearOrScopeQuery() |
void |
clearOuterJoinInlineWhereClause() |
protected void |
clearSelectIndex() |
void |
clearSpecifiedDerivingSubQuery()
Clear specified deriving sub-query.
|
void |
clearSpecifiedSelectColumn()
Clear specified select columns.
|
void |
clearUnionQuery() |
void |
clearWhereClauseOnBaseQuery()
Clear where clauses on the base query.
|
protected abstract String |
createFromBaseTableHint() |
protected abstract String |
createFromHint() |
protected InnerJoinLazyReflectorBase |
createInnerJoinLazyReflector(QueryUsedAliasInfo usedAliasInfo) |
protected OrScopeQueryReflector |
createOrClauseReflector() |
protected OrderByClause.OrderByNullsSetupper |
createOrderByNullsSetupper() |
protected OrderByClause.OrderByNullsSetupper |
createOrderByNullsSetupperByCaseWhen() |
protected Map<String,SelectedRelationColumn> |
createSelectedSelectColumnInfo(String foreignTableAliasName,
String localTableDbName,
String foreignPropertyName,
String localRelationPath) |
protected abstract String |
createSelectHint() |
protected <VALUE> Map<String,VALUE> |
createSelectIndexEntryMap() |
protected <VALUE> Map<String,VALUE> |
createSelectIndexInnerMap() |
protected <VALUE> Map<String,VALUE> |
createSelectOnQueryColumnKeyMap() |
protected abstract String |
createSqlSuffix() |
AbstractSqlClause |
dbmetaProvider(DBMetaProvider dbmetaProvider)
Set the provider of DB meta.
|
protected String |
decryptSelectColumnIfNeeds(ColumnInfo columnInfo,
String valueExp) |
protected String |
deleteUnionWhereTemplateMark(String unionClause) |
void |
disableColumnNullObject()
Disable the handling of column null object.
|
void |
disableColumnNullObjectGearedToSpecify()
Disable the handling of column null object geared to specify.
|
void |
disableEmptyStringQuery()
Disable empty string query.
|
void |
disableInnerJoinAutoDetect()
Disable auto-detecting inner-join.
|
void |
disableOverridingQuery()
Disable overriding query.
|
void |
disablePagingAdjustment()
Disable paging adjustment.
|
void |
disablePagingCountLater()
Disable paging count-later that means counting after selecting.
|
void |
disablePagingCountLeastJoin()
Disable paging count-least-join, which means least joined on count select.
|
void |
disablePKOnlySelectForcedly()
Disable PK only select forcedly.
|
void |
disableSelectColumnCipher()
Disable select column cipher effective.
|
void |
disableSelectIndex()
Disable select index.
|
void |
disableStructuralPossibleInnerJoin()
Disable auto-detecting structural-possible inner-join.
|
void |
disableThatsBadTimingDetect()
Disable "that's-bad-timing" detect for compatible.
|
void |
disableWhereUsedInnerJoin()
Disable auto-detecting where-used inner-join.
|
protected int |
doAddValueToThemeList(String themeKey,
Object addedValue,
Map<String,Object> map) |
protected String |
doBuildFunctionExp(String function,
ColumnInfo columnInfo,
String valueExp) |
protected String |
doBuildFunctionExp(String function,
String columnExp) |
protected int |
doBuildJoinOnClauseAdditional(StringBuilder sb,
LeftOuterJoinInfo joinInfo,
Map<ColumnRealName,ColumnRealName> joinOnMap,
int currentConditionCount) |
protected int |
doBuildJoinOnClauseBasic(StringBuilder sb,
LeftOuterJoinInfo joinInfo,
Map<ColumnRealName,ColumnRealName> joinOnMap,
int currentConditionCount) |
protected int |
doBuildJoinOnClauseFixed(StringBuilder sb,
LeftOuterJoinInfo joinInfo,
Map<ColumnRealName,ColumnRealName> joinOnMap,
int currentConditionCount) |
protected void |
doChangeToInnerJoin(String foreignAliasName,
boolean autoDetect) |
protected abstract void |
doClearFetchPageClause() |
protected String |
doDecryptIfNeeds(ColumnInfo columnInfo,
String valueExp) |
protected abstract void |
doFetchFirst() |
protected abstract void |
doFetchPage() |
protected List<HpInvalidQueryInfo> |
doGetInvalidQueryList() |
protected void |
doReflectWhereUsedToJoin(String usedAliasName) |
protected void |
doRegisterOrderBy(String orderByProperty,
boolean ascOrDesc,
ColumnInfo columnInfo,
boolean derived) |
protected void |
doRegisterOuterJoin(String foreignAliasName,
String foreignTableDbName,
String localAliasName,
String localTableDbName,
Map<ColumnRealName,ColumnRealName> joinOnMap,
String relationPath,
ForeignInfo foreignInfo,
String fixedCondition,
FixedConditionResolver fixedConditionResolver) |
protected void |
doRegisterSelectIndex(String entityNo,
String keyName,
Integer selectIndex) |
protected void |
doRegisterSelectOnQueryColumnKey(String entityNo,
String keyName,
String onQueryName) |
protected void |
doRegisterWhereClause(List<QueryClause> clauseList,
ColumnRealName columnRealName,
ConditionKey key,
ConditionValue value,
ColumnFunctionCipher cipher,
ConditionOption option,
boolean inline,
boolean onClause) |
protected void |
doRegisterWhereClause(List<QueryClause> clauseList,
QueryClause clause) |
protected void |
doRegisterWhereClause(List<QueryClause> clauseList,
String clause) |
void |
enableColumnNullObject()
Enable the handling of column null object.
|
void |
enableColumnNullObjectGearedToSpecify()
Enable the handling of column null object geared to specify.
|
void |
enableEmptyStringQuery()
Enable empty string query (means allowed).
|
void |
enableInnerJoinAutoDetect()
Enable to auto-detect joins that can be (all type) inner-join.
|
void |
enableOverridingQuery()
Enable overriding query (means allowed).
|
void |
enablePagingAdjustment()
Enable paging adjustment, e.g.
|
void |
enablePagingCountLater()
Enable paging count-later that means counting after selecting.
|
void |
enablePagingCountLeastJoin()
Enable paging count-least-join, which means least joined on count select.
|
void |
enablePKOnlySelectForcedly()
Enable PK only select forcedly effective, ignoring select clause setting and derived referrer.
|
void |
enableQueryUpdateForcedDirect()
Enable to use direct clause in query update forcedly (contains query delete).
|
void |
enableSelectColumnCipher()
Enable select column cipher effective.
|
void |
enableStructuralPossibleInnerJoin()
Enable to auto-detect joins that can be structure-possible inner-join.
|
void |
enableThatsBadTimingDetect()
Enable "that's-bad-timing" detect.
|
void |
enableWhereUsedInnerJoin()
Enable to auto-detect joins that can be where-used inner-join.
|
protected String |
encryptIfNeeds(ColumnInfo columnInfo,
String valueExp) |
void |
endOrScopeQuery()
End or-scope query.
|
void |
endOrScopeQueryAndPart()
End or-scope query to and-part.
|
void |
exchangeFirstWhereClauseForLastOne()
Exchange first The clause of 'where' for last one.
|
void |
fetchFirst(int fetchSize)
Fetch first several rows only.
|
void |
fetchPage(int fetchPageNumber)
Fetch page.
|
void |
fetchScope(int fetchStartIndex,
int fetchSize)
Fetch scope (skip first several rows, and fetch first rows).
|
protected String |
filterEnclosingClause(String sql) |
protected String |
filterQueryUpdateBasePointAliasNameLocalUnsupported(String subQuery) |
protected ColumnRealName |
filterSpecifyColumnCalculation(ColumnRealName specifiedRealName,
SpecifiedColumn hpCol) |
protected String |
filterUnionCountOrScalarEnclosing(String sql) |
protected String |
filterUnionNormalSelectEnclosing(String sql) |
protected String |
filterWhereClauseSimply(String clauseElement) |
ColumnFunctionCipher |
findColumnFunctionCipher(ColumnInfo columnInfo)
Find the cipher for the column.
|
protected DBMeta |
findDBMeta(String tableDbName) |
String |
getBasePointAliasName()
Get the alias name for base point table.
|
protected List<QueryClause> |
getBaseTableInlineWhereClauseList4Register() |
protected List<QueryClause> |
getBaseTableInlineWhereList() |
protected Map<String,DBMeta> |
getCachedDBMetaMap() |
String |
getClause()
Get the clause of all parts.
|
String |
getClauseFromWhereWithUnionTemplate()
Get from-where clause without select and orderBy and sqlSuffix.
|
String |
getClauseFromWhereWithWhereUnionTemplate()
Get from-where clause without select and orderBy and sqlSuffix as template.
|
String |
getClauseQueryDelete() |
String |
getClauseQueryInsert(Map<String,String> fixedValueQueryExpMap,
SqlClause resourceSqlClause) |
String |
getClauseQueryUpdate(Map<String,Object> columnParameterMap) |
protected Map<String,Set<ColumnInfo>> |
getColumnNullObjectSpecifiedMap() |
Map<String,Object> |
getColumnQueryObjectMap()
Get the map for ColumnQuery objects for parameter comment.
|
protected DBMeta |
getDBMeta() |
protected int |
getDefaultAliasNameLimitSize() |
String |
getDerivedReferrerNestedAlias()
Get the alias name for derived column of nested DerivedReferrer.
|
int |
getFetchNarrowingLoopCount()
Get fetch-narrowing loop-count.
|
int |
getFetchNarrowingSkipStartIndex()
Get fetch-narrowing skip-start-index.
|
int |
getFetchPageNumber()
Get fetch page number.
|
int |
getFetchSize()
Get fetch size.
|
int |
getFetchStartIndex()
Get fetch start index.
|
Map<String,Object> |
getFreeParameterMap()
Get the map for free parameters for parameter comment.
|
String |
getFromBaseTableHint()
Get the clause of from-base-table.
|
String |
getFromClause()
Get the clause of 'from'.
|
String |
getFromHint()
Get the hint of 'from'.
|
GearedCipherManager |
getGearedCipherManager()
Get the manager of geared cipher.
|
String |
getInlineViewBasePointAlias()
Get the alias name for base point table on in-line view.
|
protected String |
getInlineViewClause(TableSqlName inlineTableSqlName,
List<QueryClause> inlineWhereClauseList,
int tablePos) |
protected List<InnerJoinLazyReflector> |
getInnerJoinLazyReflectorList() |
int |
getInScopeLimit()
Get the limit of inScope.
|
List<HpInvalidQueryInfo> |
getInvalidQueryList()
Get the list of invalid query.
|
protected String |
getLeftOuterJoinClause() |
Set<ColumnInfo> |
getLocalSpecifiedNullObjectColumnSet()
Get the set of column specified as null object for the local table.
|
Map<String,Object> |
getManualOrderParameterMap()
Get the map for ManualOrder parameters for parameter comment.
|
protected OrderByClause |
getOrderBy() |
String |
getOrderByClause()
Get the clause of 'order-by'.
|
OrderByClause |
getOrderByComponent() |
OrderByElement |
getOrderByLastElement()
Get the last element of order-by.
|
protected List<QueryClause> |
getOuterJoinInlineWhereClauseList4Register(String foreignAliasName,
boolean onClause) |
Map<String,LeftOuterJoinInfo> |
getOuterJoinMap()
Get the information of left-outer-join.
|
int |
getPageEndIndex()
Get page end index.
|
int |
getPageStartIndex()
Get page start index.
|
HpCBPurpose |
getPurpose()
Get the purpose of the condition-bean. e.g.
|
protected Map<String,String> |
getRelationPathForeignAliasMap() |
Set<ColumnInfo> |
getRelationSpecifiedNullObjectColumnSet(String relationNoSuffix)
Get the set of column specified as null object for the relation.
|
String |
getScalarSelectColumnAlias()
Get the alias name for specified column of scalar-select.
|
String |
getSelectClause()
Get the clause of 'select'.
|
protected Map<String,String> |
getSelectClauseRealColumnAliasMap() |
Map<String,String> |
getSelectColumnKeyNameMap()
Get the map of key name of select column by on-query name.
|
protected Set<String> |
getSelectedNextConnectingRelationSet() |
protected Map<String,String> |
getSelectedRelationBasicMap() |
Map<String,Map<String,SelectedRelationColumn>> |
getSelectedRelationColumnMap()
Get the map of selected relation column.
|
int |
getSelectedRelationCount()
Get the count of selected relation.
|
protected Map<String,String> |
getSelectedRelationPathToAliasMap() |
String |
getSelectHint()
Get the hint of 'select'.
|
Map<String,Map<String,Integer>> |
getSelectIndexMap()
Get the map of select index by key name of select column.
|
SpecifiedColumn |
getSpecifiedColumnAsOne()
Get the only one specified column.
|
String |
getSpecifiedColumnDbNameAsOne()
Get the DB name of only one specified column.
|
protected Map<String,SpecifiedColumn> |
getSpecifiedColumnElementMapAsOne() |
ColumnInfo |
getSpecifiedColumnInfoAsOne()
Get the information of only one specified column.
|
ColumnRealName |
getSpecifiedColumnRealNameAsOne()
Get the real name of only one specified column.
|
ColumnSqlName |
getSpecifiedColumnSqlNameAsOne()
Get the SQL name of only one specified column.
|
protected String |
getSpecifiedColumnTableAliasNameAsOne() |
List<String> |
getSpecifiedDerivingAliasList()
Get the list of alias for specified deriving sub-query.
|
String |
getSpecifiedDerivingAliasNameAsOne()
Get the alias name for specified deriving sub-query as specified one.
|
SpecifiedColumn |
getSpecifiedDerivingColumnAsOne()
Get the specified column for specified deriving sub-query as specified one.
|
ColumnInfo |
getSpecifiedDerivingColumnInfo(String aliasName)
Get the info of column for specified deriving sub-query by the alias name.
|
ColumnInfo |
getSpecifiedDerivingColumnInfoAsOne()
Get the info of column for specified deriving sub-query as specified one.
|
HpDerivingSubQueryInfo |
getSpecifiedDerivingInfo(String aliasName)
Get the info of specified deriving sub-query by the alias name.
|
protected HpDerivingSubQueryInfo |
getSpecifiedDerivingInfoAsOne() |
String |
getSpecifiedDerivingSubQueryAsOne()
Get the clause of specified deriving sub-query as specified one.
|
ColumnRealName |
getSpecifiedResolvedColumnRealNameAsOne()
Get the real name of sub-query resolved column (specified or deriving) as specified one.
|
ColumnSqlName |
getSpecifiedResolvedColumnSqlNameAsOne()
Get the SQL name of definition resolved column (specified or deriving) as specified one.
|
String |
getSqlSuffix()
Get the suffix of SQL.
|
protected SubQueryIndentProcessor |
getSubQueryIndentProcessor() |
int |
getSubQueryLevel()
Get the hierarchy level of sub-query.
|
protected List<QueryClause> |
getTmpOrAdditionalOnClauseList(String aliasName) |
protected List<QueryClause> |
getTmpOrBaseTableInlineWhereList() |
protected List<QueryClause> |
getTmpOrOuterJoinInlineClauseList(String aliasName) |
protected List<QueryClause> |
getTmpOrWhereList() |
String |
getUnionQueryInlineViewAlias()
Get the alias name for in-line view of union-query.
|
String |
getUnionSelectClauseMark() |
String |
getUnionWhereClauseMark() |
String |
getUnionWhereFirstConditionMark() |
String |
getWhereClause()
Get the clause of 'where'.
|
protected List<QueryClause> |
getWhereClauseList4Register() |
String |
getWhereClauseMark() |
String |
getWhereFirstConditionMark() |
protected List<QueryClause> |
getWhereList() |
void |
handleSpecifiedSelectColumn(String tableAliasName,
SpecifiedSelectColumnHandler columnHandler)
Handle the specified select column in the table.
|
boolean |
hasBaseTableInlineWhereClause() |
protected boolean |
hasFixedConditionOverRelationJoin() |
protected boolean |
hasInnerJoinLazyReflector() |
boolean |
hasOrderByClause()
Does it have order-by clauses?
|
boolean |
hasOuterJoin()
Does outer-join (at least one) exist?
|
boolean |
hasOuterJoinInlineWhereClause() |
protected boolean |
hasQueryUpdateSubQueryPossible(String whereClause) |
boolean |
hasSelectedRelation(String foreignRelationPath)
Is the relation selected?
|
boolean |
hasSpecifiedDerivedOrderByClause()
Does it have order-by clauses as specified-derived order-by?
|
boolean |
hasSpecifiedDerivingSubQuery()
Does it have the specified deriving sub-query at least one?
|
boolean |
hasSpecifiedDerivingSubQuery(String aliasName)
Does it have the specified deriving sub-query by the alias name?
|
boolean |
hasSpecifiedSelectColumn(String tableAliasName)
Does it have specified select columns?
|
boolean |
hasSpecifiedSelectColumn(String tableAliasName,
String columnDbName)
Does it have the specified select column?
|
protected boolean |
hasSpecifyCalculation(SpecifiedColumn hpCol) |
boolean |
hasUnionQuery() |
boolean |
hasWhereClauseOnBaseQuery()
Does it have where clauses on the base query?
|
void |
ignoreNullOrEmptyQuery()
Ignore null-or-empty query.
|
boolean |
isColumnNullObjectAllowed()
Is the handling of column null object enabled?
|
protected boolean |
isColumnNullObjectGearedToSpecify() |
boolean |
isCursorSelectByPagingAllowed()
Is cursor select by paging allowed?
|
protected boolean |
isDeleteTableAliasHintSupported() |
protected boolean |
isDuplicateAliasName(String resolvedName) |
boolean |
isEmptyStringQueryAllowed()
Is empty string allowed?
|
boolean |
isFetchNarrowingEffective()
Is fetch-narrowing effective?
|
boolean |
isFetchScopeEffective()
Is fetch scope effective?
|
boolean |
isFetchSizeSupported()
Is fetch size supported?
|
boolean |
isFetchStartIndexSupported()
Is fetch start index supported?
|
boolean |
isForSubQuery()
Is this SQL for sub-query?
|
protected boolean |
isInlineViewOptimizedCondition(String fixedCondition) |
protected boolean |
isJoinInParentheses() |
boolean |
isLocked()
Is the clause object locked?
|
boolean |
isNullOrEmptyQueryChecked()
Is null-or-empty query checked?
|
boolean |
isOrScopeQueryAndPartEffective()
Is and-part of or-scope effective?
|
boolean |
isOrScopeQueryEffective()
Is or-scope query effective?
|
protected boolean |
isOutOfWhereUsedInnerJoin() |
boolean |
isOverridingQueryAllowed()
Is overriding query allowed?
|
protected boolean |
isSelectClauseNonUnionScalar() |
protected boolean |
isSelectClauseNonUnionSelect() |
protected boolean |
isSelectClauseTypeCount() |
protected boolean |
isSelectClauseTypeNonUnionCount() |
protected boolean |
isSelectClauseTypeScalar() |
protected boolean |
isSelectClauseTypeSpecifiedScalar() |
protected boolean |
isSelectClauseTypeUniqueScalar() |
boolean |
isSelectedNextConnectingRelation(String foreignRelationPath)
Does the relation connect to selected next relation?
|
boolean |
isSelectedRelationEmpty()
Is the selected relation empty?
|
protected boolean |
isSpecifiedDerivedOrderBy(String derivedAliasName) |
boolean |
isStructuralPossibleInnerJoinEnabled()
Does it allow to auto-detect structure-possible inner-join?
|
boolean |
isThatsBadTimingDetectAllowed()
Does it allow "that's-bad-timing" detect?
|
boolean |
isUnderOverRelation(String relationPath)
Is the relation under over-relation?
|
protected boolean |
isUnionNormalSelectEnclosingRequired() |
protected boolean |
isUpdateDirectJoinSupported() |
protected boolean |
isUpdateSubQueryUseLocalTableSupported() |
protected boolean |
isUpdateTableAliasNameSupported() |
boolean |
isUseInScopeSubQueryForExistsReferrer()
Does it use in-scope sub-query for exists-referrer?
|
protected boolean |
isUseQueryUpdateDirect(DBMeta dbmeta) |
boolean |
isWhereUsedInnerJoinEnabled()
Does it allow to auto-detect where-used inner-join?
|
protected String |
ln() |
void |
lock()
Lock the clause object.
|
protected void |
markOrScopeQueryAndPart(List<QueryClause> clauseList) |
protected boolean |
needsDeleteTableAliasHint(String whereClause) |
protected boolean |
needsUnionCountOrScalarEnclosing() |
protected boolean |
needsUnionNormalSelectEnclosing() |
protected OrderByElement |
newOrderByElement(ColumnInfo columnInfo,
boolean derived,
String aliasName,
String columnName) |
protected String |
prepareClauseOrderBy() |
protected String |
prepareClauseSqlSuffix() |
protected String |
prepareUnionClause(String selectClause) |
protected int |
processSelectClauseDerivedReferrer(StringBuilder sb,
int selectIndex) |
protected int |
processSelectClauseLocal(StringBuilder sb) |
protected int |
processSelectClauseRelation(StringBuilder sb,
int selectIndex) |
String |
processSubQueryIndent(String sql) |
protected String |
processSubQueryIndent(String sql,
String preIndent,
String originalSql) |
protected void |
reflectClauseLazilyIfExists() |
protected void |
reflectInnerJoinAutoDetectLazily() |
protected void |
reflectTmpOrClauseToRealObject(OrScopeQueryInfo localInfo) |
protected void |
reflectUnderInnerJoinToJoin(LeftOuterJoinInfo foreignJoinInfo,
boolean autoDetect) |
void |
reflectWhereUsedToJoin(QueryUsedAliasInfo usedAliasInfo)
Reflect the information of where-used-to join.
|
void |
registerBaseTableInlineWhereClause(ColumnSqlName columnSqlName,
ConditionKey key,
ConditionValue value,
ColumnFunctionCipher cipher,
ConditionOption option) |
void |
registerBaseTableInlineWhereClause(String value) |
void |
registerClauseLazyReflector(ClauseLazyReflector clauseLazyReflector)
Register the lazy reflector of clause.
|
protected void |
registerColumnNullObject(String tableAliasName,
ColumnInfo columnInfo) |
String |
registerColumnQueryObjectToThemeList(String themeKey,
Object addedValue)
Register ColumnQuery object to theme list.
|
void |
registerFixedConditionLazyChecker(FixedConditionLazyChecker checker)
Register the lazy checker for the fixed condition.
|
String |
registerFreeParameterToThemeList(String themeKey,
Object addedValue)
Register free parameter to theme list.
|
protected void |
registerInnerJoinLazyReflector(QueryUsedAliasInfo usedAliasInfo) |
protected void |
registerInnerJoinLazyReflector(String usedAliasName) |
String |
registerManualOrderParameterToThemeList(String themeKey,
Object addedValue)
Register ManualOrder parameter to theme list.
|
void |
registerOrderBy(String orderByProperty,
boolean ascOrDesc,
ColumnInfo columnInfo) |
void |
registerOuterJoin(String foreignAliasName,
String foreignTableDbName,
String localAliasName,
String localTableDbName,
Map<ColumnRealName,ColumnRealName> joinOnMap,
String relationPath,
ForeignInfo foreignInfo,
String fixedCondition,
FixedConditionResolver fixedConditionResolver)
Register outer-join.
|
void |
registerOuterJoinFixedInline(String foreignAliasName,
String foreignTableDbName,
String localAliasName,
String localTableDbName,
Map<ColumnRealName,ColumnRealName> joinOnMap,
String relationPath,
ForeignInfo foreignInfo,
String fixedCondition,
FixedConditionResolver fixedConditionResolver)
Register outer-join using in-line view for fixed-conditions.
|
void |
registerOuterJoinInlineWhereClause(String foreignAliasName,
ColumnSqlName columnSqlName,
ConditionKey key,
ConditionValue value,
ColumnFunctionCipher cipher,
ConditionOption option,
boolean onClause) |
void |
registerOuterJoinInlineWhereClause(String foreignAliasName,
String clause,
boolean onClause) |
void |
registerSelectedRelation(String foreignTableAliasName,
String localTableDbName,
String foreignPropertyName,
String localRelationPath,
String foreignRelationPath)
Register selected relation.
|
protected void |
registerSelectIndex(String entityNo,
String keyName,
String onQueryName,
Integer selectIndex) |
void |
registerSpecifiedDerivedOrderBy(String orderByProperty,
boolean ascOrDesc) |
void |
registerUnionQuery(UnionClauseProvider unionClauseProvider,
boolean unionAll) |
void |
registerWhereClause(ColumnRealName columnRealName,
ConditionKey key,
ConditionValue value,
ColumnFunctionCipher cipher,
ConditionOption option,
String usedAliasName)
Register 'where' clause.
|
void |
registerWhereClause(QueryClause clause,
QueryUsedAliasInfo... usedAliasInfos)
Register 'where' clause.
|
void |
registerWhereClause(String clause,
String usedAliasName)
Register 'where' clause.
|
void |
registerWhereClause(String clause,
String usedAliasName,
boolean noWayInner)
Register 'where' clause.
|
void |
removeSpecifiedSelectColumn(String tableAliasName) |
protected String |
replace(String text,
String fromText,
String toText) |
String |
resolveJoinAliasName(String relationPath,
int nestLevel)
Resolve alias name for join table.
|
int |
resolveRelationNo(String localTableName,
String foreignPropertyName)
Resolve relation no.
|
String |
resolveSubQueryBeginMark(String subQueryIdentity) |
String |
resolveSubQueryEndMark(String subQueryIdentity) |
void |
restoreSpecifiedSelectColumn()
Restore specified select columns if backup exists.
|
void |
restoreWhereClauseOnBaseQuery()
Restore where clause on base query if backup exists.
|
void |
reviveFetchScope()
Revive fetch-scope from suppressed status.
|
void |
reviveOrderBy()
Revive order-by from suppressed status.
|
void |
rollbackSelectClauseType()
Roll-back the type of select clause into previous one.
|
void |
saveInvalidQuery(HpInvalidQueryInfo invalidQueryInfo)
Save the invalid query.
|
protected void |
savePreviousSelectClauseType() |
void |
setPurpose(HpCBPurpose purpose)
Set the purpose of the condition-bean. e.g.
|
void |
setupForSubQuery(int subQueryLevel)
Set up this SQL for sub-query.
|
void |
specifyDerivingSubQuery(HpDerivingSubQueryInfo subQueryInfo)
Specify deriving sub-query for DerivedReferrer.
|
void |
specifySelectColumn(SpecifiedColumn specifiedColumn)
Specify select columns.
|
void |
suppressFetchScope()
Suppress fetch-scope.
|
void |
suppressOrderBy()
Suppress order-by temporarily.
|
protected void |
throwFetchSizeNotPlusException(int fetchPageNumber) |
protected void |
throwQueryUpdateUnavailableFunctionException(String unavailableFunction,
DBMeta dbmeta) |
protected void |
throwScalarSelectUnionQuerySpecifyCalculationUnsupportedException() |
protected ColumnInfo |
toColumnInfo(String tableDbName,
String columnDbName) |
protected ColumnSqlName |
toColumnSqlName(String tableDbName,
String columnDbName) |
String |
translateSelectedRelationPathToPropName(String foreignRelationPath)
Translate selected relation path (foreignRelationPath: relationNoSuffix) to relation property name (foreignPropertyName).
|
String |
translateSelectedRelationPathToTableAlias(String foreignRelationPath)
Translate selected relation path (foreignRelationPath: relationNoSuffix) to foreign table alias name (foreignTableAliasName).
|
void |
unlock()
Unlock the clause object.
|
void |
useInScopeSubQueryForExistsReferrer()
Use in-scope sub-query for exists-referrer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdbway, lockForUpdateprotected static final SelectClauseType DEFAULT_SELECT_CLAUSE_TYPE
protected final String _tableDbName
protected DBMeta _dbmeta
protected DBMetaProvider _dbmetaProvider
protected Map<String,DBMeta> _cachedDBMetaMap
protected int _subQueryLevel
protected Map<String,String> _selectedRelationBasicMap
protected Map<String,String> _selectedRelationPathToTableAliasMap
protected Map<String,Map<String,SelectedRelationColumn>> _selectedRelationColumnMap
protected Set<String> _selectedNextConnectingRelationSet
protected Map<String,Map<String,SpecifiedColumn>> _specifiedSelectColumnMap
protected Map<String,Map<String,SpecifiedColumn>> _backupSpecifiedSelectColumnMap
protected Map<String,HpDerivingSubQueryInfo> _specifiedDerivingSubQueryMap
protected Map<String,String> _selectClauseRealColumnAliasMap
protected SelectClauseType _selectClauseType
protected SelectClauseType _previousSelectClauseType
protected Map<String,Map<String,Integer>> _selectIndexMap
protected Map<String,String> _selectColumnKeyNameMap
protected boolean _useSelectIndex
protected int _aliasNameLimitSize
protected Map<String,LeftOuterJoinInfo> _outerJoinMap
protected Map<String,String> _relationPathForeignAliasMap
protected List<FixedConditionLazyChecker> _fixedConditionLazyChecker
protected boolean _structuralPossibleInnerJoinEnabled
protected boolean _whereUsedInnerJoinEnabled
protected List<InnerJoinLazyReflector> _innerJoinLazyReflector
protected List<QueryClause> _whereList
protected List<QueryClause> _backupWhereList
protected List<QueryClause> _baseTableInlineWhereList
protected OrderByClause _orderByClause
protected List<AbstractSqlClause.UnionQueryInfo> _unionQueryInfoList
protected boolean _orderByEffective
protected int _fetchStartIndex
protected int _fetchSize
protected int _fetchPageNumber
protected boolean _fetchScopeEffective
protected boolean _orScopeQueryEffective
protected OrScopeQueryInfo _currentTmpOrScopeQueryInfo
protected boolean _orScopeQueryAndPartEffective
protected int _orScopeQueryAndPartIdentity
protected SubQueryIndentProcessor _subQueryIndentProcessor
protected boolean _nullOrEmptyChecked
protected List<HpInvalidQueryInfo> _invalidQueryList
protected boolean _emptyStringQueryAllowed
protected boolean _overridingQueryAllowed
protected transient List<QueryClauseFilter> _whereClauseSimpleFilterList
protected Map<String,Object> _columyQueryObjectMap
protected Map<String,Object> _manualOrderParameterMap
protected Map<String,Object> _freeParameterMap
protected GearedCipherManager _gearedCipherManager
protected boolean _selectColumnCipherEffective
protected ScalarSelectOption _scalarSelectOption
protected boolean _pagingAdjustmentEnabled
protected boolean _pagingCountLeastJoinEnabled
protected boolean _pagingCountLaterEnabled
protected boolean _pkOnlySelectForcedlyEnabled
protected boolean _queryUpdateForcedDirectEffective
protected HpCBPurpose _purpose
protected boolean _locked
protected boolean _thatsBadTimingDetectEffective
protected List<ClauseLazyReflector> _clauseLazyReflectorList
protected boolean _useInScopeSubQueryForExistsReferrer
protected boolean _columnNullObjectAllowed
protected boolean _columnNullObjectGearedToSpecify
protected Map<String,Set<ColumnInfo>> _columnNullObjectSpecifiedMap
public AbstractSqlClause(String tableDbName)
tableDbName - The DB name of table. (NotNull)public AbstractSqlClause dbmetaProvider(DBMetaProvider dbmetaProvider)
dbmetaProvider - The provider of DB meta. (NotNull)public AbstractSqlClause cipherManager(GearedCipherManager manager)
manager - The manager of geared cipher. (NullAllowed)public int getSubQueryLevel()
getSubQueryLevel インタフェース内 SqlClausepublic void setupForSubQuery(int subQueryLevel)
setupForSubQuery インタフェース内 SqlClausesubQueryLevel - The hierarchy level of sub-query. (NotMinus: if zero, not for sub-query)public boolean isForSubQuery()
isForSubQuery インタフェース内 SqlClausepublic String getClause()
SqlClauseselect [base-table-columns], [join-table-columns] from [base-table] left outer join [join-table] [join-alias] on [join-condition] where [base-table].[column] = [value] and [join-alias].[column] is null order by [base-table].[column] asc, [join-alias].[column] desc for update
protected void buildClauseWithoutMainSelect(StringBuilder sb, String selectClause)
public String getClauseFromWhereWithUnionTemplate()
SqlClausegetClauseFromWhereWithUnionTemplate インタフェース内 SqlClausepublic String getClauseFromWhereWithWhereUnionTemplate()
SqlClausegetClauseFromWhereWithWhereUnionTemplate インタフェース内 SqlClauseprotected String buildClauseFromWhereAsTemplate(boolean template)
protected String prepareClauseOrderBy()
protected String prepareClauseSqlSuffix()
protected boolean needsUnionNormalSelectEnclosing()
protected boolean isUnionNormalSelectEnclosingRequired()
protected boolean needsUnionCountOrScalarEnclosing()
public String getSelectClause()
SqlClausegetSelectClause インタフェース内 SqlClauseprotected int processSelectClauseLocal(StringBuilder sb)
protected int processSelectClauseRelation(StringBuilder sb, int selectIndex)
protected int processSelectClauseDerivedReferrer(StringBuilder sb, int selectIndex)
protected boolean isSelectClauseTypeCount()
protected boolean isSelectClauseTypeScalar()
protected boolean isSelectClauseTypeUniqueScalar()
protected boolean isSelectClauseTypeSpecifiedScalar()
protected boolean isSelectClauseTypeNonUnionCount()
protected boolean isSelectClauseNonUnionScalar()
protected boolean isSelectClauseNonUnionSelect()
protected String buildSelectClauseCount()
protected String buildSelectClauseSpecifiedScalar(String aliasName, String function)
protected void throwScalarSelectUnionQuerySpecifyCalculationUnsupportedException()
protected String doBuildFunctionExp(String function, ColumnInfo columnInfo, String valueExp)
public Map<String,Map<String,Integer>> getSelectIndexMap()
getSelectIndexMap インタフェース内 SqlClausepublic Map<String,String> getSelectColumnKeyNameMap()
getSelectColumnKeyNameMap インタフェース内 SqlClauseprotected void clearSelectIndex()
protected void registerSelectIndex(String entityNo, String keyName, String onQueryName, Integer selectIndex)
protected void doRegisterSelectIndex(String entityNo, String keyName, Integer selectIndex)
protected void doRegisterSelectOnQueryColumnKey(String entityNo, String keyName, String onQueryName)
protected <VALUE> Map<String,VALUE> createSelectOnQueryColumnKeyMap()
protected String buildSelectIndexAlias(ColumnSqlName sqlName, String aliasName, int selectIndex, String entityNo)
protected String buildSelectIndexCuttingName(int selectIndex, String baseName, int limitSize)
protected String buildSelectIndexSimpleName(int selectIndex)
protected boolean isDuplicateAliasName(String resolvedName)
public void changeAliasNameLimitSize(int aliasNameLimitSize)
SqlClausechangeAliasNameLimitSize インタフェース内 SqlClausealiasNameLimitSize - The limit size of alias name. (NotMinus, NotZero)protected int getDefaultAliasNameLimitSize()
public void disableSelectIndex()
SqlClausedisableSelectIndex インタフェース内 SqlClausepublic String getSelectHint()
SqlClausegetSelectHint インタフェース内 SqlClauseprotected void appendSelectHint(StringBuilder sb)
public String getFromClause()
SqlClausegetFromClause インタフェース内 SqlClauseprotected void buildFromClause(StringBuilder sb)
public String getFromBaseTableHint()
SqlClausegetFromBaseTableHint インタフェース内 SqlClauseprotected String getLeftOuterJoinClause()
protected void checkFixedConditionLazily()
protected void reflectInnerJoinAutoDetectLazily()
protected boolean checkCountLeastJoinAllowed()
protected boolean checkStructuralPossibleInnerJoinAllowed()
protected boolean hasFixedConditionOverRelationJoin()
protected boolean canBeCountLeastJoin(LeftOuterJoinInfo joinInfo)
protected void buildLeftOuterJoinClause(StringBuilder sb, String foreignAliasName, LeftOuterJoinInfo joinInfo, boolean structuralPossibleInnerJoinAllowed)
protected boolean canBeInnerJoin(LeftOuterJoinInfo joinInfo, boolean structuralPossibleInnerJoinAllowed)
protected boolean isJoinInParentheses()
protected void buildJoinTableClause(StringBuilder sb, LeftOuterJoinInfo joinInfo, String joinExp, boolean canBeInnerJoin)
protected String getInlineViewClause(TableSqlName inlineTableSqlName, List<QueryClause> inlineWhereClauseList, int tablePos)
protected void buildJoinOnClause(StringBuilder sb, LeftOuterJoinInfo joinInfo, Map<ColumnRealName,ColumnRealName> joinOnMap)
protected int doBuildJoinOnClauseBasic(StringBuilder sb, LeftOuterJoinInfo joinInfo, Map<ColumnRealName,ColumnRealName> joinOnMap, int currentConditionCount)
protected int doBuildJoinOnClauseFixed(StringBuilder sb, LeftOuterJoinInfo joinInfo, Map<ColumnRealName,ColumnRealName> joinOnMap, int currentConditionCount)
protected boolean isInlineViewOptimizedCondition(String fixedCondition)
protected int doBuildJoinOnClauseAdditional(StringBuilder sb, LeftOuterJoinInfo joinInfo, Map<ColumnRealName,ColumnRealName> joinOnMap, int currentConditionCount)
public String getFromHint()
SqlClausegetFromHint インタフェース内 SqlClausepublic String getWhereClause()
SqlClausegetWhereClause インタフェース内 SqlClauseprotected void buildWhereClause(StringBuilder sb)
protected void buildWhereClause(StringBuilder sb, boolean template)
public String getOrderByClause()
SqlClausegetOrderByClause インタフェース内 SqlClausepublic String getSqlSuffix()
SqlClausegetSqlSuffix インタフェース内 SqlClausepublic void registerSelectedRelation(String foreignTableAliasName, String localTableDbName, String foreignPropertyName, String localRelationPath, String foreignRelationPath)
registerSelectedRelation インタフェース内 SqlClauseforeignTableAliasName - The alias name of foreign table. (NotNull)localTableDbName - The table DB name of local. (NotNull)foreignPropertyName - The property name of foreign table. (NotNull)localRelationPath - The path of local relation. (NullAllowed)foreignRelationPath - The path of foreign relation, same as relation No suffix. e.g. _3, _7_2 (NotNull)public String translateSelectedRelationPathToPropName(String foreignRelationPath)
translateSelectedRelationPathToPropName インタフェース内 SqlClauseforeignRelationPath - The relation path of foreign property (relationNoSuffix). e.g. _3, _7_2 (NotNull)public String translateSelectedRelationPathToTableAlias(String foreignRelationPath)
translateSelectedRelationPathToTableAlias インタフェース内 SqlClauseforeignRelationPath - The relation path of foreign property (relationNoSuffix). e.g. _3, _7_2 (NotNull)protected Map<String,SelectedRelationColumn> createSelectedSelectColumnInfo(String foreignTableAliasName, String localTableDbName, String foreignPropertyName, String localRelationPath)
protected void analyzeSelectedNextConnectingRelation(String foreignRelationPath)
public int getSelectedRelationCount()
getSelectedRelationCount インタフェース内 SqlClausepublic boolean isSelectedRelationEmpty()
isSelectedRelationEmpty インタフェース内 SqlClausepublic boolean hasSelectedRelation(String foreignRelationPath)
hasSelectedRelation インタフェース内 SqlClauseforeignRelationPath - The path of foreign relation, same as relation No suffix. e.g. _3, _7_2 (NotNull)public Map<String,Map<String,SelectedRelationColumn>> getSelectedRelationColumnMap()
getSelectedRelationColumnMap インタフェース内 SqlClausepublic boolean isSelectedNextConnectingRelation(String foreignRelationPath)
isSelectedNextConnectingRelation インタフェース内 SqlClauseforeignRelationPath - The path of foreign relation, same as relation No suffix. e.g. _3, _7_2 (NotNull)public void registerOuterJoin(String foreignAliasName, String foreignTableDbName, String localAliasName, String localTableDbName, Map<ColumnRealName,ColumnRealName> joinOnMap, String relationPath, ForeignInfo foreignInfo, String fixedCondition, FixedConditionResolver fixedConditionResolver)
registerOuterJoin インタフェース内 SqlClauseforeignAliasName - The alias name of foreign table. {left outer join [foreignTableDbName] [foreignAliasName]} (NotNull, Unique)foreignTableDbName - The DB name of foreign table. {left outer join [foreignTableDbName] [foreignAliasName]} (NotNull)localAliasName - The alias name of local table. {[localTableDbName] [localAliasName] left outer join} (NotNull)localTableDbName - The DB name of local table. {[localTableDbName] [localAliasName] left outer join} (NotNull)joinOnMap - The map of join condition on on-clause. (NotNull)relationPath - The path of relation. e.g. _1_3 (NotNull)foreignInfo - The information of foreign relation corresponding to this join. (NotNull)fixedCondition - The fixed condition on on-clause. (NullAllowed: if null, means no fixed condition)fixedConditionResolver - The resolver for variables on fixed-condition. (NullAllowed)public void registerOuterJoinFixedInline(String foreignAliasName, String foreignTableDbName, String localAliasName, String localTableDbName, Map<ColumnRealName,ColumnRealName> joinOnMap, String relationPath, ForeignInfo foreignInfo, String fixedCondition, FixedConditionResolver fixedConditionResolver)
registerOuterJoinFixedInline インタフェース内 SqlClauseforeignAliasName - The alias name of foreign table. {left outer join [foreignTableDbName] [foreignAliasName]} (NotNull, Unique)foreignTableDbName - The DB name of foreign table. {left outer join [foreignTableDbName] [foreignAliasName]} (NotNull)localAliasName - The alias name of local table. {[localTableDbName] [localAliasName] left outer join} (NotNull)localTableDbName - The DB name of local table. {[localTableDbName] [localAliasName] left outer join} (NotNull)joinOnMap - The map of join condition on on-clause. (NotNull)relationPath - The path of relation. e.g. _1_3 (NotNull)foreignInfo - The information of foreign relation corresponding to this join. (NotNull)fixedCondition - The fixed condition on in-line view. (NullAllowed: if null, means no fixed condition)fixedConditionResolver - The resolver for variables on fixed-condition. (NullAllowed)protected void doRegisterOuterJoin(String foreignAliasName, String foreignTableDbName, String localAliasName, String localTableDbName, Map<ColumnRealName,ColumnRealName> joinOnMap, String relationPath, ForeignInfo foreignInfo, String fixedCondition, FixedConditionResolver fixedConditionResolver)
public void registerFixedConditionLazyChecker(FixedConditionLazyChecker checker)
registerFixedConditionLazyChecker インタフェース内 SqlClausechecker - The callback instance of checker. (NotNull)public Map<String,LeftOuterJoinInfo> getOuterJoinMap()
getOuterJoinMap インタフェース内 SqlClausepublic boolean hasOuterJoin()
hasOuterJoin インタフェース内 SqlClausepublic boolean canUseRelationCache(String relationPath)
canUseRelationCache インタフェース内 SqlClauserelationPath - The path of relation. e.g. _1_3 (NotNull)public boolean isUnderOverRelation(String relationPath)
isUnderOverRelation インタフェース内 SqlClauserelationPath - The path of relation. e.g. _1_3 (NotNull)public void changeToInnerJoin(String foreignAliasName)
changeToInnerJoin インタフェース内 SqlClauseforeignAliasName - The foreign alias name of join table. (NotNull and Unique per invoking method)protected void doChangeToInnerJoin(String foreignAliasName, boolean autoDetect)
protected void reflectUnderInnerJoinToJoin(LeftOuterJoinInfo foreignJoinInfo, boolean autoDetect)
public void enableInnerJoinAutoDetect()
SqlClauseenableInnerJoinAutoDetect インタフェース内 SqlClausepublic void disableInnerJoinAutoDetect()
SqlClausedisableInnerJoinAutoDetect インタフェース内 SqlClausepublic void enableStructuralPossibleInnerJoin()
SqlClauseenableStructuralPossibleInnerJoin インタフェース内 SqlClausepublic void disableStructuralPossibleInnerJoin()
SqlClausedisableStructuralPossibleInnerJoin インタフェース内 SqlClausepublic boolean isStructuralPossibleInnerJoinEnabled()
SqlClauseisStructuralPossibleInnerJoinEnabled インタフェース内 SqlClausepublic void enableWhereUsedInnerJoin()
SqlClauseenableWhereUsedInnerJoin インタフェース内 SqlClausepublic void disableWhereUsedInnerJoin()
SqlClausedisableWhereUsedInnerJoin インタフェース内 SqlClausepublic boolean isWhereUsedInnerJoinEnabled()
SqlClauseisWhereUsedInnerJoinEnabled インタフェース内 SqlClauseprotected List<InnerJoinLazyReflector> getInnerJoinLazyReflectorList()
protected boolean hasInnerJoinLazyReflector()
protected void assertAlreadyOuterJoin(String foreignAliasName)
protected void assertJoinOnMapNotEmpty(Map<ColumnRealName,ColumnRealName> joinOnMap, String foreignAliasName)
public void registerWhereClause(ColumnRealName columnRealName, ConditionKey key, ConditionValue value, ColumnFunctionCipher cipher, ConditionOption option, String usedAliasName)
registerWhereClause インタフェース内 SqlClausecolumnRealName - The real name of column. {[alias-name].[column-name]}. (NotNull)key - The key of condition. (NotNull)value - The value of condition. (NotNull)cipher - The cipher of column by function. (NullAllowed)option - The option of condition. (NullAllowed)usedAliasName - The alias name of table used on the where clause. (NotNull)public void registerWhereClause(String clause, String usedAliasName)
registerWhereClause インタフェース内 SqlClauseclause - The string clause of 'where'. (NotNull)usedAliasName - The alias name of table used on the where clause. (NotNull)public void registerWhereClause(String clause, String usedAliasName, boolean noWayInner)
registerWhereClause インタフェース内 SqlClauseclause - The string clause of 'where'. (NotNull)usedAliasName - The alias name of table used on the where clause. (NotNull)noWayInner - No way, to be inner-join for the join of the alias?public void registerWhereClause(QueryClause clause, QueryUsedAliasInfo... usedAliasInfos)
registerWhereClause インタフェース内 SqlClauseclause - The string clause of 'where'. (NotNull)usedAliasInfos - The array of information of used alias, contains no-way-inner determination. (NotNull, NotEmpty)public void reflectWhereUsedToJoin(QueryUsedAliasInfo usedAliasInfo)
reflectWhereUsedToJoin インタフェース内 SqlClauseusedAliasInfo - The information of used alias, contains no-way-inner determination. (NotNull, NotEmpty)protected void doReflectWhereUsedToJoin(String usedAliasName)
protected void registerInnerJoinLazyReflector(String usedAliasName)
protected void registerInnerJoinLazyReflector(QueryUsedAliasInfo usedAliasInfo)
protected boolean isOutOfWhereUsedInnerJoin()
protected InnerJoinLazyReflectorBase createInnerJoinLazyReflector(QueryUsedAliasInfo usedAliasInfo)
protected List<QueryClause> getWhereClauseList4Register()
public void exchangeFirstWhereClauseForLastOne()
exchangeFirstWhereClauseForLastOne インタフェース内 SqlClauseprotected List<QueryClause> getWhereList()
public boolean hasWhereClauseOnBaseQuery()
hasWhereClauseOnBaseQuery インタフェース内 SqlClausepublic void clearWhereClauseOnBaseQuery()
clearWhereClauseOnBaseQuery インタフェース内 SqlClausepublic void backupWhereClauseOnBaseQuery()
SqlClausebackupWhereClauseOnBaseQuery インタフェース内 SqlClausepublic void restoreWhereClauseOnBaseQuery()
SqlClauserestoreWhereClauseOnBaseQuery インタフェース内 SqlClausepublic void registerBaseTableInlineWhereClause(ColumnSqlName columnSqlName, ConditionKey key, ConditionValue value, ColumnFunctionCipher cipher, ConditionOption option)
registerBaseTableInlineWhereClause インタフェース内 SqlClausepublic void registerBaseTableInlineWhereClause(String value)
registerBaseTableInlineWhereClause インタフェース内 SqlClauseprotected List<QueryClause> getBaseTableInlineWhereClauseList4Register()
protected List<QueryClause> getBaseTableInlineWhereList()
public boolean hasBaseTableInlineWhereClause()
hasBaseTableInlineWhereClause インタフェース内 SqlClausepublic void clearBaseTableInlineWhereClause()
clearBaseTableInlineWhereClause インタフェース内 SqlClausepublic void registerOuterJoinInlineWhereClause(String foreignAliasName, ColumnSqlName columnSqlName, ConditionKey key, ConditionValue value, ColumnFunctionCipher cipher, ConditionOption option, boolean onClause)
registerOuterJoinInlineWhereClause インタフェース内 SqlClausepublic void registerOuterJoinInlineWhereClause(String foreignAliasName, String clause, boolean onClause)
registerOuterJoinInlineWhereClause インタフェース内 SqlClauseprotected List<QueryClause> getOuterJoinInlineWhereClauseList4Register(String foreignAliasName, boolean onClause)
protected void assertNotYetOuterJoin(String aliasName)
public boolean hasOuterJoinInlineWhereClause()
hasOuterJoinInlineWhereClause インタフェース内 SqlClausepublic void clearOuterJoinInlineWhereClause()
clearOuterJoinInlineWhereClause インタフェース内 SqlClauseprotected void doRegisterWhereClause(List<QueryClause> clauseList, ColumnRealName columnRealName, ConditionKey key, ConditionValue value, ColumnFunctionCipher cipher, ConditionOption option, boolean inline, boolean onClause)
protected void doRegisterWhereClause(List<QueryClause> clauseList, String clause)
protected void doRegisterWhereClause(List<QueryClause> clauseList, QueryClause clause)
public void beginOrScopeQuery()
SqlClausebeginOrScopeQuery インタフェース内 SqlClausepublic void endOrScopeQuery()
SqlClauseendOrScopeQuery インタフェース内 SqlClauseprotected void clearOrScopeQuery()
protected void reflectTmpOrClauseToRealObject(OrScopeQueryInfo localInfo)
protected OrScopeQueryReflector createOrClauseReflector()
public boolean isOrScopeQueryEffective()
SqlClauseisOrScopeQueryEffective インタフェース内 SqlClausepublic boolean isOrScopeQueryAndPartEffective()
SqlClauseisOrScopeQueryAndPartEffective インタフェース内 SqlClauseprotected List<QueryClause> getTmpOrWhereList()
protected List<QueryClause> getTmpOrBaseTableInlineWhereList()
protected List<QueryClause> getTmpOrAdditionalOnClauseList(String aliasName)
protected List<QueryClause> getTmpOrOuterJoinInlineClauseList(String aliasName)
public void beginOrScopeQueryAndPart()
SqlClausebeginOrScopeQueryAndPart インタフェース内 SqlClausepublic void endOrScopeQueryAndPart()
SqlClauseendOrScopeQueryAndPart インタフェース内 SqlClauseprotected void markOrScopeQueryAndPart(List<QueryClause> clauseList)
protected void assertCurrentTmpOrScopeQueryInfo()
public OrderByClause getOrderByComponent()
getOrderByComponent インタフェース内 SqlClauseprotected OrderByClause getOrderBy()
public OrderByElement getOrderByLastElement()
SqlClausegetOrderByLastElement インタフェース内 SqlClausepublic void clearOrderBy()
SqlClauseclearOrderBy インタフェース内 SqlClausepublic void suppressOrderBy()
SqlClausesuppressOrderBy インタフェース内 SqlClausepublic void reviveOrderBy()
SqlClausereviveOrderBy インタフェース内 SqlClausepublic void registerOrderBy(String orderByProperty, boolean ascOrDesc, ColumnInfo columnInfo)
registerOrderBy インタフェース内 SqlClauseorderByProperty - Order-by-property. 'aliasName.columnSqlName/aliasName.columnSqlName/...' (NotNull)ascOrDesc - Is it ascend or descend?columnInfo - The information of the column for the order. (NotNull)public void registerSpecifiedDerivedOrderBy(String orderByProperty, boolean ascOrDesc)
registerSpecifiedDerivedOrderBy インタフェース内 SqlClauseorderByProperty - Order-by-property. 'aliasName.columnSqlName/aliasName.columnSqlName/...' (NotNull)ascOrDesc - Is it ascend or descend?protected void doRegisterOrderBy(String orderByProperty, boolean ascOrDesc, ColumnInfo columnInfo, boolean derived)
protected OrderByElement newOrderByElement(ColumnInfo columnInfo, boolean derived, String aliasName, String columnName)
public void addNullsFirstToPreviousOrderBy()
addNullsFirstToPreviousOrderBy インタフェース内 SqlClausepublic void addNullsLastToPreviousOrderBy()
addNullsLastToPreviousOrderBy インタフェース内 SqlClauseprotected OrderByClause.OrderByNullsSetupper createOrderByNullsSetupper()
protected OrderByClause.OrderByNullsSetupper createOrderByNullsSetupperByCaseWhen()
public void addManualOrderToPreviousOrderByElement(ManualOrderOption manualOrderOption)
addManualOrderToPreviousOrderByElement インタフェース内 SqlClausepublic boolean hasOrderByClause()
SqlClausehasOrderByClause インタフェース内 SqlClausepublic boolean hasSpecifiedDerivedOrderByClause()
SqlClausehasSpecifiedDerivedOrderByClause インタフェース内 SqlClauseprotected boolean isSpecifiedDerivedOrderBy(String derivedAliasName)
public void registerUnionQuery(UnionClauseProvider unionClauseProvider, boolean unionAll)
registerUnionQuery インタフェース内 SqlClauseprotected void addUnionQueryInfo(AbstractSqlClause.UnionQueryInfo unionQueryInfo)
public boolean hasUnionQuery()
hasUnionQuery インタフェース内 SqlClausepublic void clearUnionQuery()
clearUnionQuery インタフェース内 SqlClausepublic void fetchFirst(int fetchSize)
fetchFirst インタフェース内 SqlClausefetchSize - The size of fetching. (NotMinus)public void fetchScope(int fetchStartIndex,
int fetchSize)
fetchScope インタフェース内 SqlClausefetchStartIndex - The index of fetch-start. 0 origin. (NotMinus)fetchSize - The size of fetching from start index. (NotMinus)public void fetchPage(int fetchPageNumber)
When you invoke this, it is normally necessary to invoke 'fetchFirst()' or 'fetchScope()' ahead of that. But you also can use default-fetch-size without invoking 'fetchFirst()' or 'fetchScope()'. If you invoke this, your SQL returns [fetch-size] records from [fetch-start-index] calculated by [fetch-page-number].
protected void throwFetchSizeNotPlusException(int fetchPageNumber)
protected abstract void doFetchFirst()
protected abstract void doFetchPage()
protected abstract void doClearFetchPageClause()
public int getFetchStartIndex()
SqlClausegetFetchStartIndex インタフェース内 SqlClausepublic int getFetchSize()
SqlClausegetFetchSize インタフェース内 SqlClausepublic int getFetchPageNumber()
SqlClausegetFetchPageNumber インタフェース内 SqlClausepublic int getPageStartIndex()
SqlClausegetPageStartIndex インタフェース内 SqlClausepublic int getPageEndIndex()
SqlClausegetPageEndIndex インタフェース内 SqlClausepublic void suppressFetchScope()
SqlClausesuppressFetchScope インタフェース内 SqlClausepublic void reviveFetchScope()
SqlClausereviveFetchScope インタフェース内 SqlClausepublic boolean isFetchScopeEffective()
SqlClauseisFetchScopeEffective インタフェース内 SqlClausepublic boolean isFetchStartIndexSupported()
SqlClauseisFetchStartIndexSupported インタフェース内 SqlClausepublic boolean isFetchSizeSupported()
SqlClauseisFetchSizeSupported インタフェース内 SqlClauseprotected abstract String createSelectHint()
protected abstract String createFromBaseTableHint()
protected abstract String createFromHint()
protected abstract String createSqlSuffix()
public int getFetchNarrowingSkipStartIndex()
getFetchNarrowingSkipStartIndex インタフェース内 SqlClausepublic int getFetchNarrowingLoopCount()
getFetchNarrowingLoopCount インタフェース内 SqlClausepublic boolean isFetchNarrowingEffective()
isFetchNarrowingEffective インタフェース内 SqlClausepublic String getBasePointAliasName()
getBasePointAliasName インタフェース内 SqlClausepublic String resolveJoinAliasName(String relationPath, int nestLevel)
resolveJoinAliasName インタフェース内 SqlClauserelationPath - The path of relation. e.g. _1_3 (NotNull)nestLevel - The nest level of condition query.public int resolveRelationNo(String localTableName, String foreignPropertyName)
resolveRelationNo インタフェース内 SqlClauselocalTableName - The name of local table. (NotNull)foreignPropertyName - The property name of foreign relation. (NotNull)public String getInlineViewBasePointAlias()
getInlineViewBasePointAlias インタフェース内 SqlClausepublic String getUnionQueryInlineViewAlias()
getUnionQueryInlineViewAlias インタフェース内 SqlClausepublic String getDerivedReferrerNestedAlias()
getDerivedReferrerNestedAlias インタフェース内 SqlClausepublic String getScalarSelectColumnAlias()
getScalarSelectColumnAlias インタフェース内 SqlClausepublic String getWhereClauseMark()
getWhereClauseMark インタフェース内 SqlClausepublic String getWhereFirstConditionMark()
getWhereFirstConditionMark インタフェース内 SqlClausepublic String getUnionSelectClauseMark()
getUnionSelectClauseMark インタフェース内 SqlClausepublic String getUnionWhereClauseMark()
getUnionWhereClauseMark インタフェース内 SqlClausepublic String getUnionWhereFirstConditionMark()
getUnionWhereFirstConditionMark インタフェース内 SqlClausepublic String resolveSubQueryBeginMark(String subQueryIdentity)
resolveSubQueryBeginMark インタフェース内 SqlClausepublic String resolveSubQueryEndMark(String subQueryIdentity)
resolveSubQueryEndMark インタフェース内 SqlClausepublic String processSubQueryIndent(String sql)
processSubQueryIndent インタフェース内 SqlClauseprotected String processSubQueryIndent(String sql, String preIndent, String originalSql)
protected SubQueryIndentProcessor getSubQueryIndentProcessor()
public void specifySelectColumn(SpecifiedColumn specifiedColumn)
SqlClausespecifySelectColumn インタフェース内 SqlClausespecifiedColumn - The info about column specification. (NotNull)public boolean hasSpecifiedSelectColumn(String tableAliasName)
SqlClausehasSpecifiedSelectColumn インタフェース内 SqlClausetableAliasName - The alias name of table. (NotNull)public boolean hasSpecifiedSelectColumn(String tableAliasName, String columnDbName)
SqlClausehasSpecifiedSelectColumn インタフェース内 SqlClausetableAliasName - The alias name of table. (NotNull)columnDbName - The DB name of column. (NotNull)public void handleSpecifiedSelectColumn(String tableAliasName, SpecifiedSelectColumnHandler columnHandler)
SqlClausehandleSpecifiedSelectColumn インタフェース内 SqlClausetableAliasName - The alias name of table. (NotNull)columnHandler - The handler of the specified column. (NotNull)public void backupSpecifiedSelectColumn()
SqlClausebackupSpecifiedSelectColumn インタフェース内 SqlClausepublic void restoreSpecifiedSelectColumn()
SqlClauserestoreSpecifiedSelectColumn インタフェース内 SqlClausepublic void removeSpecifiedSelectColumn(String tableAliasName)
public void clearSpecifiedSelectColumn()
SqlClauseclearSpecifiedSelectColumn インタフェース内 SqlClausepublic SpecifiedColumn getSpecifiedColumnAsOne()
SqlClausegetSpecifiedColumnAsOne インタフェース内 SqlClausepublic String getSpecifiedColumnDbNameAsOne()
SqlClausegetSpecifiedColumnDbNameAsOne インタフェース内 SqlClausepublic ColumnInfo getSpecifiedColumnInfoAsOne()
SqlClausegetSpecifiedColumnInfoAsOne インタフェース内 SqlClausepublic ColumnRealName getSpecifiedColumnRealNameAsOne()
SqlClausegetSpecifiedColumnRealNameAsOne インタフェース内 SqlClausepublic ColumnSqlName getSpecifiedColumnSqlNameAsOne()
SqlClausegetSpecifiedColumnSqlNameAsOne インタフェース内 SqlClauseprotected String getSpecifiedColumnTableAliasNameAsOne()
protected Map<String,SpecifiedColumn> getSpecifiedColumnElementMapAsOne()
public void specifyDerivingSubQuery(HpDerivingSubQueryInfo subQueryInfo)
SqlClausespecifyDerivingSubQuery インタフェース内 SqlClausesubQueryInfo - The info about deriving sub-query. (NotNull: aliasName is allowed to be null)public boolean hasSpecifiedDerivingSubQuery()
SqlClausehasSpecifiedDerivingSubQuery インタフェース内 SqlClausepublic boolean hasSpecifiedDerivingSubQuery(String aliasName)
SqlClausehasSpecifiedDerivingSubQuery インタフェース内 SqlClausealiasName - The alias name of specified deriving sub-query. (NotNull)public List<String> getSpecifiedDerivingAliasList()
SqlClausegetSpecifiedDerivingAliasList インタフェース内 SqlClausepublic HpDerivingSubQueryInfo getSpecifiedDerivingInfo(String aliasName)
SqlClausegetSpecifiedDerivingInfo インタフェース内 SqlClausealiasName - The alias name of specified deriving sub-query. (NotNull)public ColumnInfo getSpecifiedDerivingColumnInfo(String aliasName)
SqlClausegetSpecifiedDerivingColumnInfo インタフェース内 SqlClausealiasName - The alias name of specified deriving sub-query. (NotNull)public void clearSpecifiedDerivingSubQuery()
SqlClauseclearSpecifiedDerivingSubQuery インタフェース内 SqlClausepublic SpecifiedColumn getSpecifiedDerivingColumnAsOne()
SqlClausegetSpecifiedDerivingColumnAsOne インタフェース内 SqlClausepublic ColumnInfo getSpecifiedDerivingColumnInfoAsOne()
SqlClausegetSpecifiedDerivingColumnInfoAsOne インタフェース内 SqlClausepublic String getSpecifiedDerivingAliasNameAsOne()
SqlClausegetSpecifiedDerivingAliasNameAsOne インタフェース内 SqlClausepublic String getSpecifiedDerivingSubQueryAsOne()
SqlClausegetSpecifiedDerivingSubQueryAsOne インタフェース内 SqlClauseprotected HpDerivingSubQueryInfo getSpecifiedDerivingInfoAsOne()
public ColumnSqlName getSpecifiedResolvedColumnSqlNameAsOne()
SqlClausegetSpecifiedResolvedColumnSqlNameAsOne インタフェース内 SqlClausepublic ColumnRealName getSpecifiedResolvedColumnRealNameAsOne()
SqlClausegetSpecifiedResolvedColumnRealNameAsOne インタフェース内 SqlClauseprotected ColumnRealName filterSpecifyColumnCalculation(ColumnRealName specifiedRealName, SpecifiedColumn hpCol)
protected boolean hasSpecifyCalculation(SpecifiedColumn hpCol)
public void checkNullOrEmptyQuery()
SqlClausecheckNullOrEmptyQuery インタフェース内 SqlClausepublic void ignoreNullOrEmptyQuery()
SqlClauseignoreNullOrEmptyQuery インタフェース内 SqlClausepublic boolean isNullOrEmptyQueryChecked()
SqlClauseisNullOrEmptyQueryChecked インタフェース内 SqlClausepublic List<HpInvalidQueryInfo> getInvalidQueryList()
getInvalidQueryList インタフェース内 SqlClausepublic void saveInvalidQuery(HpInvalidQueryInfo invalidQueryInfo)
SqlClausesaveInvalidQuery インタフェース内 SqlClauseinvalidQueryInfo - The information of invalid query. (NotNull)protected List<HpInvalidQueryInfo> doGetInvalidQueryList()
public void enableEmptyStringQuery()
SqlClauseenableEmptyStringQuery インタフェース内 SqlClausepublic void disableEmptyStringQuery()
SqlClausedisableEmptyStringQuery インタフェース内 SqlClausepublic boolean isEmptyStringQueryAllowed()
SqlClauseisEmptyStringQueryAllowed インタフェース内 SqlClausepublic void enableOverridingQuery()
SqlClauseenableOverridingQuery インタフェース内 SqlClausepublic void disableOverridingQuery()
SqlClausedisableOverridingQuery インタフェース内 SqlClausepublic boolean isOverridingQueryAllowed()
SqlClauseisOverridingQueryAllowed インタフェース内 SqlClausepublic void addWhereClauseSimpleFilter(QueryClauseFilter whereClauseSimpleFilter)
addWhereClauseSimpleFilter インタフェース内 SqlClausepublic void classifySelectClauseType(SelectClauseType selectClauseType)
SqlClauseclassifySelectClauseType インタフェース内 SqlClauseselectClauseType - The type of select clause. (NotNull)protected void changeSelectClauseType(SelectClauseType selectClauseType)
protected void savePreviousSelectClauseType()
public void rollbackSelectClauseType()
SqlClauserollbackSelectClauseType インタフェース内 SqlClausepublic Map<String,Object> getColumnQueryObjectMap()
getColumnQueryObjectMap インタフェース内 SqlClausepublic String registerColumnQueryObjectToThemeList(String themeKey, Object addedValue)
registerColumnQueryObjectToThemeList インタフェース内 SqlClausethemeKey - The key for the object. (NotNull)addedValue - The value added to theme list for the object. (NotNull)public Map<String,Object> getManualOrderParameterMap()
getManualOrderParameterMap インタフェース内 SqlClausepublic String registerManualOrderParameterToThemeList(String themeKey, Object addedValue)
registerManualOrderParameterToThemeList インタフェース内 SqlClausethemeKey - The theme as key for the parameter. (NotNull)addedValue - The value added to theme list for the parameter. (NullAllowed)protected String buildManualOrderParameterBindExp(String relativePath)
public Map<String,Object> getFreeParameterMap()
getFreeParameterMap インタフェース内 SqlClausepublic String registerFreeParameterToThemeList(String themeKey, Object addedValue)
registerFreeParameterToThemeList インタフェース内 SqlClausethemeKey - The theme as key for the parameter. (NotNull)addedValue - The value added to theme list for the parameter. (NullAllowed)protected int doAddValueToThemeList(String themeKey, Object addedValue, Map<String,Object> map)
public GearedCipherManager getGearedCipherManager()
SqlClausegetGearedCipherManager インタフェース内 SqlClausepublic ColumnFunctionCipher findColumnFunctionCipher(ColumnInfo columnInfo)
SqlClausefindColumnFunctionCipher インタフェース内 SqlClausecolumnInfo - The column info for cipher. (NotNull)public void enableSelectColumnCipher()
SqlClauseenableSelectColumnCipher インタフェース内 SqlClausepublic void disableSelectColumnCipher()
SqlClausedisableSelectColumnCipher インタフェース内 SqlClauseprotected String encryptIfNeeds(ColumnInfo columnInfo, String valueExp)
protected String decryptSelectColumnIfNeeds(ColumnInfo columnInfo, String valueExp)
protected String doDecryptIfNeeds(ColumnInfo columnInfo, String valueExp)
public void acceptScalarSelectOption(ScalarSelectOption option)
SqlClauseacceptScalarSelectOption インタフェース内 SqlClauseoption - The instance of option object. (NullAllowed: if null, also clear existing option)public void enablePagingAdjustment()
SqlClauseenablePagingAdjustment インタフェース内 SqlClausepublic void disablePagingAdjustment()
SqlClausedisablePagingAdjustment インタフェース内 SqlClausepublic void enablePagingCountLater()
SqlClauseenablePagingCountLater インタフェース内 SqlClausepublic void disablePagingCountLater()
SqlClausedisablePagingCountLater インタフェース内 SqlClauseprotected boolean canPagingCountLater()
public void enablePagingCountLeastJoin()
SqlClauseenablePagingCountLeastJoin インタフェース内 SqlClausepublic void disablePagingCountLeastJoin()
SqlClausedisablePagingCountLeastJoin インタフェース内 SqlClausepublic boolean canPagingCountLeastJoin()
SqlClausecanPagingCountLeastJoin インタフェース内 SqlClausepublic void enablePKOnlySelectForcedly()
SqlClauseenablePKOnlySelectForcedly インタフェース内 SqlClausepublic void disablePKOnlySelectForcedly()
SqlClausedisablePKOnlySelectForcedly インタフェース内 SqlClausepublic void registerClauseLazyReflector(ClauseLazyReflector clauseLazyReflector)
SqlClauseregisterClauseLazyReflector インタフェース内 SqlClauseclauseLazyReflector - The instance of reflector. (NotNull)protected void reflectClauseLazilyIfExists()
public String getClauseQueryInsert(Map<String,String> fixedValueQueryExpMap, SqlClause resourceSqlClause)
getClauseQueryInsert インタフェース内 SqlClausefixedValueQueryExpMap - The map of query expression for fixed values. (NotNull)resourceSqlClause - The SQL clause for resource. (NotNull)public String getClauseQueryUpdate(Map<String,Object> columnParameterMap)
getClauseQueryUpdate インタフェース内 SqlClausecolumnParameterMap - The map of column parameters. The parameter may be handler. (NotNull)protected boolean isUseQueryUpdateDirect(DBMeta dbmeta)
protected boolean canUseQueryUpdateInScope(DBMeta dbmeta)
protected void buildQueryUpdateInScopeClause(Map<String,Object> columnParameterMap, DBMeta dbmeta, StringBuilder sb)
protected void buildQueryUpdateDirectClause(Map<String,Object> columnParameterMap, String whereClause, DBMeta dbmeta, StringBuilder sb)
protected boolean hasQueryUpdateSubQueryPossible(String whereClause)
protected void buildQueryUpdateSetClause(Map<String,Object> columnParameterMap, DBMeta dbmeta, StringBuilder sb, String aliasName)
protected void throwQueryUpdateUnavailableFunctionException(String unavailableFunction, DBMeta dbmeta)
protected String filterQueryUpdateBasePointAliasNameLocalUnsupported(String subQuery)
public String getClauseQueryDelete()
getClauseQueryDelete インタフェース内 SqlClauseprotected boolean needsDeleteTableAliasHint(String whereClause)
protected boolean canUseDeleteTableAliasHint()
public void enableQueryUpdateForcedDirect()
enableQueryUpdateForcedDirect インタフェース内 SqlClauseprotected boolean isUpdateSubQueryUseLocalTableSupported()
protected boolean isUpdateDirectJoinSupported()
protected boolean isUpdateTableAliasNameSupported()
protected boolean isDeleteTableAliasHintSupported()
public HpCBPurpose getPurpose()
SqlClausegetPurpose インタフェース内 SqlClausepublic void setPurpose(HpCBPurpose purpose)
SqlClausesetPurpose インタフェース内 SqlClausepurpose - The instance of purpose object for condition-bean. (NotNull)public boolean isLocked()
SqlClause
cb.query().existsPurchaseList(subCB -> {
subCB.query().existsPurchaseDetailList(subCB -> { // *NG
});
});
You should rename it, however the other condition-bean might be called. So it is necessary to check it, and condition-bean has lock.
While, you can suppress it by option for compatible. (if suppressed, always returns false)
public void lock()
SqlClausepublic void unlock()
SqlClausepublic boolean isThatsBadTimingDetectAllowed()
SqlClauseisThatsBadTimingDetectAllowed インタフェース内 SqlClausepublic void enableThatsBadTimingDetect()
SqlClauseenableThatsBadTimingDetect インタフェース内 SqlClausepublic void disableThatsBadTimingDetect()
SqlClausedisableThatsBadTimingDetect インタフェース内 SqlClausepublic int getInScopeLimit()
getInScopeLimit インタフェース内 SqlClausepublic void adjustLikeSearchDBWay(LikeSearchOption option)
adjustLikeSearchDBWay インタフェース内 SqlClauseoption - The option of like-search to adjust. (NotNull)public boolean isCursorSelectByPagingAllowed()
isCursorSelectByPagingAllowed インタフェース内 SqlClausepublic void useInScopeSubQueryForExistsReferrer()
useInScopeSubQueryForExistsReferrer インタフェース内 SqlClausepublic boolean isUseInScopeSubQueryForExistsReferrer()
isUseInScopeSubQueryForExistsReferrer インタフェース内 SqlClausepublic void enableColumnNullObject()
enableColumnNullObject インタフェース内 SqlClausepublic void disableColumnNullObject()
disableColumnNullObject インタフェース内 SqlClausepublic boolean isColumnNullObjectAllowed()
isColumnNullObjectAllowed インタフェース内 SqlClausepublic void enableColumnNullObjectGearedToSpecify()
enableColumnNullObjectGearedToSpecify インタフェース内 SqlClausepublic void disableColumnNullObjectGearedToSpecify()
disableColumnNullObjectGearedToSpecify インタフェース内 SqlClauseprotected boolean isColumnNullObjectGearedToSpecify()
public Set<ColumnInfo> getLocalSpecifiedNullObjectColumnSet()
getLocalSpecifiedNullObjectColumnSet インタフェース内 SqlClausepublic Set<ColumnInfo> getRelationSpecifiedNullObjectColumnSet(String relationNoSuffix)
getRelationSpecifiedNullObjectColumnSet インタフェース内 SqlClauserelationNoSuffix - The suffix of relation No, same as foreign relation path. (NotNull)protected Map<String,Set<ColumnInfo>> getColumnNullObjectSpecifiedMap()
protected boolean canBeNullObjectSpecifiedColumn(ColumnInfo columnInfo)
protected void registerColumnNullObject(String tableAliasName, ColumnInfo columnInfo)
protected DBMeta getDBMeta()
protected ColumnInfo toColumnInfo(String tableDbName, String columnDbName)
protected ColumnSqlName toColumnSqlName(String tableDbName, String columnDbName)
protected String buildSpaceBar(int size)
protected String ln()
Copyright © 2014–2015 The DBFlute Project. All rights reserved.