X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=ea2ddl-dao%2Fsrc%2Fmain%2Fjava%2Fjp%2Fsourceforge%2Fea2ddl%2Fdao%2Fcbean%2Fbs%2FBsTPropertytypesCB.java;h=2ec6958ab88d4d2ac4b3d741f13d404234743cf2;hb=38e8f077bc96f58670463549b885e032cd20c4f0;hp=3195cf4298a81988268b532cea1c29858baabb5e;hpb=385f8b8ea05f8c98bfbad39baa47c98d6b7c1a81;p=ea2ddl%2Fea2ddl.git diff --git a/ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/cbean/bs/BsTPropertytypesCB.java b/ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/cbean/bs/BsTPropertytypesCB.java index 3195cf4..2ec6958 100644 --- a/ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/cbean/bs/BsTPropertytypesCB.java +++ b/ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/cbean/bs/BsTPropertytypesCB.java @@ -2,27 +2,48 @@ package jp.sourceforge.ea2ddl.dao.cbean.bs; import java.util.Map; -import jp.sourceforge.ea2ddl.dao.allcommon.cbean.AbstractConditionBean; -import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ConditionBean; -import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ConditionQuery; -import jp.sourceforge.ea2ddl.dao.allcommon.cbean.SubQuery; -import jp.sourceforge.ea2ddl.dao.allcommon.cbean.UnionQuery; +import org.seasar.dbflute.cbean.AbstractConditionBean; +import org.seasar.dbflute.cbean.ConditionBean; +import org.seasar.dbflute.cbean.ConditionQuery; +import org.seasar.dbflute.cbean.SubQuery; +import org.seasar.dbflute.cbean.UnionQuery; +import org.seasar.dbflute.cbean.sqlclause.SqlClause; +import org.seasar.dbflute.dbmeta.DBMetaProvider; +import jp.sourceforge.ea2ddl.dao.allcommon.DBFluteConfig; +import jp.sourceforge.ea2ddl.dao.allcommon.DBMetaInstanceHandler; +import jp.sourceforge.ea2ddl.dao.allcommon.ImplementedSqlClauseCreator; import jp.sourceforge.ea2ddl.dao.cbean.*; import jp.sourceforge.ea2ddl.dao.cbean.cq.*; /** * The base condition-bean of t_propertytypes. * @author DBFlute(AutoGenerator) - */ -@SuppressWarnings("unchecked") + */ public class BsTPropertytypesCB extends AbstractConditionBean { // =================================================================================== // Attribute // ========= + private final DBMetaProvider _dbmetaProvider = new DBMetaInstanceHandler(); protected TPropertytypesCQ _conditionQuery; // =================================================================================== + // SqlClause + // ========= + @Override + protected SqlClause createSqlClause() { + return new ImplementedSqlClauseCreator().createSqlClause(this); + } + + // =================================================================================== + // DBMeta Provider + // =============== + @Override + protected DBMetaProvider getDBMetaProvider() { + return _dbmetaProvider; + } + + // =================================================================================== // Table Name // ========== public String getTableDbName() { @@ -70,7 +91,11 @@ public class BsTPropertytypesCB extends AbstractConditionBean { return _conditionQuery; } - public ConditionQuery getConditionQueryAsInterface() { + /** + * {@inheritDoc} + * @return The conditionQuery of the local table as interface. (NotNull) + */ + public ConditionQuery localCQ() { return getConditionQuery(); } @@ -108,22 +133,6 @@ public class BsTPropertytypesCB extends AbstractConditionBean { final TPropertytypesCB cb = new TPropertytypesCB(); cb.xsetupForUnion(); unionQuery.query(cb); final TPropertytypesCQ cq = cb.query(); query().xsetUnionAllQuery(cq); } - - /** - * @param unionQuery The query of 'union'. (NotNull) - * @deprecated Sorry! Please use union(UnionQuery unionQuery). - */ - public void union(TPropertytypesCQ unionQuery) { - query().xsetUnionQuery(unionQuery); - } - - /** - * @param unionQuery The query of 'union'. (NotNull) - * @deprecated Sorry! Please use unionAll(UnionQuery unionQuery). - */ - public void unionAll(TPropertytypesCQ unionQuery) { - query().xsetUnionAllQuery(unionQuery); - } public boolean hasUnionQueryOrUnionAllQuery() { return query().hasUnionQueryOrUnionAllQuery(); @@ -140,11 +149,16 @@ public class BsTPropertytypesCB extends AbstractConditionBean { protected Specification _specification; public Specification specify() { if (_specification == null) { _specification = new Specification(this, new SpQyCall() { - public boolean has() { return true; } public TPropertytypesCQ qy() { return query(); } }, _forDeriveReferrer); } return _specification; + public boolean has() { return true; } public TPropertytypesCQ qy() { return query(); } }, _forDerivedReferrer, _forScalarSelect, _forScalarSubQuery, getDBMetaProvider()); } + return _specification; } + public static class Specification extends AbstractSpecification { protected SpQyCall _myQyCall; - public Specification(ConditionBean baseCB, SpQyCall qyCall, boolean forDeriveReferrer) { super(baseCB, qyCall, forDeriveReferrer); _myQyCall = qyCall; } + public Specification(ConditionBean baseCB, SpQyCall qyCall + , boolean forDeriveReferrer, boolean forScalarSelect, boolean forScalarSubQuery + , DBMetaProvider dbmetaProvider) + { super(baseCB, qyCall, forDeriveReferrer, forScalarSelect, forScalarSubQuery, dbmetaProvider); _myQyCall = qyCall; } public void columnProperty() { doColumn("Property"); } public void columnDescription() { doColumn("Description"); } public void columnNotes() { doColumn("Notes"); } @@ -153,6 +167,17 @@ public class BsTPropertytypesCB extends AbstractConditionBean { protected String getTableDbName() { return "t_propertytypes"; } } + // =================================================================================== + // Display SQL + // =========== + @Override + protected String getLogDateFormat() { return DBFluteConfig.getInstance().getLogDateFormat(); } + @Override + protected String getLogTimestampFormat() { return DBFluteConfig.getInstance().getLogTimestampFormat(); } + + // =================================================================================== + // Internal + // ======== // Very Internal (for Suppressing Warn about 'Not Use Import') protected String getConditionBeanClassNameInternally() { return TPropertytypesCB.class.getName(); } protected String getConditionQueryClassNameInternally() { return TPropertytypesCQ.class.getName(); }