ENTITY
- The type of entity.CB
- The type of condition-bean.public abstract class EsAbstractBehavior<ENTITY extends org.dbflute.Entity,CB extends org.dbflute.cbean.ConditionBean>
extends org.dbflute.bhv.AbstractBehaviorWritable<ENTITY,CB>
Modifier and Type | Class and Description |
---|---|
static class |
EsAbstractBehavior.BulkList<E,B> |
Modifier and Type | Field and Description |
---|---|
protected String |
bulkTimeout |
protected String |
deleteTimeout |
protected String |
indexTimeout |
protected String |
refreshTimeout |
protected String |
scrollForCursor |
protected String |
scrollForDelete |
protected String |
scrollSearchTimeout |
protected String |
searchTimeout |
protected int |
sizeForCursor |
protected int |
sizeForDelete |
Constructor and Description |
---|
EsAbstractBehavior() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
asEsIndex() |
protected abstract String |
asEsIndexType() |
protected abstract String |
asEsSearchType() |
protected org.elasticsearch.action.delete.DeleteRequestBuilder |
createDeleteRequest(EsAbstractEntity esEntity) |
protected abstract <RESULT extends ENTITY> |
createEntity(Map<String,Object> source,
Class<? extends RESULT> entityType) |
protected org.elasticsearch.action.index.IndexRequestBuilder |
createInsertRequest(EsAbstractEntity esEntity) |
protected <RESULT extends org.dbflute.Entity> |
createListResultBean(org.dbflute.cbean.ConditionBean cb,
List<RESULT> selectedList) |
protected org.dbflute.bhv.writable.UpdateOption<CB> |
createPlainUpdateOption() |
protected org.elasticsearch.action.index.IndexRequestBuilder |
createUpdateRequest(EsAbstractEntity esEntity) |
protected int[] |
delegateBatchDelete(List<? extends org.dbflute.Entity> entityList,
org.dbflute.bhv.writable.DeleteOption<? extends org.dbflute.cbean.ConditionBean> option) |
protected int[] |
delegateBatchInsert(List<? extends org.dbflute.Entity> entityList,
org.dbflute.bhv.writable.InsertOption<? extends org.dbflute.cbean.ConditionBean> option) |
protected <BUILDER> int[] |
delegateBatchRequest(List<? extends org.dbflute.Entity> entityList,
Function<EsAbstractEntity,BUILDER> call) |
protected int[] |
delegateBatchUpdate(List<? extends org.dbflute.Entity> entityList,
org.dbflute.bhv.writable.UpdateOption<? extends org.dbflute.cbean.ConditionBean> option) |
protected void |
delegateBulkRequest(org.dbflute.cbean.ConditionBean cb,
Function<org.elasticsearch.search.SearchHits,Boolean> handler) |
protected int |
delegateDelete(org.dbflute.Entity entity,
org.dbflute.bhv.writable.DeleteOption<? extends org.dbflute.cbean.ConditionBean> option) |
protected int |
delegateInsert(org.dbflute.Entity entity,
org.dbflute.bhv.writable.InsertOption<? extends org.dbflute.cbean.ConditionBean> option) |
protected int |
delegateQueryDelete(org.dbflute.cbean.ConditionBean cb,
org.dbflute.bhv.writable.DeleteOption<? extends org.dbflute.cbean.ConditionBean> option) |
protected <RESULT extends ENTITY> |
delegateSelectBulk(org.dbflute.cbean.ConditionBean cb,
org.dbflute.bhv.readable.EntityRowHandler<List<RESULT>> handler,
Class<? extends RESULT> entityType) |
protected int |
delegateSelectCountUniquely(org.dbflute.cbean.ConditionBean cb) |
protected <RESULT extends ENTITY> |
delegateSelectCursor(org.dbflute.cbean.ConditionBean cb,
org.dbflute.bhv.readable.EntityRowHandler<RESULT> handler,
Class<? extends RESULT> entityType) |
protected <RESULT extends ENTITY> |
delegateSelectEntity(org.dbflute.cbean.ConditionBean cb,
Class<? extends RESULT> entityType) |
protected <RESULT extends ENTITY> |
delegateSelectList(org.dbflute.cbean.ConditionBean cb,
Class<? extends RESULT> entityType) |
protected int |
delegateUpdate(org.dbflute.Entity entity,
org.dbflute.bhv.writable.UpdateOption<? extends org.dbflute.cbean.ConditionBean> option) |
protected Number |
doReadNextVal() |
protected <RESULT extends ENTITY> |
helpSelectCursorHandlingByPaging(CB cb,
org.dbflute.bhv.readable.EntityRowHandler<RESULT> handler,
Class<? extends RESULT> entityType,
org.dbflute.cbean.coption.CursorSelectOption option) |
protected boolean |
isCompatibleBatchInsertDefaultEveryColumn() |
org.elasticsearch.action.admin.indices.refresh.RefreshResponse |
refresh() |
void |
setBulkTimeout(String bulkTimeout) |
void |
setDeleteTimeout(String deleteTimeout) |
void |
setIndexTimeout(String indexTimeout) |
void |
setRefreshTimeout(String refreshTimeout) |
void |
setScrollForCursor(String scrollForCursor) |
void |
setScrollForDelete(String scrollForDelete) |
void |
setScrollSearchTimeout(String scrollSearchTimeout) |
void |
setSearchTimeout(String searchTimeout) |
void |
setSizeForCursor(int sizeForCursor) |
void |
setSizeForDelete(int sizeForDelete) |
protected Date |
toDate(Object value) |
protected LocalDateTime |
toLocalDateTime(Object value) |
protected Map<String,Object> |
toSource(EsAbstractEntity esEntity) |
protected String[] |
toStringArray(Object value) |
adjustEntityBeforeDelete, adjustEntityBeforeInsert, adjustEntityBeforeQueryDelete, adjustEntityBeforeQueryInsert, adjustEntityBeforeQueryUpdate, adjustEntityBeforeUpdate, adjustEntityListBeforeBatchDelete, adjustEntityListBeforeBatchInsert, adjustEntityListBeforeBatchUpdate, assertDeleteOpCallNotNull, assertDeleteOptionStatus, assertEntityHasOptimisticLockValue, assertEntityHasUpdateDateValue, assertEntityHasVersionNoValue, assertEntityOfDelete, assertEntityOfInsert, assertEntityOfUpdate, assertInsertOpCallNotNull, assertInsertOptionStatus, assertQueryDeleteStatus, assertQueryUpdateStatus, assertUpdateColumnSpecificationNotNull, assertUpdateOpCallNotNull, assertUpdateOptionStatus, checkCountBeforeQueryUpdateIfNeeds, create, createBatchDeleteCommand, createBatchDeleteNonstrictCommand, createBatchInsertCommand, createBatchUpdateCommand, createBatchUpdateNonstrictCommand, createCBForQueryInsert, createCBForSpecifiedUpdate, createCBForVaryingUpdate, createDeleteEntityCommand, createDeleteNonstrictEntityCommand, createDeleteOption, createInsertOption, createOptionalCause, createOptionalDeleteOption, createOptionalUpdateOption, createOrModify, createOrModifyNonstrict, createPlainInsertOption, createQueryDeleteCBCommand, createQueryInsertCBCommand, createQueryUpdateCBCommand, createSpecifiedUpdateOption, createUpdateEntityCommand, createUpdateNonstrictEntityCommand, createUpdateOption, delegateBatchDeleteNonstrict, delegateBatchUpdateNonstrict, delegateDeleteNonstrict, delegateQueryInsert, delegateQueryUpdate, delegateUpdateNonstrict, doBatchDelete, doBatchDeleteNonstrict, doBatchInsert, doBatchUpdate, doBatchUpdateNonstrict, doCreate, doCreateOrModify, doCreateOrModifyNonstrict, doDelete, doDeleteNonstrict, doInsert, doInsertOrUpdate, doInsertOrUpdateNonstrict, doLumpCreate, doLumpModify, doLumpModifyNonstrict, doLumpRemove, doLumpRemoveNonstrict, doModify, doModifyNonstrict, doQueryDelete, doQueryInsert, doQueryUpdate, doRangeCreate, doRangeModify, doRangeRemove, doRemove, doRemoveNonstrict, doUpdate, doUpdateNonstrict, downcast, downcast, downcast, downcast, emptyOpt, filterEntityOfDelete, filterEntityOfInsert, filterEntityOfUpdate, frameworkFilterEntityOfDelete, frameworkFilterEntityOfInsert, frameworkFilterEntityOfUpdate, getCommonColumnAutoSetupper, helpDeleteInternally, helpDeleteNonstrictIgnoreDeletedInternally, helpDeleteNonstrictInternally, helpDetermineInsertOrUpdateDirectInsert, helpInsertOrUpdateInternally, helpInsertOrUpdateNonstrictInternally, helpReloadPrimaryKeyIfUniqueByIfNeeds, helpUpdateInternally, helpUpdateNonstrictInternally, hookBeforeDelete, hookBeforeInsert, hookBeforeUpdate, hookFinallyDelete, hookFinallyInsert, hookFinallyUpdate, injectSequenceToPrimaryKeyIfNeeds, isBatchInsertColumnModifiedPropertiesFragmentedDisallowed, isBatchUpdateColumnModifiedPropertiesFragmentedAllowed, isCompatibleBatchUpdateDefaultEveryColumn, lumpCreate, lumpModify, lumpModifyNonstrict, lumpRemove, lumpRemoveNonstrict, modify, modifyNonstrict, newBatchDeleteCommand, newBatchDeleteNonstrictCommand, newBatchInsertCommand, newBatchUpdateCommand, newBatchUpdateNonstrictCommand, newDeleteEntityCommand, newDeleteNonstrictEntityCommand, newDeleteOption, newInsertOption, newUpdateEntityCommand, newUpdateNonstrictEntityCommand, newUpdateOption, prepareBatchInsertOption, prepareBatchUpdateOption, prepareDeleteOption, prepareEntityDelete, prepareEntityDeleteOption, prepareEntityUpdate, prepareEntityUpdateOption, prepareInsertOption, prepareUpdateOption, rangeCreate, rangeModify, rangeRemove, reflectUniqueDriven, remove, removeNonstrict, setCommonColumnAutoSetupper, setupCommonColumnOfInsertIfNeeds, setupCommonColumnOfUpdateIfNeeds, setupExclusiveControlColumnOfQueryInsert, setupListEntityCommand, throwUpdateDateValueNullException, throwUpdateEntityAlreadyDeletedException, throwUpdateEntityDuplicatedException, throwVersionNoValueNullException
assertBehaviorCommandInvoker, assertCBCallNotNull, assertCBNotDreamCruise, assertCBNotNull, assertCBStateValid, assertConditionBeanSelectResource, assertEntityListNotNull, assertEntityNotDeleted, assertEntityNotNull, assertEntityNotNullAndHasPrimaryKeyValue, assertListNotNullAndEmpty, assertListNotNullAndHasOnlyOne, assertListNotNullAndNotEmpty, assertObjectNotNull, assertSpecifyDerivedReferrerEntityProperty, assertStringNotNullAndNotTrimmedEmpty, createBhvExThrower, createCB, createCBExThrower, createExceptionMessageBuilder, createHpSLSExecutor, createInsertEntityCommand, createOptionalEntity, createOptionalInsertOption, createPagingHandler, createPagingInvoker, createSelectCountCBCommand, createSelectCursorCBCommand, createSelectEntityCBCommand, createSelectListCBCommand, createSelectNextValCommand, createSelectNextValSubCommand, createSelectScalarCBCommand, createSLSFunction, delegateInsertNoPK, delegateSelectCountPlainly, delegateSelectNextVal, delegateSelectNextValSub, doHelpLoadReferrerInternally, doHelpLoadReferrerInternally, doOutsideSql, doReadCount, doReadEntity, doReadEntityWithDeletedCheck, doReadList, doReadPage, doReadScalar, doScalarSelect, doSelectCountPlainly, doSelectCountUniquely, doSelectCursor, doSelectEntity, doSelectEntityWithDeletedCheck, doSelectList, doSelectPage, downcast, downcast, downcast, facadeScalarSelect, facadeSelectCount, facadeSelectCursor, facadeSelectEntityWithDeletedCheck, facadeSelectList, facadeSelectPage, getBehaviorCommandInvoker, getBehaviorSelector, hasUpdateDateValue, hasVersionNoValue, helpConditionBeanDowncastInternally, helpEntityDowncastInternally, helpExtractListInternally, helpExtractSetInternally, helpLoadReferrerInternally, helpLoadReferrerInternally, helpPulloutInternally, helpSelectCursorCheckingByPagingAllowed, helpSelectCursorCheckingOrderByPK, helpSelectCursorInternally, helpSelectEntityInternally, helpSelectEntityWithDeletedCheckInternally, helpSelectListInternally, helpSelectPageInternally, invoke, isEntityDerivedMappable, isRelationOptional, ln, newConditionBean, newEntity, newInsertEntityCommand, newSelectCountCBCommand, newSelectCursorCBCommand, newSelectEntityCBCommand, newSelectListCBCommand, newSelectNextValCommand, newSelectNextValSubCommand, newSelectScalarCBCommand, newSLSFunction, readCount, readCursor, readEntity, readEntityWithDeletedCheck, readList, readNextVal, readPage, readScalar, readyOutsideSql, setBehaviorCommandInvoker, setBehaviorSelector, throwSelectEntityAlreadyDeletedException, throwSelectEntityConditionNotFoundException, throwSelectEntityDuplicatedException, throwSpecifyDerivedReferrerEntityPropertyNotFoundException, toLoadReferrerMappingKey, toLowerCaseIfString, toRelationOptional, typeOfHandlingConditionBean, typeOfHandlingEntity, typeOfSelectedEntity, warmUpCommand, xassLRArg, xassLRArg, xassLRArg, xassLRArg, xassLRArg, xassLRArg, xbuildReferrerCorrelatedFixedCondition, xcheckSafetyResultAsOne, xconvertFK2PKImplicitly, xconvertToRelationOptionalEntityIfNeeds, xcreateLoadReferrerCallback, xcreateLoadReferrerCallback, xdoBuildReferrerCorrelatedFixedCondition, xdoHelpExtractSetInternally, xextractPulloutForeignEntity, xextractPulloutReverseWrittenObject, xfindReferrerBehavior, xgetBSFLR, xgetROpFactory, xnewLoadReferrerCompoundKeyMap, xnewLRAryLs, xnewLRLs, xpreparePulloutResultList, xrestoreSafetyResult, xsavePulloutForeignEntity, xsetupEntityCommand, xsetupSelectCommand
protected int sizeForDelete
protected String scrollForDelete
protected int sizeForCursor
protected String scrollForCursor
protected String searchTimeout
protected String indexTimeout
protected String scrollSearchTimeout
protected String bulkTimeout
protected String deleteTimeout
protected String refreshTimeout
protected abstract String asEsIndex()
protected abstract String asEsIndexType()
protected abstract String asEsSearchType()
protected abstract <RESULT extends ENTITY> RESULT createEntity(Map<String,Object> source, Class<? extends RESULT> entityType)
public org.elasticsearch.action.admin.indices.refresh.RefreshResponse refresh()
protected int delegateSelectCountUniquely(org.dbflute.cbean.ConditionBean cb)
protected <RESULT extends ENTITY> RESULT delegateSelectEntity(org.dbflute.cbean.ConditionBean cb, Class<? extends RESULT> entityType)
protected <RESULT extends ENTITY> List<RESULT> delegateSelectList(org.dbflute.cbean.ConditionBean cb, Class<? extends RESULT> entityType)
protected <RESULT extends ENTITY> void helpSelectCursorHandlingByPaging(CB cb, org.dbflute.bhv.readable.EntityRowHandler<RESULT> handler, Class<? extends RESULT> entityType, org.dbflute.cbean.coption.CursorSelectOption option)
protected <RESULT extends ENTITY> void delegateSelectCursor(org.dbflute.cbean.ConditionBean cb, org.dbflute.bhv.readable.EntityRowHandler<RESULT> handler, Class<? extends RESULT> entityType)
protected <RESULT extends ENTITY> void delegateSelectBulk(org.dbflute.cbean.ConditionBean cb, org.dbflute.bhv.readable.EntityRowHandler<List<RESULT>> handler, Class<? extends RESULT> entityType)
protected void delegateBulkRequest(org.dbflute.cbean.ConditionBean cb, Function<org.elasticsearch.search.SearchHits,Boolean> handler)
protected Number doReadNextVal()
protected <RESULT extends org.dbflute.Entity> org.dbflute.cbean.result.ListResultBean<RESULT> createListResultBean(org.dbflute.cbean.ConditionBean cb, List<RESULT> selectedList)
protected int delegateInsert(org.dbflute.Entity entity, org.dbflute.bhv.writable.InsertOption<? extends org.dbflute.cbean.ConditionBean> option)
protected org.elasticsearch.action.index.IndexRequestBuilder createInsertRequest(EsAbstractEntity esEntity)
protected int delegateUpdate(org.dbflute.Entity entity, org.dbflute.bhv.writable.UpdateOption<? extends org.dbflute.cbean.ConditionBean> option)
protected org.elasticsearch.action.index.IndexRequestBuilder createUpdateRequest(EsAbstractEntity esEntity)
protected Map<String,Object> toSource(EsAbstractEntity esEntity)
protected int delegateDelete(org.dbflute.Entity entity, org.dbflute.bhv.writable.DeleteOption<? extends org.dbflute.cbean.ConditionBean> option)
protected org.elasticsearch.action.delete.DeleteRequestBuilder createDeleteRequest(EsAbstractEntity esEntity)
protected int delegateQueryDelete(org.dbflute.cbean.ConditionBean cb, org.dbflute.bhv.writable.DeleteOption<? extends org.dbflute.cbean.ConditionBean> option)
protected int[] delegateBatchInsert(List<? extends org.dbflute.Entity> entityList, org.dbflute.bhv.writable.InsertOption<? extends org.dbflute.cbean.ConditionBean> option)
protected int[] delegateBatchUpdate(List<? extends org.dbflute.Entity> entityList, org.dbflute.bhv.writable.UpdateOption<? extends org.dbflute.cbean.ConditionBean> option)
protected int[] delegateBatchDelete(List<? extends org.dbflute.Entity> entityList, org.dbflute.bhv.writable.DeleteOption<? extends org.dbflute.cbean.ConditionBean> option)
protected <BUILDER> int[] delegateBatchRequest(List<? extends org.dbflute.Entity> entityList, Function<EsAbstractEntity,BUILDER> call)
protected org.dbflute.bhv.writable.UpdateOption<CB> createPlainUpdateOption()
protected boolean isCompatibleBatchInsertDefaultEveryColumn()
public void setSizeForDelete(int sizeForDelete)
public void setScrollForDelete(String scrollForDelete)
public void setSizeForCursor(int sizeForCursor)
public void setScrollForCursor(String scrollForCursor)
public void setSearchTimeout(String searchTimeout)
public void setIndexTimeout(String indexTimeout)
public void setScrollSearchTimeout(String scrollSearchTimeout)
public void setBulkTimeout(String bulkTimeout)
public void setDeleteTimeout(String deleteTimeout)
public void setRefreshTimeout(String refreshTimeout)
protected LocalDateTime toLocalDateTime(Object value)
Copyright © 2009–2019 CodeLibs. All rights reserved.