ENTITY - The type of entity handled by this behavior.CB - The type of condition-bean handled by this behavior.public abstract class AbstractBehaviorReadable<ENTITY extends Entity,CB extends ConditionBean> extends Object implements BehaviorReadable
| 修飾子とタイプ | クラスと説明 |
|---|---|
protected static interface |
AbstractBehaviorReadable.InternalLoadReferrerCallback<LOCAL_ENTITY extends Entity,PK,REFERRER_CB extends ConditionBean,REFERRER_ENTITY extends Entity> |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected BehaviorCommandInvoker |
_behaviorCommandInvoker
Behavior-selector instance.
|
protected BehaviorSelector |
_behaviorSelector
Behavior-selector instance.
|
protected static String |
DERIVED_MAPPABLE_ALIAS_PREFIX
The prefix mark for derived mapping alias.
|
protected static NestedReferrerListGateway<?> |
EMPTY_NREF_LGWAY
The empty instance for provider of list handling for nested referrer.
|
| コンストラクタと説明 |
|---|
AbstractBehaviorReadable() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
assertBehaviorCommandInvoker(String methodName) |
protected void |
assertCBCallNotNull(CBCall<CB> cbCall)
Assert that the callback of condition-bean is not null.
|
protected void |
assertCBNotDreamCruise(ConditionBean cb)
Assert that the condition-bean is not dream cruise.
|
protected void |
assertCBNotNull(ConditionBean cb)
Assert that the condition-bean is not null.
|
protected void |
assertCBStateValid(ConditionBean cb)
Assert that the condition-bean state is valid.
|
protected <RESULT extends ENTITY> |
assertConditionBeanSelectResource(CB cb,
Class<RESULT> entityType) |
protected void |
assertEntityListNotNull(List<? extends Entity> entityList)
Assert that the entity list is not null.
|
protected void |
assertEntityNotDeleted(Entity entity,
Object searchKey)
Assert that the entity is not deleted.
|
protected void |
assertEntityNotDeleted(List<? extends Entity> ls,
Object searchKey)
Assert that the entity is not deleted.
|
protected void |
assertEntityNotNull(Entity entity)
Assert that the entity is not null.
|
protected void |
assertEntityNotNullAndHasPrimaryKeyValue(Entity entity)
Assert that the entity has primary-key value. e.g. insert(), update(), delete()
|
protected void |
assertEntitySelectedAsOne(List<? extends Entity> ls,
Object searchKey)
Assert that the entity is selected as one.
|
protected void |
assertListNotNullAndEmpty(List<?> ls)
Assert that the list is empty.
|
protected void |
assertListNotNullAndHasOnlyOne(List<?> ls)
Assert that the list having only one.
|
protected void |
assertListNotNullAndNotEmpty(List<?> ls)
Assert that the list is not empty.
|
protected void |
assertObjectNotNull(String variableName,
Object value)
Assert that the object is not null.
|
protected <RESULT extends ENTITY> |
assertSpecifyDerivedReferrerEntityProperty(ConditionBean cb,
Class<RESULT> entityType) |
protected void |
assertStringNotNullAndNotTrimmedEmpty(String variableName,
String value)
Assert that the entity is not null and not trimmed empty.
|
protected BehaviorExceptionThrower |
createBhvExThrower() |
protected CB |
createCB(CBCall<CB> cbCall) |
protected ConditionBeanExceptionThrower |
createCBExThrower() |
protected ExceptionMessageBuilder |
createExceptionMessageBuilder() |
protected <RESULT> HpSLSExecutor<CB,RESULT> |
createHpSLSExecutor() |
protected InsertEntityCommand |
createInsertEntityCommand(Entity entity,
InsertOption<? extends ConditionBean> option) |
protected <RESULT extends Entity> |
createListResultBean(ConditionBean cb,
List<RESULT> selectedList) |
protected <RESULT> OptionalEntity<RESULT> |
createOptionalEntity(RESULT entity,
Object... searchKey) |
protected <RESULT extends ENTITY> |
createPagingHandler(CB cb,
Class<? extends RESULT> entityType) |
protected <RESULT extends ENTITY> |
createPagingInvoker(CB cb) |
protected SelectCountCBCommand |
createSelectCountCBCommand(ConditionBean cb,
boolean uniqueCount) |
protected <RESULT extends ENTITY> |
createSelectCursorCBCommand(ConditionBean cb,
EntityRowHandler<RESULT> entityRowHandler,
Class<? extends RESULT> entityType) |
protected <RESULT extends ENTITY> |
createSelectListCBCommand(ConditionBean cb,
Class<? extends RESULT> entityType) |
protected <RESULT> SelectNextValCommand<RESULT> |
createSelectNextValCommand(Class<RESULT> resultType) |
protected <RESULT> SelectNextValCommand<RESULT> |
createSelectNextValSubCommand(Class<RESULT> resultType,
String columnDbName,
String sequenceName,
Integer incrementSize,
Integer cacheSize) |
protected <RESULT> SelectScalarCBCommand<RESULT> |
createSelectScalarCBCommand(ConditionBean cb,
Class<RESULT> resultType,
SelectClauseType selectClauseType) |
protected <RESULT> HpSLSFunction<CB,RESULT> |
createSLSFunction(CB cb,
Class<RESULT> resultType,
HpSLSExecutor<CB,RESULT> exec) |
protected int |
delegateInsertNoPK(Entity entity,
InsertOption<? extends ConditionBean> option) |
protected int |
delegateSelectCountPlainly(ConditionBean cb) |
protected int |
delegateSelectCountUniquely(ConditionBean cb) |
protected <RESULT extends ENTITY> |
delegateSelectCursor(ConditionBean cb,
EntityRowHandler<RESULT> handler,
Class<? extends RESULT> entityType) |
protected <RESULT extends ENTITY> |
delegateSelectList(ConditionBean cb,
Class<? extends RESULT> entityType) |
protected <RESULT> RESULT |
delegateSelectNextVal(Class<RESULT> resultType) |
protected <RESULT> RESULT |
delegateSelectNextValSub(Class<RESULT> resultType,
String columnDbName,
String sequenceName,
Integer incrementSize,
Integer cacheSize) |
protected <LOCAL_ENTITY extends Entity,KEY,REFERRER_CB extends ConditionBean,REFERRER_ENTITY extends Entity> |
doHelpLoadReferrerInternally(List<LOCAL_ENTITY> localEntityList,
LoadReferrerOption<REFERRER_CB,REFERRER_ENTITY> loadReferrerOption,
AbstractBehaviorReadable.InternalLoadReferrerCallback<LOCAL_ENTITY,KEY,REFERRER_CB,REFERRER_ENTITY> callback) |
protected <LOCAL_ENTITY extends Entity,KEY,REFERRER_CB extends ConditionBean,REFERRER_ENTITY extends Entity> |
doHelpLoadReferrerInternally(List<LOCAL_ENTITY> localEntityList,
LoadReferrerOption<REFERRER_CB,REFERRER_ENTITY> loadReferrerOption,
String referrerProperty) |
protected <BEHAVIOR extends BehaviorReadable> |
doOutsideSql()
Prepare an outside-SQL execution by returning an instance of the executor for outside-SQL.
|
protected int |
doReadCount(ConditionBean cb) |
protected abstract Entity |
doReadEntity(ConditionBean cb) |
protected Entity |
doReadEntityWithDeletedCheck(ConditionBean cb) |
protected ListResultBean<? extends Entity> |
doReadList(ConditionBean cb) |
protected abstract Number |
doReadNextVal() |
protected PagingResultBean<? extends Entity> |
doReadPage(ConditionBean cb) |
protected <RESULT> HpSLSFunction<? extends ConditionBean,RESULT> |
doReadScalar(Class<RESULT> resultTYpe) |
protected <RESULT> HpSLSFunction<CB,RESULT> |
doScalarSelect(Class<RESULT> resultType,
CB cb) |
protected int |
doSelectCountPlainly(CB cb) |
protected int |
doSelectCountUniquely(CB cb) |
protected <RESULT extends ENTITY> |
doSelectCursor(CB cb,
EntityRowHandler<RESULT> handler,
Class<? extends RESULT> entityType) |
protected <RESULT extends ENTITY> |
doSelectEntity(CB cb,
Class<? extends RESULT> entityType) |
protected <RESULT extends ENTITY> |
doSelectEntityWithDeletedCheck(CB cb,
Class<? extends RESULT> entityType) |
protected <RESULT extends ENTITY> |
doSelectList(CB cb,
Class<? extends RESULT> entityType) |
protected <RESULT extends ENTITY> |
doSelectPage(CB cb,
Class<? extends RESULT> entityType) |
protected CB |
downcast(ConditionBean cb) |
protected ENTITY |
downcast(Entity entity) |
protected List<ENTITY> |
downcast(List<? extends Entity> entityList) |
protected <RESULT> HpSLSFunction<CB,RESULT> |
facadeScalarSelect(Class<RESULT> resultType) |
protected int |
facadeSelectCount(CB cb) |
protected void |
facadeSelectCursor(CB cb,
EntityRowHandler<ENTITY> entityRowHandler) |
protected ENTITY |
facadeSelectEntityWithDeletedCheck(CB cb) |
protected ListResultBean<ENTITY> |
facadeSelectList(CB cb) |
protected PagingResultBean<ENTITY> |
facadeSelectPage(CB cb) |
protected void |
filterEntityOfInsert(Entity targetEntity,
InsertOption<? extends ConditionBean> option)
Filter the entity of insert.
|
protected BehaviorCommandInvoker |
getBehaviorCommandInvoker()
Get the invoker of behavior command.
|
protected BehaviorSelector |
getBehaviorSelector()
Get the selector of behavior.
|
protected boolean |
hasUpdateDateValue(Entity entity)
Does the entity have a value of update-date?
|
protected boolean |
hasVersionNoValue(Entity entity)
Does the entity have a value of version-no?
|
protected CB |
helpConditionBeanDowncastInternally(ConditionBean cb,
Class<CB> clazz) |
protected <RESULT extends ENTITY> |
helpEntityDowncastInternally(Entity entity,
Class<RESULT> clazz) |
protected <LOCAL_ENTITY extends Entity,COLUMN> |
helpExtractListInternally(List<LOCAL_ENTITY> localEntityList,
String propertyName) |
protected <LOCAL_ENTITY extends Entity,COLUMN> |
helpExtractSetInternally(List<LOCAL_ENTITY> localEntityList,
String propertyName) |
protected <LOCAL_ENTITY extends Entity,KEY,REFERRER_CB extends ConditionBean,REFERRER_ENTITY extends Entity> |
helpLoadReferrerInternally(List<LOCAL_ENTITY> localEntityList,
LoadReferrerOption<REFERRER_CB,REFERRER_ENTITY> loadReferrerOption,
AbstractBehaviorReadable.InternalLoadReferrerCallback<LOCAL_ENTITY,KEY,REFERRER_CB,REFERRER_ENTITY> callback)
Help load referrer internally.
|
protected <LOCAL_ENTITY extends Entity,PK,REFERRER_CB extends ConditionBean,REFERRER_ENTITY extends Entity> |
helpLoadReferrerInternally(List<LOCAL_ENTITY> localEntityList,
LoadReferrerOption<REFERRER_CB,REFERRER_ENTITY> loadReferrerOption,
String referrerProperty)
Help load referrer internally.
|
protected <LOCAL_ENTITY extends Entity,FOREIGN_ENTITY extends Entity> |
helpPulloutInternally(List<LOCAL_ENTITY> localEntityList,
String foreignPropertyName) |
protected void |
helpSelectCursorCheckingByPagingAllowed(CB cb,
CursorSelectOption option) |
protected void |
helpSelectCursorCheckingOrderByPK(CB cb,
CursorSelectOption option) |
protected <RESULT extends ENTITY> |
helpSelectCursorHandlingByPaging(CB cb,
EntityRowHandler<RESULT> entityRowHandler,
Class<? extends RESULT> entityType,
CursorSelectOption option) |
protected <RESULT extends ENTITY> |
helpSelectCursorInternally(CB cb,
EntityRowHandler<RESULT> handler,
Class<? extends RESULT> entityType) |
protected <RESULT extends ENTITY> |
helpSelectEntityInternally(CB cb,
Class<? extends RESULT> entityType) |
protected <RESULT extends ENTITY> |
helpSelectEntityWithDeletedCheckInternally(CB cb,
Class<? extends RESULT> entityType) |
protected <RESULT extends ENTITY> |
helpSelectListInternally(CB cb,
Class<? extends RESULT> entityType) |
protected <RESULT extends ENTITY> |
helpSelectPageInternally(CB cb,
Class<? extends RESULT> entityType) |
protected <RESULT> RESULT |
invoke(BehaviorCommand<RESULT> behaviorCommand)
Invoke the command of behavior.
|
protected boolean |
isEntityDerivedMappable() |
protected boolean |
isRelationOptional(Class<?> relationPropertyType)
Is the property type optional for relation?
|
protected String |
ln()
Get the value of line separator.
|
abstract CB |
newConditionBean()
New condition-bean instance.
|
ENTITY |
newEntity()
New entity instance.
|
protected InsertEntityCommand |
newInsertEntityCommand() |
protected SelectCountCBCommand |
newSelectCountCBCommand() |
protected <RESULT extends ENTITY> |
newSelectCursorCBCommand() |
protected <RESULT extends ENTITY> |
newSelectListCBCommand() |
protected <RESULT> SelectNextValCommand<RESULT> |
newSelectNextValCommand() |
protected <RESULT> SelectNextValSubCommand<RESULT> |
newSelectNextValSubCommand() |
protected <RESULT> SelectScalarCBCommand<RESULT> |
newSelectScalarCBCommand() |
protected <RESULT> HpSLSFunction<CB,RESULT> |
newSLSFunction(CB cb,
Class<RESULT> resultType,
HpSLSExecutor<CB,RESULT> exec) |
int |
readCount(ConditionBean cb)
Read count by condition-bean.
|
<RESULT extends Entity> |
readCursor(ConditionBean cb,
EntityRowHandler<RESULT> entityLambda)
Read the cursor by the row handler.
|
Entity |
readEntity(ConditionBean cb)
Read entity by condition-bean.
|
Entity |
readEntityWithDeletedCheck(ConditionBean cb)
Read simple entity by condition-bean with deleted check.
|
<RESULT extends Entity> |
readList(ConditionBean cb)
Read list as result-bean.
|
Number |
readNextVal()
Read next value of sequence.
|
<RESULT extends Entity> |
readPage(ConditionBean cb)
Read page as result-bean.
|
<RESULT> HpSLSFunction<ConditionBean,RESULT> |
readScalar(Class<RESULT> resultType)
Read the scalar value derived by a function from uniquely-selected records.
|
<BEHAVIOR extends BehaviorReadable> |
readyOutsideSql()
Prepare an outside-SQL execution by returning an instance of the executor for outside-SQL.
|
void |
setBehaviorCommandInvoker(BehaviorCommandInvoker behaviorCommandInvoker)
Set the invoker of behavior command.
|
void |
setBehaviorSelector(BehaviorSelector behaviorSelector)
Set the selector of behavior.
|
protected void |
throwSelectEntityAlreadyDeletedException(Object searchKey) |
protected void |
throwSelectEntityConditionNotFoundException(ConditionBean cb) |
protected void |
throwSelectEntityDuplicatedException(String resultCountExp,
Object searchKey,
Throwable cause) |
protected void |
throwSpecifyDerivedReferrerEntityPropertyNotFoundException(String alias,
Class<?> entityType) |
protected <PK> PK |
toLoadReferrerMappingKey(PK value)
Convert the primary key to mapping key for load-referrer.
|
protected Object |
toLowerCaseIfString(Object obj)
To lower case if the type is String.
|
protected Object |
toRelationOptional(String relationTitle,
Object relationRow)
Create present or null entity as relation optional.
|
protected abstract Class<CB> |
typeOfHandlingConditionBean() |
protected abstract Class<ENTITY> |
typeOfHandlingEntity() |
protected abstract Class<? extends ENTITY> |
typeOfSelectedEntity() |
void |
warmUpCommand()
Warm up the command of behavior.
|
protected void |
xassLRArg(Entity entity,
LoadReferrerOption<? extends ConditionBean,? extends Entity> loadReferrerOption) |
protected void |
xassLRArg(Entity entity,
ReferrerConditionSetupper<? extends ConditionBean> setupper) |
protected void |
xassLRArg(Entity entity,
ReferrerLoaderHandler<?> handler) |
protected void |
xassLRArg(List<? extends Entity> entityList,
LoadReferrerOption<? extends ConditionBean,? extends Entity> loadReferrerOption) |
protected void |
xassLRArg(List<? extends Entity> entityList,
ReferrerConditionSetupper<? extends ConditionBean> setupper) |
protected void |
xassLRArg(List<? extends Entity> entityList,
ReferrerLoaderHandler<?> handler) |
protected String |
xbuildReferrerCorrelatedFixedCondition(ConditionBean cb,
String referrerPropertyName) |
protected int |
xcheckSafetyResultAsOne(ConditionBean cb) |
protected <KEY> KEY |
xconvertFK2PKImplicitly(String referrerProperty,
Class<?> fkType,
Class<?> pkType,
Object fkValue) |
protected Object |
xconvertToRelationOptionalEntityIfNeeds(Object localEntity,
RelationInfo reverseInfo) |
protected <LOCAL_ENTITY extends Entity,KEY,REFERRER_CB extends ConditionBean,REFERRER_ENTITY extends Entity> |
xcreateLoadReferrerCallback(String referrerProperty,
DBMeta dbmeta,
ReferrerInfo referrerInfo,
BehaviorReadable referrerBhv,
ColumnInfo pkCol,
ColumnInfo fkCol) |
protected <LOCAL_ENTITY extends Entity,KEY,REFERRER_CB extends ConditionBean,REFERRER_ENTITY extends Entity> |
xcreateLoadReferrerCallback(String referrerProperty,
DBMeta dbmeta,
ReferrerInfo referrerInfo,
BehaviorReadable referrerBhv,
Set<ColumnInfo> pkColSet,
Set<ColumnInfo> fkColSet,
Map<ColumnInfo,ColumnInfo> mappingColMap) |
protected String |
xdoBuildReferrerCorrelatedFixedCondition(ConditionBean cb,
ReferrerInfo referrerInfo) |
protected <LOCAL_ENTITY extends Entity,COLUMN,COLLECTION extends Collection<COLUMN>> |
xdoHelpExtractSetInternally(List<LOCAL_ENTITY> localEntityList,
String propertyName,
COLLECTION collection) |
protected <LOCAL_ENTITY extends Entity,FOREIGN_ENTITY extends Entity> |
xextractPulloutForeignEntity(ForeignInfo foreignInfo,
RelationInfo reverseInfo,
RelationOptionalFactory optionalFactory,
LOCAL_ENTITY localEntity) |
protected <LOCAL_ENTITY extends Entity> |
xextractPulloutReverseWrittenObject(ForeignInfo foreignInfo,
RelationInfo reverseInfo,
RelationOptionalFactory optionalFactory,
List<LOCAL_ENTITY> mappedLocalList) |
protected BehaviorReadable |
xfindReferrerBehavior(ReferrerInfo referrerInfo) |
protected BehaviorSelector |
xgetBSFLR() |
protected RelationOptionalFactory |
xgetROpFactory() |
protected Map<String,Object> |
xnewLoadReferrerCompoundKeyMap() |
protected <ELEMENT extends Entity> |
xnewLRAryLs(ELEMENT entity) |
protected <ELEMENT> List<ELEMENT> |
xnewLRLs(ELEMENT element) |
protected <FOREIGN_ENTITY extends Entity> |
xpreparePulloutResultList(Map<Integer,FOREIGN_ENTITY> foreignBasicMap,
Map<Integer,List<FOREIGN_ENTITY>> foreignCollisionMap) |
protected void |
xrestoreSafetyResult(ConditionBean cb,
int preSafetyMaxResultSize) |
protected <FOREIGN_ENTITY extends Entity> |
xsavePulloutForeignEntity(Map<Integer,FOREIGN_ENTITY> foreignBasicMap,
Map<Integer,List<FOREIGN_ENTITY>> foreignCollisionMap,
FOREIGN_ENTITY foreignEntity) |
protected void |
xsetupEntityCommand(AbstractEntityCommand cmd,
Entity entity) |
protected void |
xsetupSelectCommand(AbstractBehaviorCommand<?> cmd) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasDBMeta, asTableDbNameprotected static final String DERIVED_MAPPABLE_ALIAS_PREFIX
protected static final NestedReferrerListGateway<?> EMPTY_NREF_LGWAY
protected BehaviorCommandInvoker _behaviorCommandInvoker
protected BehaviorSelector _behaviorSelector
public ENTITY newEntity()
newEntity インタフェース内 BehaviorReadablepublic abstract CB newConditionBean()
newConditionBean インタフェース内 BehaviorReadableprotected int facadeSelectCount(CB cb)
protected int doSelectCountUniquely(CB cb)
protected int doSelectCountPlainly(CB cb)
public int readCount(ConditionBean cb)
readCount インタフェース内 BehaviorReadablecb - The instance of corresponding condition-bean. (NotNull)protected int doReadCount(ConditionBean cb)
protected <RESULT extends ENTITY> RESULT doSelectEntity(CB cb, Class<? extends RESULT> entityType)
protected <RESULT extends ENTITY> RESULT doSelectEntityWithDeletedCheck(CB cb, Class<? extends RESULT> entityType)
protected <RESULT extends ENTITY> RESULT helpSelectEntityInternally(CB cb, Class<? extends RESULT> entityType)
protected <RESULT extends ENTITY> RESULT helpSelectEntityWithDeletedCheckInternally(CB cb, Class<? extends RESULT> entityType)
protected int xcheckSafetyResultAsOne(ConditionBean cb)
protected void xrestoreSafetyResult(ConditionBean cb, int preSafetyMaxResultSize)
protected void assertEntityNotDeleted(Entity entity, Object searchKey)
entity - Selected entity. (NullAllowed)searchKey - Search-key for logging.EntityAlreadyDeletedException - When the entity has already been deleted.protected void assertEntityNotDeleted(List<? extends Entity> ls, Object searchKey)
ls - Selected list. (NullAllowed)searchKey - Search-key for logging. (NotNull)EntityAlreadyDeletedException - When the entity has already been deleted. (not found)protected void assertEntitySelectedAsOne(List<? extends Entity> ls, Object searchKey)
ls - Selected list. (NotNull)searchKey - Search-key for logging. (NotNull)EntityAlreadyDeletedException - When the entity has already been deleted. (not found)EntityDuplicatedException - When the entity has been duplicated.protected void throwSelectEntityAlreadyDeletedException(Object searchKey)
protected void throwSelectEntityDuplicatedException(String resultCountExp, Object searchKey, Throwable cause)
protected void throwSelectEntityConditionNotFoundException(ConditionBean cb)
public Entity readEntity(ConditionBean cb)
readEntity インタフェース内 BehaviorReadablecb - The instance of corresponding condition-bean. (NotNull)protected abstract Entity doReadEntity(ConditionBean cb)
protected <RESULT> OptionalEntity<RESULT> createOptionalEntity(RESULT entity, Object... searchKey)
public Entity readEntityWithDeletedCheck(ConditionBean cb)
readEntityWithDeletedCheck インタフェース内 BehaviorReadablecb - The instance of corresponding condition-bean. (NotNull)protected Entity doReadEntityWithDeletedCheck(ConditionBean cb)
protected ListResultBean<ENTITY> facadeSelectList(CB cb)
protected <RESULT extends ENTITY> ListResultBean<RESULT> doSelectList(CB cb, Class<? extends RESULT> entityType)
protected <RESULT extends ENTITY> ListResultBean<RESULT> helpSelectListInternally(CB cb, Class<? extends RESULT> entityType)
protected <RESULT extends Entity> ListResultBean<RESULT> createListResultBean(ConditionBean cb, List<RESULT> selectedList)
protected boolean isEntityDerivedMappable()
protected void throwSpecifyDerivedReferrerEntityPropertyNotFoundException(String alias, Class<?> entityType)
public <RESULT extends Entity> ListResultBean<RESULT> readList(ConditionBean cb)
readList インタフェース内 BehaviorReadableRESULT - The result type of entity.cb - The instance of corresponding condition-bean. (NotNull)protected ListResultBean<? extends Entity> doReadList(ConditionBean cb)
protected PagingResultBean<ENTITY> facadeSelectPage(CB cb)
protected <RESULT extends ENTITY> PagingResultBean<RESULT> doSelectPage(CB cb, Class<? extends RESULT> entityType)
protected <RESULT extends ENTITY> PagingResultBean<RESULT> helpSelectPageInternally(CB cb, Class<? extends RESULT> entityType)
protected <RESULT extends ENTITY> PagingHandler<RESULT> createPagingHandler(CB cb, Class<? extends RESULT> entityType)
protected <RESULT extends ENTITY> PagingInvoker<RESULT> createPagingInvoker(CB cb)
public <RESULT extends Entity> PagingResultBean<RESULT> readPage(ConditionBean cb)
readPage インタフェース内 BehaviorReadableRESULT - The result type of entity.cb - The instance of corresponding condition-bean. (NotNull)protected PagingResultBean<? extends Entity> doReadPage(ConditionBean cb)
protected void facadeSelectCursor(CB cb, EntityRowHandler<ENTITY> entityRowHandler)
protected <RESULT extends ENTITY> void doSelectCursor(CB cb, EntityRowHandler<RESULT> handler, Class<? extends RESULT> entityType)
protected <RESULT extends ENTITY> void helpSelectCursorInternally(CB cb, EntityRowHandler<RESULT> handler, Class<? extends RESULT> entityType)
protected <RESULT extends ENTITY> void helpSelectCursorHandlingByPaging(CB cb, EntityRowHandler<RESULT> entityRowHandler, Class<? extends RESULT> entityType, CursorSelectOption option)
protected void helpSelectCursorCheckingByPagingAllowed(CB cb, CursorSelectOption option)
protected void helpSelectCursorCheckingOrderByPK(CB cb, CursorSelectOption option)
public <RESULT extends Entity> void readCursor(ConditionBean cb, EntityRowHandler<RESULT> entityLambda)
BehaviorReadablereadCursor インタフェース内 BehaviorReadableRESULT - The result type of entity.cb - The instance of corresponding condition-bean. (NotNull)entityLambda - The handler of entity row. (NotNull)protected <RESULT> HpSLSFunction<CB,RESULT> facadeScalarSelect(Class<RESULT> resultType)
protected <RESULT> HpSLSFunction<CB,RESULT> doScalarSelect(Class<RESULT> resultType, CB cb)
protected <RESULT> HpSLSExecutor<CB,RESULT> createHpSLSExecutor()
protected <RESULT> HpSLSFunction<CB,RESULT> createSLSFunction(CB cb, Class<RESULT> resultType, HpSLSExecutor<CB,RESULT> exec)
protected <RESULT> HpSLSFunction<CB,RESULT> newSLSFunction(CB cb, Class<RESULT> resultType, HpSLSExecutor<CB,RESULT> exec)
protected <RESULT> HpSLSFunction<? extends ConditionBean,RESULT> doReadScalar(Class<RESULT> resultTYpe)
public <RESULT> HpSLSFunction<ConditionBean,RESULT> readScalar(Class<RESULT> resultType)
readScalar インタフェース内 BehaviorReadableRESULT - The type of scalar result.resultType - The type of result. (NotNull)public <BEHAVIOR extends BehaviorReadable> OutsideSqlAllFacadeExecutor<BEHAVIOR> readyOutsideSql()
readyOutsideSql インタフェース内 BehaviorReadableBEHAVIOR - The type of behavior.protected <BEHAVIOR extends BehaviorReadable> OutsideSqlAllFacadeExecutor<BEHAVIOR> doOutsideSql()
BEHAVIOR - The type of behavior.public Number readNextVal()
readNextVal インタフェース内 BehaviorReadableprotected abstract Number doReadNextVal()
protected <LOCAL_ENTITY extends Entity,PK,REFERRER_CB extends ConditionBean,REFERRER_ENTITY extends Entity> NestedReferrerListGateway<REFERRER_ENTITY> helpLoadReferrerInternally(List<LOCAL_ENTITY> localEntityList, LoadReferrerOption<REFERRER_CB,REFERRER_ENTITY> loadReferrerOption, String referrerProperty)
LOCAL_ENTITY - The type of base entity.PK - The type of primary key.REFERRER_CB - The type of referrer condition-bean.REFERRER_ENTITY - The type of referrer entity.localEntityList - The list of local entity. (NotNull)loadReferrerOption - The option of loadReferrer. (NotNull)referrerProperty - The property name of referrer. (NotNull)protected <LOCAL_ENTITY extends Entity,KEY,REFERRER_CB extends ConditionBean,REFERRER_ENTITY extends Entity> NestedReferrerListGateway<REFERRER_ENTITY> doHelpLoadReferrerInternally(List<LOCAL_ENTITY> localEntityList, LoadReferrerOption<REFERRER_CB,REFERRER_ENTITY> loadReferrerOption, String referrerProperty)
protected BehaviorReadable xfindReferrerBehavior(ReferrerInfo referrerInfo)
protected <LOCAL_ENTITY extends Entity,KEY,REFERRER_CB extends ConditionBean,REFERRER_ENTITY extends Entity> AbstractBehaviorReadable.InternalLoadReferrerCallback<LOCAL_ENTITY,KEY,REFERRER_CB,REFERRER_ENTITY> xcreateLoadReferrerCallback(String referrerProperty, DBMeta dbmeta, ReferrerInfo referrerInfo, BehaviorReadable referrerBhv, ColumnInfo pkCol, ColumnInfo fkCol)
protected <LOCAL_ENTITY extends Entity,KEY,REFERRER_CB extends ConditionBean,REFERRER_ENTITY extends Entity> AbstractBehaviorReadable.InternalLoadReferrerCallback<LOCAL_ENTITY,KEY,REFERRER_CB,REFERRER_ENTITY> xcreateLoadReferrerCallback(String referrerProperty, DBMeta dbmeta, ReferrerInfo referrerInfo, BehaviorReadable referrerBhv, Set<ColumnInfo> pkColSet, Set<ColumnInfo> fkColSet, Map<ColumnInfo,ColumnInfo> mappingColMap)
protected <KEY> KEY xconvertFK2PKImplicitly(String referrerProperty, Class<?> fkType, Class<?> pkType, Object fkValue)
protected Object xconvertToRelationOptionalEntityIfNeeds(Object localEntity, RelationInfo reverseInfo)
protected <LOCAL_ENTITY extends Entity,KEY,REFERRER_CB extends ConditionBean,REFERRER_ENTITY extends Entity> NestedReferrerListGateway<REFERRER_ENTITY> helpLoadReferrerInternally(List<LOCAL_ENTITY> localEntityList, LoadReferrerOption<REFERRER_CB,REFERRER_ENTITY> loadReferrerOption, AbstractBehaviorReadable.InternalLoadReferrerCallback<LOCAL_ENTITY,KEY,REFERRER_CB,REFERRER_ENTITY> callback)
LOCAL_ENTITY - The type of base entity.KEY - The type of primary key.REFERRER_CB - The type of referrer condition-bean.REFERRER_ENTITY - The type of referrer entity.localEntityList - The list of local entity. (NotNull)loadReferrerOption - The option of loadReferrer. (NotNull)callback - The internal callback of loadReferrer. (NotNull)protected <LOCAL_ENTITY extends Entity,KEY,REFERRER_CB extends ConditionBean,REFERRER_ENTITY extends Entity> NestedReferrerListGateway<REFERRER_ENTITY> doHelpLoadReferrerInternally(List<LOCAL_ENTITY> localEntityList, LoadReferrerOption<REFERRER_CB,REFERRER_ENTITY> loadReferrerOption, AbstractBehaviorReadable.InternalLoadReferrerCallback<LOCAL_ENTITY,KEY,REFERRER_CB,REFERRER_ENTITY> callback)
protected String xbuildReferrerCorrelatedFixedCondition(ConditionBean cb, String referrerPropertyName)
protected String xdoBuildReferrerCorrelatedFixedCondition(ConditionBean cb, ReferrerInfo referrerInfo)
protected <PK> PK toLoadReferrerMappingKey(PK value)
PK - The type of primary key.value - The value of primary key. (NotNull)protected void xassLRArg(List<? extends Entity> entityList, ReferrerLoaderHandler<?> handler)
protected void xassLRArg(Entity entity, ReferrerLoaderHandler<?> handler)
protected void xassLRArg(List<? extends Entity> entityList, ReferrerConditionSetupper<? extends ConditionBean> setupper)
protected void xassLRArg(Entity entity, ReferrerConditionSetupper<? extends ConditionBean> setupper)
protected void xassLRArg(List<? extends Entity> entityList, LoadReferrerOption<? extends ConditionBean,? extends Entity> loadReferrerOption)
protected void xassLRArg(Entity entity, LoadReferrerOption<? extends ConditionBean,? extends Entity> loadReferrerOption)
protected BehaviorSelector xgetBSFLR()
protected <ELEMENT> List<ELEMENT> xnewLRLs(ELEMENT element)
protected <LOCAL_ENTITY extends Entity,FOREIGN_ENTITY extends Entity> List<FOREIGN_ENTITY> helpPulloutInternally(List<LOCAL_ENTITY> localEntityList, String foreignPropertyName)
protected <LOCAL_ENTITY extends Entity,FOREIGN_ENTITY extends Entity> FOREIGN_ENTITY xextractPulloutForeignEntity(ForeignInfo foreignInfo, RelationInfo reverseInfo, RelationOptionalFactory optionalFactory, LOCAL_ENTITY localEntity)
protected <FOREIGN_ENTITY extends Entity> Map<Integer,List<FOREIGN_ENTITY>> xsavePulloutForeignEntity(Map<Integer,FOREIGN_ENTITY> foreignBasicMap, Map<Integer,List<FOREIGN_ENTITY>> foreignCollisionMap, FOREIGN_ENTITY foreignEntity)
protected <LOCAL_ENTITY extends Entity> Object xextractPulloutReverseWrittenObject(ForeignInfo foreignInfo, RelationInfo reverseInfo, RelationOptionalFactory optionalFactory, List<LOCAL_ENTITY> mappedLocalList)
protected <FOREIGN_ENTITY extends Entity> List<FOREIGN_ENTITY> xpreparePulloutResultList(Map<Integer,FOREIGN_ENTITY> foreignBasicMap, Map<Integer,List<FOREIGN_ENTITY>> foreignCollisionMap)
protected <LOCAL_ENTITY extends Entity,COLUMN> List<COLUMN> helpExtractListInternally(List<LOCAL_ENTITY> localEntityList, String propertyName)
protected <LOCAL_ENTITY extends Entity,COLUMN> Set<COLUMN> helpExtractSetInternally(List<LOCAL_ENTITY> localEntityList, String propertyName)
protected <LOCAL_ENTITY extends Entity,COLUMN,COLLECTION extends Collection<COLUMN>> COLLECTION xdoHelpExtractSetInternally(List<LOCAL_ENTITY> localEntityList, String propertyName, COLLECTION collection)
protected void filterEntityOfInsert(Entity targetEntity, InsertOption<? extends ConditionBean> option)
targetEntity - Target entity that the type is entity interface. (NotNull)option - The option of insert. (NullAllowed)protected int delegateSelectCountUniquely(ConditionBean cb)
protected int delegateSelectCountPlainly(ConditionBean cb)
protected <RESULT extends ENTITY> List<RESULT> delegateSelectList(ConditionBean cb, Class<? extends RESULT> entityType)
protected <RESULT extends ENTITY> void delegateSelectCursor(ConditionBean cb, EntityRowHandler<RESULT> handler, Class<? extends RESULT> entityType)
protected <RESULT> RESULT delegateSelectNextVal(Class<RESULT> resultType)
protected <RESULT> RESULT delegateSelectNextValSub(Class<RESULT> resultType, String columnDbName, String sequenceName, Integer incrementSize, Integer cacheSize)
protected int delegateInsertNoPK(Entity entity, InsertOption<? extends ConditionBean> option)
public void warmUpCommand()
BehaviorReadablewarmUpCommand インタフェース内 BehaviorReadableprotected SelectCountCBCommand createSelectCountCBCommand(ConditionBean cb, boolean uniqueCount)
protected SelectCountCBCommand newSelectCountCBCommand()
protected <RESULT extends ENTITY> SelectListCBCommand<RESULT> createSelectListCBCommand(ConditionBean cb, Class<? extends RESULT> entityType)
protected <RESULT extends ENTITY> SelectListCBCommand<RESULT> newSelectListCBCommand()
protected <RESULT extends ENTITY> SelectCursorCBCommand<RESULT> createSelectCursorCBCommand(ConditionBean cb, EntityRowHandler<RESULT> entityRowHandler, Class<? extends RESULT> entityType)
protected <RESULT extends ENTITY> SelectCursorCBCommand<RESULT> newSelectCursorCBCommand()
protected <RESULT> SelectNextValCommand<RESULT> createSelectNextValCommand(Class<RESULT> resultType)
protected <RESULT> SelectNextValCommand<RESULT> newSelectNextValCommand()
protected <RESULT> SelectNextValCommand<RESULT> createSelectNextValSubCommand(Class<RESULT> resultType, String columnDbName, String sequenceName, Integer incrementSize, Integer cacheSize)
protected <RESULT> SelectNextValSubCommand<RESULT> newSelectNextValSubCommand()
protected <RESULT> SelectScalarCBCommand<RESULT> createSelectScalarCBCommand(ConditionBean cb, Class<RESULT> resultType, SelectClauseType selectClauseType)
protected <RESULT> SelectScalarCBCommand<RESULT> newSelectScalarCBCommand()
protected void xsetupSelectCommand(AbstractBehaviorCommand<?> cmd)
protected InsertEntityCommand createInsertEntityCommand(Entity entity, InsertOption<? extends ConditionBean> option)
protected InsertEntityCommand newInsertEntityCommand()
protected void xsetupEntityCommand(AbstractEntityCommand cmd, Entity entity)
protected <RESULT> RESULT invoke(BehaviorCommand<RESULT> behaviorCommand)
RESULT - The type of result.behaviorCommand - The command of behavior. (NotNull)protected void assertBehaviorCommandInvoker(String methodName)
protected boolean hasVersionNoValue(Entity entity)
entity - The instance of entity. (NotNull)protected boolean hasUpdateDateValue(Entity entity)
entity - The instance of entity. (NotNull)protected Object toRelationOptional(String relationTitle, Object relationRow)
relationTitle - The title of relation for exception message. (NotNull)relationRow - The entity instance of relation row. (NullAllowed)protected boolean isRelationOptional(Class<?> relationPropertyType)
relationPropertyType - The type of relation property. (NotNull)protected RelationOptionalFactory xgetROpFactory()
protected <RESULT extends ENTITY> RESULT helpEntityDowncastInternally(Entity entity, Class<RESULT> clazz)
protected CB downcast(ConditionBean cb)
protected CB helpConditionBeanDowncastInternally(ConditionBean cb, Class<CB> clazz)
protected BehaviorExceptionThrower createBhvExThrower()
protected ConditionBeanExceptionThrower createCBExThrower()
protected ExceptionMessageBuilder createExceptionMessageBuilder()
protected void assertObjectNotNull(String variableName, Object value)
variableName - The variable name for message. (NotNull)value - The value the checked variable. (NotNull)IllegalArgumentException - When the variable name or the variable is null.protected void assertEntityNotNull(Entity entity)
entity - The instance of entity to be checked. (NotNull)protected void assertEntityNotNullAndHasPrimaryKeyValue(Entity entity)
entity - The instance of entity to be checked. (NotNull)protected void assertEntityListNotNull(List<? extends Entity> entityList)
entityList - The list of entity to be checked. (NotNull)protected void assertCBCallNotNull(CBCall<CB> cbCall)
cbCall - The interface of condition-bean to be checked. (NotNull)protected void assertCBNotNull(ConditionBean cb)
cb - The instance of condition-bean to be checked. (NotNull)protected void assertCBStateValid(ConditionBean cb)
cb - The instance of condition-bean to be checked. (NotNull)protected void assertCBNotDreamCruise(ConditionBean cb)
cb - The instance of condition-bean to be checked. (NotNull)protected <RESULT extends ENTITY> void assertConditionBeanSelectResource(CB cb, Class<RESULT> entityType)
protected <RESULT extends ENTITY> void assertSpecifyDerivedReferrerEntityProperty(ConditionBean cb, Class<RESULT> entityType)
protected void assertStringNotNullAndNotTrimmedEmpty(String variableName, String value)
variableName - The variable name for message. (NotNull)value - The value the checked variable. (NotNull)IllegalArgumentException - When the argument is null or empty.protected void assertListNotNullAndEmpty(List<?> ls)
ls - The instance of list to be checked. (NotNull)protected void assertListNotNullAndNotEmpty(List<?> ls)
ls - The instance of list to be checked. (NotNull)protected void assertListNotNullAndHasOnlyOne(List<?> ls)
ls - The instance of list to be checked. (NotNull)protected Object toLowerCaseIfString(Object obj)
obj - The object might be string. (NullAllowed)protected String ln()
protected BehaviorCommandInvoker getBehaviorCommandInvoker()
public void setBehaviorCommandInvoker(BehaviorCommandInvoker behaviorCommandInvoker)
behaviorCommandInvoker - The invoker of behavior command. (NotNull)protected BehaviorSelector getBehaviorSelector()
public void setBehaviorSelector(BehaviorSelector behaviorSelector)
behaviorSelector - The selector of behavior. (NotNull)Copyright © 2014–2015 The DBFlute Project. All rights reserved.