public abstract class BsAccessResultBhv
extends org.seasar.dbflute.bhv.AbstractBehaviorWritable
[primary key] ID [column] ID, SESSION_ID, RULE_ID, URL, PARENT_URL, STATUS, HTTP_STATUS_CODE, METHOD, MIME_TYPE, CONTENT_LENGTH, EXECUTION_TIME, LAST_MODIFIED, CREATE_TIME [sequence] [identity] ID [version-no] [foreign table] ACCESS_RESULT_DATA(AsOne) [referrer table] ACCESS_RESULT_DATA [foreign property] accessResultDataAsOne [referrer property]
org.seasar.dbflute.bhv.AbstractBehaviorWritable.InternalDeleteCallback<ENTITY extends org.seasar.dbflute.Entity>, org.seasar.dbflute.bhv.AbstractBehaviorWritable.InternalDeleteNonstrictCallback<ENTITY extends org.seasar.dbflute.Entity>, org.seasar.dbflute.bhv.AbstractBehaviorWritable.InternalDeleteNonstrictIgnoreDeletedCallback<ENTITY extends org.seasar.dbflute.Entity>, org.seasar.dbflute.bhv.AbstractBehaviorWritable.InternalInsertOrUpdateCallback<ENTITY extends org.seasar.dbflute.Entity,CB_TYPE extends org.seasar.dbflute.cbean.ConditionBean>, org.seasar.dbflute.bhv.AbstractBehaviorWritable.InternalInsertOrUpdateNonstrictCallback<ENTITY extends org.seasar.dbflute.Entity>, org.seasar.dbflute.bhv.AbstractBehaviorWritable.InternalUpdateCallback<ENTITY extends org.seasar.dbflute.Entity>, org.seasar.dbflute.bhv.AbstractBehaviorWritable.InternalUpdateNonstrictCallback<ENTITY extends org.seasar.dbflute.Entity>
org.seasar.dbflute.bhv.AbstractBehaviorReadable.InternalExtractCallback<LOCAL_ENTITY extends org.seasar.dbflute.Entity,COLUMN>, org.seasar.dbflute.bhv.AbstractBehaviorReadable.InternalLoadReferrerCallback<LOCAL_ENTITY extends org.seasar.dbflute.Entity,PK,REFERRER_CB extends org.seasar.dbflute.cbean.ConditionBean,REFERRER_ENTITY extends org.seasar.dbflute.Entity>, org.seasar.dbflute.bhv.AbstractBehaviorReadable.InternalPulloutCallback<LOCAL_ENTITY extends org.seasar.dbflute.Entity,FOREIGN_ENTITY extends org.seasar.dbflute.Entity>, org.seasar.dbflute.bhv.AbstractBehaviorReadable.InternalSelectCursorCallback<ENTITY extends org.seasar.dbflute.Entity,CB extends org.seasar.dbflute.cbean.ConditionBean>, org.seasar.dbflute.bhv.AbstractBehaviorReadable.InternalSelectEntityCallback<ENTITY extends org.seasar.dbflute.Entity,CB extends org.seasar.dbflute.cbean.ConditionBean>, org.seasar.dbflute.bhv.AbstractBehaviorReadable.InternalSelectEntityWithDeletedCheckCallback<ENTITY extends org.seasar.dbflute.Entity,CB extends org.seasar.dbflute.cbean.ConditionBean>, org.seasar.dbflute.bhv.AbstractBehaviorReadable.InternalSelectListCallback<ENTITY extends org.seasar.dbflute.Entity,CB extends org.seasar.dbflute.cbean.ConditionBean>, org.seasar.dbflute.bhv.AbstractBehaviorReadable.InternalSelectPageCallback<ENTITY extends org.seasar.dbflute.Entity,CB extends org.seasar.dbflute.cbean.ConditionBean>, org.seasar.dbflute.bhv.AbstractBehaviorReadable.SLFunction<CB extends org.seasar.dbflute.cbean.ConditionBean,RESULT>
修飾子とタイプ | フィールドと説明 |
---|---|
static String |
PATH_deleteAll |
static String |
PATH_deleteBySessionId |
static String |
PATH_foreignKeyChecks |
static String |
PATH_selectListByUrlDiff |
コンストラクタと説明 |
---|
BsAccessResultBhv() |
修飾子とタイプ | メソッドと説明 |
---|---|
int[] |
batchDelete(List<AccessResult> accessResultList)
Batch-delete the entity list.
|
int[] |
batchInsert(List<AccessResult> accessResultList)
Batch-insert the entity list modified-only of same-set columns.
|
int[] |
batchUpdate(List<AccessResult> accessResultList)
Batch-update the entity list modified-only of same-set columns.
|
int[] |
batchUpdate(List<AccessResult> accessResultList,
org.seasar.dbflute.cbean.SpecifyQuery<AccessResultCB> updateColumnSpec)
Batch-update the entity list specified-only.
|
protected AccessResultCB |
createCBForQueryInsert() |
protected AccessResultCB |
createCBForSpecifiedUpdate() |
protected AccessResultCB |
createCBForVaryingUpdate() |
protected int[] |
delegateBatchDelete(List<AccessResult> ls,
org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> op) |
protected int[] |
delegateBatchDeleteNonstrict(List<AccessResult> ls,
org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> op) |
protected int[] |
delegateBatchInsert(List<AccessResult> ls,
org.seasar.dbflute.bhv.InsertOption<AccessResultCB> op) |
protected int[] |
delegateBatchUpdate(List<AccessResult> ls,
org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> op) |
protected int[] |
delegateBatchUpdateNonstrict(List<AccessResult> ls,
org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> op) |
protected int |
delegateDelete(AccessResult e,
org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> op) |
protected int |
delegateDeleteNonstrict(AccessResult e,
org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> op) |
protected int |
delegateInsert(AccessResult e,
org.seasar.dbflute.bhv.InsertOption<AccessResultCB> op) |
protected int |
delegateQueryDelete(AccessResultCB cb,
org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> op) |
protected int |
delegateQueryInsert(AccessResult e,
AccessResultCB inCB,
org.seasar.dbflute.cbean.ConditionBean resCB,
org.seasar.dbflute.bhv.InsertOption<AccessResultCB> op) |
protected int |
delegateQueryUpdate(AccessResult e,
AccessResultCB cb,
org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> op) |
protected int |
delegateSelectCountPlainly(AccessResultCB cb) |
protected int |
delegateSelectCountUniquely(AccessResultCB cb) |
protected <ENTITY extends AccessResult> |
delegateSelectCursor(AccessResultCB cb,
org.seasar.dbflute.cbean.EntityRowHandler<ENTITY> erh,
Class<ENTITY> et) |
protected <ENTITY extends AccessResult> |
delegateSelectList(AccessResultCB cb,
Class<ENTITY> et) |
protected int |
delegateUpdate(AccessResult e,
org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> op) |
protected int |
delegateUpdateNonstrict(AccessResult e,
org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> op) |
void |
delete(AccessResult accessResult)
Delete the entity.
|
protected int[] |
doBatchDelete(List<AccessResult> accessResultList,
org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> option) |
protected int[] |
doBatchInsert(List<AccessResult> accessResultList,
org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option) |
protected int[] |
doBatchUpdate(List<AccessResult> accessResultList,
org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option) |
protected void |
doCreate(org.seasar.dbflute.Entity entity,
org.seasar.dbflute.bhv.InsertOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected void |
doCreateOrModify(org.seasar.dbflute.Entity entity,
org.seasar.dbflute.bhv.InsertOption<? extends org.seasar.dbflute.cbean.ConditionBean> insertOption,
org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> updateOption) |
protected void |
doCreateOrModifyNonstrict(org.seasar.dbflute.Entity entity,
org.seasar.dbflute.bhv.InsertOption<? extends org.seasar.dbflute.cbean.ConditionBean> insertOption,
org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> updateOption) |
protected void |
doDelete(AccessResult accessResult,
org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> option) |
protected void |
doInesrtOrUpdate(AccessResult accessResult,
org.seasar.dbflute.bhv.InsertOption<AccessResultCB> insertOption,
org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> updateOption) |
protected void |
doInsert(AccessResult accessResult,
org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option) |
protected int[] |
doLumpCreate(List<org.seasar.dbflute.Entity> ls,
org.seasar.dbflute.bhv.InsertOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected int[] |
doLumpModify(List<org.seasar.dbflute.Entity> ls,
org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected int[] |
doLumpModifyNonstrict(List<org.seasar.dbflute.Entity> ls,
org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected int[] |
doLumpRemove(List<org.seasar.dbflute.Entity> ls,
org.seasar.dbflute.bhv.DeleteOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected int[] |
doLumpRemoveNonstrict(List<org.seasar.dbflute.Entity> ls,
org.seasar.dbflute.bhv.DeleteOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected void |
doModify(org.seasar.dbflute.Entity entity,
org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected void |
doModifyNonstrict(org.seasar.dbflute.Entity entity,
org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected int |
doQueryDelete(AccessResultCB cb,
org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> option) |
protected int |
doQueryInsert(org.seasar.dbflute.bhv.QueryInsertSetupper<AccessResult,AccessResultCB> setupper,
org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option) |
protected int |
doQueryUpdate(AccessResult accessResult,
AccessResultCB cb,
org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option) |
protected int |
doRangeCreate(org.seasar.dbflute.bhv.QueryInsertSetupper<? extends org.seasar.dbflute.Entity,? extends org.seasar.dbflute.cbean.ConditionBean> setupper,
org.seasar.dbflute.bhv.InsertOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected int |
doRangeModify(org.seasar.dbflute.Entity entity,
org.seasar.dbflute.cbean.ConditionBean cb,
org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected int |
doRangeRemove(org.seasar.dbflute.cbean.ConditionBean cb,
org.seasar.dbflute.bhv.DeleteOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected int |
doReadCount(org.seasar.dbflute.cbean.ConditionBean cb) |
protected org.seasar.dbflute.Entity |
doReadEntity(org.seasar.dbflute.cbean.ConditionBean cb) |
protected org.seasar.dbflute.Entity |
doReadEntityWithDeletedCheck(org.seasar.dbflute.cbean.ConditionBean cb) |
protected org.seasar.dbflute.cbean.ListResultBean<? extends org.seasar.dbflute.Entity> |
doReadList(org.seasar.dbflute.cbean.ConditionBean cb) |
protected Number |
doReadNextVal() |
protected org.seasar.dbflute.cbean.PagingResultBean<? extends org.seasar.dbflute.Entity> |
doReadPage(org.seasar.dbflute.cbean.ConditionBean cb) |
protected void |
doRemove(org.seasar.dbflute.Entity entity,
org.seasar.dbflute.bhv.DeleteOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected void |
doRemoveNonstrict(org.seasar.dbflute.Entity entity,
org.seasar.dbflute.bhv.DeleteOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected <RESULT,CB extends AccessResultCB> |
doScalarSelect(Class<RESULT> resultType,
CB cb) |
protected <ENTITY extends AccessResult> |
doSelectByPKValue(Long id,
Class<ENTITY> entityType) |
protected <ENTITY extends AccessResult> |
doSelectByPKValueWithDeletedCheck(Long id,
Class<ENTITY> entityType) |
protected int |
doSelectCountPlainly(AccessResultCB cb) |
protected int |
doSelectCountUniquely(AccessResultCB cb) |
protected <ENTITY extends AccessResult> |
doSelectCursor(AccessResultCB cb,
org.seasar.dbflute.cbean.EntityRowHandler<ENTITY> entityRowHandler,
Class<ENTITY> entityType) |
protected <ENTITY extends AccessResult> |
doSelectEntity(AccessResultCB cb,
Class<ENTITY> entityType) |
protected <ENTITY extends AccessResult> |
doSelectEntityWithDeletedCheck(AccessResultCB cb,
Class<ENTITY> entityType) |
protected <ENTITY extends AccessResult> |
doSelectList(AccessResultCB cb,
Class<ENTITY> entityType) |
protected <ENTITY extends AccessResult> |
doSelectPage(AccessResultCB cb,
Class<ENTITY> entityType) |
protected void |
doUpdate(AccessResult accessResult,
org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option) |
protected AccessResultCB |
downcast(org.seasar.dbflute.cbean.ConditionBean cb) |
protected org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> |
downcast(org.seasar.dbflute.bhv.DeleteOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected AccessResult |
downcast(org.seasar.dbflute.Entity entity) |
protected org.seasar.dbflute.bhv.InsertOption<AccessResultCB> |
downcast(org.seasar.dbflute.bhv.InsertOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected List<AccessResult> |
downcast(List<? extends org.seasar.dbflute.Entity> entityList) |
protected org.seasar.dbflute.bhv.QueryInsertSetupper<AccessResult,AccessResultCB> |
downcast(org.seasar.dbflute.bhv.QueryInsertSetupper<? extends org.seasar.dbflute.Entity,? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> |
downcast(org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
List<Long> |
extractIdList(List<AccessResult> accessResultList)
Extract the value list of (single) primary key id.
|
org.seasar.dbflute.dbmeta.DBMeta |
getDBMeta() |
AccessResultDbm |
getMyDBMeta() |
String |
getTableDbName() |
protected boolean |
hasUpdateDateValue(org.seasar.dbflute.Entity entity) |
protected boolean |
hasVersionNoValue(org.seasar.dbflute.Entity entity) |
void |
insert(AccessResult accessResult)
Insert the entity modified-only.
|
void |
insertOrUpdate(AccessResult accessResult)
Insert or update the entity modified-only.
|
org.seasar.dbflute.cbean.ConditionBean |
newConditionBean() |
org.seasar.dbflute.Entity |
newEntity() |
AccessResultCB |
newMyConditionBean() |
AccessResult |
newMyEntity() |
org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor<AccessResultBhv> |
outsideSql()
Prepare the basic executor of outside-SQL to execute it.
|
protected void |
prepareBatchInsertOption(List<AccessResult> accessResultList,
org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option) |
protected void |
prepareBatchUpdateOption(List<AccessResult> accessResultList,
org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option) |
protected void |
prepareDeleteOption(org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> option) |
protected void |
prepareInsertOption(org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option) |
protected void |
prepareUpdateOption(org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option) |
List<AccessResultData> |
pulloutAccessResultDataAsOne(List<AccessResult> accessResultList)
Pull out the list of referrer-as-one table 'AccessResultData'.
|
int |
queryDelete(AccessResultCB cb)
Delete the several entities by query.
|
int |
queryInsert(org.seasar.dbflute.bhv.QueryInsertSetupper<AccessResult,AccessResultCB> setupper)
Insert the several entities by query (modified-only for fixed value).
|
int |
queryUpdate(AccessResult accessResult,
AccessResultCB cb)
Update the several entities by query non-strictly modified-only.
|
<RESULT> org.seasar.dbflute.bhv.AbstractBehaviorReadable.SLFunction<AccessResultCB,RESULT> |
scalarSelect(Class<RESULT> resultType)
Select the scalar value derived by a function from uniquely-selected
records.
|
AccessResult |
selectByPKValue(Long id)
Select the entity by the primary-key value.
|
AccessResult |
selectByPKValueWithDeletedCheck(Long id)
Select the entity by the primary-key value with deleted check.
|
int |
selectCount(AccessResultCB cb)
Select the count of uniquely-selected records by the condition-bean.
|
void |
selectCursor(AccessResultCB cb,
org.seasar.dbflute.cbean.EntityRowHandler<AccessResult> entityRowHandler)
Select the cursor by the condition-bean.
|
AccessResult |
selectEntity(AccessResultCB cb)
Select the entity by the condition-bean.
|
AccessResult |
selectEntityWithDeletedCheck(AccessResultCB cb)
Select the entity by the condition-bean with deleted check.
|
org.seasar.dbflute.cbean.ListResultBean<AccessResult> |
selectList(AccessResultCB cb)
Select the list as result bean.
|
org.seasar.dbflute.cbean.PagingResultBean<AccessResult> |
selectPage(AccessResultCB cb)
Select the page as result bean.
|
void |
update(AccessResult accessResult)
Update the entity modified-only.
|
int[] |
varyingBatchDelete(List<AccessResult> accessResultList,
org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> option)
Batch-delete the list with varying requests.
|
int[] |
varyingBatchInsert(List<AccessResult> accessResultList,
org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option)
Batch-insert the list with varying requests.
|
int[] |
varyingBatchUpdate(List<AccessResult> accessResultList,
org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option)
Batch-update the list with varying requests.
|
void |
varyingDelete(AccessResult accessResult,
org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> option)
Delete the entity with varying requests.
|
void |
varyingInsert(AccessResult accessResult,
org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option)
Insert the entity with varying requests.
|
void |
varyingInsertOrUpdate(AccessResult accessResult,
org.seasar.dbflute.bhv.InsertOption<AccessResultCB> insertOption,
org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> updateOption)
Insert or update the entity with varying requests.
|
int |
varyingQueryDelete(AccessResultCB cb,
org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> option)
Delete the several entities by query with varying requests non-strictly.
|
int |
varyingQueryInsert(org.seasar.dbflute.bhv.QueryInsertSetupper<AccessResult,AccessResultCB> setupper,
org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option)
Insert the several entities by query with varying requests (modified-only
for fixed value).
|
int |
varyingQueryUpdate(AccessResult accessResult,
AccessResultCB cb,
org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option)
Update the several entities by query with varying requests non-strictly
modified-only.
|
void |
varyingUpdate(AccessResult accessResult,
org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option)
Update the entity with varying requests modified-only.
|
assertDeleteOptionNotNull, assertDeleteOptionStatus, assertEntityHasOptimisticLockValue, assertEntityHasUpdateDateValue, assertEntityHasVersionNoValue, assertEntityOfDelete, assertEntityOfInsert, assertEntityOfUpdate, assertInsertOptionNotNull, assertInsertOptionStatus, assertQueryDeleteStatus, assertQueryUpdateStatus, assertUpdateColumnSpecificationNotNull, assertUpdateOptionNotNull, assertUpdateOptionStatus, checkCountBeforeQueryUpdateIfNeeds, create, createBatchDeleteCommand, createBatchDeleteNonstrictCommand, createBatchInsertCommand, createBatchUpdateCommand, createBatchUpdateNonstrictCommand, createDeleteEntityCommand, createDeleteNonstrictEntityCommand, createInsertUpdateOption, createOrModify, createOrModifyNonstrict, createPlainUpdateOption, createQueryDeleteCBCommand, createQueryInsertCBCommand, createQueryUpdateCBCommand, createSpecifiedUpdateOption, createUpdateEntityCommand, createUpdateNonstrictEntityCommand, filterEntityOfDelete, filterEntityOfInsert, filterEntityOfUpdate, frameworkFilterEntityOfDelete, frameworkFilterEntityOfInsert, frameworkFilterEntityOfUpdate, getCommonColumnAutoSetupper, helpDeleteInternally, helpDeleteNonstrictIgnoreDeletedInternally, helpDeleteNonstrictInternally, helpInsertOrUpdateInternally, helpInsertOrUpdateInternally, helpUpdateInternally, helpUpdateNonstrictInternally, injectSequenceToPrimaryKeyIfNeeds, lumpCreate, lumpModify, lumpModifyNonstrict, lumpRemove, lumpRemoveNonstrict, modify, modifyNonstrict, newBatchDeleteCommand, newBatchDeleteNonstrictCommand, newBatchInsertCommand, newBatchUpdateCommand, newBatchUpdateNonstrictCommand, newDeleteEntityCommand, newDeleteNonstrictEntityCommand, newUpdateEntityCommand, newUpdateNonstrictEntityCommand, processBatchInternally, processBatchInternally, processBatchInternally, processBeforeDelete, processBeforeInsert, processBeforeQueryDelete, processBeforeQueryInsert, processBeforeQueryUpdate, processBeforeUpdate, rangeCreate, rangeModify, rangeRemove, remove, removeNonstrict, setCommonColumnAutoSetupper, setupCommonColumnOfInsertIfNeeds, setupCommonColumnOfUpdateIfNeeds, setupExclusiveControlColumnOfQueryInsert, throwUpdateDateValueNullException, throwUpdateEntityAlreadyDeletedException, throwUpdateEntityDuplicatedException, throwVersionNoValueNullException, xsetupListEntityCommand
assertBehaviorCommandInvoker, assertCBNotDreamCruise, assertCBNotNull, assertCBStateValid, assertEntityNotDeleted, assertEntityNotDeleted, assertEntityNotNull, assertEntityNotNullAndHasPrimaryKeyValue, assertEntitySelectedAsOne, assertListNotNullAndEmpty, assertListNotNullAndHasOnlyOne, assertListNotNullAndNotEmpty, assertObjectNotNull, assertSpecifyDerivedReferrerEntityProperty, assertStringNotNullAndNotTrimmedEmpty, createBhvExThrower, createCBExThrower, createExceptionMessageBuilder, createInsertEntityCommand, createListResultBean, createPagingHandler, createPagingInvoker, createSelectCountCBCommand, createSelectCursorCBCommand, createSelectListCBCommand, createSelectNextValCommand, createSelectNextValSubCommand, createSelectScalarCBCommand, doHelpLoadReferrerInternally, doOutsideSql, getBehaviorCommandInvoker, getBehaviorSelector, helpConditionBeanDowncastInternally, helpEntityDowncastInternally, helpExtractListInternally, helpExtractSetInternally, helpLoadReferrerInternally, helpPulloutInternally, helpSelectCursorCheckingByPagingAllowed, helpSelectCursorCheckingOrderByPK, helpSelectCursorHandlingByPaging, helpSelectCursorInternally, helpSelectEntityInternally, helpSelectEntityWithDeletedCheckInternally, helpSelectListInternally, helpSelectPageInternally, invoke, ln, newInsertEntityCommand, newSelectCountCBCommand, newSelectCursorCBCommand, newSelectListCBCommand, newSelectNextValCommand, newSelectNextValSubCommand, newSelectScalarCBCommand, readCount, readEntity, readEntityWithDeletedCheck, readList, readNextVal, readPage, readyOutsideSql, setBehaviorCommandInvoker, setBehaviorSelector, throwEntityPrimaryKeyNotFoundException, throwSelectEntityAlreadyDeletedException, throwSelectEntityConditionNotFoundException, throwSelectEntityDuplicatedException, throwSpecifyDerivedReferrerEntityPropertyNotFoundException, toLoadReferrerMappingKey, toLowerCaseIfString, warmUpCommand, xassLRArg, xassLRArg, xassLRArg, xassLRArg, xbuildReferrerCorrelatedFixedCondition, xcheckSafetyResultAsOne, xdoBuildReferrerCorrelatedFixedCondition, xgetBSFLR, xnewLRLs, xrestoreSafetyResult, xsetupEntityCommand, xsetupSelectCommand
public String getTableDbName()
public org.seasar.dbflute.dbmeta.DBMeta getDBMeta()
public AccessResultDbm getMyDBMeta()
public org.seasar.dbflute.Entity newEntity()
public org.seasar.dbflute.cbean.ConditionBean newConditionBean()
public AccessResult newMyEntity()
public AccessResultCB newMyConditionBean()
public int selectCount(AccessResultCB cb)
AccessResultCB cb = new AccessResultCB();
cb.query().setFoo...(value);
int count = accessResultBhv.selectCount(cb);
cb
- The condition-bean of AccessResult. (NotNull)protected int doSelectCountUniquely(AccessResultCB cb)
protected int doSelectCountPlainly(AccessResultCB cb)
protected int doReadCount(org.seasar.dbflute.cbean.ConditionBean cb)
doReadCount
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorReadable
public AccessResult selectEntity(AccessResultCB cb)
AccessResultCB cb = new AccessResultCB();
cb.query().setFoo...(value);
AccessResult accessResult = accessResultBhv.selectEntity(cb);
if (accessResult != null) {
... = accessResult.get...();
} else {
...
}
cb
- The condition-bean of AccessResult. (NotNull)org.seasar.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.org.seasar.dbflute.exception.SelectEntityConditionNotFoundException
- When the condition for selecting an entity is not found.protected <ENTITY extends AccessResult> ENTITY doSelectEntity(AccessResultCB cb, Class<ENTITY> entityType)
protected org.seasar.dbflute.Entity doReadEntity(org.seasar.dbflute.cbean.ConditionBean cb)
doReadEntity
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorReadable
public AccessResult selectEntityWithDeletedCheck(AccessResultCB cb)
AccessResultCB cb = new AccessResultCB(); cb.query().setFoo...(value); AccessResult accessResult = accessResultBhv.selectEntityWithDeletedCheck(cb); ... = accessResult.get...(); // the entity always be not null
cb
- The condition-bean of AccessResult. (NotNull)org.seasar.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted. (not found)org.seasar.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.org.seasar.dbflute.exception.SelectEntityConditionNotFoundException
- When the condition for selecting an entity is not found.protected <ENTITY extends AccessResult> ENTITY doSelectEntityWithDeletedCheck(AccessResultCB cb, Class<ENTITY> entityType)
protected org.seasar.dbflute.Entity doReadEntityWithDeletedCheck(org.seasar.dbflute.cbean.ConditionBean cb)
doReadEntityWithDeletedCheck
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorReadable
public AccessResult selectByPKValue(Long id)
id
- The one of primary key. (NotNull)org.seasar.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.org.seasar.dbflute.exception.SelectEntityConditionNotFoundException
- When the condition for selecting an entity is not found.protected <ENTITY extends AccessResult> ENTITY doSelectByPKValue(Long id, Class<ENTITY> entityType)
public AccessResult selectByPKValueWithDeletedCheck(Long id)
id
- The one of primary key. (NotNull)org.seasar.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted. (not found)org.seasar.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.org.seasar.dbflute.exception.SelectEntityConditionNotFoundException
- When the condition for selecting an entity is not found.protected <ENTITY extends AccessResult> ENTITY doSelectByPKValueWithDeletedCheck(Long id, Class<ENTITY> entityType)
public org.seasar.dbflute.cbean.ListResultBean<AccessResult> selectList(AccessResultCB cb)
AccessResultCB cb = new AccessResultCB();
cb.query().setFoo...(value);
cb.query().addOrderBy_Bar...();
ListResultBean<AccessResult> accessResultList = accessResultBhv.selectList(cb);
for (AccessResult accessResult : accessResultList) {
... = accessResult.get...();
}
cb
- The condition-bean of AccessResult. (NotNull)org.seasar.dbflute.exception.DangerousResultSizeException
- When the result size is over the specified safety size.protected <ENTITY extends AccessResult> org.seasar.dbflute.cbean.ListResultBean<ENTITY> doSelectList(AccessResultCB cb, Class<ENTITY> entityType)
protected org.seasar.dbflute.cbean.ListResultBean<? extends org.seasar.dbflute.Entity> doReadList(org.seasar.dbflute.cbean.ConditionBean cb)
doReadList
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorReadable
public org.seasar.dbflute.cbean.PagingResultBean<AccessResult> selectPage(AccessResultCB cb)
AccessResultCB cb = new AccessResultCB(); cb.query().setFoo...(value); cb.query().addOrderBy_Bar...(); cb.paging(20, 3); // 20 records per a page and current page number is 3 PagingResultBean<AccessResult> page = accessResultBhv.selectPage(cb); int allRecordCount = page.getAllRecordCount(); int allPageCount = page.getAllPageCount(); boolean isExistPrePage = page.isExistPrePage(); boolean isExistNextPage = page.isExistNextPage(); ... for (AccessResult accessResult : page) { ... = accessResult.get...(); }
cb
- The condition-bean of AccessResult. (NotNull)org.seasar.dbflute.exception.DangerousResultSizeException
- When the result size is over the specified safety size.protected <ENTITY extends AccessResult> org.seasar.dbflute.cbean.PagingResultBean<ENTITY> doSelectPage(AccessResultCB cb, Class<ENTITY> entityType)
protected org.seasar.dbflute.cbean.PagingResultBean<? extends org.seasar.dbflute.Entity> doReadPage(org.seasar.dbflute.cbean.ConditionBean cb)
doReadPage
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorReadable
public void selectCursor(AccessResultCB cb, org.seasar.dbflute.cbean.EntityRowHandler<AccessResult> entityRowHandler)
AccessResultCB cb = new AccessResultCB();
cb.query().setFoo...(value);
accessResultBhv.selectCursor(cb, new EntityRowHandler<AccessResult>() {
public void handle(AccessResult entity) {
... = entity.getFoo...();
}
});
cb
- The condition-bean of AccessResult. (NotNull)entityRowHandler
- The handler of entity row of AccessResult. (NotNull)protected <ENTITY extends AccessResult> void doSelectCursor(AccessResultCB cb, org.seasar.dbflute.cbean.EntityRowHandler<ENTITY> entityRowHandler, Class<ENTITY> entityType)
public <RESULT> org.seasar.dbflute.bhv.AbstractBehaviorReadable.SLFunction<AccessResultCB,RESULT> scalarSelect(Class<RESULT> resultType)
accessResultBhv.scalarSelect(Date.class).max(new ScalarQuery() { public void query(AccessResultCB cb) { cb.specify().columnFooDatetime(); // required for a function cb.query().setBarName_PrefixSearch("S"); } });
RESULT
- The type of result.resultType
- The type of result. (NotNull)protected <RESULT,CB extends AccessResultCB> org.seasar.dbflute.bhv.AbstractBehaviorReadable.SLFunction<CB,RESULT> doScalarSelect(Class<RESULT> resultType, CB cb)
protected Number doReadNextVal()
doReadNextVal
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorReadable
public List<AccessResultData> pulloutAccessResultDataAsOne(List<AccessResult> accessResultList)
accessResultList
- The list of accessResult. (NotNull, EmptyAllowed)public List<Long> extractIdList(List<AccessResult> accessResultList)
accessResultList
- The list of accessResult. (NotNull, EmptyAllowed)public void insert(AccessResult accessResult)
AccessResult accessResult = new AccessResult(); // if auto-increment, you don't need to set the PK value accessResult.setFoo...(value); accessResult.setBar...(value); // you don't need to set values of common columns //accessResult.setRegisterUser(value); //accessResult.set...; accessResultBhv.insert(accessResult); ... = accessResult.getPK...(); // if auto-increment, you can get the value after
While, when the entity is created by select, all columns are registered.
accessResult
- The entity of insert target. (NotNull, PrimaryKeyNullAllowed:
when auto-increment)org.seasar.dbflute.exception.EntityAlreadyExistsException
- When the entity already exists. (unique constraint
violation)protected void doInsert(AccessResult accessResult, org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option)
protected void prepareInsertOption(org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option)
protected void doCreate(org.seasar.dbflute.Entity entity, org.seasar.dbflute.bhv.InsertOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
doCreate
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorWritable
public void update(AccessResult accessResult)
AccessResult accessResult = new AccessResult(); accessResult.setPK...(value); // required accessResult.setFoo...(value); // you should set only modified columns // you don't need to set values of common columns //accessResult.setRegisterUser(value); //accessResult.set...; // if exclusive control, the value of exclusive control column is required accessResult.setVersionNo(value); try { accessResultBhv.update(accessResult); } catch (EntityAlreadyUpdatedException e) { // if concurrent update ... }
accessResult
- The entity of update target. (NotNull, PrimaryKeyNotNull,
ConcurrencyColumnRequired)org.seasar.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted. (not found)org.seasar.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.org.seasar.dbflute.exception.EntityAlreadyExistsException
- When the entity already exists. (unique constraint
violation)protected void doUpdate(AccessResult accessResult, org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option)
protected void prepareUpdateOption(org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option)
protected AccessResultCB createCBForVaryingUpdate()
protected AccessResultCB createCBForSpecifiedUpdate()
protected void doModify(org.seasar.dbflute.Entity entity, org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
doModify
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorWritable
protected void doModifyNonstrict(org.seasar.dbflute.Entity entity, org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
doModifyNonstrict
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorWritable
public void insertOrUpdate(AccessResult accessResult)
Attention, you cannot update by unique keys instead of PK.
accessResult
- The entity of insert or update target. (NotNull)org.seasar.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted. (not found)org.seasar.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.org.seasar.dbflute.exception.EntityAlreadyExistsException
- When the entity already exists. (unique constraint
violation)protected void doInesrtOrUpdate(AccessResult accessResult, org.seasar.dbflute.bhv.InsertOption<AccessResultCB> insertOption, org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> updateOption)
protected void doCreateOrModify(org.seasar.dbflute.Entity entity, org.seasar.dbflute.bhv.InsertOption<? extends org.seasar.dbflute.cbean.ConditionBean> insertOption, org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> updateOption)
doCreateOrModify
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorWritable
protected void doCreateOrModifyNonstrict(org.seasar.dbflute.Entity entity, org.seasar.dbflute.bhv.InsertOption<? extends org.seasar.dbflute.cbean.ConditionBean> insertOption, org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> updateOption)
doCreateOrModifyNonstrict
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorWritable
public void delete(AccessResult accessResult)
AccessResult accessResult = new AccessResult(); accessResult.setPK...(value); // required // if exclusive control, the value of exclusive control column is required accessResult.setVersionNo(value); try { accessResultBhv.delete(accessResult); } catch (EntityAlreadyUpdatedException e) { // if concurrent update ... }
accessResult
- The entity of delete target. (NotNull, PrimaryKeyNotNull,
ConcurrencyColumnRequired)org.seasar.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted. (not found)org.seasar.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.protected void doDelete(AccessResult accessResult, org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> option)
protected void prepareDeleteOption(org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> option)
protected void doRemove(org.seasar.dbflute.Entity entity, org.seasar.dbflute.bhv.DeleteOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
doRemove
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorWritable
protected void doRemoveNonstrict(org.seasar.dbflute.Entity entity, org.seasar.dbflute.bhv.DeleteOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
doRemoveNonstrict
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorWritable
public int[] batchInsert(List<AccessResult> accessResultList)
The columns of least common multiple are registered like this:
for (... : ...) { AccessResult accessResult = new AccessResult(); accessResult.setFooName("foo"); if (...) { accessResult.setFooPrice(123); } // FOO_NAME and FOO_PRICE (and record meta columns) are registered // FOO_PRICE not-called in any entities are registered as null without default value // columns not-called in all entities are registered as null or default value accessResultList.add(accessResult); } accessResultBhv.batchInsert(accessResultList);
While, when the entities are created by select, all columns are registered.
And if the table has an identity, entities after the process don't have incremented values. (When you use the (normal) insert(), you can get the incremented value from your entity)
accessResultList
- The list of the entity. (NotNull, EmptyAllowed,
PrimaryKeyNullAllowed: when auto-increment)protected int[] doBatchInsert(List<AccessResult> accessResultList, org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option)
protected void prepareBatchInsertOption(List<AccessResult> accessResultList, org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option)
protected int[] doLumpCreate(List<org.seasar.dbflute.Entity> ls, org.seasar.dbflute.bhv.InsertOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
doLumpCreate
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorWritable
public int[] batchUpdate(List<AccessResult> accessResultList)
for (... : ...) { AccessResult accessResult = new AccessResult(); accessResult.setFooName("foo"); if (...) { accessResult.setFooPrice(123); } else { accessResult.setFooPrice(null); // updated as null //accessResult.setFooDate(...); // *not allowed, fragmented } // FOO_NAME and FOO_PRICE (and record meta columns) are updated // (others are not updated: their values are kept) accessResultList.add(accessResult); } accessResultBhv.batchUpdate(accessResultList);
accessResultList
- The list of the entity. (NotNull, EmptyAllowed,
PrimaryKeyNotNull)org.seasar.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted. (not found)protected int[] doBatchUpdate(List<AccessResult> accessResultList, org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option)
protected void prepareBatchUpdateOption(List<AccessResult> accessResultList, org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option)
protected int[] doLumpModify(List<org.seasar.dbflute.Entity> ls, org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
doLumpModify
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorWritable
public int[] batchUpdate(List<AccessResult> accessResultList, org.seasar.dbflute.cbean.SpecifyQuery<AccessResultCB> updateColumnSpec)
// e.g. update two columns only accessResultBhv.batchUpdate(accessResultList, new SpecifyQuery() { public void specify(AccessResultCB cb) { // the two only updated cb.specify().columnFooStatusCode(); // should be modified in any entities cb.specify().columnBarDate(); // should be modified in any entities } }); // e.g. update every column in the table accessResultBhv.batchUpdate(accessResultList, new SpecifyQuery () { public void specify(AccessResultCB cb) { // all columns are updated cb.specify().columnEveryColumn(); // no check of modified properties } });
You can specify update columns used on set clause of update statement. However you do not need to specify common columns for update and an optimistic lock column because they are specified implicitly.
And you should specify columns that are modified in any entities (at least one entity). But if you specify every column, it has no check.
accessResultList
- The list of the entity. (NotNull, EmptyAllowed,
PrimaryKeyNotNull)updateColumnSpec
- The specification of update columns. (NotNull)org.seasar.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted. (not found)protected int[] doLumpModifyNonstrict(List<org.seasar.dbflute.Entity> ls, org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
doLumpModifyNonstrict
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorWritable
public int[] batchDelete(List<AccessResult> accessResultList)
accessResultList
- The list of the entity. (NotNull, EmptyAllowed,
PrimaryKeyNotNull)org.seasar.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted. (not found)protected int[] doBatchDelete(List<AccessResult> accessResultList, org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> option)
protected int[] doLumpRemove(List<org.seasar.dbflute.Entity> ls, org.seasar.dbflute.bhv.DeleteOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
doLumpRemove
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorWritable
protected int[] doLumpRemoveNonstrict(List<org.seasar.dbflute.Entity> ls, org.seasar.dbflute.bhv.DeleteOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
doLumpRemoveNonstrict
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorWritable
public int queryInsert(org.seasar.dbflute.bhv.QueryInsertSetupper<AccessResult,AccessResultCB> setupper)
accessResultBhv.queryInsert(new QueryInsertSetupper<AccessResult, AccessResultCB>() { public ConditionBean setup(accessResult entity, AccessResultCB intoCB) { FooCB cb = FooCB(); cb.setupSelect_Bar(); // mapping intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); entity.setMyFixedValue("foo"); // fixed value // you don't need to set values of common columns //entity.setRegisterUser(value); //entity.set...; // you don't need to set a value of exclusive control column //entity.setVersionNo(value); return cb; } });
setupper
- The setup-per of query-insert. (NotNull)protected int doQueryInsert(org.seasar.dbflute.bhv.QueryInsertSetupper<AccessResult,AccessResultCB> setupper, org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option)
protected AccessResultCB createCBForQueryInsert()
protected int doRangeCreate(org.seasar.dbflute.bhv.QueryInsertSetupper<? extends org.seasar.dbflute.Entity,? extends org.seasar.dbflute.cbean.ConditionBean> setupper, org.seasar.dbflute.bhv.InsertOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
doRangeCreate
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorWritable
public int queryUpdate(AccessResult accessResult, AccessResultCB cb)
AccessResult accessResult = new AccessResult(); // you don't need to set PK value //accessResult.setPK...(value); accessResult.setFoo...(value); // you should set only modified columns // you don't need to set values of common columns //accessResult.setRegisterUser(value); //accessResult.set...; // you don't need to set a value of exclusive control column // (auto-increment for version number is valid though non-exclusive control) //accessResult.setVersionNo(value); AccessResultCB cb = new AccessResultCB(); cb.query().setFoo...(value); accessResultBhv.queryUpdate(accessResult, cb);
accessResult
- The entity that contains update values. (NotNull,
PrimaryKeyNullAllowed)cb
- The condition-bean of AccessResult. (NotNull)org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException
- When the query has no condition.protected int doQueryUpdate(AccessResult accessResult, AccessResultCB cb, org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option)
protected int doRangeModify(org.seasar.dbflute.Entity entity, org.seasar.dbflute.cbean.ConditionBean cb, org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
doRangeModify
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorWritable
public int queryDelete(AccessResultCB cb)
AccessResultCB cb = new AccessResultCB();
cb.query().setFoo...(value);
accessResultBhv.queryDelete(accessResult, cb);
cb
- The condition-bean of AccessResult. (NotNull)org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException
- When the query has no condition.protected int doQueryDelete(AccessResultCB cb, org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> option)
protected int doRangeRemove(org.seasar.dbflute.cbean.ConditionBean cb, org.seasar.dbflute.bhv.DeleteOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
doRangeRemove
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorWritable
public void varyingInsert(AccessResult accessResult, org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option)
AccessResult accessResult = new AccessResult(); // if auto-increment, you don't need to set the PK value accessResult.setFoo...(value); accessResult.setBar...(value); InsertOptionoption = new InsertOption (); // you can insert by your values for common columns option.disableCommonColumnAutoSetup(); accessResultBhv.varyingInsert(accessResult, option); ... = accessResult.getPK...(); // if auto-increment, you can get the value after
accessResult
- The entity of insert target. (NotNull, PrimaryKeyNullAllowed:
when auto-increment)option
- The option of insert for varying requests. (NotNull)org.seasar.dbflute.exception.EntityAlreadyExistsException
- When the entity already exists. (unique constraint
violation)public void varyingUpdate(AccessResult accessResult, org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option)
AccessResult accessResult = new AccessResult(); accessResult.setPK...(value); // required accessResult.setOther...(value); // you should set only modified columns // if exclusive control, the value of exclusive control column is required accessResult.setVersionNo(value); try { // you can update by self calculation values UpdateOption<AccessResultCB> option = new UpdateOption<AccessResultCB>(); option.self(new SpecifyQuery<AccessResultCB>() { public void specify(AccessResultCB cb) { cb.specify().columnXxxCount(); } }).plus(1); // XXX_COUNT = XXX_COUNT + 1 accessResultBhv.varyingUpdate(accessResult, option); } catch (EntityAlreadyUpdatedException e) { // if concurrent update ... }
accessResult
- The entity of update target. (NotNull, PrimaryKeyNotNull,
ConcurrencyColumnRequired)option
- The option of update for varying requests. (NotNull)org.seasar.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted. (not found)org.seasar.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.org.seasar.dbflute.exception.EntityAlreadyExistsException
- When the entity already exists. (unique constraint
violation)public void varyingInsertOrUpdate(AccessResult accessResult, org.seasar.dbflute.bhv.InsertOption<AccessResultCB> insertOption, org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> updateOption)
accessResult
- The entity of insert or update target. (NotNull)insertOption
- The option of insert for varying requests. (NotNull)updateOption
- The option of update for varying requests. (NotNull)org.seasar.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted. (not found)org.seasar.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.org.seasar.dbflute.exception.EntityAlreadyExistsException
- When the entity already exists. (unique constraint
violation)public void varyingDelete(AccessResult accessResult, org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> option)
accessResult
- The entity of delete target. (NotNull, PrimaryKeyNotNull,
ConcurrencyColumnRequired)option
- The option of update for varying requests. (NotNull)org.seasar.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted. (not found)org.seasar.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.public int[] varyingBatchInsert(List<AccessResult> accessResultList, org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option)
accessResultList
- The list of the entity. (NotNull, EmptyAllowed,
PrimaryKeyNotNull)option
- The option of insert for varying requests. (NotNull)public int[] varyingBatchUpdate(List<AccessResult> accessResultList, org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option)
accessResultList
- The list of the entity. (NotNull, EmptyAllowed,
PrimaryKeyNotNull)option
- The option of update for varying requests. (NotNull)public int[] varyingBatchDelete(List<AccessResult> accessResultList, org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> option)
accessResultList
- The list of the entity. (NotNull, EmptyAllowed,
PrimaryKeyNotNull)option
- The option of delete for varying requests. (NotNull)public int varyingQueryInsert(org.seasar.dbflute.bhv.QueryInsertSetupper<AccessResult,AccessResultCB> setupper, org.seasar.dbflute.bhv.InsertOption<AccessResultCB> option)
setupper
- The setup-per of query-insert. (NotNull)option
- The option of insert for varying requests. (NotNull)public int varyingQueryUpdate(AccessResult accessResult, AccessResultCB cb, org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> option)
// ex) you can update by self calculation values AccessResult accessResult = new AccessResult(); // you don't need to set PK value //accessResult.setPK...(value); accessResult.setOther...(value); // you should set only modified columns // you don't need to set a value of exclusive control column // (auto-increment for version number is valid though non-exclusive control) //accessResult.setVersionNo(value); AccessResultCB cb = new AccessResultCB(); cb.query().setFoo...(value); UpdateOption<AccessResultCB> option = new UpdateOption<AccessResultCB>(); option.self(new SpecifyQuery<AccessResultCB>() { public void specify(AccessResultCB cb) { cb.specify().columnFooCount(); } }).plus(1); // FOO_COUNT = FOO_COUNT + 1 accessResultBhv.varyingQueryUpdate(accessResult, cb, option);
accessResult
- The entity that contains update values. (NotNull)
{PrimaryKeyNotRequired}cb
- The condition-bean of AccessResult. (NotNull)option
- The option of update for varying requests. (NotNull)org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException
- When the query has no condition (if not allowed).public int varyingQueryDelete(AccessResultCB cb, org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> option)
cb
- The condition-bean of AccessResult. (NotNull)option
- The option of delete for varying requests. (NotNull)org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException
- When the query has no condition (if not allowed).public org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor<AccessResultBhv> outsideSql()
You can use the methods for outside-SQL are as follows: {Basic} o selectList() o execute() o call() {Entity} o entityHandling().selectEntity() o entityHandling().selectEntityWithDeletedCheck() {Paging} o autoPaging().selectList() o autoPaging().selectPage() o manualPaging().selectList() o manualPaging().selectPage() {Cursor} o cursorHandling().selectCursor() {Option} o dynamicBinding().selectList() o removeBlockComment().selectList() o removeLineComment().selectList() o formatSql().selectList()
protected int delegateSelectCountUniquely(AccessResultCB cb)
protected int delegateSelectCountPlainly(AccessResultCB cb)
protected <ENTITY extends AccessResult> void delegateSelectCursor(AccessResultCB cb, org.seasar.dbflute.cbean.EntityRowHandler<ENTITY> erh, Class<ENTITY> et)
protected <ENTITY extends AccessResult> List<ENTITY> delegateSelectList(AccessResultCB cb, Class<ENTITY> et)
protected int delegateInsert(AccessResult e, org.seasar.dbflute.bhv.InsertOption<AccessResultCB> op)
protected int delegateUpdate(AccessResult e, org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> op)
protected int delegateUpdateNonstrict(AccessResult e, org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> op)
protected int delegateDelete(AccessResult e, org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> op)
protected int delegateDeleteNonstrict(AccessResult e, org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> op)
protected int[] delegateBatchInsert(List<AccessResult> ls, org.seasar.dbflute.bhv.InsertOption<AccessResultCB> op)
protected int[] delegateBatchUpdate(List<AccessResult> ls, org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> op)
protected int[] delegateBatchUpdateNonstrict(List<AccessResult> ls, org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> op)
protected int[] delegateBatchDelete(List<AccessResult> ls, org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> op)
protected int[] delegateBatchDeleteNonstrict(List<AccessResult> ls, org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> op)
protected int delegateQueryInsert(AccessResult e, AccessResultCB inCB, org.seasar.dbflute.cbean.ConditionBean resCB, org.seasar.dbflute.bhv.InsertOption<AccessResultCB> op)
protected int delegateQueryUpdate(AccessResult e, AccessResultCB cb, org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> op)
protected int delegateQueryDelete(AccessResultCB cb, org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> op)
protected boolean hasVersionNoValue(org.seasar.dbflute.Entity entity)
hasVersionNoValue
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorReadable
protected boolean hasUpdateDateValue(org.seasar.dbflute.Entity entity)
hasUpdateDateValue
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorReadable
protected AccessResult downcast(org.seasar.dbflute.Entity entity)
protected AccessResultCB downcast(org.seasar.dbflute.cbean.ConditionBean cb)
protected List<AccessResult> downcast(List<? extends org.seasar.dbflute.Entity> entityList)
protected org.seasar.dbflute.bhv.InsertOption<AccessResultCB> downcast(org.seasar.dbflute.bhv.InsertOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
protected org.seasar.dbflute.bhv.UpdateOption<AccessResultCB> downcast(org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
protected org.seasar.dbflute.bhv.DeleteOption<AccessResultCB> downcast(org.seasar.dbflute.bhv.DeleteOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
protected org.seasar.dbflute.bhv.QueryInsertSetupper<AccessResult,AccessResultCB> downcast(org.seasar.dbflute.bhv.QueryInsertSetupper<? extends org.seasar.dbflute.Entity,? extends org.seasar.dbflute.cbean.ConditionBean> option)
Copyright © 2009–2014 The Seasar Foundation. All rights reserved.