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_issues.
\r
28 * Issue, IssueDate, Owner, Status, Notes, Resolver, DateResolved, Resolution, IssueID, Category, Priority, Severity, IssueType
\r
45 * [foreign-property]
\r
48 * [referrer-property]
\r
51 * @author DBFlute(AutoGenerator)
\r
53 public abstract class BsTIssuesBhv extends jp.sourceforge.ea2ddl.dao.allcommon.bhv.AbstractBehaviorReadable {
\r
55 // ===================================================================================
\r
58 /*df:BehaviorQueryPathBegin*/
\r
59 /*df:BehaviorQueryPathEnd*/
\r
61 // ===================================================================================
\r
64 protected TIssuesDao _dao;
\r
66 // ===================================================================================
\r
69 /** @return The name on database of table. (NotNull) */
\r
70 public String getTableDbName() { return "t_issues"; }
\r
72 // ===================================================================================
\r
75 /** @return The meta data of the database. (NotNull) */
\r
76 public DBMeta getDBMeta() { return TIssuesDbm.getInstance(); }
\r
78 /** @return The meta data of the database as my table type. (NotNull) */
\r
79 public TIssuesDbm getMyDBMeta() { return TIssuesDbm.getInstance(); }
\r
81 // ===================================================================================
\r
84 public TIssuesDao getMyDao() { return _dao; }
\r
85 public void setMyDao(TIssuesDao 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 TIssues newMyEntity() { return new TIssues(); }
\r
94 public TIssuesCB newMyConditionBean() { return new TIssuesCB(); }
\r
96 // ===================================================================================
\r
100 * Select the count of the condition-bean. {IgnorePagingCondition}
\r
101 * @param cb The condition-bean of TIssues. (NotNull)
\r
102 * @return The selected count.
\r
104 public int selectCount(TIssuesCB 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 TIssues. (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 TIssues selectEntity(final TIssuesCB cb) {
\r
119 return helpSelectEntityInternally(cb, new InternalSelectEntityCallback<TIssues, TIssuesCB>() {
\r
120 public List<TIssues> callbackSelectList(TIssuesCB cb) { return selectList(cb); } });
\r
124 * Select the entity by the condition-bean with deleted check.
\r
125 * @param cb The condition-bean of TIssues. (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 TIssues selectEntityWithDeletedCheck(final TIssuesCB cb) {
\r
131 return helpSelectEntityWithDeletedCheckInternally(cb, new InternalSelectEntityWithDeletedCheckCallback<TIssues, TIssuesCB>() {
\r
132 public List<TIssues> callbackSelectList(TIssuesCB cb) { return selectList(cb); } });
\r
136 // ===================================================================================
\r
140 * Select the list as result-bean.
\r
141 * @param cb The condition-bean of TIssues. (NotNull)
\r
142 * @return The result-bean of selected list. (NotNull)
\r
144 public ListResultBean<TIssues> selectList(TIssuesCB cb) {
\r
145 assertConditionBeanNotNull(cb);
\r
146 return new jp.sourceforge.ea2ddl.dao.allcommon.cbean.ResultBeanBuilder<TIssues>(getTableDbName()).buildListResultBean(cb, delegateSelectList(cb));
\r
149 // ===================================================================================
\r
153 * Select the page as result-bean.
\r
154 * @param cb The condition-bean of TIssues. (NotNull)
\r
155 * @return The result-bean of selected page. (NotNull)
\r
157 public PagingResultBean<TIssues> selectPage(final TIssuesCB cb) {
\r
158 assertConditionBeanNotNull(cb);
\r
159 final PagingInvoker<TIssues> invoker = new PagingInvoker<TIssues>(getTableDbName());
\r
160 final PagingHandler<TIssues> handler = new PagingHandler<TIssues>() {
\r
161 public PagingBean getPagingBean() { return cb; }
\r
162 public int count() { return selectCount(cb); }
\r
163 public List<TIssues> 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 TIssues. (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(TIssuesCB cb, ValueLabelSetupper<TIssues> valueLabelSetupper) {
\r
178 return createValueLabelList(selectList(cb), valueLabelSetupper);
\r
183 // ===================================================================================
\r
187 // ===================================================================================
\r
190 // -----------------------------------------------------
\r
193 protected int delegateSelectCount(TIssuesCB cb) { assertConditionBeanNotNull(cb); return getMyDao().selectCount(cb); }
\r
194 protected List<TIssues> delegateSelectList(TIssuesCB 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 TIssues downcast(Entity entity) {
\r
213 return helpDowncastInternally(entity, TIssues.class);
\r