|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.robot.dbflute.bhv.AbstractBehaviorReadable
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
org.seasar.robot.db.bsbhv.BsAccessResultBhv
public abstract class BsAccessResultBhv
The behavior of ACCESS_RESULT as TABLE.
[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.robot.dbflute.bhv.AbstractBehaviorWritable から継承された入れ子のクラス/インタフェース |
---|
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable.InternalDeleteCallback<ENTITY extends org.seasar.robot.dbflute.Entity>, org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable.InternalDeleteNonstrictCallback<ENTITY extends org.seasar.robot.dbflute.Entity>, org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable.InternalDeleteNonstrictIgnoreDeletedCallback<ENTITY extends org.seasar.robot.dbflute.Entity>, org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable.InternalInsertOrUpdateCallback<ENTITY extends org.seasar.robot.dbflute.Entity,CB_TYPE extends org.seasar.robot.dbflute.cbean.ConditionBean>, org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable.InternalInsertOrUpdateNonstrictCallback<ENTITY extends org.seasar.robot.dbflute.Entity>, org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable.InternalUpdateCallback<ENTITY extends org.seasar.robot.dbflute.Entity>, org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable.InternalUpdateNonstrictCallback<ENTITY extends org.seasar.robot.dbflute.Entity> |
クラス org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable から継承された入れ子のクラス/インタフェース |
---|
org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable.InternalLoadReferrerCallback<LOCAL_ENTITY extends org.seasar.robot.dbflute.Entity,PK,REFERRER_CB extends org.seasar.robot.dbflute.cbean.ConditionBean,REFERRER_ENTITY extends org.seasar.robot.dbflute.Entity>, org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable.InternalPulloutCallback<LOCAL_ENTITY extends org.seasar.robot.dbflute.Entity,FOREIGN_ENTITY extends org.seasar.robot.dbflute.Entity>, org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable.InternalSelectEntityCallback<ENTITY extends org.seasar.robot.dbflute.Entity,CB extends org.seasar.robot.dbflute.cbean.ConditionBean>, org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable.InternalSelectEntityWithDeletedCheckCallback<ENTITY extends org.seasar.robot.dbflute.Entity,CB extends org.seasar.robot.dbflute.cbean.ConditionBean>, org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable.InternalSelectListCallback<ENTITY extends org.seasar.robot.dbflute.Entity,CB extends org.seasar.robot.dbflute.cbean.ConditionBean>, org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable.InternalSelectPageCallback<ENTITY extends org.seasar.robot.dbflute.Entity,CB extends org.seasar.robot.dbflute.cbean.ConditionBean>, org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable.SLFunction<CB extends org.seasar.robot.dbflute.cbean.ConditionBean,RESULT> |
フィールドの概要 | |
---|---|
static java.lang.String |
PATH_deleteBySessionId
|
static java.lang.String |
PATH_selectListByUrlDiff
|
クラス org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable から継承されたフィールド |
---|
_commonColumnAutoSetupper |
クラス org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable から継承されたフィールド |
---|
_behaviorCommandInvoker, _behaviorSelector |
コンストラクタの概要 | |
---|---|
BsAccessResultBhv()
|
メソッドの概要 | ||
---|---|---|
int[] |
batchDelete(java.util.List<AccessResult> accessResultList)
Batch-delete the list. |
|
int[] |
batchInsert(java.util.List<AccessResult> accessResultList)
Batch-insert the list. |
|
int[] |
batchUpdate(java.util.List<AccessResult> accessResultList)
Batch-update the list. |
|
int[] |
batchUpdate(java.util.List<AccessResult> accessResultList,
org.seasar.robot.dbflute.cbean.SpecifyQuery<AccessResultCB> updateColumnSpec)
Batch-update the list. |
|
protected AccessResultCB |
createCBForQueryInsert()
|
|
protected AccessResultCB |
createCBForSpecifiedUpdate()
|
|
protected AccessResultCB |
createCBForVaryingUpdate()
|
|
protected int[] |
delegateBatchDelete(java.util.List<AccessResult> ls,
org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> op)
|
|
protected int[] |
delegateBatchDeleteNonstrict(java.util.List<AccessResult> ls,
org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> op)
|
|
protected int[] |
delegateBatchInsert(java.util.List<AccessResult> ls,
org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> op)
|
|
protected int[] |
delegateBatchUpdate(java.util.List<AccessResult> ls,
org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> op)
|
|
protected int[] |
delegateBatchUpdateNonstrict(java.util.List<AccessResult> ls,
org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> op)
|
|
protected int |
delegateDelete(AccessResult e,
org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> op)
|
|
protected int |
delegateDeleteNonstrict(AccessResult e,
org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> op)
|
|
protected int |
delegateInsert(AccessResult e,
org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> op)
|
|
protected int |
delegateQueryDelete(AccessResultCB cb,
org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> op)
|
|
protected int |
delegateQueryInsert(AccessResult e,
AccessResultCB inCB,
org.seasar.robot.dbflute.cbean.ConditionBean resCB,
org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> op)
|
|
protected int |
delegateQueryUpdate(AccessResult e,
AccessResultCB cb,
org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> op)
|
|
protected int |
delegateSelectCountPlainly(AccessResultCB cb)
|
|
protected int |
delegateSelectCountUniquely(AccessResultCB cb)
|
|
protected
|
delegateSelectCursor(AccessResultCB cb,
org.seasar.robot.dbflute.cbean.EntityRowHandler<ENTITY> erh,
java.lang.Class<ENTITY> et)
|
|
protected
|
delegateSelectList(AccessResultCB cb,
java.lang.Class<ENTITY> et)
|
|
protected int |
delegateUpdate(AccessResult e,
org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> op)
|
|
protected int |
delegateUpdateNonstrict(AccessResult e,
org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> op)
|
|
void |
delete(AccessResult accessResult)
Delete the entity. |
|
protected int[] |
doBatchDelete(java.util.List<AccessResult> accessResultList,
org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> option)
|
|
protected int[] |
doBatchInsert(java.util.List<AccessResult> accessResultList,
org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> option)
|
|
protected int[] |
doBatchUpdate(java.util.List<AccessResult> accessResultList,
org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> option)
|
|
protected void |
doCreate(org.seasar.robot.dbflute.Entity entity,
org.seasar.robot.dbflute.bhv.InsertOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
|
|
protected void |
doCreateOrModify(org.seasar.robot.dbflute.Entity entity,
org.seasar.robot.dbflute.bhv.InsertOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> insertOption,
org.seasar.robot.dbflute.bhv.UpdateOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> updateOption)
|
|
protected void |
doCreateOrModifyNonstrict(org.seasar.robot.dbflute.Entity entity,
org.seasar.robot.dbflute.bhv.InsertOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> insertOption,
org.seasar.robot.dbflute.bhv.UpdateOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> updateOption)
|
|
protected void |
doDelete(AccessResult accessResult,
org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> option)
|
|
protected void |
doInesrtOrUpdate(AccessResult accessResult,
org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> insertOption,
org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> updateOption)
|
|
protected void |
doInsert(AccessResult accessResult,
org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> option)
|
|
protected int[] |
doLumpCreate(java.util.List<org.seasar.robot.dbflute.Entity> ls,
org.seasar.robot.dbflute.bhv.InsertOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
|
|
protected int[] |
doLumpModify(java.util.List<org.seasar.robot.dbflute.Entity> ls,
org.seasar.robot.dbflute.bhv.UpdateOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
|
|
protected int[] |
doLumpModifyNonstrict(java.util.List<org.seasar.robot.dbflute.Entity> ls,
org.seasar.robot.dbflute.bhv.UpdateOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
|
|
protected int[] |
doLumpRemove(java.util.List<org.seasar.robot.dbflute.Entity> ls,
org.seasar.robot.dbflute.bhv.DeleteOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
|
|
protected int[] |
doLumpRemoveNonstrict(java.util.List<org.seasar.robot.dbflute.Entity> ls,
org.seasar.robot.dbflute.bhv.DeleteOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
|
|
protected void |
doModify(org.seasar.robot.dbflute.Entity entity,
org.seasar.robot.dbflute.bhv.UpdateOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
|
|
protected void |
doModifyNonstrict(org.seasar.robot.dbflute.Entity entity,
org.seasar.robot.dbflute.bhv.UpdateOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
|
|
protected int |
doQueryDelete(AccessResultCB cb,
org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> option)
|
|
protected int |
doQueryInsert(org.seasar.robot.dbflute.bhv.QueryInsertSetupper<AccessResult,AccessResultCB> setupper,
org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> option)
|
|
protected int |
doQueryUpdate(AccessResult accessResult,
AccessResultCB cb,
org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> option)
|
|
protected int |
doRangeCreate(org.seasar.robot.dbflute.bhv.QueryInsertSetupper<? extends org.seasar.robot.dbflute.Entity,? extends org.seasar.robot.dbflute.cbean.ConditionBean> setupper,
org.seasar.robot.dbflute.bhv.InsertOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
|
|
protected int |
doRangeModify(org.seasar.robot.dbflute.Entity entity,
org.seasar.robot.dbflute.cbean.ConditionBean cb,
org.seasar.robot.dbflute.bhv.UpdateOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
|
|
protected int |
doRangeRemove(org.seasar.robot.dbflute.cbean.ConditionBean cb,
org.seasar.robot.dbflute.bhv.DeleteOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
|
|
protected int |
doReadCount(org.seasar.robot.dbflute.cbean.ConditionBean cb)
|
|
protected org.seasar.robot.dbflute.Entity |
doReadEntity(org.seasar.robot.dbflute.cbean.ConditionBean cb)
|
|
protected org.seasar.robot.dbflute.Entity |
doReadEntityWithDeletedCheck(org.seasar.robot.dbflute.cbean.ConditionBean cb)
|
|
protected org.seasar.robot.dbflute.cbean.ListResultBean<? extends org.seasar.robot.dbflute.Entity> |
doReadList(org.seasar.robot.dbflute.cbean.ConditionBean cb)
|
|
protected java.lang.Number |
doReadNextVal()
|
|
protected org.seasar.robot.dbflute.cbean.PagingResultBean<? extends org.seasar.robot.dbflute.Entity> |
doReadPage(org.seasar.robot.dbflute.cbean.ConditionBean cb)
|
|
protected void |
doRemove(org.seasar.robot.dbflute.Entity entity,
org.seasar.robot.dbflute.bhv.DeleteOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
|
|
protected void |
doRemoveNonstrict(org.seasar.robot.dbflute.Entity entity,
org.seasar.robot.dbflute.bhv.DeleteOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
|
|
protected
|
doScalarSelect(java.lang.Class<RESULT> resultType,
CB cb)
|
|
protected
|
doSelectByPKValue(java.lang.Long id,
java.lang.Class<ENTITY> entityType)
|
|
protected
|
doSelectByPKValueWithDeletedCheck(java.lang.Long id,
java.lang.Class<ENTITY> entityType)
|
|
protected int |
doSelectCountPlainly(AccessResultCB cb)
|
|
protected int |
doSelectCountUniquely(AccessResultCB cb)
|
|
protected
|
doSelectCursor(AccessResultCB cb,
org.seasar.robot.dbflute.cbean.EntityRowHandler<ENTITY> entityRowHandler,
java.lang.Class<ENTITY> entityType)
|
|
protected
|
doSelectEntity(AccessResultCB cb,
java.lang.Class<ENTITY> entityType)
|
|
protected
|
doSelectEntityWithDeletedCheck(AccessResultCB cb,
java.lang.Class<ENTITY> entityType)
|
|
protected
|
doSelectList(AccessResultCB cb,
java.lang.Class<ENTITY> entityType)
|
|
protected
|
doSelectPage(AccessResultCB cb,
java.lang.Class<ENTITY> entityType)
|
|
protected void |
doUpdate(AccessResult accessResult,
org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> option)
|
|
protected AccessResultCB |
downcast(org.seasar.robot.dbflute.cbean.ConditionBean cb)
|
|
protected AccessResult |
downcast(org.seasar.robot.dbflute.Entity entity)
|
|
org.seasar.robot.dbflute.dbmeta.DBMeta |
getDBMeta()
|
|
AccessResultDbm |
getMyDBMeta()
|
|
java.lang.String |
getTableDbName()
|
|
protected boolean |
hasUpdateDateValue(org.seasar.robot.dbflute.Entity entity)
|
|
protected boolean |
hasVersionNoValue(org.seasar.robot.dbflute.Entity entity)
|
|
void |
insert(AccessResult accessResult)
Insert the entity. |
|
void |
insertOrUpdate(AccessResult accessResult)
Insert or update the entity modified-only. |
|
org.seasar.robot.dbflute.cbean.ConditionBean |
newConditionBean()
|
|
org.seasar.robot.dbflute.Entity |
newEntity()
|
|
AccessResultCB |
newMyConditionBean()
|
|
AccessResult |
newMyEntity()
|
|
protected void |
prepareDeleteOption(org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> option)
|
|
protected void |
prepareInsertOption(org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> option)
|
|
protected void |
prepareUpdateOption(org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> option)
|
|
java.util.List<AccessResultData> |
pulloutAccessResultDataAsOne(java.util.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.robot.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. |
|
|
scalarSelect(java.lang.Class<RESULT> resultType)
Select the scalar value derived by a function from uniquely-selected records. |
|
AccessResult |
selectByPKValue(java.lang.Long id)
Select the entity by the primary-key value. |
|
AccessResult |
selectByPKValueWithDeletedCheck(java.lang.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.robot.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.robot.dbflute.cbean.ListResultBean<AccessResult> |
selectList(AccessResultCB cb)
Select the list as result bean. |
|
org.seasar.robot.dbflute.cbean.PagingResultBean<AccessResult> |
selectPage(AccessResultCB cb)
Select the page as result bean. |
|
void |
update(AccessResult accessResult)
Update the entity modified-only. |
|
int[] |
varyingBatchDelete(java.util.List<AccessResult> accessResultList,
org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> option)
Batch-delete the list with varying requests. |
|
int[] |
varyingBatchInsert(java.util.List<AccessResult> accessResultList,
org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> option)
Batch-insert the list with varying requests. |
|
int[] |
varyingBatchUpdate(java.util.List<AccessResult> accessResultList,
org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> option)
Batch-update the list with varying requests. |
|
void |
varyingDelete(AccessResult accessResult,
org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> option)
Delete the entity with varying requests. |
|
void |
varyingInsert(AccessResult accessResult,
org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> option)
Insert the entity with varying requests. |
|
void |
varyingInsertOrUpdate(AccessResult accessResult,
org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> insertOption,
org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> updateOption)
Insert or update the entity with varying requests. |
|
int |
varyingQueryDelete(AccessResultCB cb,
org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> option)
Delete the several entities by query with varying requests non-strictly. |
|
int |
varyingQueryInsert(org.seasar.robot.dbflute.bhv.QueryInsertSetupper<AccessResult,AccessResultCB> setupper,
org.seasar.robot.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.robot.dbflute.bhv.UpdateOption<AccessResultCB> option)
Update the several entities by query with varying requests non-strictly modified-only. |
|
void |
varyingUpdate(AccessResult accessResult,
org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> option)
Update the entity with varying requests modified-only. |
クラス org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable から継承されたメソッド |
---|
assertDeleteOptionNotNull, assertDeleteOptionStatus, assertEntityHasOptimisticLockValue, assertEntityHasUpdateDateValue, assertEntityHasVersionNoValue, assertEntityOfDelete, assertEntityOfInsert, assertEntityOfUpdate, assertInsertOptionNotNull, assertInsertOptionStatus, assertQueryDeleteStatus, assertQueryUpdateStatus, assertUpdateColumnSpecificationNotNull, assertUpdateOptionNotNull, assertUpdateOptionStatus, create, createBatchDeleteCommand, createBatchDeleteNonstrictCommand, createBatchInsertCommand, createBatchUpdateCommand, createBatchUpdateNonstrictCommand, createDeleteEntityCommand, createDeleteNonstrictEntityCommand, createOrModify, createOrModifyNonstrict, 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, processBatchInternally, processBatchInternally, processBatchInternally, processBeforeDelete, processBeforeInsert, processBeforeQueryDelete, processBeforeQueryInsert, processBeforeQueryUpdate, processBeforeUpdate, rangeCreate, rangeModify, rangeRemove, remove, removeNonstrict, setCommonColumnAutoSetupper, setupCommonColumnOfInsertIfNeeds, setupCommonColumnOfUpdateIfNeeds, setupExclusiveControlColumnOfQueryInsert, throwUpdateDateValueNullException, throwUpdateEntityAlreadyDeletedException, throwUpdateEntityDuplicatedException, throwVersionNoValueNullException, xsetupListEntityCommand |
クラス org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable から継承されたメソッド |
---|
assertBehaviorCommandInvoker, assertCBNotNull, assertConditionBeanNotNull, 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, getBehaviorCommandInvoker, getBehaviorSelector, helpConditionBeanDowncastInternally, helpEntityDowncastInternally, helpLoadReferrerInternally, helpPulloutInternally, helpSelectEntityInternally, helpSelectEntityWithDeletedCheckInternally, helpSelectListInternally, helpSelectPageInternally, invoke, ln, outsideSql, readCount, readEntity, readEntityWithDeletedCheck, readList, readNextVal, readPage, setBehaviorCommandInvoker, setBehaviorSelector, throwSelectEntityAlreadyDeletedException, throwSelectEntityConditionNotFoundException, throwSelectEntityDuplicatedException, throwSpecifyDerivedReferrerEntityPropertyNotFoundException, toLoadReferrerMappingKey, toLowerCaseIfString, warmUpCommand, xassLRArg, xassLRArg, xassLRArg, xassLRArg, xcheckSafetyResultAsOne, xgetBSFLR, xnewLRLs, xrestoreSafetyResult, xsetupEntityCommand, xsetupSelectCommand |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
インタフェース org.seasar.robot.dbflute.bhv.BehaviorReadable から継承されたメソッド |
---|
readCount, readEntity, readEntityWithDeletedCheck, readList, readNextVal, readPage, warmUpCommand |
フィールドの詳細 |
---|
public static final java.lang.String PATH_selectListByUrlDiff
public static final java.lang.String PATH_deleteBySessionId
コンストラクタの詳細 |
---|
public BsAccessResultBhv()
メソッドの詳細 |
---|
public java.lang.String getTableDbName()
public org.seasar.robot.dbflute.dbmeta.DBMeta getDBMeta()
public AccessResultDbm getMyDBMeta()
public org.seasar.robot.dbflute.Entity newEntity()
public org.seasar.robot.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.robot.dbflute.cbean.ConditionBean cb)
org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable
内の doReadCount
public void selectCursor(AccessResultCB cb, org.seasar.robot.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.robot.dbflute.cbean.EntityRowHandler<ENTITY> entityRowHandler, java.lang.Class<ENTITY> entityType)
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.robot.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.
org.seasar.robot.dbflute.exception.SelectEntityConditionNotFoundException
- When the condition for selecting an entity is not found.protected <ENTITY extends AccessResult> ENTITY doSelectEntity(AccessResultCB cb, java.lang.Class<ENTITY> entityType)
protected org.seasar.robot.dbflute.Entity doReadEntity(org.seasar.robot.dbflute.cbean.ConditionBean cb)
org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable
内の doReadEntity
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.robot.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted.
org.seasar.robot.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.
org.seasar.robot.dbflute.exception.SelectEntityConditionNotFoundException
- When the condition for selecting an entity is not found.protected <ENTITY extends AccessResult> ENTITY doSelectEntityWithDeletedCheck(AccessResultCB cb, java.lang.Class<ENTITY> entityType)
protected org.seasar.robot.dbflute.Entity doReadEntityWithDeletedCheck(org.seasar.robot.dbflute.cbean.ConditionBean cb)
org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable
内の doReadEntityWithDeletedCheck
public AccessResult selectByPKValue(java.lang.Long id)
id
- The one of primary key. (NotNull)
org.seasar.robot.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.
org.seasar.robot.dbflute.exception.SelectEntityConditionNotFoundException
- When the condition for selecting an entity is not found.protected <ENTITY extends AccessResult> ENTITY doSelectByPKValue(java.lang.Long id, java.lang.Class<ENTITY> entityType)
public AccessResult selectByPKValueWithDeletedCheck(java.lang.Long id)
id
- The one of primary key. (NotNull)
org.seasar.robot.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted.
org.seasar.robot.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.
org.seasar.robot.dbflute.exception.SelectEntityConditionNotFoundException
- When the condition for selecting an entity is not found.protected <ENTITY extends AccessResult> ENTITY doSelectByPKValueWithDeletedCheck(java.lang.Long id, java.lang.Class<ENTITY> entityType)
public org.seasar.robot.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.robot.dbflute.exception.DangerousResultSizeException
- When the result size is over the specified safety size.protected <ENTITY extends AccessResult> org.seasar.robot.dbflute.cbean.ListResultBean<ENTITY> doSelectList(AccessResultCB cb, java.lang.Class<ENTITY> entityType)
protected org.seasar.robot.dbflute.cbean.ListResultBean<? extends org.seasar.robot.dbflute.Entity> doReadList(org.seasar.robot.dbflute.cbean.ConditionBean cb)
org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable
内の doReadList
public org.seasar.robot.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.robot.dbflute.exception.DangerousResultSizeException
- When the result size is over the specified safety size.protected <ENTITY extends AccessResult> org.seasar.robot.dbflute.cbean.PagingResultBean<ENTITY> doSelectPage(AccessResultCB cb, java.lang.Class<ENTITY> entityType)
protected org.seasar.robot.dbflute.cbean.PagingResultBean<? extends org.seasar.robot.dbflute.Entity> doReadPage(org.seasar.robot.dbflute.cbean.ConditionBean cb)
org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable
内の doReadPage
public <RESULT> org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable.SLFunction<AccessResultCB,RESULT> scalarSelect(java.lang.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.robot.dbflute.bhv.AbstractBehaviorReadable.SLFunction<CB,RESULT> doScalarSelect(java.lang.Class<RESULT> resultType, CB cb)
protected java.lang.Number doReadNextVal()
org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable
内の doReadNextVal
public java.util.List<AccessResultData> pulloutAccessResultDataAsOne(java.util.List<AccessResult> accessResultList)
accessResultList
- The list of accessResult. (NotNull)
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
accessResult
- The entity of insert target. (NotNull)
org.seasar.robot.dbflute.exception.EntityAlreadyExistsException
- When the entity already exists. (Unique Constraint Violation)protected void doInsert(AccessResult accessResult, org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> option)
protected void prepareInsertOption(org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> option)
protected void doCreate(org.seasar.robot.dbflute.Entity entity, org.seasar.robot.dbflute.bhv.InsertOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
内の doCreate
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) {PrimaryKeyRequired, ConcurrencyColumnRequired}
org.seasar.robot.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted.
org.seasar.robot.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.
org.seasar.robot.dbflute.exception.EntityAlreadyExistsException
- When the entity already exists. (Unique Constraint Violation)protected void doUpdate(AccessResult accessResult, org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> option)
protected void prepareUpdateOption(org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> option)
protected AccessResultCB createCBForVaryingUpdate()
protected AccessResultCB createCBForSpecifiedUpdate()
protected void doModify(org.seasar.robot.dbflute.Entity entity, org.seasar.robot.dbflute.bhv.UpdateOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
内の doModify
protected void doModifyNonstrict(org.seasar.robot.dbflute.Entity entity, org.seasar.robot.dbflute.bhv.UpdateOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
内の doModifyNonstrict
public void insertOrUpdate(AccessResult accessResult)
accessResult
- The entity of insert or update target. (NotNull)
org.seasar.robot.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted.
org.seasar.robot.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.
org.seasar.robot.dbflute.exception.EntityAlreadyExistsException
- When the entity already exists. (Unique Constraint Violation)protected void doInesrtOrUpdate(AccessResult accessResult, org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> insertOption, org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> updateOption)
protected void doCreateOrModify(org.seasar.robot.dbflute.Entity entity, org.seasar.robot.dbflute.bhv.InsertOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> insertOption, org.seasar.robot.dbflute.bhv.UpdateOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> updateOption)
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
内の doCreateOrModify
protected void doCreateOrModifyNonstrict(org.seasar.robot.dbflute.Entity entity, org.seasar.robot.dbflute.bhv.InsertOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> insertOption, org.seasar.robot.dbflute.bhv.UpdateOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> updateOption)
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
内の doCreateOrModifyNonstrict
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) {PrimaryKeyRequired, ConcurrencyColumnRequired}
org.seasar.robot.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted.
org.seasar.robot.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.protected void doDelete(AccessResult accessResult, org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> option)
protected void prepareDeleteOption(org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> option)
protected void doRemove(org.seasar.robot.dbflute.Entity entity, org.seasar.robot.dbflute.bhv.DeleteOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
内の doRemove
protected void doRemoveNonstrict(org.seasar.robot.dbflute.Entity entity, org.seasar.robot.dbflute.bhv.DeleteOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
内の doRemoveNonstrict
public int[] batchInsert(java.util.List<AccessResult> accessResultList)
accessResultList
- The list of the entity. (NotNull)
protected int[] doBatchInsert(java.util.List<AccessResult> accessResultList, org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> option)
protected int[] doLumpCreate(java.util.List<org.seasar.robot.dbflute.Entity> ls, org.seasar.robot.dbflute.bhv.InsertOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
内の doLumpCreate
public int[] batchUpdate(java.util.List<AccessResult> accessResultList)
accessResultList
- The list of the entity. (NotNull)
org.seasar.robot.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted.protected int[] doBatchUpdate(java.util.List<AccessResult> accessResultList, org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> option)
protected int[] doLumpModify(java.util.List<org.seasar.robot.dbflute.Entity> ls, org.seasar.robot.dbflute.bhv.UpdateOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
内の doLumpModify
public int[] batchUpdate(java.util.List<AccessResult> accessResultList, org.seasar.robot.dbflute.cbean.SpecifyQuery<AccessResultCB> updateColumnSpec)
accessResultList
- The list of the entity. (NotNull)updateColumnSpec
- The specification of update columns. (NotNull)
org.seasar.robot.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted.protected int[] doLumpModifyNonstrict(java.util.List<org.seasar.robot.dbflute.Entity> ls, org.seasar.robot.dbflute.bhv.UpdateOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
内の doLumpModifyNonstrict
public int[] batchDelete(java.util.List<AccessResult> accessResultList)
accessResultList
- The list of the entity. (NotNull)
org.seasar.robot.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted.protected int[] doBatchDelete(java.util.List<AccessResult> accessResultList, org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> option)
protected int[] doLumpRemove(java.util.List<org.seasar.robot.dbflute.Entity> ls, org.seasar.robot.dbflute.bhv.DeleteOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
内の doLumpRemove
protected int[] doLumpRemoveNonstrict(java.util.List<org.seasar.robot.dbflute.Entity> ls, org.seasar.robot.dbflute.bhv.DeleteOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
内の doLumpRemoveNonstrict
public int queryInsert(org.seasar.robot.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.robot.dbflute.bhv.QueryInsertSetupper<AccessResult,AccessResultCB> setupper, org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> option)
protected AccessResultCB createCBForQueryInsert()
protected int doRangeCreate(org.seasar.robot.dbflute.bhv.QueryInsertSetupper<? extends org.seasar.robot.dbflute.Entity,? extends org.seasar.robot.dbflute.cbean.ConditionBean> setupper, org.seasar.robot.dbflute.bhv.InsertOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
内の doRangeCreate
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.robot.dbflute.exception.NonQueryUpdateNotAllowedException
- When the query has no condition.protected int doQueryUpdate(AccessResult accessResult, AccessResultCB cb, org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> option)
protected int doRangeModify(org.seasar.robot.dbflute.Entity entity, org.seasar.robot.dbflute.cbean.ConditionBean cb, org.seasar.robot.dbflute.bhv.UpdateOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
内の doRangeModify
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.robot.dbflute.exception.NonQueryDeleteNotAllowedException
- When the query has no condition.protected int doQueryDelete(AccessResultCB cb, org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> option)
protected int doRangeRemove(org.seasar.robot.dbflute.cbean.ConditionBean cb, org.seasar.robot.dbflute.bhv.DeleteOption<? extends org.seasar.robot.dbflute.cbean.ConditionBean> option)
org.seasar.robot.dbflute.bhv.AbstractBehaviorWritable
内の doRangeRemove
public void varyingInsert(AccessResult accessResult, org.seasar.robot.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)option
- The option of insert for varying requests. (NotNull)
org.seasar.robot.dbflute.exception.EntityAlreadyExistsException
- When the entity already exists. (Unique Constraint Violation)public void varyingUpdate(AccessResult accessResult, org.seasar.robot.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) {PrimaryKeyRequired, ConcurrencyColumnRequired}option
- The option of update for varying requests. (NotNull)
org.seasar.robot.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted.
org.seasar.robot.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.
org.seasar.robot.dbflute.exception.EntityAlreadyExistsException
- When the entity already exists. (Unique Constraint Violation)public void varyingInsertOrUpdate(AccessResult accessResult, org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> insertOption, org.seasar.robot.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.robot.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted.
org.seasar.robot.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.
org.seasar.robot.dbflute.exception.EntityAlreadyExistsException
- When the entity already exists. (Unique Constraint Violation)public void varyingDelete(AccessResult accessResult, org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> option)
accessResult
- The entity of delete target. (NotNull) {PrimaryKeyRequired, ConcurrencyColumnRequired}option
- The option of update for varying requests. (NotNull)
org.seasar.robot.dbflute.exception.EntityAlreadyDeletedException
- When the entity has already been deleted.
org.seasar.robot.dbflute.exception.EntityDuplicatedException
- When the entity has been duplicated.public int[] varyingBatchInsert(java.util.List<AccessResult> accessResultList, org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> option)
accessResultList
- The list of the entity. (NotNull)option
- The option of insert for varying requests. (NotNull)
public int[] varyingBatchUpdate(java.util.List<AccessResult> accessResultList, org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> option)
accessResultList
- The list of the entity. (NotNull)option
- The option of update for varying requests. (NotNull)
public int[] varyingBatchDelete(java.util.List<AccessResult> accessResultList, org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> option)
accessResultList
- The list of the entity. (NotNull)option
- The option of delete for varying requests. (NotNull)
public int varyingQueryInsert(org.seasar.robot.dbflute.bhv.QueryInsertSetupper<AccessResult,AccessResultCB> setupper, org.seasar.robot.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.robot.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.robot.dbflute.exception.NonQueryUpdateNotAllowedException
- When the query has no condition (if not allowed).public int varyingQueryDelete(AccessResultCB cb, org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> option)
cb
- The condition-bean of AccessResult. (NotNull)option
- The option of delete for varying requests. (NotNull)
org.seasar.robot.dbflute.exception.NonQueryDeleteNotAllowedException
- When the query has no condition (if not allowed).protected int delegateSelectCountUniquely(AccessResultCB cb)
protected int delegateSelectCountPlainly(AccessResultCB cb)
protected <ENTITY extends AccessResult> void delegateSelectCursor(AccessResultCB cb, org.seasar.robot.dbflute.cbean.EntityRowHandler<ENTITY> erh, java.lang.Class<ENTITY> et)
protected <ENTITY extends AccessResult> java.util.List<ENTITY> delegateSelectList(AccessResultCB cb, java.lang.Class<ENTITY> et)
protected int delegateInsert(AccessResult e, org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> op)
protected int delegateUpdate(AccessResult e, org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> op)
protected int delegateUpdateNonstrict(AccessResult e, org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> op)
protected int delegateDelete(AccessResult e, org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> op)
protected int delegateDeleteNonstrict(AccessResult e, org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> op)
protected int[] delegateBatchInsert(java.util.List<AccessResult> ls, org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> op)
protected int[] delegateBatchUpdate(java.util.List<AccessResult> ls, org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> op)
protected int[] delegateBatchUpdateNonstrict(java.util.List<AccessResult> ls, org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> op)
protected int[] delegateBatchDelete(java.util.List<AccessResult> ls, org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> op)
protected int[] delegateBatchDeleteNonstrict(java.util.List<AccessResult> ls, org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> op)
protected int delegateQueryInsert(AccessResult e, AccessResultCB inCB, org.seasar.robot.dbflute.cbean.ConditionBean resCB, org.seasar.robot.dbflute.bhv.InsertOption<AccessResultCB> op)
protected int delegateQueryUpdate(AccessResult e, AccessResultCB cb, org.seasar.robot.dbflute.bhv.UpdateOption<AccessResultCB> op)
protected int delegateQueryDelete(AccessResultCB cb, org.seasar.robot.dbflute.bhv.DeleteOption<AccessResultCB> op)
protected boolean hasVersionNoValue(org.seasar.robot.dbflute.Entity entity)
org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable
内の hasVersionNoValue
protected boolean hasUpdateDateValue(org.seasar.robot.dbflute.Entity entity)
org.seasar.robot.dbflute.bhv.AbstractBehaviorReadable
内の hasUpdateDateValue
protected AccessResult downcast(org.seasar.robot.dbflute.Entity entity)
protected AccessResultCB downcast(org.seasar.robot.dbflute.cbean.ConditionBean cb)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |