public interface ConditionBean extends PagingBean, WelcomeToDreamCruise
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
acceptPrimaryKeyMap(Map<String,? extends Object> primaryKeyMap)
Accept the map of primary-keys. map:{[column-name] = [value]}
|
ConditionBean |
addOrderBy_PK_Asc()
Add order-by PrimaryKey asc.
|
ConditionBean |
addOrderBy_PK_Desc()
Add order-by PrimaryKey desc.
|
DBMeta |
asDBMeta()
Handle the meta as DBMeta, that has all info of the table.
|
String |
asTableDbName()
Handle the meta as table DB name, that can be identity of table..
|
boolean |
canPagingSelectAndQuerySplit()
Can the SQL execution be split by select and query?
|
boolean |
canRelationMappingCache()
Can the relation mapping (entity instance) be cached?
|
void |
checkNullOrEmptyQuery()
Check null or empty value for query when query is set.
|
void |
clearWhereClauseOnBaseQuery()
Clear where clauses where clause on the base query.
|
void |
configure(StatementConfigCall<StatementConfig> confLambda)
Configure statement JDBC options. e.g. queryTimeout, fetchSize, ...
|
void |
disableColumnNullObject()
Disable the handling of column null object.
|
void |
disableEmptyStringQuery()
Disable empty string for query.
|
void |
disableInnerJoinAutoDetect()
Disable auto-detecting inner-join.
|
void |
disableNonSpecifiedColumnAccess()
Disable the check of access to non-specified column.
|
void |
disableOverridingQuery()
Disable overriding query.
|
void |
disablePagingCountLeastJoin()
Disable paging count-least-join, which means least joined on count select.
|
void |
disableQueryUpdateCountPreCheck()
Disable checking record count before QueryUpdate (contains QueryDelete).
|
void |
disableThatsBadTiming()
Disable "that's bad timing" check.
|
void |
disableUndefinedClassificationSelect()
Disable the select of undefined classification code.
|
void |
enableColumnNullObject()
Enable the handling of column null object.
|
void |
enableEmptyStringQuery(ModeQuery noArgInLambda)
Enable empty string for query.
|
void |
enableInnerJoinAutoDetect()
Enable to auto-detect joins that can be inner-join.
|
void |
enableNonSpecifiedColumnAccess()
Enable access to non-specified column.
|
void |
enableOverridingQuery(ModeQuery noArgInLambda)
Enable overriding query.
|
void |
enablePagingCountLeastJoin()
Enable paging count-least-join, which means least joined on count select.
|
void |
enableQueryUpdateCountPreCheck()
Enable checking record count before QueryUpdate (contains QueryDelete).
|
void |
enableThatsBadTiming()
Enable "that's bad timing" check.
|
void |
enableUndefinedClassificationSelect()
Enable the select of undefined classification code.
|
CursorSelectOption |
getCursorSelectOption()
Get the option of cursor select.
|
BoundDateDisplayStyle |
getLogDateDisplayStyle()
Get the display style of date for logging.
|
HpCBPurpose |
getPurpose()
Get the purpose of the condition-bean. e.g.
|
SqlClause |
getSqlClause()
Get SQL clause instance.
|
StatementConfig |
getStatementConfig()
Get the configuration of statement that is set through configure().
|
boolean |
hasOrderByClause()
Does it have order-by clauses?
|
boolean |
hasSelectAllPossible()
Does it have select-all possible?
|
boolean |
hasSpecifiedColumn()
非推奨です。
use hasSpecifiedLocalColumn()
|
boolean |
hasSpecifiedLocalColumn()
Does it have specified columns for the local table at least one?
|
boolean |
hasUnionQueryOrUnionAllQuery()
Has union query or union all query?
|
boolean |
hasWhereClauseOnBaseQuery()
Does it have where clause on the base query?
|
void |
ignoreNullOrEmptyQuery()
Ignore null-or-empty check for query when query is set.
|
SpecifiedColumn |
inviteDerivedToDreamCruise(String derivedAlias)
Invite the derived column to dream cruise.
|
void |
invokeOrScopeQuery(OrQuery<ConditionBean> orQuery)
Invoke the method 'orScopeQuery()' by the query callback.
|
void |
invokeOrScopeQueryAndPart(AndQuery<ConditionBean> andQuery)
Invoke the method 'orScopeQueryAndPart()' by the query callback.
|
void |
invokeSetupSelect(String foreignPropertyNamePath)
Invoke the method 'setupSelect_Xxx()' and 'withXxx()' by the path of foreign property name.
|
SpecifiedColumn |
invokeSpecifyColumn(String columnPropertyPath)
Invoke the method 'specify().columnXxx()' by the path of column name.
|
boolean |
isNonSpecifiedColumnAccessAllowed()
Is the access to non-specified column allowed?
|
boolean |
isQueryUpdateCountPreCheck()
Does it check record count before QueryUpdate (contains QueryDelete)?
|
boolean |
isSelectCountIgnoreFetchScope()
Is set up various things for select-count-ignore-fetch-scope?
|
boolean |
isUndefinedClassificationSelectAllowed()
Is the selecting undefined classification code allowed?
|
ConditionQuery |
localCQ()
Get the conditionQuery of the local table as interface.
|
HpColumnSpHandler |
localSp()
Get the handler of the column specification as interface.
|
ConditionBean |
lockForUpdate()
Lock for update.
|
void |
styleLogDateDisplay(BoundDateDisplayStyle logDateDisplayStyle)
Style bound dates on logging display SQL, overriding default style.
|
String |
toDisplaySql()
Convert this conditionBean to SQL for display.
|
void |
xacceptScalarSelectOption(ScalarSelectOption option)
Accept the option for ScalarSelect.
|
ConditionBean |
xafterCareSelectCountIgnoreFetchScope()
Do after-care for select-count-ignore-fetch-scope.
|
ConditionBean |
xcreateDreamCruiseCB()
Create condition-bean for dream cruise.
|
DerivedTypeHandler |
xgetDerivedTypeHandler()
Get the handler of derived type for derived mappable entity (for (Specify)DerivedReferrer).
|
ConditionBean |
xgetDreamCruiseDeparturePort()
Get the departure port of dream cruise?
|
Object |
xgetMysticBinding()
Get the value of mystic binding.
|
boolean |
xhasDreamCruiseTicket()
Do you have a Dream Cruise ticket?
|
boolean |
xisDreamCruiseDeparturePort()
Is this condition-bean departure port for dream cruise?
|
boolean |
xisDreamCruiseShip()
Is this condition-bean for dream cruise?
|
void |
xkeepDreamCruiseJourneyLogBook(String relationPath)
Keep journey log-book of Dream Cruise.
|
void |
xmarkAsDeparturePortForDreamCruise()
Mark as departure port for dream cruise.
|
void |
xregisterUnionQuerySynchronizer(UnionQuery<ConditionBean> unionQuerySynchronizer)
Register union-query synchronizer.
|
void |
xsetupForQueryInsert()
Set up condition-bean for QueryInsert.
|
void |
xsetupForScalarSelect()
Set up condition-bean for ScalarSelect.
|
void |
xsetupForSpecifiedUpdate()
Set up condition-bean for SpecifiedUpdate.
|
void |
xsetupForVaryingUpdate()
Set up condition-bean for VaryingUpdate.
|
ConditionBean |
xsetupSelectCountIgnoreFetchScope(boolean uniqueCount)
Set up various things for select-count-ignore-fetch-scope.
|
void |
xsetupSelectDreamCruiseJourneyLogBook()
Set up select for journey log-book of Dream Cruise.
|
void |
xsetupSelectDreamCruiseJourneyLogBookIfUnionExists()
Set up select for journey log-book of Dream Cruise if union query exists.
|
SpecifiedColumn |
xshowDreamCruiseTicket()
Show me your Dream Cruise ticket.
|
canPagingCountLater, canPagingReSelect, createPagingInvoker, disablePagingCountLater, disablePagingReSelect, enablePagingCountLater, enablePagingReSelect, fetchFirst, getFetchPageNumber, getFetchSize, getFetchStartIndex, getPageEndIndex, getPageStartIndex, isFetchScopeEffective, isPaging, paging, xfetchPage, xfetchScope, xsetPaginggetFetchNarrowingLoopCount, getFetchNarrowingSkipStartIndex, isFetchNarrowingEffective, isFetchNarrowingLoopCountEffective, isFetchNarrowingSkipStartIndexEffective, xdisableFetchNarrowing, xenableIgnoredFetchNarrowingcheckSafetyResult, getSafetyMaxResultSizeclearOrderBy, getOrderByClause, getOrderByComponentmysticRhythms, overTheWavesDBMeta asDBMeta()
String asTableDbName()
SqlClause getSqlClause()
void acceptPrimaryKeyMap(Map<String,? extends Object> primaryKeyMap)
primaryKeyMap - The map of primary-keys. (NotNull and NotEmpty)ConditionBean addOrderBy_PK_Asc()
ConditionBean addOrderBy_PK_Desc()
HpColumnSpHandler localSp()
boolean hasSpecifiedLocalColumn()
boolean hasSpecifiedColumn()
ConditionQuery localCQ()
void enableInnerJoinAutoDetect()
o You should call this before registrations of where clause. o Union and SubQuery and other sub condition-bean inherit this. o You should confirm your SQL on the log to be tuned by inner-join correctly.
void disableInnerJoinAutoDetect()
SpecifiedColumn inviteDerivedToDreamCruise(String derivedAlias)
derivedAlias - The alias name for derived column. (NotNull)ConditionBean xcreateDreamCruiseCB()
void xmarkAsDeparturePortForDreamCruise()
boolean xisDreamCruiseDeparturePort()
boolean xisDreamCruiseShip()
ConditionBean xgetDreamCruiseDeparturePort()
boolean xhasDreamCruiseTicket()
SpecifiedColumn xshowDreamCruiseTicket()
void xkeepDreamCruiseJourneyLogBook(String relationPath)
relationPath - The path of relation. (NotNull)void xsetupSelectDreamCruiseJourneyLogBook()
void xsetupSelectDreamCruiseJourneyLogBookIfUnionExists()
Object xgetMysticBinding()
void ignoreNullOrEmptyQuery()
memberBhv.selectList(cb -> { cb.ignoreNullOrEmptyQuery(); cb.query().setMemberName_Equal(null); // no condition (ignored) cb.query().setMemberName_Equal(""); // no condition (ignored) cb.query().setMemberName_Equal(" "); // valid (MEMBER_NAME = ' ') });You should call this before registrations of where clause and other queries.
void checkNullOrEmptyQuery()
void enableEmptyStringQuery(ModeQuery noArgInLambda)
noArgInLambda - The callback for empty-string query. (NotNull)void disableEmptyStringQuery()
void enableOverridingQuery(ModeQuery noArgInLambda)
noArgInLambda - The callback for overriding query. (NotNull)void disableOverridingQuery()
void enablePagingCountLeastJoin()
void disablePagingCountLeastJoin()
boolean canPagingSelectAndQuerySplit()
ConditionBean lockForUpdate()
ConditionBean xsetupSelectCountIgnoreFetchScope(boolean uniqueCount)
uniqueCount - Is it unique-count select?ConditionBean xafterCareSelectCountIgnoreFetchScope()
boolean isSelectCountIgnoreFetchScope()
CursorSelectOption getCursorSelectOption()
void xacceptScalarSelectOption(ScalarSelectOption option)
option - The option for ScalarSelect. (NullAllowed)void configure(StatementConfigCall<StatementConfig> confLambda)
cb.configure(conf -> conf.queryTimeout(3));
confLambda - The callback for configuration of statement. (NotNull)StatementConfig getStatementConfig()
boolean canRelationMappingCache()
void enableNonSpecifiedColumnAccess()
memberBhv.selectEntity(cb -> { cb.setupSelect_MemberStatus(); cb.specify().columnMemberStatusName(); cb.query().set... }).alwaysPresent(member -> { member.getMemberStatus().alwaysPresent(status -> { ... = status.getMemberStatusName(); // OK ... = status.getDisplayOrder(); // OK: allowed }); });
void disableNonSpecifiedColumnAccess()
memberBhv.selectEntity(cb -> { cb.setupSelect_MemberStatus(); cb.specify().columnMemberStatusName(); cb.query().set... }).alwaysPresent(member -> { member.getMemberStatus().alwaysPresent(status -> { ... = status.getMemberStatusName(); // OK ... = status.getDisplayOrder(); // *NG: exception }); });
boolean isNonSpecifiedColumnAccessAllowed()
void enableUndefinedClassificationSelect()
void disableUndefinedClassificationSelect()
boolean isUndefinedClassificationSelectAllowed()
void enableColumnNullObject()
void disableColumnNullObject()
void enableQueryUpdateCountPreCheck()
void disableQueryUpdateCountPreCheck()
boolean isQueryUpdateCountPreCheck()
String toDisplaySql()
void styleLogDateDisplay(BoundDateDisplayStyle logDateDisplayStyle)
logDateDisplayStyle - The display style of date for logging. (NullAllowed: if null, configured default style)BoundDateDisplayStyle getLogDateDisplayStyle()
boolean hasWhereClauseOnBaseQuery()
void clearWhereClauseOnBaseQuery()
boolean hasSelectAllPossible()
o no where clause on base query o no where clause in base table in-line view o union queries with select-all possible
boolean hasOrderByClause()
boolean hasUnionQueryOrUnionAllQuery()
void invokeSetupSelect(String foreignPropertyNamePath)
PurchaseCB cb = new PurchaseCB(); cb.setupSelect_Member().withMemberStatus();A method with parameters (using fixed condition) is unsupported.
foreignPropertyNamePath - The path string. (NotNull, NotTrimmedEmpty)ConditionInvokingFailureException - When the method to the property is not found and the method is failed.SpecifiedColumn invokeSpecifyColumn(String columnPropertyPath)
PurchaseCB cb = new PurchaseCB(); cb.specify().columnPurchaseDatetime();And if this is based on PURCHASE, 'member.memberName' means as follows:
PurchaseCB cb = new PurchaseCB(); cb.specify().specifyMember().columnMemberName();
columnPropertyPath - The path string to property for the column. (NotNull, NotTrimmedEmpty)ConditionInvokingFailureException - When the method to the property is not found and the method is failed.void invokeOrScopeQuery(OrQuery<ConditionBean> orQuery)
orQuery - The callback for or-query. (NotNull)ConditionInvokingFailureException - When the method to the property is not found and the method is failed.void invokeOrScopeQueryAndPart(AndQuery<ConditionBean> andQuery)
andQuery - The callback for and-query. (NotNull)ConditionInvokingFailureException - When the method to the property is not found and the method is failed.void xregisterUnionQuerySynchronizer(UnionQuery<ConditionBean> unionQuerySynchronizer)
unionQuerySynchronizer - The synchronizer of union query. (NullAllowed)DerivedTypeHandler xgetDerivedTypeHandler()
HpCBPurpose getPurpose()
void xsetupForScalarSelect()
void xsetupForQueryInsert()
void xsetupForSpecifiedUpdate()
void xsetupForVaryingUpdate()
void enableThatsBadTiming()
void disableThatsBadTiming()
Copyright © 2014–2015 The DBFlute Project. All rights reserved.