X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=ea2ddl-dao%2Fsrc%2Fmain%2Fjava%2Fjp%2Fsourceforge%2Fea2ddl%2Fdao%2Fbsbhv%2FBsTOperationtagBhv.java;h=9a58cc55e46e73d0d78a18d2ed4b478fb1e4b57d;hb=38e8f077bc96f58670463549b885e032cd20c4f0;hp=4e0a078a5fc2d5735ef5ee5002c57e15f2ac3b6d;hpb=385f8b8ea05f8c98bfbad39baa47c98d6b7c1a81;p=ea2ddl%2Fea2ddl.git
diff --git a/ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsbhv/BsTOperationtagBhv.java b/ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsbhv/BsTOperationtagBhv.java
index 4e0a078..9a58cc5 100644
--- a/ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsbhv/BsTOperationtagBhv.java
+++ b/ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsbhv/BsTOperationtagBhv.java
@@ -1,26 +1,25 @@
package jp.sourceforge.ea2ddl.dao.bsbhv;
-
import java.util.List;
+import org.seasar.dbflute.*;
+import org.seasar.dbflute.cbean.ConditionBean;
+import org.seasar.dbflute.cbean.EntityRowHandler;
+import org.seasar.dbflute.cbean.ListResultBean;
+import org.seasar.dbflute.cbean.PagingBean;
+import org.seasar.dbflute.cbean.PagingHandler;
+import org.seasar.dbflute.cbean.PagingInvoker;
+import org.seasar.dbflute.cbean.PagingResultBean;
+import org.seasar.dbflute.cbean.ResultBeanBuilder;
+import org.seasar.dbflute.dbmeta.DBMeta;
+import org.seasar.dbflute.jdbc.StatementConfig;
import jp.sourceforge.ea2ddl.dao.allcommon.*;
-import jp.sourceforge.ea2ddl.dao.allcommon.bhv.setup.ValueLabelSetupper;
-import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ConditionBean;
-import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ListResultBean;
-import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ResultBeanBuilder;
-import jp.sourceforge.ea2ddl.dao.allcommon.cbean.PagingHandler;
-import jp.sourceforge.ea2ddl.dao.allcommon.cbean.PagingInvoker;
-import jp.sourceforge.ea2ddl.dao.allcommon.cbean.PagingBean;
-import jp.sourceforge.ea2ddl.dao.allcommon.cbean.PagingResultBean;
-import jp.sourceforge.ea2ddl.dao.allcommon.dbmeta.DBMeta;
-import jp.sourceforge.ea2ddl.dao.exdao.*;
import jp.sourceforge.ea2ddl.dao.exentity.*;
import jp.sourceforge.ea2ddl.dao.bsentity.dbmeta.*;
import jp.sourceforge.ea2ddl.dao.cbean.*;
-
/**
- * The behavior of t_operationtag.
+ * The behavior of t_operationtag that the type is TABLE.
*
* [primary-key] * @@ -51,7 +50,7 @@ import jp.sourceforge.ea2ddl.dao.cbean.*; ** @author DBFlute(AutoGenerator) */ -public abstract class BsTOperationtagBhv extends jp.sourceforge.ea2ddl.dao.allcommon.bhv.AbstractBehaviorReadable { +public abstract class BsTOperationtagBhv extends org.seasar.dbflute.bhv.AbstractBehaviorReadable { // =================================================================================== // Definition @@ -60,11 +59,6 @@ public abstract class BsTOperationtagBhv extends jp.sourceforge.ea2ddl.dao.allco /*df:BehaviorQueryPathEnd*/ // =================================================================================== - // Attribute - // ========= - protected TOperationtagDao _dao; - - // =================================================================================== // Table name // ========== /** @return The name on database of table. (NotNull) */ @@ -73,20 +67,13 @@ public abstract class BsTOperationtagBhv extends jp.sourceforge.ea2ddl.dao.allco // =================================================================================== // DBMeta // ====== - /** @return The meta data of the database. (NotNull) */ + /** @return The instance of DBMeta. (NotNull) */ public DBMeta getDBMeta() { return TOperationtagDbm.getInstance(); } - /** @return The meta data of the database as my table type. (NotNull) */ + /** @return The instance of DBMeta as my table type. (NotNull) */ public TOperationtagDbm getMyDBMeta() { return TOperationtagDbm.getInstance(); } // =================================================================================== - // Dao Accessor - // ============ - public TOperationtagDao getMyDao() { return _dao; } - public void setMyDao(TOperationtagDao dao) { assertObjectNotNull("dao", dao); _dao = dao; } - public DaoReadable getDaoReadable() { return getMyDao(); } - - // =================================================================================== // New Instance // ============ public Entity newEntity() { return newMyEntity(); } @@ -95,17 +82,47 @@ public abstract class BsTOperationtagBhv extends jp.sourceforge.ea2ddl.dao.allco public TOperationtagCB newMyConditionBean() { return new TOperationtagCB(); } // =================================================================================== + // Current DBDef + // ============= + @Override + protected DBDef getCurrentDBDef() { + return DBCurrent.getInstance().currentDBDef(); + } + + // =================================================================================== + // Default StatementConfig + // ======================= + @Override + protected StatementConfig getDefaultStatementConfig() { + return DBFluteConfig.getInstance().getDefaultStatementConfig(); + } + + // =================================================================================== // Count Select // ============ /** - * Select the count of the condition-bean. {IgnorePagingCondition} + * Select the count by the condition-bean. {IgnorePagingCondition} * @param cb The condition-bean of TOperationtag. (NotNull) * @return The selected count. */ public int selectCount(TOperationtagCB cb) { - assertConditionBeanNotNull(cb); + assertCBNotNull(cb); return delegateSelectCount(cb); } + + // =================================================================================== + // Cursor Select + // ============= + /** + * Select the cursor by the condition-bean.
+ * tOperationtagBhv.scalarSelect(Date.class).max(new ScalarQuery(TOperationtagCB cb) { + * cb.specify().columnXxxDatetime(); // the required specification of target column + * cb.query().setXxxName_PrefixSearch("S"); // query as you like it + * }); + *+ * @param