1 package jp.sourceforge.ea2ddl.dao.bsbhv;
\r
4 import java.util.List;
\r
6 import jp.sourceforge.ea2ddl.dao.allcommon.*;
\r
7 import jp.sourceforge.ea2ddl.dao.allcommon.bhv.setup.ValueLabelSetupper;
\r
8 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ConditionBean;
\r
9 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ListResultBean;
\r
10 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.PagingHandler;
\r
11 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.PagingInvoker;
\r
12 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.PagingBean;
\r
13 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.PagingResultBean;
\r
14 import jp.sourceforge.ea2ddl.dao.allcommon.dbmeta.DBMeta;
\r
15 import jp.sourceforge.ea2ddl.dao.exdao.*;
\r
16 import jp.sourceforge.ea2ddl.dao.exentity.*;
\r
17 import jp.sourceforge.ea2ddl.dao.bsentity.dbmeta.*;
\r
18 import jp.sourceforge.ea2ddl.dao.cbean.*;
\r
22 * The behavior of t_scenariotypes.
\r
28 * ScenarioType, Description, NumericWeight, Notes
\r
45 * [foreign-property]
\r
48 * [referrer-property]
\r
51 * @author DBFlute(AutoGenerator)
\r
53 public abstract class BsTScenariotypesBhv extends jp.sourceforge.ea2ddl.dao.allcommon.bhv.AbstractBehaviorReadable {
\r
55 // ===================================================================================
\r
58 /*df:BehaviorQueryPathBegin*/
\r
59 /*df:BehaviorQueryPathEnd*/
\r
61 // ===================================================================================
\r
64 protected TScenariotypesDao _dao;
\r
66 // ===================================================================================
\r
69 /** @return The name on database of table. (NotNull) */
\r
70 public String getTableDbName() { return "t_scenariotypes"; }
\r
72 // ===================================================================================
\r
75 /** @return The meta data of the database. (NotNull) */
\r
76 public DBMeta getDBMeta() { return TScenariotypesDbm.getInstance(); }
\r
78 /** @return The meta data of the database as my table type. (NotNull) */
\r
79 public TScenariotypesDbm getMyDBMeta() { return TScenariotypesDbm.getInstance(); }
\r
81 // ===================================================================================
\r
84 public TScenariotypesDao getMyDao() { return _dao; }
\r
85 public void setMyDao(TScenariotypesDao dao) { assertObjectNotNull("dao", dao); _dao = dao; }
\r
86 public DaoReadable getDaoReadable() { return getMyDao(); }
\r
88 // ===================================================================================
\r
91 public Entity newEntity() { return newMyEntity(); }
\r
92 public ConditionBean newConditionBean() { return newMyConditionBean(); }
\r
93 public TScenariotypes newMyEntity() { return new TScenariotypes(); }
\r
94 public TScenariotypesCB newMyConditionBean() { return new TScenariotypesCB(); }
\r
96 // ===================================================================================
\r
100 * Select the count of the condition-bean. {IgnorePagingCondition}
\r
101 * @param cb The condition-bean of TScenariotypes. (NotNull)
\r
102 * @return The selected count.
\r
104 public int selectCount(TScenariotypesCB cb) {
\r
105 assertConditionBeanNotNull(cb);
\r
106 return delegateSelectCount(cb);
\r
109 // ===================================================================================
\r
113 * Select the entity by the condition-bean.
\r
114 * @param cb The condition-bean of TScenariotypes. (NotNull)
\r
115 * @return The selected entity. (Nullalble)
\r
116 * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityDuplicatedException When the entity has been duplicated.
\r
118 public TScenariotypes selectEntity(final TScenariotypesCB cb) {
\r
119 return helpSelectEntityInternally(cb, new InternalSelectEntityCallback<TScenariotypes, TScenariotypesCB>() {
\r
120 public List<TScenariotypes> callbackSelectList(TScenariotypesCB cb) { return selectList(cb); } });
\r
124 * Select the entity by the condition-bean with deleted check.
\r
125 * @param cb The condition-bean of TScenariotypes. (NotNull)
\r
126 * @return The selected entity. (NotNull)
\r
127 * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.
\r
128 * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityDuplicatedException When the entity has been duplicated.
\r
130 public TScenariotypes selectEntityWithDeletedCheck(final TScenariotypesCB cb) {
\r
131 return helpSelectEntityWithDeletedCheckInternally(cb, new InternalSelectEntityWithDeletedCheckCallback<TScenariotypes, TScenariotypesCB>() {
\r
132 public List<TScenariotypes> callbackSelectList(TScenariotypesCB cb) { return selectList(cb); } });
\r
136 // ===================================================================================
\r
140 * Select the list as result-bean.
\r
141 * @param cb The condition-bean of TScenariotypes. (NotNull)
\r
142 * @return The result-bean of selected list. (NotNull)
\r
144 public ListResultBean<TScenariotypes> selectList(TScenariotypesCB cb) {
\r
145 assertConditionBeanNotNull(cb);
\r
146 return new jp.sourceforge.ea2ddl.dao.allcommon.cbean.ResultBeanBuilder<TScenariotypes>(getTableDbName()).buildListResultBean(cb, delegateSelectList(cb));
\r
149 // ===================================================================================
\r
153 * Select the page as result-bean.
\r
154 * @param cb The condition-bean of TScenariotypes. (NotNull)
\r
155 * @return The result-bean of selected page. (NotNull)
\r
157 public PagingResultBean<TScenariotypes> selectPage(final TScenariotypesCB cb) {
\r
158 assertConditionBeanNotNull(cb);
\r
159 final PagingInvoker<TScenariotypes> invoker = new PagingInvoker<TScenariotypes>(getTableDbName());
\r
160 final PagingHandler<TScenariotypes> handler = new PagingHandler<TScenariotypes>() {
\r
161 public PagingBean getPagingBean() { return cb; }
\r
162 public int count() { return selectCount(cb); }
\r
163 public List<TScenariotypes> paging() { return selectList(cb); }
\r
165 return invoker.invokePaging(handler);
\r
168 // ===================================================================================
\r
172 * Select the list of value-label.
\r
173 * @param cb The condition-bean of TScenariotypes. (NotNull)
\r
174 * @param valueLabelSetupper The setupper of value-label. (NotNull)
\r
175 * @return The list of value-label. (NotNull)
\r
177 public List<java.util.Map<String, Object>> selectValueLabelList(TScenariotypesCB cb, ValueLabelSetupper<TScenariotypes> valueLabelSetupper) {
\r
178 return createValueLabelList(selectList(cb), valueLabelSetupper);
\r
183 // ===================================================================================
\r
187 // ===================================================================================
\r
190 // -----------------------------------------------------
\r
193 protected int delegateSelectCount(TScenariotypesCB cb) { assertConditionBeanNotNull(cb); return getMyDao().selectCount(cb); }
\r
194 protected List<TScenariotypes> delegateSelectList(TScenariotypesCB cb) { assertConditionBeanNotNull(cb); return getMyDao().selectList(cb); }
\r
196 // ===================================================================================
\r
197 // Optimistic Lock Info
\r
198 // ====================
\r
200 protected boolean hasVersionNoValue(Entity entity) {
\r
205 protected boolean hasUpdateDateValue(Entity entity) {
\r
209 // ===================================================================================
\r
212 protected TScenariotypes downcast(Entity entity) {
\r
213 return helpDowncastInternally(entity, TScenariotypes.class);
\r