public abstract class BsUrlQueueBhv
extends org.seasar.dbflute.bhv.AbstractBehaviorWritable
[primary key] ID [column] ID, SESSION_ID, METHOD, URL, ENCODING, PARENT_URL, DEPTH, LAST_MODIFIED, CREATE_TIME [sequence] [identity] ID [version-no] [foreign table] [referrer table] [foreign property] [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 |
コンストラクタと説明 |
---|
BsUrlQueueBhv() |
修飾子とタイプ | メソッドと説明 |
---|---|
int[] |
batchDelete(List<UrlQueue> urlQueueList)
Batch-delete the entity list.
|
int[] |
batchInsert(List<UrlQueue> urlQueueList)
Batch-insert the entity list modified-only of same-set columns.
|
int[] |
batchUpdate(List<UrlQueue> urlQueueList)
Batch-update the entity list modified-only of same-set columns.
|
int[] |
batchUpdate(List<UrlQueue> urlQueueList,
org.seasar.dbflute.cbean.SpecifyQuery<UrlQueueCB> updateColumnSpec)
Batch-update the entity list specified-only.
|
protected UrlQueueCB |
createCBForQueryInsert() |
protected UrlQueueCB |
createCBForSpecifiedUpdate() |
protected UrlQueueCB |
createCBForVaryingUpdate() |
protected int[] |
delegateBatchDelete(List<UrlQueue> ls,
org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> op) |
protected int[] |
delegateBatchDeleteNonstrict(List<UrlQueue> ls,
org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> op) |
protected int[] |
delegateBatchInsert(List<UrlQueue> ls,
org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> op) |
protected int[] |
delegateBatchUpdate(List<UrlQueue> ls,
org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> op) |
protected int[] |
delegateBatchUpdateNonstrict(List<UrlQueue> ls,
org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> op) |
protected int |
delegateDelete(UrlQueue e,
org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> op) |
protected int |
delegateDeleteNonstrict(UrlQueue e,
org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> op) |
protected int |
delegateInsert(UrlQueue e,
org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> op) |
protected int |
delegateQueryDelete(UrlQueueCB cb,
org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> op) |
protected int |
delegateQueryInsert(UrlQueue e,
UrlQueueCB inCB,
org.seasar.dbflute.cbean.ConditionBean resCB,
org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> op) |
protected int |
delegateQueryUpdate(UrlQueue e,
UrlQueueCB cb,
org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> op) |
protected int |
delegateSelectCountPlainly(UrlQueueCB cb) |
protected int |
delegateSelectCountUniquely(UrlQueueCB cb) |
protected <ENTITY extends UrlQueue> |
delegateSelectCursor(UrlQueueCB cb,
org.seasar.dbflute.cbean.EntityRowHandler<ENTITY> erh,
Class<ENTITY> et) |
protected <ENTITY extends UrlQueue> |
delegateSelectList(UrlQueueCB cb,
Class<ENTITY> et) |
protected int |
delegateUpdate(UrlQueue e,
org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> op) |
protected int |
delegateUpdateNonstrict(UrlQueue e,
org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> op) |
void |
delete(UrlQueue urlQueue)
Delete the entity.
|
protected int[] |
doBatchDelete(List<UrlQueue> urlQueueList,
org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> option) |
protected int[] |
doBatchInsert(List<UrlQueue> urlQueueList,
org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> option) |
protected int[] |
doBatchUpdate(List<UrlQueue> urlQueueList,
org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> 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(UrlQueue urlQueue,
org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> option) |
protected void |
doInesrtOrUpdate(UrlQueue urlQueue,
org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> insertOption,
org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> updateOption) |
protected void |
doInsert(UrlQueue urlQueue,
org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> 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(UrlQueueCB cb,
org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> option) |
protected int |
doQueryInsert(org.seasar.dbflute.bhv.QueryInsertSetupper<UrlQueue,UrlQueueCB> setupper,
org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> option) |
protected int |
doQueryUpdate(UrlQueue urlQueue,
UrlQueueCB cb,
org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> 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 UrlQueueCB> |
doScalarSelect(Class<RESULT> resultType,
CB cb) |
protected <ENTITY extends UrlQueue> |
doSelectByPKValue(Long id,
Class<ENTITY> entityType) |
protected <ENTITY extends UrlQueue> |
doSelectByPKValueWithDeletedCheck(Long id,
Class<ENTITY> entityType) |
protected int |
doSelectCountPlainly(UrlQueueCB cb) |
protected int |
doSelectCountUniquely(UrlQueueCB cb) |
protected <ENTITY extends UrlQueue> |
doSelectCursor(UrlQueueCB cb,
org.seasar.dbflute.cbean.EntityRowHandler<ENTITY> entityRowHandler,
Class<ENTITY> entityType) |
protected <ENTITY extends UrlQueue> |
doSelectEntity(UrlQueueCB cb,
Class<ENTITY> entityType) |
protected <ENTITY extends UrlQueue> |
doSelectEntityWithDeletedCheck(UrlQueueCB cb,
Class<ENTITY> entityType) |
protected <ENTITY extends UrlQueue> |
doSelectList(UrlQueueCB cb,
Class<ENTITY> entityType) |
protected <ENTITY extends UrlQueue> |
doSelectPage(UrlQueueCB cb,
Class<ENTITY> entityType) |
protected void |
doUpdate(UrlQueue urlQueue,
org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> option) |
protected UrlQueueCB |
downcast(org.seasar.dbflute.cbean.ConditionBean cb) |
protected org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> |
downcast(org.seasar.dbflute.bhv.DeleteOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected UrlQueue |
downcast(org.seasar.dbflute.Entity entity) |
protected org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> |
downcast(org.seasar.dbflute.bhv.InsertOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected List<UrlQueue> |
downcast(List<? extends org.seasar.dbflute.Entity> entityList) |
protected org.seasar.dbflute.bhv.QueryInsertSetupper<UrlQueue,UrlQueueCB> |
downcast(org.seasar.dbflute.bhv.QueryInsertSetupper<? extends org.seasar.dbflute.Entity,? extends org.seasar.dbflute.cbean.ConditionBean> option) |
protected org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> |
downcast(org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> option) |
List<Long> |
extractIdList(List<UrlQueue> urlQueueList)
Extract the value list of (single) primary key id.
|
org.seasar.dbflute.dbmeta.DBMeta |
getDBMeta() |
UrlQueueDbm |
getMyDBMeta() |
String |
getTableDbName() |
protected boolean |
hasUpdateDateValue(org.seasar.dbflute.Entity entity) |
protected boolean |
hasVersionNoValue(org.seasar.dbflute.Entity entity) |
void |
insert(UrlQueue urlQueue)
Insert the entity modified-only.
|
void |
insertOrUpdate(UrlQueue urlQueue)
Insert or update the entity modified-only.
|
org.seasar.dbflute.cbean.ConditionBean |
newConditionBean() |
org.seasar.dbflute.Entity |
newEntity() |
UrlQueueCB |
newMyConditionBean() |
UrlQueue |
newMyEntity() |
org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor<UrlQueueBhv> |
outsideSql()
Prepare the basic executor of outside-SQL to execute it.
|
protected void |
prepareBatchInsertOption(List<UrlQueue> urlQueueList,
org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> option) |
protected void |
prepareBatchUpdateOption(List<UrlQueue> urlQueueList,
org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> option) |
protected void |
prepareDeleteOption(org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> option) |
protected void |
prepareInsertOption(org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> option) |
protected void |
prepareUpdateOption(org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> option) |
int |
queryDelete(UrlQueueCB cb)
Delete the several entities by query.
|
int |
queryInsert(org.seasar.dbflute.bhv.QueryInsertSetupper<UrlQueue,UrlQueueCB> setupper)
Insert the several entities by query (modified-only for fixed value).
|
int |
queryUpdate(UrlQueue urlQueue,
UrlQueueCB cb)
Update the several entities by query non-strictly modified-only.
|
<RESULT> org.seasar.dbflute.bhv.AbstractBehaviorReadable.SLFunction<UrlQueueCB,RESULT> |
scalarSelect(Class<RESULT> resultType)
Select the scalar value derived by a function from uniquely-selected
records.
|
UrlQueue |
selectByPKValue(Long id)
Select the entity by the primary-key value.
|
UrlQueue |
selectByPKValueWithDeletedCheck(Long id)
Select the entity by the primary-key value with deleted check.
|
int |
selectCount(UrlQueueCB cb)
Select the count of uniquely-selected records by the condition-bean.
|
void |
selectCursor(UrlQueueCB cb,
org.seasar.dbflute.cbean.EntityRowHandler<UrlQueue> entityRowHandler)
Select the cursor by the condition-bean.
|
UrlQueue |
selectEntity(UrlQueueCB cb)
Select the entity by the condition-bean.
|
UrlQueue |
selectEntityWithDeletedCheck(UrlQueueCB cb)
Select the entity by the condition-bean with deleted check.
|
org.seasar.dbflute.cbean.ListResultBean<UrlQueue> |
selectList(UrlQueueCB cb)
Select the list as result bean.
|
org.seasar.dbflute.cbean.PagingResultBean<UrlQueue> |
selectPage(UrlQueueCB cb)
Select the page as result bean.
|
void |
update(UrlQueue urlQueue)
Update the entity modified-only.
|
int[] |
varyingBatchDelete(List<UrlQueue> urlQueueList,
org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> option)
Batch-delete the list with varying requests.
|
int[] |
varyingBatchInsert(List<UrlQueue> urlQueueList,
org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> option)
Batch-insert the list with varying requests.
|
int[] |
varyingBatchUpdate(List<UrlQueue> urlQueueList,
org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> option)
Batch-update the list with varying requests.
|
void |
varyingDelete(UrlQueue urlQueue,
org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> option)
Delete the entity with varying requests.
|
void |
varyingInsert(UrlQueue urlQueue,
org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> option)
Insert the entity with varying requests.
|
void |
varyingInsertOrUpdate(UrlQueue urlQueue,
org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> insertOption,
org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> updateOption)
Insert or update the entity with varying requests.
|
int |
varyingQueryDelete(UrlQueueCB cb,
org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> option)
Delete the several entities by query with varying requests non-strictly.
|
int |
varyingQueryInsert(org.seasar.dbflute.bhv.QueryInsertSetupper<UrlQueue,UrlQueueCB> setupper,
org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> option)
Insert the several entities by query with varying requests (modified-only
for fixed value).
|
int |
varyingQueryUpdate(UrlQueue urlQueue,
UrlQueueCB cb,
org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> option)
Update the several entities by query with varying requests non-strictly
modified-only.
|
void |
varyingUpdate(UrlQueue urlQueue,
org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> 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 UrlQueueDbm getMyDBMeta()
public org.seasar.dbflute.Entity newEntity()
public org.seasar.dbflute.cbean.ConditionBean newConditionBean()
public UrlQueue newMyEntity()
public UrlQueueCB newMyConditionBean()
public int selectCount(UrlQueueCB cb)
UrlQueueCB cb = new UrlQueueCB();
cb.query().setFoo...(value);
int count = urlQueueBhv.selectCount(cb);
cb
- The condition-bean of UrlQueue. (NotNull)protected int doSelectCountUniquely(UrlQueueCB cb)
protected int doSelectCountPlainly(UrlQueueCB cb)
protected int doReadCount(org.seasar.dbflute.cbean.ConditionBean cb)
doReadCount
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorReadable
public UrlQueue selectEntity(UrlQueueCB cb)
UrlQueueCB cb = new UrlQueueCB();
cb.query().setFoo...(value);
UrlQueue urlQueue = urlQueueBhv.selectEntity(cb);
if (urlQueue != null) {
... = urlQueue.get...();
} else {
...
}
cb
- The condition-bean of UrlQueue. (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 UrlQueue> ENTITY doSelectEntity(UrlQueueCB cb, Class<ENTITY> entityType)
protected org.seasar.dbflute.Entity doReadEntity(org.seasar.dbflute.cbean.ConditionBean cb)
doReadEntity
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorReadable
public UrlQueue selectEntityWithDeletedCheck(UrlQueueCB cb)
UrlQueueCB cb = new UrlQueueCB(); cb.query().setFoo...(value); UrlQueue urlQueue = urlQueueBhv.selectEntityWithDeletedCheck(cb); ... = urlQueue.get...(); // the entity always be not null
cb
- The condition-bean of UrlQueue. (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 UrlQueue> ENTITY doSelectEntityWithDeletedCheck(UrlQueueCB cb, Class<ENTITY> entityType)
protected org.seasar.dbflute.Entity doReadEntityWithDeletedCheck(org.seasar.dbflute.cbean.ConditionBean cb)
doReadEntityWithDeletedCheck
クラス内 org.seasar.dbflute.bhv.AbstractBehaviorReadable
public UrlQueue 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 UrlQueue> ENTITY doSelectByPKValue(Long id, Class<ENTITY> entityType)
public UrlQueue 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 UrlQueue> ENTITY doSelectByPKValueWithDeletedCheck(Long id, Class<ENTITY> entityType)
public org.seasar.dbflute.cbean.ListResultBean<UrlQueue> selectList(UrlQueueCB cb)
UrlQueueCB cb = new UrlQueueCB();
cb.query().setFoo...(value);
cb.query().addOrderBy_Bar...();
ListResultBean<UrlQueue> urlQueueList = urlQueueBhv.selectList(cb);
for (UrlQueue urlQueue : urlQueueList) {
... = urlQueue.get...();
}
cb
- The condition-bean of UrlQueue. (NotNull)org.seasar.dbflute.exception.DangerousResultSizeException
- When the result size is over the specified safety size.protected <ENTITY extends UrlQueue> org.seasar.dbflute.cbean.ListResultBean<ENTITY> doSelectList(UrlQueueCB 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<UrlQueue> selectPage(UrlQueueCB cb)
UrlQueueCB cb = new UrlQueueCB(); cb.query().setFoo...(value); cb.query().addOrderBy_Bar...(); cb.paging(20, 3); // 20 records per a page and current page number is 3 PagingResultBean<UrlQueue> page = urlQueueBhv.selectPage(cb); int allRecordCount = page.getAllRecordCount(); int allPageCount = page.getAllPageCount(); boolean isExistPrePage = page.isExistPrePage(); boolean isExistNextPage = page.isExistNextPage(); ... for (UrlQueue urlQueue : page) { ... = urlQueue.get...(); }
cb
- The condition-bean of UrlQueue. (NotNull)org.seasar.dbflute.exception.DangerousResultSizeException
- When the result size is over the specified safety size.protected <ENTITY extends UrlQueue> org.seasar.dbflute.cbean.PagingResultBean<ENTITY> doSelectPage(UrlQueueCB 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(UrlQueueCB cb, org.seasar.dbflute.cbean.EntityRowHandler<UrlQueue> entityRowHandler)
UrlQueueCB cb = new UrlQueueCB();
cb.query().setFoo...(value);
urlQueueBhv.selectCursor(cb, new EntityRowHandler<UrlQueue>() {
public void handle(UrlQueue entity) {
... = entity.getFoo...();
}
});
cb
- The condition-bean of UrlQueue. (NotNull)entityRowHandler
- The handler of entity row of UrlQueue. (NotNull)protected <ENTITY extends UrlQueue> void doSelectCursor(UrlQueueCB cb, org.seasar.dbflute.cbean.EntityRowHandler<ENTITY> entityRowHandler, Class<ENTITY> entityType)
public <RESULT> org.seasar.dbflute.bhv.AbstractBehaviorReadable.SLFunction<UrlQueueCB,RESULT> scalarSelect(Class<RESULT> resultType)
urlQueueBhv.scalarSelect(Date.class).max(new ScalarQuery() { public void query(UrlQueueCB 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 UrlQueueCB> 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<Long> extractIdList(List<UrlQueue> urlQueueList)
urlQueueList
- The list of urlQueue. (NotNull, EmptyAllowed)public void insert(UrlQueue urlQueue)
UrlQueue urlQueue = new UrlQueue(); // if auto-increment, you don't need to set the PK value urlQueue.setFoo...(value); urlQueue.setBar...(value); // you don't need to set values of common columns //urlQueue.setRegisterUser(value); //urlQueue.set...; urlQueueBhv.insert(urlQueue); ... = urlQueue.getPK...(); // if auto-increment, you can get the value after
While, when the entity is created by select, all columns are registered.
urlQueue
- 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(UrlQueue urlQueue, org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> option)
protected void prepareInsertOption(org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> 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(UrlQueue urlQueue)
UrlQueue urlQueue = new UrlQueue(); urlQueue.setPK...(value); // required urlQueue.setFoo...(value); // you should set only modified columns // you don't need to set values of common columns //urlQueue.setRegisterUser(value); //urlQueue.set...; // if exclusive control, the value of exclusive control column is required urlQueue.setVersionNo(value); try { urlQueueBhv.update(urlQueue); } catch (EntityAlreadyUpdatedException e) { // if concurrent update ... }
urlQueue
- 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(UrlQueue urlQueue, org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> option)
protected void prepareUpdateOption(org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> option)
protected UrlQueueCB createCBForVaryingUpdate()
protected UrlQueueCB 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(UrlQueue urlQueue)
Attention, you cannot update by unique keys instead of PK.
urlQueue
- 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(UrlQueue urlQueue, org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> insertOption, org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> 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(UrlQueue urlQueue)
UrlQueue urlQueue = new UrlQueue(); urlQueue.setPK...(value); // required // if exclusive control, the value of exclusive control column is required urlQueue.setVersionNo(value); try { urlQueueBhv.delete(urlQueue); } catch (EntityAlreadyUpdatedException e) { // if concurrent update ... }
urlQueue
- 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(UrlQueue urlQueue, org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> option)
protected void prepareDeleteOption(org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> 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<UrlQueue> urlQueueList)
The columns of least common multiple are registered like this:
for (... : ...) { UrlQueue urlQueue = new UrlQueue(); urlQueue.setFooName("foo"); if (...) { urlQueue.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 urlQueueList.add(urlQueue); } urlQueueBhv.batchInsert(urlQueueList);
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)
urlQueueList
- The list of the entity. (NotNull, EmptyAllowed,
PrimaryKeyNullAllowed: when auto-increment)protected int[] doBatchInsert(List<UrlQueue> urlQueueList, org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> option)
protected void prepareBatchInsertOption(List<UrlQueue> urlQueueList, org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> 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<UrlQueue> urlQueueList)
for (... : ...) { UrlQueue urlQueue = new UrlQueue(); urlQueue.setFooName("foo"); if (...) { urlQueue.setFooPrice(123); } else { urlQueue.setFooPrice(null); // updated as null //urlQueue.setFooDate(...); // *not allowed, fragmented } // FOO_NAME and FOO_PRICE (and record meta columns) are updated // (others are not updated: their values are kept) urlQueueList.add(urlQueue); } urlQueueBhv.batchUpdate(urlQueueList);
urlQueueList
- 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<UrlQueue> urlQueueList, org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> option)
protected void prepareBatchUpdateOption(List<UrlQueue> urlQueueList, org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> 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<UrlQueue> urlQueueList, org.seasar.dbflute.cbean.SpecifyQuery<UrlQueueCB> updateColumnSpec)
// e.g. update two columns only urlQueueBhv.batchUpdate(urlQueueList, new SpecifyQuery() { public void specify(UrlQueueCB 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 urlQueueBhv.batchUpdate(urlQueueList, new SpecifyQuery () { public void specify(UrlQueueCB 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.
urlQueueList
- 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<UrlQueue> urlQueueList)
urlQueueList
- 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<UrlQueue> urlQueueList, org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> 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<UrlQueue,UrlQueueCB> setupper)
urlQueueBhv.queryInsert(new QueryInsertSetupper<UrlQueue, UrlQueueCB>() { public ConditionBean setup(urlQueue entity, UrlQueueCB 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<UrlQueue,UrlQueueCB> setupper, org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> option)
protected UrlQueueCB 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(UrlQueue urlQueue, UrlQueueCB cb)
UrlQueue urlQueue = new UrlQueue(); // you don't need to set PK value //urlQueue.setPK...(value); urlQueue.setFoo...(value); // you should set only modified columns // you don't need to set values of common columns //urlQueue.setRegisterUser(value); //urlQueue.set...; // you don't need to set a value of exclusive control column // (auto-increment for version number is valid though non-exclusive control) //urlQueue.setVersionNo(value); UrlQueueCB cb = new UrlQueueCB(); cb.query().setFoo...(value); urlQueueBhv.queryUpdate(urlQueue, cb);
urlQueue
- The entity that contains update values. (NotNull,
PrimaryKeyNullAllowed)cb
- The condition-bean of UrlQueue. (NotNull)org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException
- When the query has no condition.protected int doQueryUpdate(UrlQueue urlQueue, UrlQueueCB cb, org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> 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(UrlQueueCB cb)
UrlQueueCB cb = new UrlQueueCB();
cb.query().setFoo...(value);
urlQueueBhv.queryDelete(urlQueue, cb);
cb
- The condition-bean of UrlQueue. (NotNull)org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException
- When the query has no condition.protected int doQueryDelete(UrlQueueCB cb, org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> 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(UrlQueue urlQueue, org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> option)
UrlQueue urlQueue = new UrlQueue(); // if auto-increment, you don't need to set the PK value urlQueue.setFoo...(value); urlQueue.setBar...(value); InsertOptionoption = new InsertOption (); // you can insert by your values for common columns option.disableCommonColumnAutoSetup(); urlQueueBhv.varyingInsert(urlQueue, option); ... = urlQueue.getPK...(); // if auto-increment, you can get the value after
urlQueue
- 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(UrlQueue urlQueue, org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> option)
UrlQueue urlQueue = new UrlQueue(); urlQueue.setPK...(value); // required urlQueue.setOther...(value); // you should set only modified columns // if exclusive control, the value of exclusive control column is required urlQueue.setVersionNo(value); try { // you can update by self calculation values UpdateOption<UrlQueueCB> option = new UpdateOption<UrlQueueCB>(); option.self(new SpecifyQuery<UrlQueueCB>() { public void specify(UrlQueueCB cb) { cb.specify().columnXxxCount(); } }).plus(1); // XXX_COUNT = XXX_COUNT + 1 urlQueueBhv.varyingUpdate(urlQueue, option); } catch (EntityAlreadyUpdatedException e) { // if concurrent update ... }
urlQueue
- 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(UrlQueue urlQueue, org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> insertOption, org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> updateOption)
urlQueue
- 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(UrlQueue urlQueue, org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> option)
urlQueue
- 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<UrlQueue> urlQueueList, org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> option)
urlQueueList
- The list of the entity. (NotNull, EmptyAllowed,
PrimaryKeyNotNull)option
- The option of insert for varying requests. (NotNull)public int[] varyingBatchUpdate(List<UrlQueue> urlQueueList, org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> option)
urlQueueList
- The list of the entity. (NotNull, EmptyAllowed,
PrimaryKeyNotNull)option
- The option of update for varying requests. (NotNull)public int[] varyingBatchDelete(List<UrlQueue> urlQueueList, org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> option)
urlQueueList
- 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<UrlQueue,UrlQueueCB> setupper, org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> option)
setupper
- The setup-per of query-insert. (NotNull)option
- The option of insert for varying requests. (NotNull)public int varyingQueryUpdate(UrlQueue urlQueue, UrlQueueCB cb, org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> option)
// ex) you can update by self calculation values UrlQueue urlQueue = new UrlQueue(); // you don't need to set PK value //urlQueue.setPK...(value); urlQueue.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) //urlQueue.setVersionNo(value); UrlQueueCB cb = new UrlQueueCB(); cb.query().setFoo...(value); UpdateOption<UrlQueueCB> option = new UpdateOption<UrlQueueCB>(); option.self(new SpecifyQuery<UrlQueueCB>() { public void specify(UrlQueueCB cb) { cb.specify().columnFooCount(); } }).plus(1); // FOO_COUNT = FOO_COUNT + 1 urlQueueBhv.varyingQueryUpdate(urlQueue, cb, option);
urlQueue
- The entity that contains update values. (NotNull)
{PrimaryKeyNotRequired}cb
- The condition-bean of UrlQueue. (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(UrlQueueCB cb, org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> option)
cb
- The condition-bean of UrlQueue. (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<UrlQueueBhv> 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(UrlQueueCB cb)
protected int delegateSelectCountPlainly(UrlQueueCB cb)
protected <ENTITY extends UrlQueue> void delegateSelectCursor(UrlQueueCB cb, org.seasar.dbflute.cbean.EntityRowHandler<ENTITY> erh, Class<ENTITY> et)
protected <ENTITY extends UrlQueue> List<ENTITY> delegateSelectList(UrlQueueCB cb, Class<ENTITY> et)
protected int delegateInsert(UrlQueue e, org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> op)
protected int delegateUpdate(UrlQueue e, org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> op)
protected int delegateUpdateNonstrict(UrlQueue e, org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> op)
protected int delegateDelete(UrlQueue e, org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> op)
protected int delegateDeleteNonstrict(UrlQueue e, org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> op)
protected int[] delegateBatchInsert(List<UrlQueue> ls, org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> op)
protected int[] delegateBatchUpdate(List<UrlQueue> ls, org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> op)
protected int[] delegateBatchUpdateNonstrict(List<UrlQueue> ls, org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> op)
protected int[] delegateBatchDelete(List<UrlQueue> ls, org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> op)
protected int[] delegateBatchDeleteNonstrict(List<UrlQueue> ls, org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> op)
protected int delegateQueryInsert(UrlQueue e, UrlQueueCB inCB, org.seasar.dbflute.cbean.ConditionBean resCB, org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> op)
protected int delegateQueryUpdate(UrlQueue e, UrlQueueCB cb, org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> op)
protected int delegateQueryDelete(UrlQueueCB cb, org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> 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 UrlQueue downcast(org.seasar.dbflute.Entity entity)
protected UrlQueueCB downcast(org.seasar.dbflute.cbean.ConditionBean cb)
protected org.seasar.dbflute.bhv.InsertOption<UrlQueueCB> downcast(org.seasar.dbflute.bhv.InsertOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
protected org.seasar.dbflute.bhv.UpdateOption<UrlQueueCB> downcast(org.seasar.dbflute.bhv.UpdateOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
protected org.seasar.dbflute.bhv.DeleteOption<UrlQueueCB> downcast(org.seasar.dbflute.bhv.DeleteOption<? extends org.seasar.dbflute.cbean.ConditionBean> option)
protected org.seasar.dbflute.bhv.QueryInsertSetupper<UrlQueue,UrlQueueCB> 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.