public interface SqlClause
And this also has a role of a container for common info between the top level condition-bean and related condition-queries.
It has many histories... e.g. structures, method names, it might be hard to read but no big refactoring because the histories and memories are also documents.
| 修飾子とタイプ | インタフェースと説明 |
|---|---|
static interface |
SqlClause.QueryUpdateSetCalculationHandler
The handler of calculation on set clause of query-update.
|
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
BASE_POINT_ALIAS_NAME
The alias name of base point table for on-query.
|
static String |
BASE_POINT_HANDLING_ENTITY_NO
The entity number of base point table for internal handling.
|
static String |
RELATION_PATH_DELIMITER
The delimiter of relation path.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
acceptScalarSelectOption(ScalarSelectOption option)
Accept the option of scalar-select.
|
void |
addManualOrderToPreviousOrderByElement(ManualOrderOption manualOrderOption) |
void |
addNullsFirstToPreviousOrderBy() |
void |
addNullsLastToPreviousOrderBy() |
void |
addWhereClauseSimpleFilter(QueryClauseFilter whereClauseSimpleFilter) |
void |
adjustLikeSearchDBWay(LikeSearchOption option)
Adjust like-search of DB way.
|
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.
|
boolean |
canPagingCountLeastJoin()
Can it be paging count least join?
|
boolean |
canUseRelationCache(String relationPath)
Can it use the relation cache for entity mapping?
|
void |
changeAliasNameLimitSize(int aliasNameLimitSize)
Change limit size of alias name.
|
void |
changeToInnerJoin(String foreignAliasName)
Change the join type for the relation to inner join manually.
|
void |
checkNullOrEmptyQuery()
Check null-or-empty query.
|
void |
classifySelectClauseType(SelectClauseType selectClauseType)
Classify the type of select clause into specified type.
|
void |
clearBaseTableInlineWhereClause() |
void |
clearOrderBy()
Clear order-by information in this clause.
|
void |
clearOuterJoinInlineWhereClause() |
void |
clearSpecifiedDerivingSubQuery()
Clear specified deriving sub-query.
|
void |
clearSpecifiedSelectColumn()
Clear specified select columns.
|
void |
clearUnionQuery() |
void |
clearWhereClauseOnBaseQuery()
Clear where clauses on the base query.
|
DBWay |
dbway()
Get the DB way for this SQL clause.
|
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.
|
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.
|
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).
|
ColumnFunctionCipher |
findColumnFunctionCipher(ColumnInfo columnInfo)
Find the cipher for the column.
|
String |
getBasePointAliasName()
Get the alias name for base point table.
|
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) |
Map<String,Object> |
getColumnQueryObjectMap()
Get the map for ColumnQuery objects for parameter comment.
|
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.
|
int |
getInScopeLimit()
Get the limit of inScope.
|
List<HpInvalidQueryInfo> |
getInvalidQueryList()
Get the list of invalid query.
|
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.
|
String |
getOrderByClause()
Get the clause of 'order-by'.
|
OrderByClause |
getOrderByComponent() |
OrderByElement |
getOrderByLastElement()
Get the last element of order-by.
|
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.
|
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'.
|
Map<String,String> |
getSelectColumnKeyNameMap()
Get the map of key name of select column by on-query name.
|
Map<String,Map<String,SelectedRelationColumn>> |
getSelectedRelationColumnMap()
Get the map of selected relation column.
|
int |
getSelectedRelationCount()
Get the count of selected relation.
|
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.
|
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.
|
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.
|
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.
|
int |
getSubQueryLevel()
Get the hierarchy level of sub-query.
|
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'.
|
String |
getWhereClauseMark() |
String |
getWhereFirstConditionMark() |
void |
handleSpecifiedSelectColumn(String tableAliasName,
SpecifiedSelectColumnHandler columnHandler)
Handle the specified select column in the table.
|
boolean |
hasBaseTableInlineWhereClause() |
boolean |
hasOrderByClause()
Does it have order-by clauses?
|
boolean |
hasOuterJoin()
Does outer-join (at least one) exist?
|
boolean |
hasOuterJoinInlineWhereClause() |
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?
|
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?
|
boolean |
isCursorSelectByPagingAllowed()
Is cursor select by paging allowed?
|
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?
|
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?
|
boolean |
isOverridingQueryAllowed()
Is overriding query allowed?
|
boolean |
isSelectedNextConnectingRelation(String foreignRelationPath)
Does the relation connect to selected next relation?
|
boolean |
isSelectedRelationEmpty()
Is the selected relation empty?
|
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?
|
boolean |
isUseInScopeSubQueryForExistsReferrer()
Does it use in-scope sub-query for exists-referrer?
|
boolean |
isWhereUsedInnerJoinEnabled()
Does it allow to auto-detect where-used inner-join?
|
void |
lock()
Lock the clause object.
|
void |
lockForUpdate()
Lock selected records for update.
|
String |
processSubQueryIndent(String sql) |
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
static final String RELATION_PATH_DELIMITER
static final String BASE_POINT_ALIAS_NAME
int getSubQueryLevel()
void setupForSubQuery(int subQueryLevel)
subQueryLevel - The hierarchy level of sub-query. (NotMinus: if zero, not for sub-query)boolean isForSubQuery()
String getClause()
select [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
String getClauseFromWhereWithUnionTemplate()
String getClauseFromWhereWithWhereUnionTemplate()
String getSelectClause()
Map<String,Map<String,Integer>> getSelectIndexMap()
Map<String,String> getSelectColumnKeyNameMap()
void changeAliasNameLimitSize(int aliasNameLimitSize)
aliasNameLimitSize - The limit size of alias name. (NotMinus, NotZero)void disableSelectIndex()
String getSelectHint()
String getFromClause()
String getFromBaseTableHint()
String getFromHint()
String getWhereClause()
String getOrderByClause()
String getSqlSuffix()
void registerSelectedRelation(String foreignTableAliasName, String localTableDbName, String foreignPropertyName, String localRelationPath, String foreignRelationPath)
foreignTableAliasName - 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)String translateSelectedRelationPathToPropName(String foreignRelationPath)
foreignRelationPath - The relation path of foreign property (relationNoSuffix). e.g. _3, _7_2 (NotNull)String translateSelectedRelationPathToTableAlias(String foreignRelationPath)
foreignRelationPath - The relation path of foreign property (relationNoSuffix). e.g. _3, _7_2 (NotNull)int getSelectedRelationCount()
boolean isSelectedRelationEmpty()
boolean hasSelectedRelation(String foreignRelationPath)
foreignRelationPath - The path of foreign relation, same as relation No suffix. e.g. _3, _7_2 (NotNull)Map<String,Map<String,SelectedRelationColumn>> getSelectedRelationColumnMap()
boolean isSelectedNextConnectingRelation(String foreignRelationPath)
foreignRelationPath - The path of foreign relation, same as relation No suffix. e.g. _3, _7_2 (NotNull)void registerOuterJoin(String foreignAliasName, String foreignTableDbName, String localAliasName, String localTableDbName, Map<ColumnRealName,ColumnRealName> joinOnMap, String relationPath, ForeignInfo foreignInfo, String fixedCondition, FixedConditionResolver fixedConditionResolver)
foreignAliasName - 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)void registerOuterJoinFixedInline(String foreignAliasName, String foreignTableDbName, String localAliasName, String localTableDbName, Map<ColumnRealName,ColumnRealName> joinOnMap, String relationPath, ForeignInfo foreignInfo, String fixedCondition, FixedConditionResolver fixedConditionResolver)
foreignAliasName - 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)void registerFixedConditionLazyChecker(FixedConditionLazyChecker checker)
checker - The callback instance of checker. (NotNull)Map<String,LeftOuterJoinInfo> getOuterJoinMap()
boolean hasOuterJoin()
boolean canUseRelationCache(String relationPath)
relationPath - The path of relation. e.g. _1_3 (NotNull)boolean isUnderOverRelation(String relationPath)
relationPath - The path of relation. e.g. _1_3 (NotNull)void changeToInnerJoin(String foreignAliasName)
foreignAliasName - The foreign alias name of join table. (NotNull and Unique per invoking method)void enableInnerJoinAutoDetect()
void disableInnerJoinAutoDetect()
void enableStructuralPossibleInnerJoin()
void disableStructuralPossibleInnerJoin()
boolean isStructuralPossibleInnerJoinEnabled()
void enableWhereUsedInnerJoin()
void disableWhereUsedInnerJoin()
boolean isWhereUsedInnerJoinEnabled()
void registerWhereClause(ColumnRealName columnRealName, ConditionKey key, ConditionValue value, ColumnFunctionCipher cipher, ConditionOption option, String usedAliasName)
columnRealName - 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)void registerWhereClause(String clause, String usedAliasName)
clause - The string clause of 'where'. (NotNull)usedAliasName - The alias name of table used on the where clause. (NotNull)void registerWhereClause(String clause, String usedAliasName, boolean noWayInner)
clause - 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?void registerWhereClause(QueryClause clause, QueryUsedAliasInfo... usedAliasInfos)
clause - The string clause of 'where'. (NotNull)usedAliasInfos - The array of information of used alias, contains no-way-inner determination. (NotNull, NotEmpty)void reflectWhereUsedToJoin(QueryUsedAliasInfo usedAliasInfo)
usedAliasInfo - The information of used alias, contains no-way-inner determination. (NotNull, NotEmpty)void exchangeFirstWhereClauseForLastOne()
boolean hasWhereClauseOnBaseQuery()
void backupWhereClauseOnBaseQuery()
void restoreWhereClauseOnBaseQuery()
void clearWhereClauseOnBaseQuery()
void registerBaseTableInlineWhereClause(ColumnSqlName columnSqlName, ConditionKey key, ConditionValue value, ColumnFunctionCipher cipher, ConditionOption option)
void registerBaseTableInlineWhereClause(String value)
boolean hasBaseTableInlineWhereClause()
void clearBaseTableInlineWhereClause()
void registerOuterJoinInlineWhereClause(String foreignAliasName, ColumnSqlName columnSqlName, ConditionKey key, ConditionValue value, ColumnFunctionCipher cipher, ConditionOption option, boolean onClause)
void registerOuterJoinInlineWhereClause(String foreignAliasName, String clause, boolean onClause)
boolean hasOuterJoinInlineWhereClause()
void clearOuterJoinInlineWhereClause()
void beginOrScopeQuery()
void endOrScopeQuery()
void beginOrScopeQueryAndPart()
void endOrScopeQueryAndPart()
boolean isOrScopeQueryEffective()
boolean isOrScopeQueryAndPartEffective()
OrderByClause getOrderByComponent()
OrderByElement getOrderByLastElement()
void clearOrderBy()
void suppressOrderBy()
void reviveOrderBy()
void registerOrderBy(String orderByProperty, boolean ascOrDesc, ColumnInfo columnInfo)
orderByProperty - Order-by-property. 'aliasName.columnSqlName/aliasName.columnSqlName/...' (NotNull)ascOrDesc - Is it ascend or descend?columnInfo - The information of the column for the order. (NotNull)void registerSpecifiedDerivedOrderBy(String orderByProperty, boolean ascOrDesc)
orderByProperty - Order-by-property. 'aliasName.columnSqlName/aliasName.columnSqlName/...' (NotNull)ascOrDesc - Is it ascend or descend?void addNullsFirstToPreviousOrderBy()
void addNullsLastToPreviousOrderBy()
void addManualOrderToPreviousOrderByElement(ManualOrderOption manualOrderOption)
boolean hasOrderByClause()
boolean hasSpecifiedDerivedOrderByClause()
void registerUnionQuery(UnionClauseProvider unionClauseProvider, boolean unionAll)
boolean hasUnionQuery()
void clearUnionQuery()
void fetchFirst(int fetchSize)
fetchSize - The size of fetching. (NotMinus)void fetchScope(int fetchStartIndex,
int fetchSize)
fetchStartIndex - The index of fetch-start. 0 origin. (NotMinus)fetchSize - The size of fetching from start index. (NotMinus)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].
fetchPageNumber - The number of fetch page. 1 origin. (NotMinus, NotZero: if minus or zero, set one)int getFetchStartIndex()
int getFetchSize()
int getFetchPageNumber()
int getPageStartIndex()
int getPageEndIndex()
void suppressFetchScope()
void reviveFetchScope()
boolean isFetchScopeEffective()
boolean isFetchStartIndexSupported()
boolean isFetchSizeSupported()
boolean isFetchNarrowingEffective()
int getFetchNarrowingSkipStartIndex()
int getFetchNarrowingLoopCount()
void lockForUpdate()
If you invoke this, your SQL lock target records for update. It depends whether this method supports this on the database type.
String getBasePointAliasName()
String resolveJoinAliasName(String relationPath, int nestLevel)
relationPath - The path of relation. e.g. _1_3 (NotNull)nestLevel - The nest level of condition query.int resolveRelationNo(String localTableName, String foreignPropertyName)
localTableName - The name of local table. (NotNull)foreignPropertyName - The property name of foreign relation. (NotNull)String getInlineViewBasePointAlias()
String getUnionQueryInlineViewAlias()
String getDerivedReferrerNestedAlias()
String getScalarSelectColumnAlias()
String getWhereClauseMark()
String getWhereFirstConditionMark()
String getUnionSelectClauseMark()
String getUnionWhereClauseMark()
String getUnionWhereFirstConditionMark()
void addWhereClauseSimpleFilter(QueryClauseFilter whereClauseSimpleFilter)
void specifySelectColumn(SpecifiedColumn specifiedColumn)
specifiedColumn - The info about column specification. (NotNull)boolean hasSpecifiedSelectColumn(String tableAliasName)
tableAliasName - The alias name of table. (NotNull)boolean hasSpecifiedSelectColumn(String tableAliasName, String columnDbName)
tableAliasName - The alias name of table. (NotNull)columnDbName - The DB name of column. (NotNull)void handleSpecifiedSelectColumn(String tableAliasName, SpecifiedSelectColumnHandler columnHandler)
tableAliasName - The alias name of table. (NotNull)columnHandler - The handler of the specified column. (NotNull)void backupSpecifiedSelectColumn()
void restoreSpecifiedSelectColumn()
void clearSpecifiedSelectColumn()
SpecifiedColumn getSpecifiedColumnAsOne()
String getSpecifiedColumnDbNameAsOne()
ColumnInfo getSpecifiedColumnInfoAsOne()
ColumnRealName getSpecifiedColumnRealNameAsOne()
ColumnSqlName getSpecifiedColumnSqlNameAsOne()
void specifyDerivingSubQuery(HpDerivingSubQueryInfo subQueryInfo)
subQueryInfo - The info about deriving sub-query. (NotNull: aliasName is allowed to be null)boolean hasSpecifiedDerivingSubQuery()
boolean hasSpecifiedDerivingSubQuery(String aliasName)
aliasName - The alias name of specified deriving sub-query. (NotNull)List<String> getSpecifiedDerivingAliasList()
HpDerivingSubQueryInfo getSpecifiedDerivingInfo(String aliasName)
aliasName - The alias name of specified deriving sub-query. (NotNull)ColumnInfo getSpecifiedDerivingColumnInfo(String aliasName)
aliasName - The alias name of specified deriving sub-query. (NotNull)void clearSpecifiedDerivingSubQuery()
SpecifiedColumn getSpecifiedDerivingColumnAsOne()
ColumnInfo getSpecifiedDerivingColumnInfoAsOne()
String getSpecifiedDerivingAliasNameAsOne()
String getSpecifiedDerivingSubQueryAsOne()
ColumnSqlName getSpecifiedResolvedColumnSqlNameAsOne()
ColumnRealName getSpecifiedResolvedColumnRealNameAsOne()
void checkNullOrEmptyQuery()
void ignoreNullOrEmptyQuery()
boolean isNullOrEmptyQueryChecked()
List<HpInvalidQueryInfo> getInvalidQueryList()
void saveInvalidQuery(HpInvalidQueryInfo invalidQueryInfo)
invalidQueryInfo - The information of invalid query. (NotNull)void enableEmptyStringQuery()
void disableEmptyStringQuery()
boolean isEmptyStringQueryAllowed()
void enableOverridingQuery()
void disableOverridingQuery()
boolean isOverridingQueryAllowed()
void classifySelectClauseType(SelectClauseType selectClauseType)
selectClauseType - The type of select clause. (NotNull)void rollbackSelectClauseType()
Map<String,Object> getColumnQueryObjectMap()
String registerColumnQueryObjectToThemeList(String themeKey, Object addedValue)
themeKey - The key for the object. (NotNull)addedValue - The value added to theme list for the object. (NotNull)Map<String,Object> getManualOrderParameterMap()
String registerManualOrderParameterToThemeList(String themeKey, Object addedValue)
themeKey - The theme as key for the parameter. (NotNull)addedValue - The value added to theme list for the parameter. (NullAllowed)Map<String,Object> getFreeParameterMap()
String registerFreeParameterToThemeList(String themeKey, Object addedValue)
themeKey - The theme as key for the parameter. (NotNull)addedValue - The value added to theme list for the parameter. (NullAllowed)GearedCipherManager getGearedCipherManager()
ColumnFunctionCipher findColumnFunctionCipher(ColumnInfo columnInfo)
columnInfo - The column info for cipher. (NotNull)void enableSelectColumnCipher()
void disableSelectColumnCipher()
void acceptScalarSelectOption(ScalarSelectOption option)
option - The instance of option object. (NullAllowed: if null, also clear existing option)void enablePagingAdjustment()
void disablePagingAdjustment()
void enablePagingCountLater()
void disablePagingCountLater()
void enablePagingCountLeastJoin()
void disablePagingCountLeastJoin()
boolean canPagingCountLeastJoin()
void enablePKOnlySelectForcedly()
void disablePKOnlySelectForcedly()
void registerClauseLazyReflector(ClauseLazyReflector clauseLazyReflector)
clauseLazyReflector - The instance of reflector. (NotNull)String getClauseQueryInsert(Map<String,String> fixedValueQueryExpMap, SqlClause resourceSqlClause)
fixedValueQueryExpMap - The map of query expression for fixed values. (NotNull)resourceSqlClause - The SQL clause for resource. (NotNull)String getClauseQueryUpdate(Map<String,Object> columnParameterMap)
columnParameterMap - The map of column parameters. The parameter may be handler. (NotNull)String getClauseQueryDelete()
void enableQueryUpdateForcedDirect()
HpCBPurpose getPurpose()
void setPurpose(HpCBPurpose purpose)
purpose - The instance of purpose object for condition-bean. (NotNull)boolean isLocked()
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)
void lock()
void unlock()
void enableThatsBadTimingDetect()
void disableThatsBadTimingDetect()
boolean isThatsBadTimingDetectAllowed()
int getInScopeLimit()
void adjustLikeSearchDBWay(LikeSearchOption option)
option - The option of like-search to adjust. (NotNull)boolean isCursorSelectByPagingAllowed()
void useInScopeSubQueryForExistsReferrer()
boolean isUseInScopeSubQueryForExistsReferrer()
void enableColumnNullObject()
void disableColumnNullObject()
boolean isColumnNullObjectAllowed()
void enableColumnNullObjectGearedToSpecify()
void disableColumnNullObjectGearedToSpecify()
Set<ColumnInfo> getLocalSpecifiedNullObjectColumnSet()
Set<ColumnInfo> getRelationSpecifiedNullObjectColumnSet(String relationNoSuffix)
relationNoSuffix - The suffix of relation No, same as foreign relation path. (NotNull)DBWay dbway()
Copyright © 2014–2015 The DBFlute Project. All rights reserved.