OSDN Git Service

作業中
authortaktos9 <taktos9@136db618-7844-41ca-8ac1-fb3fd040db1d>
Wed, 22 Oct 2008 16:46:33 +0000 (16:46 +0000)
committertaktos9 <taktos9@136db618-7844-41ca-8ac1-fb3fd040db1d>
Wed, 22 Oct 2008 16:46:33 +0000 (16:46 +0000)
git-svn-id: http://svn.sourceforge.jp/svnroot/ea2ddl/trunk/ea2ddl@44 136db618-7844-41ca-8ac1-fb3fd040db1d

25 files changed:
ea2ddl-dao/.settings/org.eclipse.jdt.ui.prefs
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsbhv/BsTConnectorBhv.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsbhv/BsTObjectBhv.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsbhv/BsTOperationBhv.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsdao/BsTConnectorDao.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsdao/BsTObjectDao.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsdao/BsTOperationDao.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsentity/BsTConnector.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsentity/BsTObject.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsentity/BsTOperation.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsentity/dbmeta/TConnectorDbm.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsentity/dbmeta/TObjectDbm.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/bsentity/dbmeta/TOperationDbm.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/cbean/bs/BsTConnectorCB.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/cbean/bs/BsTObjectCB.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/cbean/bs/BsTOperationCB.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/cbean/cq/bs/AbstractBsTConnectorCQ.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/cbean/cq/bs/AbstractBsTObjectCQ.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/cbean/cq/bs/AbstractBsTOperationCQ.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/exbhv/TAttributeBhv.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/exbhv/TObjectconstraintBhv.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/exbhv/TObjectpropertiesBhv.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/exbhv/TOperationBhv.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/exbhv/TOperationparamsBhv.java
ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/exentity/TOperation.java

index 883c897..35d5c40 100644 (file)
@@ -1,5 +1,6 @@
-#Tue Oct 14 02:03:40 JST 2008\r
+#Wed Oct 22 14:49:17 JST 2008\r
 eclipse.preferences.version=1\r
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true\r
 org.eclipse.jdt.ui.exception.name=e\r
 org.eclipse.jdt.ui.gettersetter.use.is=true\r
 org.eclipse.jdt.ui.ignorelowercasenames=true\r
@@ -9,3 +10,54 @@ org.eclipse.jdt.ui.ondemandthreshold=99
 org.eclipse.jdt.ui.overrideannotation=true\r
 org.eclipse.jdt.ui.staticondemandthreshold=99\r
 org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>\r
+sp_cleanup.add_default_serial_version_id=true\r
+sp_cleanup.add_generated_serial_version_id=false\r
+sp_cleanup.add_missing_annotations=true\r
+sp_cleanup.add_missing_deprecated_annotations=true\r
+sp_cleanup.add_missing_methods=false\r
+sp_cleanup.add_missing_nls_tags=false\r
+sp_cleanup.add_missing_override_annotations=true\r
+sp_cleanup.add_serial_version_id=false\r
+sp_cleanup.always_use_blocks=true\r
+sp_cleanup.always_use_parentheses_in_expressions=false\r
+sp_cleanup.always_use_this_for_non_static_field_access=false\r
+sp_cleanup.always_use_this_for_non_static_method_access=false\r
+sp_cleanup.convert_to_enhanced_for_loop=false\r
+sp_cleanup.correct_indentation=false\r
+sp_cleanup.format_source_code=true\r
+sp_cleanup.format_source_code_changes_only=false\r
+sp_cleanup.make_local_variable_final=false\r
+sp_cleanup.make_parameters_final=false\r
+sp_cleanup.make_private_fields_final=true\r
+sp_cleanup.make_type_abstract_if_missing_method=false\r
+sp_cleanup.make_variable_declarations_final=true\r
+sp_cleanup.never_use_blocks=false\r
+sp_cleanup.never_use_parentheses_in_expressions=true\r
+sp_cleanup.on_save_use_additional_actions=false\r
+sp_cleanup.organize_imports=true\r
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false\r
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true\r
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true\r
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false\r
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false\r
+sp_cleanup.remove_private_constructors=true\r
+sp_cleanup.remove_trailing_whitespaces=false\r
+sp_cleanup.remove_trailing_whitespaces_all=true\r
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false\r
+sp_cleanup.remove_unnecessary_casts=true\r
+sp_cleanup.remove_unnecessary_nls_tags=false\r
+sp_cleanup.remove_unused_imports=false\r
+sp_cleanup.remove_unused_local_variables=false\r
+sp_cleanup.remove_unused_private_fields=true\r
+sp_cleanup.remove_unused_private_members=false\r
+sp_cleanup.remove_unused_private_methods=true\r
+sp_cleanup.remove_unused_private_types=true\r
+sp_cleanup.sort_members=false\r
+sp_cleanup.sort_members_all=false\r
+sp_cleanup.use_blocks=false\r
+sp_cleanup.use_blocks_only_for_return_and_throw=false\r
+sp_cleanup.use_parentheses_in_expressions=false\r
+sp_cleanup.use_this_for_non_static_field_access=false\r
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true\r
+sp_cleanup.use_this_for_non_static_method_access=false\r
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true\r
index 9112fe6..8257805 100644 (file)
@@ -23,7 +23,7 @@ import jp.sourceforge.ea2ddl.dao.cbean.*;
  * The behavior of t_connector.
  * <pre>
  * [primary-key]
- *     
+ *     Connector_ID
  * 
  * [column]
  *     Connector_ID, Name, Direction, Notes, Connector_Type, SubType, SourceCard, SourceAccess, SourceElement, DestCard, DestAccess, DestElement, SourceRole, SourceRoleType, SourceRoleNote, SourceContainment, SourceIsAggregate, SourceIsOrdered, SourceQualifier, DestRole, DestRoleType, DestRoleNote, DestContainment, DestIsAggregate, DestIsOrdered, DestQualifier, Start_Object_ID, End_Object_ID, Top_Start_Label, Top_Mid_Label, Top_End_Label, Btm_Start_Label, Btm_Mid_Label, Btm_End_Label, Start_Edge, End_Edge, PtStartX, PtStartY, PtEndX, PtEndY, SeqNo, HeadStyle, LineStyle, RouteStyle, IsBold, LineColor, Stereotype, VirtualInheritance, LinkAccess, PDATA1, PDATA2, PDATA3, PDATA4, PDATA5, DiagramID, ea_guid, SourceConstraint, DestConstraint, SourceIsNavigable, DestIsNavigable, IsRoot, IsLeaf, IsSpec, SourceChangeable, DestChangeable, SourceTS, DestTS, StateFlags, ActionFlags, IsSignal, IsStimulus, DispatchAction, Target2, StyleEx, SourceStereotype, DestStereotype, SourceStyle, DestStyle, EventFlags
@@ -51,7 +51,7 @@ import jp.sourceforge.ea2ddl.dao.cbean.*;
  * </pre>
  * @author DBFlute(AutoGenerator)
  */
-public abstract class BsTConnectorBhv extends jp.sourceforge.ea2ddl.dao.allcommon.bhv.AbstractBehaviorReadable {
+public abstract class BsTConnectorBhv extends jp.sourceforge.ea2ddl.dao.allcommon.bhv.AbstractBehaviorWritable {
 
     // ===================================================================================
     //                                                                          Definition
@@ -86,6 +86,7 @@ public abstract class BsTConnectorBhv extends jp.sourceforge.ea2ddl.dao.allcommo
     public TConnectorDao getMyDao() { return _dao; }
     public void setMyDao(TConnectorDao dao) { assertObjectNotNull("dao", dao); _dao = dao; }
     public DaoReadable getDaoReadable() { return getMyDao(); }
+    public DaoWritable getDaoWritable() { return getMyDao(); }
 
     // ===================================================================================
     //                                                                        New Instance
@@ -134,6 +135,20 @@ public abstract class BsTConnectorBhv extends jp.sourceforge.ea2ddl.dao.allcommo
             public List<TConnector> callbackSelectList(TConnectorCB cb) { return selectList(cb); } });
     }
 
+    /* (non-javadoc)
+     * Select the entity with deleted check. {by primary-key value}
+     * @param primaryKey The keys of primary.
+     * @return The selected entity. (NotNull)
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityDuplicatedException When the entity has been duplicated.
+     */
+    public TConnector selectByPKValueWithDeletedCheck(java.lang.Integer connectorId) {
+        TConnector entity = new TConnector();
+        entity.setConnectorId(connectorId);
+        final TConnectorCB cb = newMyConditionBean();
+        cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(entity));
+        return selectEntityWithDeletedCheck(cb);
+    }
 
     // ===================================================================================
     //                                                                         List Select
@@ -181,6 +196,9 @@ public abstract class BsTConnectorBhv extends jp.sourceforge.ea2ddl.dao.allcommo
     }
 
 
+    // ===================================================================================
+    //                                                                       Load Referrer
+    //                                                                       =============
 
     // ===================================================================================
     //                                                                     Pullout Foreign
@@ -221,7 +239,156 @@ public abstract class BsTConnectorBhv extends jp.sourceforge.ea2ddl.dao.allcommo
         return helpPulloutInternally(tConnectorList, new InternalPulloutCallback<TConnector, TObject>() {
             public TObject callbackGetForeignEntity(TConnector entity) { return entity.getTObjectByEndObjectId(); } });
     }
-  
+
+    // ===================================================================================
+    //                                                                       Entity Update
+    //                                                                       =============
+    /**
+     * Insert the entity.
+     * @param tConnector The entity of insert target. (NotNull)
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyExistsException When the entity already exists. (Unique Constraint Violation)
+     */
+    public void insert(TConnector tConnector) {
+        assertEntityNotNull(tConnector);
+        delegateInsert(tConnector);
+    }
+
+    @Override
+    protected void doCreate(Entity tConnector) {
+        insert((TConnector)tConnector);
+    }
+
+    /**
+     * Update the entity modified-only. {UpdateCountZeroException, ConcurrencyControl}
+     * @param tConnector The entity of update target. (NotNull) {PrimaryKeyRequired, ConcurrencyColumnRequired}
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityDuplicatedException When the entity has been duplicated.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyExistsException When the entity already exists. (Unique Constraint Violation)
+     */
+    public void update(final TConnector tConnector) {
+        helpUpdateInternally(tConnector, new InternalUpdateCallback<TConnector>() {
+            public int callbackDelegateUpdate(TConnector entity) { return delegateUpdate(entity); } });
+    }
+
+    @Override
+    protected void doModify(Entity entity) {
+        update((TConnector)entity);
+    }
+
+    @Override
+    protected void doModifyNonstrict(Entity entity) {
+        update((TConnector)entity);
+    }
+
+    /**
+     * Insert or update the entity modified-only. {ConcurrencyControl(when update)}
+     * @param tConnector The entity of insert or update target. (NotNull)
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityDuplicatedException When the entity has been duplicated.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyExistsException When the entity already exists. (Unique Constraint Violation)
+     */
+    public void insertOrUpdate(final TConnector tConnector) {
+        helpInsertOrUpdateInternally(tConnector, new InternalInsertOrUpdateCallback<TConnector, TConnectorCB>() {
+            public void callbackInsert(TConnector entity) { insert(entity); }
+            public void callbackUpdate(TConnector entity) { update(entity); }
+            public TConnectorCB callbackNewMyConditionBean() { return newMyConditionBean(); }
+            public int callbackSelectCount(TConnectorCB cb) { return selectCount(cb); }
+        });
+    }
+
+    @Override
+    protected void doCreateOrUpdate(Entity tConnector) {
+        insertOrUpdate((TConnector)tConnector);
+    }
+
+    @Override
+    protected void doCreateOrUpdateNonstrict(Entity entity) {
+        insertOrUpdate((TConnector)entity);
+    }
+
+    /**
+     * Delete the entity. {UpdateCountZeroException, ConcurrencyControl}
+     * @param tConnector The entity of delete target. (NotNull) {PrimaryKeyRequired, ConcurrencyColumnRequired}
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityDuplicatedException When the entity has been duplicated.
+     */
+    public void delete(TConnector tConnector) {
+        helpDeleteInternally(tConnector, new InternalDeleteCallback<TConnector>() {
+            public int callbackDelegateDelete(TConnector entity) { return delegateDelete(entity); } });
+    }
+
+    @Override
+    protected void doRemove(Entity tConnector) {
+        delete((TConnector)tConnector);
+    }
+
+    // ===================================================================================
+    //                                                                        Batch Update
+    //                                                                        ============
+    /**
+     * Batch insert the list. This method use 'Batch Update' of java.sql.PreparedStatement.
+     * @param tConnectorList The list of the entity. (NotNull)
+     * @return The array of inserted count.
+     */
+    public int[] batchInsert(List<TConnector> tConnectorList) {
+        assertObjectNotNull("tConnectorList", tConnectorList);
+        return delegateInsertList(tConnectorList);
+    }
+
+    /**
+     * Batch update the list. All columns are update target. {NOT modified only} <br />
+     * This method use 'Batch Update' of java.sql.PreparedStatement.
+     * @param tConnectorList The list of the entity. (NotNull)
+     * @return The array of updated count.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.
+     */
+    public int[] batchUpdate(List<TConnector> tConnectorList) {
+        assertObjectNotNull("tConnectorList", tConnectorList);
+        return delegateUpdateList(tConnectorList);
+    }
+
+    /**
+     * Batch delete the list. <br />
+     * This method use 'Batch Update' of java.sql.PreparedStatement.
+     * @param tConnectorList The list of the entity. (NotNull)
+     * @return The array of deleted count.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.
+     */
+    public int[] batchDelete(List<TConnector> tConnectorList) {
+        assertObjectNotNull("tConnectorList", tConnectorList);
+        return delegateDeleteList(tConnectorList);
+    }
+
+    // ===================================================================================
+    //                                                                        Query Update
+    //                                                                        ============
+    /**
+     * Query update the several entities. {NoConcurrencyControl}
+     * @param tConnector Entity. (NotNull) {PrimaryKeyNotRequired}
+     * @param cb Condition-bean. (NotNull)
+     * @return The updated count.
+     */
+    public int queryUpdate(TConnector tConnector, TConnectorCB cb) {
+        assertObjectNotNull("tConnector", tConnector); assertConditionBeanNotNull(cb);
+        setupCommonColumnOfUpdateIfNeeds(tConnector);
+        filterEntityOfUpdate(tConnector); assertEntityOfUpdate(tConnector);
+        return getMyDao().updateByQuery(cb, tConnector);
+    }
+
+    /**
+     * Query delete the several entities. {NoConcurrencyControl}
+     * @param cb Condition-bean. (NotNull)
+     * @return The deleted count.
+     */
+    public int queryDelete(TConnectorCB cb) {
+        assertConditionBeanNotNull(cb);
+        return getMyDao().deleteByQuery(cb);
+    }
+
+    // ===================================================================================
+    //                                                                      Various Update
+    //                                                                      ==============
+
     // ===================================================================================
     //                                                                     Delegate Method
     //                                                                     ===============
@@ -231,6 +398,23 @@ public abstract class BsTConnectorBhv extends jp.sourceforge.ea2ddl.dao.allcommo
     protected int delegateSelectCount(TConnectorCB cb) { assertConditionBeanNotNull(cb); return getMyDao().selectCount(cb); }
     protected List<TConnector> delegateSelectList(TConnectorCB cb) { assertConditionBeanNotNull(cb); return getMyDao().selectList(cb); }
 
+    // -----------------------------------------------------
+    //                                                Update
+    //                                                ------
+    protected int delegateInsert(TConnector e) { if (!processBeforeInsert(e)) { return 1; } return getMyDao().insert(e); }
+    protected int delegateUpdate(TConnector e) { if (!processBeforeUpdate(e)) { return 1; } return getMyDao().updateModifiedOnly(e); }
+    protected int delegateDelete(TConnector e) { if (!processBeforeDelete(e)) { return 1; } return getMyDao().delete(e); }
+
+    protected int[] delegateInsertList(List<TConnector> ls) {
+        assertObjectNotNull("tConnectorList", ls); return getMyDao().insertList(helpFilterBeforeInsertInternally(ls));
+    }
+    protected int[] delegateUpdateList(List<TConnector> ls) {
+        assertObjectNotNull("tConnectorList", ls); return getMyDao().updateList(helpFilterBeforeUpdateInternally(ls));
+    }
+    protected int[] delegateDeleteList(List<TConnector> ls) {
+        assertObjectNotNull("tConnectorList", ls); return getMyDao().deleteList(helpFilterBeforeDeleteInternally(ls));
+    }
+
     // ===================================================================================
     //                                                                Optimistic Lock Info
     //                                                                ====================
index 471678c..07cfce4 100644 (file)
@@ -4,6 +4,8 @@ package jp.sourceforge.ea2ddl.dao.bsbhv;
 import java.util.List;
 
 import jp.sourceforge.ea2ddl.dao.allcommon.*;
+import jp.sourceforge.ea2ddl.dao.allcommon.bhv.load.LoadReferrerOption;
+import jp.sourceforge.ea2ddl.dao.allcommon.bhv.setup.ConditionBeanSetupper;
 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;
@@ -13,6 +15,7 @@ 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.exbhv.*;
 import jp.sourceforge.ea2ddl.dao.exdao.*;
 import jp.sourceforge.ea2ddl.dao.exentity.*;
 import jp.sourceforge.ea2ddl.dao.bsentity.dbmeta.*;
@@ -23,7 +26,7 @@ import jp.sourceforge.ea2ddl.dao.cbean.*;
  * The behavior of t_object.
  * <pre>
  * [primary-key]
- *     
+ *     Object_ID
  * 
  * [column]
  *     Object_ID, Object_Type, Diagram_ID, Name, Alias, Author, Version, Note, Package_ID, Stereotype, NType, Complexity, Effort, Style, Backcolor, BorderStyle, BorderWidth, Fontcolor, Bordercolor, CreatedDate, ModifiedDate, Status, Tagged, PDATA1, PDATA2, PDATA3, PDATA4, PDATA5, Concurrency, Visibility, Persistence, Cardinality, GenType, GenFile, Header1, Header2, Phase, Scope, GenOption, GenLinks, Classifier, ea_guid, ParentID, RunState, Classifier_guid, TPos, IsRoot, IsLeaf, IsSpec, IsActive, StateFlags, PackageFlags, Multiplicity, StyleEx, ActionFlags, EventFlags
@@ -41,17 +44,17 @@ import jp.sourceforge.ea2ddl.dao.cbean.*;
  *     
  * 
  * [referrer-table]
- *     
+ *     t_objectproperties, t_attribute, t_operation, t_connector
  * 
  * [foreign-property]
  *     
  * 
  * [referrer-property]
- *     
+ *     tObjectpropertiesList, tAttributeList, tOperationList, tConnectorByStartObjectIdList, tConnectorByEndObjectIdList
  * </pre>
  * @author DBFlute(AutoGenerator)
  */
-public abstract class BsTObjectBhv extends jp.sourceforge.ea2ddl.dao.allcommon.bhv.AbstractBehaviorReadable {
+public abstract class BsTObjectBhv extends jp.sourceforge.ea2ddl.dao.allcommon.bhv.AbstractBehaviorWritable {
 
     // ===================================================================================
     //                                                                          Definition
@@ -87,6 +90,7 @@ public abstract class BsTObjectBhv extends jp.sourceforge.ea2ddl.dao.allcommon.b
     public TObjectDao getMyDao() { return _dao; }
     public void setMyDao(TObjectDao dao) { assertObjectNotNull("dao", dao); _dao = dao; }
     public DaoReadable getDaoReadable() { return getMyDao(); }
+    public DaoWritable getDaoWritable() { return getMyDao(); }
 
     // ===================================================================================
     //                                                                        New Instance
@@ -135,6 +139,20 @@ public abstract class BsTObjectBhv extends jp.sourceforge.ea2ddl.dao.allcommon.b
             public List<TObject> callbackSelectList(TObjectCB cb) { return selectList(cb); } });
     }
 
+    /* (non-javadoc)
+     * Select the entity with deleted check. {by primary-key value}
+     * @param primaryKey The keys of primary.
+     * @return The selected entity. (NotNull)
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityDuplicatedException When the entity has been duplicated.
+     */
+    public TObject selectByPKValueWithDeletedCheck(java.lang.Integer objectId) {
+        TObject entity = new TObject();
+        entity.setObjectId(objectId);
+        final TObjectCB cb = newMyConditionBean();
+        cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(entity));
+        return selectEntityWithDeletedCheck(cb);
+    }
 
     // ===================================================================================
     //                                                                         List Select
@@ -182,11 +200,353 @@ public abstract class BsTObjectBhv extends jp.sourceforge.ea2ddl.dao.allcommon.b
     }
 
 
+    // ===================================================================================
+    //                                                                       Load Referrer
+    //                                                                       =============
+    /**
+     * Load referrer of TObjectpropertiesList with the setupper for condition-bean of referrer. <br />
+     * About internal policy, the value of primary key(and others too) is treated as case-insensitive. <br />
+     * The condition-bean that the setupper provides have settings before you touch it. It is as follows:
+     * <pre>
+     * cb.query().setObjectId_InScope(pkList);
+     * cb.query().addOrderBy_ObjectId_Asc();
+     * </pre>
+     * @param tObjectList The entity list of TObject. (NotNull)
+     * @param conditionBeanSetupper The instance of referrer condition-bean setupper for registering referrer condition. (NotNull)
+     */
+    public void loadTObjectpropertiesList(List<TObject> tObjectList, ConditionBeanSetupper<TObjectpropertiesCB> conditionBeanSetupper) {
+        assertObjectNotNull("tObjectList<TObject>", tObjectList);
+        assertObjectNotNull("conditionBeanSetupper<TObjectpropertiesCB>", conditionBeanSetupper);
+        if (tObjectList.isEmpty()) { return; }
+        loadTObjectpropertiesList(tObjectList, new LoadReferrerOption<TObjectpropertiesCB, TObjectproperties>(conditionBeanSetupper));
+    }
+    /**
+     * {Refer to overload method that has an argument of condition-bean setupper.}
+     * @param tObjectList The entity list of TObject. (NotNull)
+     * @param loadReferrerOption The option of load-referrer. (NotNull)
+     */
+    public void loadTObjectpropertiesList(List<TObject> tObjectList, LoadReferrerOption<TObjectpropertiesCB, TObjectproperties> loadReferrerOption) {
+        assertObjectNotNull("tObjectList<TObject>", tObjectList);
+        assertObjectNotNull("loadReferrerOption<TObjectproperties, TObjectpropertiesCB>", loadReferrerOption);
+        if (tObjectList.isEmpty()) { return; }
+        final TObjectpropertiesBhv referrerBhv = xgetBSFLR().select(TObjectpropertiesBhv.class);
+        helpLoadReferrerInternally(tObjectList, loadReferrerOption, new InternalLoadReferrerCallback<TObject, java.lang.Integer, TObjectpropertiesCB, TObjectproperties>() {
+            public java.lang.Integer callbackBase_getPrimaryKeyValue(TObject entity) { return entity.getObjectId(); }
+            public void callbackBase_setReferrerList(TObject entity, List<TObjectproperties> referrerList) { entity.setTObjectpropertiesList(referrerList); }
+            public TObjectpropertiesCB callbackReferrer_newMyConditionBean() { return referrerBhv.newMyConditionBean(); }
+            public void callbackReferrer_queryForeignKeyInScope(TObjectpropertiesCB cb, List<java.lang.Integer> pkList) { cb.query().setObjectId_InScope(pkList); }
+            public void callbackReferrer_queryAddOrderByForeignKeyAsc(TObjectpropertiesCB cb) { cb.query().addOrderBy_ObjectId_Asc(); }
+            public List<TObjectproperties> callbackReferrer_selectList(TObjectpropertiesCB cb) { return referrerBhv.selectList(cb); }
+            public java.lang.Integer callbackReferrer_getForeignKeyValue(TObjectproperties entity) { return entity.getObjectId(); }
+            public void callbackReferrer_setForeignEntity(TObjectproperties referrerEntity, TObject baseEntity) { referrerEntity.setTObject(baseEntity); }
+        } );
+    }
+    /**
+     * Load referrer of TAttributeList with the setupper for condition-bean of referrer. <br />
+     * About internal policy, the value of primary key(and others too) is treated as case-insensitive. <br />
+     * The condition-bean that the setupper provides have settings before you touch it. It is as follows:
+     * <pre>
+     * cb.query().setObjectId_InScope(pkList);
+     * cb.query().addOrderBy_ObjectId_Asc();
+     * </pre>
+     * @param tObjectList The entity list of TObject. (NotNull)
+     * @param conditionBeanSetupper The instance of referrer condition-bean setupper for registering referrer condition. (NotNull)
+     */
+    public void loadTAttributeList(List<TObject> tObjectList, ConditionBeanSetupper<TAttributeCB> conditionBeanSetupper) {
+        assertObjectNotNull("tObjectList<TObject>", tObjectList);
+        assertObjectNotNull("conditionBeanSetupper<TAttributeCB>", conditionBeanSetupper);
+        if (tObjectList.isEmpty()) { return; }
+        loadTAttributeList(tObjectList, new LoadReferrerOption<TAttributeCB, TAttribute>(conditionBeanSetupper));
+    }
+    /**
+     * {Refer to overload method that has an argument of condition-bean setupper.}
+     * @param tObjectList The entity list of TObject. (NotNull)
+     * @param loadReferrerOption The option of load-referrer. (NotNull)
+     */
+    public void loadTAttributeList(List<TObject> tObjectList, LoadReferrerOption<TAttributeCB, TAttribute> loadReferrerOption) {
+        assertObjectNotNull("tObjectList<TObject>", tObjectList);
+        assertObjectNotNull("loadReferrerOption<TAttribute, TAttributeCB>", loadReferrerOption);
+        if (tObjectList.isEmpty()) { return; }
+        final TAttributeBhv referrerBhv = xgetBSFLR().select(TAttributeBhv.class);
+        helpLoadReferrerInternally(tObjectList, loadReferrerOption, new InternalLoadReferrerCallback<TObject, java.lang.Integer, TAttributeCB, TAttribute>() {
+            public java.lang.Integer callbackBase_getPrimaryKeyValue(TObject entity) { return entity.getObjectId(); }
+            public void callbackBase_setReferrerList(TObject entity, List<TAttribute> referrerList) { entity.setTAttributeList(referrerList); }
+            public TAttributeCB callbackReferrer_newMyConditionBean() { return referrerBhv.newMyConditionBean(); }
+            public void callbackReferrer_queryForeignKeyInScope(TAttributeCB cb, List<java.lang.Integer> pkList) { cb.query().setObjectId_InScope(pkList); }
+            public void callbackReferrer_queryAddOrderByForeignKeyAsc(TAttributeCB cb) { cb.query().addOrderBy_ObjectId_Asc(); }
+            public List<TAttribute> callbackReferrer_selectList(TAttributeCB cb) { return referrerBhv.selectList(cb); }
+            public java.lang.Integer callbackReferrer_getForeignKeyValue(TAttribute entity) { return entity.getObjectId(); }
+            public void callbackReferrer_setForeignEntity(TAttribute referrerEntity, TObject baseEntity) { referrerEntity.setTObject(baseEntity); }
+        } );
+    }
+    /**
+     * Load referrer of TOperationList with the setupper for condition-bean of referrer. <br />
+     * About internal policy, the value of primary key(and others too) is treated as case-insensitive. <br />
+     * The condition-bean that the setupper provides have settings before you touch it. It is as follows:
+     * <pre>
+     * cb.query().setObjectId_InScope(pkList);
+     * cb.query().addOrderBy_ObjectId_Asc();
+     * </pre>
+     * @param tObjectList The entity list of TObject. (NotNull)
+     * @param conditionBeanSetupper The instance of referrer condition-bean setupper for registering referrer condition. (NotNull)
+     */
+    public void loadTOperationList(List<TObject> tObjectList, ConditionBeanSetupper<TOperationCB> conditionBeanSetupper) {
+        assertObjectNotNull("tObjectList<TObject>", tObjectList);
+        assertObjectNotNull("conditionBeanSetupper<TOperationCB>", conditionBeanSetupper);
+        if (tObjectList.isEmpty()) { return; }
+        loadTOperationList(tObjectList, new LoadReferrerOption<TOperationCB, TOperation>(conditionBeanSetupper));
+    }
+    /**
+     * {Refer to overload method that has an argument of condition-bean setupper.}
+     * @param tObjectList The entity list of TObject. (NotNull)
+     * @param loadReferrerOption The option of load-referrer. (NotNull)
+     */
+    public void loadTOperationList(List<TObject> tObjectList, LoadReferrerOption<TOperationCB, TOperation> loadReferrerOption) {
+        assertObjectNotNull("tObjectList<TObject>", tObjectList);
+        assertObjectNotNull("loadReferrerOption<TOperation, TOperationCB>", loadReferrerOption);
+        if (tObjectList.isEmpty()) { return; }
+        final TOperationBhv referrerBhv = xgetBSFLR().select(TOperationBhv.class);
+        helpLoadReferrerInternally(tObjectList, loadReferrerOption, new InternalLoadReferrerCallback<TObject, java.lang.Integer, TOperationCB, TOperation>() {
+            public java.lang.Integer callbackBase_getPrimaryKeyValue(TObject entity) { return entity.getObjectId(); }
+            public void callbackBase_setReferrerList(TObject entity, List<TOperation> referrerList) { entity.setTOperationList(referrerList); }
+            public TOperationCB callbackReferrer_newMyConditionBean() { return referrerBhv.newMyConditionBean(); }
+            public void callbackReferrer_queryForeignKeyInScope(TOperationCB cb, List<java.lang.Integer> pkList) { cb.query().setObjectId_InScope(pkList); }
+            public void callbackReferrer_queryAddOrderByForeignKeyAsc(TOperationCB cb) { cb.query().addOrderBy_ObjectId_Asc(); }
+            public List<TOperation> callbackReferrer_selectList(TOperationCB cb) { return referrerBhv.selectList(cb); }
+            public java.lang.Integer callbackReferrer_getForeignKeyValue(TOperation entity) { return entity.getObjectId(); }
+            public void callbackReferrer_setForeignEntity(TOperation referrerEntity, TObject baseEntity) { referrerEntity.setTObject(baseEntity); }
+        } );
+    }
+    /**
+     * Load referrer of TConnectorByStartObjectIdList with the setupper for condition-bean of referrer. <br />
+     * About internal policy, the value of primary key(and others too) is treated as case-insensitive. <br />
+     * The condition-bean that the setupper provides have settings before you touch it. It is as follows:
+     * <pre>
+     * cb.query().setStartObjectId_InScope(pkList);
+     * cb.query().addOrderBy_StartObjectId_Asc();
+     * </pre>
+     * @param tObjectList The entity list of TObject. (NotNull)
+     * @param conditionBeanSetupper The instance of referrer condition-bean setupper for registering referrer condition. (NotNull)
+     */
+    public void loadTConnectorByStartObjectIdList(List<TObject> tObjectList, ConditionBeanSetupper<TConnectorCB> conditionBeanSetupper) {
+        assertObjectNotNull("tObjectList<TObject>", tObjectList);
+        assertObjectNotNull("conditionBeanSetupper<TConnectorCB>", conditionBeanSetupper);
+        if (tObjectList.isEmpty()) { return; }
+        loadTConnectorByStartObjectIdList(tObjectList, new LoadReferrerOption<TConnectorCB, TConnector>(conditionBeanSetupper));
+    }
+    /**
+     * {Refer to overload method that has an argument of condition-bean setupper.}
+     * @param tObjectList The entity list of TObject. (NotNull)
+     * @param loadReferrerOption The option of load-referrer. (NotNull)
+     */
+    public void loadTConnectorByStartObjectIdList(List<TObject> tObjectList, LoadReferrerOption<TConnectorCB, TConnector> loadReferrerOption) {
+        assertObjectNotNull("tObjectList<TObject>", tObjectList);
+        assertObjectNotNull("loadReferrerOption<TConnector, TConnectorCB>", loadReferrerOption);
+        if (tObjectList.isEmpty()) { return; }
+        final TConnectorBhv referrerBhv = xgetBSFLR().select(TConnectorBhv.class);
+        helpLoadReferrerInternally(tObjectList, loadReferrerOption, new InternalLoadReferrerCallback<TObject, java.lang.Integer, TConnectorCB, TConnector>() {
+            public java.lang.Integer callbackBase_getPrimaryKeyValue(TObject entity) { return entity.getObjectId(); }
+            public void callbackBase_setReferrerList(TObject entity, List<TConnector> referrerList) { entity.setTConnectorByStartObjectIdList(referrerList); }
+            public TConnectorCB callbackReferrer_newMyConditionBean() { return referrerBhv.newMyConditionBean(); }
+            public void callbackReferrer_queryForeignKeyInScope(TConnectorCB cb, List<java.lang.Integer> pkList) { cb.query().setStartObjectId_InScope(pkList); }
+            public void callbackReferrer_queryAddOrderByForeignKeyAsc(TConnectorCB cb) { cb.query().addOrderBy_StartObjectId_Asc(); }
+            public List<TConnector> callbackReferrer_selectList(TConnectorCB cb) { return referrerBhv.selectList(cb); }
+            public java.lang.Integer callbackReferrer_getForeignKeyValue(TConnector entity) { return entity.getStartObjectId(); }
+            public void callbackReferrer_setForeignEntity(TConnector referrerEntity, TObject baseEntity) { referrerEntity.setTObjectByStartObjectId(baseEntity); }
+        } );
+    }
+    /**
+     * Load referrer of TConnectorByEndObjectIdList with the setupper for condition-bean of referrer. <br />
+     * About internal policy, the value of primary key(and others too) is treated as case-insensitive. <br />
+     * The condition-bean that the setupper provides have settings before you touch it. It is as follows:
+     * <pre>
+     * cb.query().setEndObjectId_InScope(pkList);
+     * cb.query().addOrderBy_EndObjectId_Asc();
+     * </pre>
+     * @param tObjectList The entity list of TObject. (NotNull)
+     * @param conditionBeanSetupper The instance of referrer condition-bean setupper for registering referrer condition. (NotNull)
+     */
+    public void loadTConnectorByEndObjectIdList(List<TObject> tObjectList, ConditionBeanSetupper<TConnectorCB> conditionBeanSetupper) {
+        assertObjectNotNull("tObjectList<TObject>", tObjectList);
+        assertObjectNotNull("conditionBeanSetupper<TConnectorCB>", conditionBeanSetupper);
+        if (tObjectList.isEmpty()) { return; }
+        loadTConnectorByEndObjectIdList(tObjectList, new LoadReferrerOption<TConnectorCB, TConnector>(conditionBeanSetupper));
+    }
+    /**
+     * {Refer to overload method that has an argument of condition-bean setupper.}
+     * @param tObjectList The entity list of TObject. (NotNull)
+     * @param loadReferrerOption The option of load-referrer. (NotNull)
+     */
+    public void loadTConnectorByEndObjectIdList(List<TObject> tObjectList, LoadReferrerOption<TConnectorCB, TConnector> loadReferrerOption) {
+        assertObjectNotNull("tObjectList<TObject>", tObjectList);
+        assertObjectNotNull("loadReferrerOption<TConnector, TConnectorCB>", loadReferrerOption);
+        if (tObjectList.isEmpty()) { return; }
+        final TConnectorBhv referrerBhv = xgetBSFLR().select(TConnectorBhv.class);
+        helpLoadReferrerInternally(tObjectList, loadReferrerOption, new InternalLoadReferrerCallback<TObject, java.lang.Integer, TConnectorCB, TConnector>() {
+            public java.lang.Integer callbackBase_getPrimaryKeyValue(TObject entity) { return entity.getObjectId(); }
+            public void callbackBase_setReferrerList(TObject entity, List<TConnector> referrerList) { entity.setTConnectorByEndObjectIdList(referrerList); }
+            public TConnectorCB callbackReferrer_newMyConditionBean() { return referrerBhv.newMyConditionBean(); }
+            public void callbackReferrer_queryForeignKeyInScope(TConnectorCB cb, List<java.lang.Integer> pkList) { cb.query().setEndObjectId_InScope(pkList); }
+            public void callbackReferrer_queryAddOrderByForeignKeyAsc(TConnectorCB cb) { cb.query().addOrderBy_EndObjectId_Asc(); }
+            public List<TConnector> callbackReferrer_selectList(TConnectorCB cb) { return referrerBhv.selectList(cb); }
+            public java.lang.Integer callbackReferrer_getForeignKeyValue(TConnector entity) { return entity.getEndObjectId(); }
+            public void callbackReferrer_setForeignEntity(TConnector referrerEntity, TObject baseEntity) { referrerEntity.setTObjectByEndObjectId(baseEntity); }
+        } );
+    }
 
     // ===================================================================================
     //                                                                     Pullout Foreign
     //                                                                     ===============
-  
+          
+    // ===================================================================================
+    //                                                                       Entity Update
+    //                                                                       =============
+    /**
+     * Insert the entity.
+     * @param tObject The entity of insert target. (NotNull)
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyExistsException When the entity already exists. (Unique Constraint Violation)
+     */
+    public void insert(TObject tObject) {
+        assertEntityNotNull(tObject);
+        delegateInsert(tObject);
+    }
+
+    @Override
+    protected void doCreate(Entity tObject) {
+        insert((TObject)tObject);
+    }
+
+    /**
+     * Update the entity modified-only. {UpdateCountZeroException, ConcurrencyControl}
+     * @param tObject The entity of update target. (NotNull) {PrimaryKeyRequired, ConcurrencyColumnRequired}
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityDuplicatedException When the entity has been duplicated.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyExistsException When the entity already exists. (Unique Constraint Violation)
+     */
+    public void update(final TObject tObject) {
+        helpUpdateInternally(tObject, new InternalUpdateCallback<TObject>() {
+            public int callbackDelegateUpdate(TObject entity) { return delegateUpdate(entity); } });
+    }
+
+    @Override
+    protected void doModify(Entity entity) {
+        update((TObject)entity);
+    }
+
+    @Override
+    protected void doModifyNonstrict(Entity entity) {
+        update((TObject)entity);
+    }
+
+    /**
+     * Insert or update the entity modified-only. {ConcurrencyControl(when update)}
+     * @param tObject The entity of insert or update target. (NotNull)
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityDuplicatedException When the entity has been duplicated.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyExistsException When the entity already exists. (Unique Constraint Violation)
+     */
+    public void insertOrUpdate(final TObject tObject) {
+        helpInsertOrUpdateInternally(tObject, new InternalInsertOrUpdateCallback<TObject, TObjectCB>() {
+            public void callbackInsert(TObject entity) { insert(entity); }
+            public void callbackUpdate(TObject entity) { update(entity); }
+            public TObjectCB callbackNewMyConditionBean() { return newMyConditionBean(); }
+            public int callbackSelectCount(TObjectCB cb) { return selectCount(cb); }
+        });
+    }
+
+    @Override
+    protected void doCreateOrUpdate(Entity tObject) {
+        insertOrUpdate((TObject)tObject);
+    }
+
+    @Override
+    protected void doCreateOrUpdateNonstrict(Entity entity) {
+        insertOrUpdate((TObject)entity);
+    }
+
+    /**
+     * Delete the entity. {UpdateCountZeroException, ConcurrencyControl}
+     * @param tObject The entity of delete target. (NotNull) {PrimaryKeyRequired, ConcurrencyColumnRequired}
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityDuplicatedException When the entity has been duplicated.
+     */
+    public void delete(TObject tObject) {
+        helpDeleteInternally(tObject, new InternalDeleteCallback<TObject>() {
+            public int callbackDelegateDelete(TObject entity) { return delegateDelete(entity); } });
+    }
+
+    @Override
+    protected void doRemove(Entity tObject) {
+        delete((TObject)tObject);
+    }
+
+    // ===================================================================================
+    //                                                                        Batch Update
+    //                                                                        ============
+    /**
+     * Batch insert the list. This method use 'Batch Update' of java.sql.PreparedStatement.
+     * @param tObjectList The list of the entity. (NotNull)
+     * @return The array of inserted count.
+     */
+    public int[] batchInsert(List<TObject> tObjectList) {
+        assertObjectNotNull("tObjectList", tObjectList);
+        return delegateInsertList(tObjectList);
+    }
+
+    /**
+     * Batch update the list. All columns are update target. {NOT modified only} <br />
+     * This method use 'Batch Update' of java.sql.PreparedStatement.
+     * @param tObjectList The list of the entity. (NotNull)
+     * @return The array of updated count.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.
+     */
+    public int[] batchUpdate(List<TObject> tObjectList) {
+        assertObjectNotNull("tObjectList", tObjectList);
+        return delegateUpdateList(tObjectList);
+    }
+
+    /**
+     * Batch delete the list. <br />
+     * This method use 'Batch Update' of java.sql.PreparedStatement.
+     * @param tObjectList The list of the entity. (NotNull)
+     * @return The array of deleted count.
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.
+     */
+    public int[] batchDelete(List<TObject> tObjectList) {
+        assertObjectNotNull("tObjectList", tObjectList);
+        return delegateDeleteList(tObjectList);
+    }
+
+    // ===================================================================================
+    //                                                                        Query Update
+    //                                                                        ============
+    /**
+     * Query update the several entities. {NoConcurrencyControl}
+     * @param tObject Entity. (NotNull) {PrimaryKeyNotRequired}
+     * @param cb Condition-bean. (NotNull)
+     * @return The updated count.
+     */
+    public int queryUpdate(TObject tObject, TObjectCB cb) {
+        assertObjectNotNull("tObject", tObject); assertConditionBeanNotNull(cb);
+        setupCommonColumnOfUpdateIfNeeds(tObject);
+        filterEntityOfUpdate(tObject); assertEntityOfUpdate(tObject);
+        return getMyDao().updateByQuery(cb, tObject);
+    }
+
+    /**
+     * Query delete the several entities. {NoConcurrencyControl}
+     * @param cb Condition-bean. (NotNull)
+     * @return The deleted count.
+     */
+    public int queryDelete(TObjectCB cb) {
+        assertConditionBeanNotNull(cb);
+        return getMyDao().deleteByQuery(cb);
+    }
+
+    // ===================================================================================
+    //                                                                      Various Update
+    //                                                                      ==============
+
     // ===================================================================================
     //                                                                     Delegate Method
     //                                                                     ===============
@@ -196,6 +556,23 @@ public abstract class BsTObjectBhv extends jp.sourceforge.ea2ddl.dao.allcommon.b
     protected int delegateSelectCount(TObjectCB cb) { assertConditionBeanNotNull(cb); return getMyDao().selectCount(cb); }
     protected List<TObject> delegateSelectList(TObjectCB cb) { assertConditionBeanNotNull(cb); return getMyDao().selectList(cb); }
 
+    // -----------------------------------------------------
+    //                                                Update
+    //                                                ------
+    protected int delegateInsert(TObject e) { if (!processBeforeInsert(e)) { return 1; } return getMyDao().insert(e); }
+    protected int delegateUpdate(TObject e) { if (!processBeforeUpdate(e)) { return 1; } return getMyDao().updateModifiedOnly(e); }
+    protected int delegateDelete(TObject e) { if (!processBeforeDelete(e)) { return 1; } return getMyDao().delete(e); }
+
+    protected int[] delegateInsertList(List<TObject> ls) {
+        assertObjectNotNull("tObjectList", ls); return getMyDao().insertList(helpFilterBeforeInsertInternally(ls));
+    }
+    protected int[] delegateUpdateList(List<TObject> ls) {
+        assertObjectNotNull("tObjectList", ls); return getMyDao().updateList(helpFilterBeforeUpdateInternally(ls));
+    }
+    protected int[] delegateDeleteList(List<TObject> ls) {
+        assertObjectNotNull("tObjectList", ls); return getMyDao().deleteList(helpFilterBeforeDeleteInternally(ls));
+    }
+
     // ===================================================================================
     //                                                                Optimistic Lock Info
     //                                                                ====================
index 2fcecb0..e86079b 100644 (file)
@@ -4,6 +4,8 @@ package jp.sourceforge.ea2ddl.dao.bsbhv;
 import java.util.List;\r
 \r
 import jp.sourceforge.ea2ddl.dao.allcommon.*;\r
+import jp.sourceforge.ea2ddl.dao.allcommon.bhv.load.LoadReferrerOption;\r
+import jp.sourceforge.ea2ddl.dao.allcommon.bhv.setup.ConditionBeanSetupper;\r
 import jp.sourceforge.ea2ddl.dao.allcommon.bhv.setup.ValueLabelSetupper;\r
 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ConditionBean;\r
 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ListResultBean;\r
@@ -13,6 +15,7 @@ import jp.sourceforge.ea2ddl.dao.allcommon.cbean.PagingInvoker;
 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.PagingBean;\r
 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.PagingResultBean;\r
 import jp.sourceforge.ea2ddl.dao.allcommon.dbmeta.DBMeta;\r
+import jp.sourceforge.ea2ddl.dao.exbhv.*;\r
 import jp.sourceforge.ea2ddl.dao.exdao.*;\r
 import jp.sourceforge.ea2ddl.dao.exentity.*;\r
 import jp.sourceforge.ea2ddl.dao.bsentity.dbmeta.*;\r
@@ -23,7 +26,7 @@ import jp.sourceforge.ea2ddl.dao.cbean.*;
  * The behavior of t_operation.\r
  * <pre>\r
  * [primary-key]\r
- *     \r
+ *     OperationID\r
  * \r
  * [column]\r
  *     OperationID, Object_ID, Name, Scope, Type, ReturnArray, Stereotype, IsStatic, Concurrency, Notes, Behaviour, GenOption, Pos, Style, Pure, Classifier, Code, IsRoot, IsLeaf, IsQuery, StateFlags, ea_guid, StyleEx\r
@@ -41,17 +44,17 @@ import jp.sourceforge.ea2ddl.dao.cbean.*;
  *     t_object\r
  * \r
  * [referrer-table]\r
- *     \r
+ *     t_operationparams\r
  * \r
  * [foreign-property]\r
  *     tObject\r
  * \r
  * [referrer-property]\r
- *     \r
+ *     tOperationparamsList\r
  * </pre>\r
  * @author DBFlute(AutoGenerator)\r
  */\r
-public abstract class BsTOperationBhv extends jp.sourceforge.ea2ddl.dao.allcommon.bhv.AbstractBehaviorReadable {\r
+public abstract class BsTOperationBhv extends jp.sourceforge.ea2ddl.dao.allcommon.bhv.AbstractBehaviorWritable {\r
 \r
     // ===================================================================================\r
     //                                                                          Definition\r
@@ -85,6 +88,7 @@ public abstract class BsTOperationBhv extends jp.sourceforge.ea2ddl.dao.allcommo
     public TOperationDao getMyDao() { return _dao; }\r
     public void setMyDao(TOperationDao dao) { assertObjectNotNull("dao", dao); _dao = dao; }\r
     public DaoReadable getDaoReadable() { return getMyDao(); }\r
+    public DaoWritable getDaoWritable() { return getMyDao(); }\r
 \r
     // ===================================================================================\r
     //                                                                        New Instance\r
@@ -133,6 +137,20 @@ public abstract class BsTOperationBhv extends jp.sourceforge.ea2ddl.dao.allcommo
             public List<TOperation> callbackSelectList(TOperationCB cb) { return selectList(cb); } });\r
     }\r
 \r
+    /* (non-javadoc)\r
+     * Select the entity with deleted check. {by primary-key value}\r
+     * @param primaryKey The keys of primary.\r
+     * @return The selected entity. (NotNull)\r
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.\r
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityDuplicatedException When the entity has been duplicated.\r
+     */\r
+    public TOperation selectByPKValueWithDeletedCheck(java.lang.Integer operationid) {\r
+        TOperation entity = new TOperation();\r
+        entity.setOperationid(operationid);\r
+        final TOperationCB cb = newMyConditionBean();\r
+        cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(entity));\r
+        return selectEntityWithDeletedCheck(cb);\r
+    }\r
 \r
     // ===================================================================================\r
     //                                                                         List Select\r
@@ -180,6 +198,47 @@ public abstract class BsTOperationBhv extends jp.sourceforge.ea2ddl.dao.allcommo
     }\r
 \r
 \r
+    // ===================================================================================\r
+    //                                                                       Load Referrer\r
+    //                                                                       =============\r
+    /**\r
+     * Load referrer of TOperationparamsList with the setupper for condition-bean of referrer. <br />\r
+     * About internal policy, the value of primary key(and others too) is treated as case-insensitive. <br />\r
+     * The condition-bean that the setupper provides have settings before you touch it. It is as follows:\r
+     * <pre>\r
+     * cb.query().setOperationid_InScope(pkList);\r
+     * cb.query().addOrderBy_Operationid_Asc();\r
+     * </pre>\r
+     * @param tOperationList The entity list of TOperation. (NotNull)\r
+     * @param conditionBeanSetupper The instance of referrer condition-bean setupper for registering referrer condition. (NotNull)\r
+     */\r
+    public void loadTOperationparamsList(List<TOperation> tOperationList, ConditionBeanSetupper<TOperationparamsCB> conditionBeanSetupper) {\r
+        assertObjectNotNull("tOperationList<TOperation>", tOperationList);\r
+        assertObjectNotNull("conditionBeanSetupper<TOperationparamsCB>", conditionBeanSetupper);\r
+        if (tOperationList.isEmpty()) { return; }\r
+        loadTOperationparamsList(tOperationList, new LoadReferrerOption<TOperationparamsCB, TOperationparams>(conditionBeanSetupper));\r
+    }\r
+    /**\r
+     * {Refer to overload method that has an argument of condition-bean setupper.}\r
+     * @param tOperationList The entity list of TOperation. (NotNull)\r
+     * @param loadReferrerOption The option of load-referrer. (NotNull)\r
+     */\r
+    public void loadTOperationparamsList(List<TOperation> tOperationList, LoadReferrerOption<TOperationparamsCB, TOperationparams> loadReferrerOption) {\r
+        assertObjectNotNull("tOperationList<TOperation>", tOperationList);\r
+        assertObjectNotNull("loadReferrerOption<TOperationparams, TOperationparamsCB>", loadReferrerOption);\r
+        if (tOperationList.isEmpty()) { return; }\r
+        final TOperationparamsBhv referrerBhv = xgetBSFLR().select(TOperationparamsBhv.class);\r
+        helpLoadReferrerInternally(tOperationList, loadReferrerOption, new InternalLoadReferrerCallback<TOperation, java.lang.Integer, TOperationparamsCB, TOperationparams>() {\r
+            public java.lang.Integer callbackBase_getPrimaryKeyValue(TOperation entity) { return entity.getOperationid(); }\r
+            public void callbackBase_setReferrerList(TOperation entity, List<TOperationparams> referrerList) { entity.setTOperationparamsList(referrerList); }\r
+            public TOperationparamsCB callbackReferrer_newMyConditionBean() { return referrerBhv.newMyConditionBean(); }\r
+            public void callbackReferrer_queryForeignKeyInScope(TOperationparamsCB cb, List<java.lang.Integer> pkList) { cb.query().setOperationid_InScope(pkList); }\r
+            public void callbackReferrer_queryAddOrderByForeignKeyAsc(TOperationparamsCB cb) { cb.query().addOrderBy_Operationid_Asc(); }\r
+            public List<TOperationparams> callbackReferrer_selectList(TOperationparamsCB cb) { return referrerBhv.selectList(cb); }\r
+            public java.lang.Integer callbackReferrer_getForeignKeyValue(TOperationparams entity) { return entity.getOperationid(); }\r
+            public void callbackReferrer_setForeignEntity(TOperationparams referrerEntity, TOperation baseEntity) { referrerEntity.setTOperation(baseEntity); }\r
+        } );\r
+    }\r
 \r
     // ===================================================================================\r
     //                                                                     Pullout Foreign\r
@@ -195,6 +254,155 @@ public abstract class BsTOperationBhv extends jp.sourceforge.ea2ddl.dao.allcommo
     }\r
   \r
     // ===================================================================================\r
+    //                                                                       Entity Update\r
+    //                                                                       =============\r
+    /**\r
+     * Insert the entity.\r
+     * @param tOperation The entity of insert target. (NotNull)\r
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyExistsException When the entity already exists. (Unique Constraint Violation)\r
+     */\r
+    public void insert(TOperation tOperation) {\r
+        assertEntityNotNull(tOperation);\r
+        delegateInsert(tOperation);\r
+    }\r
+\r
+    @Override\r
+    protected void doCreate(Entity tOperation) {\r
+        insert((TOperation)tOperation);\r
+    }\r
+\r
+    /**\r
+     * Update the entity modified-only. {UpdateCountZeroException, ConcurrencyControl}\r
+     * @param tOperation The entity of update target. (NotNull) {PrimaryKeyRequired, ConcurrencyColumnRequired}\r
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.\r
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityDuplicatedException When the entity has been duplicated.\r
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyExistsException When the entity already exists. (Unique Constraint Violation)\r
+     */\r
+    public void update(final TOperation tOperation) {\r
+        helpUpdateInternally(tOperation, new InternalUpdateCallback<TOperation>() {\r
+            public int callbackDelegateUpdate(TOperation entity) { return delegateUpdate(entity); } });\r
+    }\r
+\r
+    @Override\r
+    protected void doModify(Entity entity) {\r
+        update((TOperation)entity);\r
+    }\r
+\r
+    @Override\r
+    protected void doModifyNonstrict(Entity entity) {\r
+        update((TOperation)entity);\r
+    }\r
+\r
+    /**\r
+     * Insert or update the entity modified-only. {ConcurrencyControl(when update)}\r
+     * @param tOperation The entity of insert or update target. (NotNull)\r
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.\r
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityDuplicatedException When the entity has been duplicated.\r
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyExistsException When the entity already exists. (Unique Constraint Violation)\r
+     */\r
+    public void insertOrUpdate(final TOperation tOperation) {\r
+        helpInsertOrUpdateInternally(tOperation, new InternalInsertOrUpdateCallback<TOperation, TOperationCB>() {\r
+            public void callbackInsert(TOperation entity) { insert(entity); }\r
+            public void callbackUpdate(TOperation entity) { update(entity); }\r
+            public TOperationCB callbackNewMyConditionBean() { return newMyConditionBean(); }\r
+            public int callbackSelectCount(TOperationCB cb) { return selectCount(cb); }\r
+        });\r
+    }\r
+\r
+    @Override\r
+    protected void doCreateOrUpdate(Entity tOperation) {\r
+        insertOrUpdate((TOperation)tOperation);\r
+    }\r
+\r
+    @Override\r
+    protected void doCreateOrUpdateNonstrict(Entity entity) {\r
+        insertOrUpdate((TOperation)entity);\r
+    }\r
+\r
+    /**\r
+     * Delete the entity. {UpdateCountZeroException, ConcurrencyControl}\r
+     * @param tOperation The entity of delete target. (NotNull) {PrimaryKeyRequired, ConcurrencyColumnRequired}\r
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.\r
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityDuplicatedException When the entity has been duplicated.\r
+     */\r
+    public void delete(TOperation tOperation) {\r
+        helpDeleteInternally(tOperation, new InternalDeleteCallback<TOperation>() {\r
+            public int callbackDelegateDelete(TOperation entity) { return delegateDelete(entity); } });\r
+    }\r
+\r
+    @Override\r
+    protected void doRemove(Entity tOperation) {\r
+        delete((TOperation)tOperation);\r
+    }\r
+\r
+    // ===================================================================================\r
+    //                                                                        Batch Update\r
+    //                                                                        ============\r
+    /**\r
+     * Batch insert the list. This method use 'Batch Update' of java.sql.PreparedStatement.\r
+     * @param tOperationList The list of the entity. (NotNull)\r
+     * @return The array of inserted count.\r
+     */\r
+    public int[] batchInsert(List<TOperation> tOperationList) {\r
+        assertObjectNotNull("tOperationList", tOperationList);\r
+        return delegateInsertList(tOperationList);\r
+    }\r
+\r
+    /**\r
+     * Batch update the list. All columns are update target. {NOT modified only} <br />\r
+     * This method use 'Batch Update' of java.sql.PreparedStatement.\r
+     * @param tOperationList The list of the entity. (NotNull)\r
+     * @return The array of updated count.\r
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.\r
+     */\r
+    public int[] batchUpdate(List<TOperation> tOperationList) {\r
+        assertObjectNotNull("tOperationList", tOperationList);\r
+        return delegateUpdateList(tOperationList);\r
+    }\r
+\r
+    /**\r
+     * Batch delete the list. <br />\r
+     * This method use 'Batch Update' of java.sql.PreparedStatement.\r
+     * @param tOperationList The list of the entity. (NotNull)\r
+     * @return The array of deleted count.\r
+     * @exception jp.sourceforge.ea2ddl.dao.allcommon.exception.EntityAlreadyDeletedException When the entity has already been deleted.\r
+     */\r
+    public int[] batchDelete(List<TOperation> tOperationList) {\r
+        assertObjectNotNull("tOperationList", tOperationList);\r
+        return delegateDeleteList(tOperationList);\r
+    }\r
+\r
+    // ===================================================================================\r
+    //                                                                        Query Update\r
+    //                                                                        ============\r
+    /**\r
+     * Query update the several entities. {NoConcurrencyControl}\r
+     * @param tOperation Entity. (NotNull) {PrimaryKeyNotRequired}\r
+     * @param cb Condition-bean. (NotNull)\r
+     * @return The updated count.\r
+     */\r
+    public int queryUpdate(TOperation tOperation, TOperationCB cb) {\r
+        assertObjectNotNull("tOperation", tOperation); assertConditionBeanNotNull(cb);\r
+        setupCommonColumnOfUpdateIfNeeds(tOperation);\r
+        filterEntityOfUpdate(tOperation); assertEntityOfUpdate(tOperation);\r
+        return getMyDao().updateByQuery(cb, tOperation);\r
+    }\r
+\r
+    /**\r
+     * Query delete the several entities. {NoConcurrencyControl}\r
+     * @param cb Condition-bean. (NotNull)\r
+     * @return The deleted count.\r
+     */\r
+    public int queryDelete(TOperationCB cb) {\r
+        assertConditionBeanNotNull(cb);\r
+        return getMyDao().deleteByQuery(cb);\r
+    }\r
+\r
+    // ===================================================================================\r
+    //                                                                      Various Update\r
+    //                                                                      ==============\r
+\r
+    // ===================================================================================\r
     //                                                                     Delegate Method\r
     //                                                                     ===============\r
     // -----------------------------------------------------\r
@@ -203,6 +411,23 @@ public abstract class BsTOperationBhv extends jp.sourceforge.ea2ddl.dao.allcommo
     protected int delegateSelectCount(TOperationCB cb) { assertConditionBeanNotNull(cb); return getMyDao().selectCount(cb); }\r
     protected List<TOperation> delegateSelectList(TOperationCB cb) { assertConditionBeanNotNull(cb); return getMyDao().selectList(cb); }\r
 \r
+    // -----------------------------------------------------\r
+    //                                                Update\r
+    //                                                ------\r
+    protected int delegateInsert(TOperation e) { if (!processBeforeInsert(e)) { return 1; } return getMyDao().insert(e); }\r
+    protected int delegateUpdate(TOperation e) { if (!processBeforeUpdate(e)) { return 1; } return getMyDao().updateModifiedOnly(e); }\r
+    protected int delegateDelete(TOperation e) { if (!processBeforeDelete(e)) { return 1; } return getMyDao().delete(e); }\r
+\r
+    protected int[] delegateInsertList(List<TOperation> ls) {\r
+        assertObjectNotNull("tOperationList", ls); return getMyDao().insertList(helpFilterBeforeInsertInternally(ls));\r
+    }\r
+    protected int[] delegateUpdateList(List<TOperation> ls) {\r
+        assertObjectNotNull("tOperationList", ls); return getMyDao().updateList(helpFilterBeforeUpdateInternally(ls));\r
+    }\r
+    protected int[] delegateDeleteList(List<TOperation> ls) {\r
+        assertObjectNotNull("tOperationList", ls); return getMyDao().deleteList(helpFilterBeforeDeleteInternally(ls));\r
+    }\r
+\r
     // ===================================================================================\r
     //                                                                Optimistic Lock Info\r
     //                                                                ====================\r
index 5b346fa..0c5c161 100644 (file)
@@ -9,11 +9,20 @@ import jp.sourceforge.ea2ddl.dao.cbean.TConnectorCB;
  * The DAO interface of t_connector.\r
  * @author DBFlute(AutoGenerator)\r
  */\r
-public interface BsTConnectorDao extends jp.sourceforge.ea2ddl.dao.allcommon.DaoReadable {\r
+public interface BsTConnectorDao extends jp.sourceforge.ea2ddl.dao.allcommon.DaoWritable {\r
 \r
     public Class<?> BEAN = TConnector.class; // For S2Dao\r
 \r
     public int selectCount(TConnectorCB cb);\r
     public List<TConnector> selectList(TConnectorCB cb);\r
 \r
+    int insert(TConnector entity);\r
+    int updateModifiedOnly(TConnector entity);\r
+    int delete(TConnector entity);\r
+\r
+    int[] insertList(List<TConnector> entityList);\r
+    int[] updateList(List<TConnector> entityList);\r
+    int updateByQuery(TConnectorCB cb, TConnector entity);\r
+    int[] deleteList(List<TConnector> entityList);\r
+    int deleteByQuery(TConnectorCB cb);\r
 }\r
index 81d5430..43ddc35 100644 (file)
@@ -9,11 +9,20 @@ import jp.sourceforge.ea2ddl.dao.cbean.TObjectCB;
  * The DAO interface of t_object.\r
  * @author DBFlute(AutoGenerator)\r
  */\r
-public interface BsTObjectDao extends jp.sourceforge.ea2ddl.dao.allcommon.DaoReadable {\r
+public interface BsTObjectDao extends jp.sourceforge.ea2ddl.dao.allcommon.DaoWritable {\r
 \r
     public Class<?> BEAN = TObject.class; // For S2Dao\r
 \r
     public int selectCount(TObjectCB cb);\r
     public List<TObject> selectList(TObjectCB cb);\r
 \r
+    int insert(TObject entity);\r
+    int updateModifiedOnly(TObject entity);\r
+    int delete(TObject entity);\r
+\r
+    int[] insertList(List<TObject> entityList);\r
+    int[] updateList(List<TObject> entityList);\r
+    int updateByQuery(TObjectCB cb, TObject entity);\r
+    int[] deleteList(List<TObject> entityList);\r
+    int deleteByQuery(TObjectCB cb);\r
 }\r
index 40e8e23..75ba6d0 100644 (file)
@@ -9,11 +9,20 @@ import jp.sourceforge.ea2ddl.dao.cbean.TOperationCB;
  * The DAO interface of t_operation.\r
  * @author DBFlute(AutoGenerator)\r
  */\r
-public interface BsTOperationDao extends jp.sourceforge.ea2ddl.dao.allcommon.DaoReadable {\r
+public interface BsTOperationDao extends jp.sourceforge.ea2ddl.dao.allcommon.DaoWritable {\r
 \r
     public Class<?> BEAN = TOperation.class; // For S2Dao\r
 \r
     public int selectCount(TOperationCB cb);\r
     public List<TOperation> selectList(TOperationCB cb);\r
 \r
+    int insert(TOperation entity);\r
+    int updateModifiedOnly(TOperation entity);\r
+    int delete(TOperation entity);\r
+\r
+    int[] insertList(List<TOperation> entityList);\r
+    int[] updateList(List<TOperation> entityList);\r
+    int updateByQuery(TOperationCB cb, TOperation entity);\r
+    int[] deleteList(List<TOperation> entityList);\r
+    int deleteByQuery(TOperationCB cb);\r
 }\r
index 1c58b50..8c1b1a5 100644 (file)
@@ -11,7 +11,7 @@ import jp.sourceforge.ea2ddl.dao.exentity.*;
  * The entity of t_connector(TABLE).\r
  * <pre>\r
  * [primary-key]\r
- *     \r
+ *     Connector_ID\r
  * \r
  * [column]\r
  *     Connector_ID, Name, Direction, Notes, Connector_Type, SubType, SourceCard, SourceAccess, SourceElement, DestCard, DestAccess, DestElement, SourceRole, SourceRoleType, SourceRoleNote, SourceContainment, SourceIsAggregate, SourceIsOrdered, SourceQualifier, DestRole, DestRoleType, DestRoleNote, DestContainment, DestIsAggregate, DestIsOrdered, DestQualifier, Start_Object_ID, End_Object_ID, Top_Start_Label, Top_Mid_Label, Top_End_Label, Btm_Start_Label, Btm_Mid_Label, Btm_End_Label, Start_Edge, End_Edge, PtStartX, PtStartY, PtEndX, PtEndY, SeqNo, HeadStyle, LineStyle, RouteStyle, IsBold, LineColor, Stereotype, VirtualInheritance, LinkAccess, PDATA1, PDATA2, PDATA3, PDATA4, PDATA5, DiagramID, ea_guid, SourceConstraint, DestConstraint, SourceIsNavigable, DestIsNavigable, IsRoot, IsLeaf, IsSpec, SourceChangeable, DestChangeable, SourceTS, DestTS, StateFlags, ActionFlags, IsSignal, IsStimulus, DispatchAction, Target2, StyleEx, SourceStereotype, DestStereotype, SourceStyle, DestStyle, EventFlags\r
@@ -58,7 +58,7 @@ public abstract class BsTConnector implements Entity, java.io.Serializable {
     // -----------------------------------------------------\r
     //                                                Column\r
     //                                                ------\r
-    /** The attribute of the column 'Connector_ID'. {UQ : COUNTER : NotNull} */\r
+    /** The attribute of the column 'Connector_ID'. {PK : UQ : COUNTER : NotNull} */\r
     protected java.lang.Integer _connectorId;\r
 \r
     /** The attribute of the column 'Name'. {VARCHAR(255)} */\r
@@ -445,7 +445,8 @@ public abstract class BsTConnector implements Entity, java.io.Serializable {
     //                                                                       Determination\r
     //                                                                       =============\r
     public boolean hasPrimaryKeyValue() {\r
-        return false;\r
+        if (_connectorId == null) { return false; }\r
+        return true;\r
     }\r
 \r
     // ===================================================================================\r
@@ -471,92 +472,14 @@ public abstract class BsTConnector implements Entity, java.io.Serializable {
     //                                                                      Basic Override\r
     //                                                                      ==============\r
     /**\r
-     * If the all-column value of the other is same as this one, returns true.\r
-     * @param other Other entity. (Nullable)\r
-     * @return Comparing result. If other is null, returns false.\r
+     * If the primary-key of the other is same as this one, returns true.\r
+     * @param other Other entity.\r
+     * @return Comparing result.\r
      */\r
     public boolean equals(Object other) {\r
         if (other == null || !(other instanceof BsTConnector)) { return false; }\r
-        final BsTConnector otherEntity = (BsTConnector)other;\r
+        BsTConnector otherEntity = (BsTConnector)other;\r
         if (!helpComparingValue(getConnectorId(), otherEntity.getConnectorId())) { return false; }\r
-        if (!helpComparingValue(getName(), otherEntity.getName())) { return false; }\r
-        if (!helpComparingValue(getDirection(), otherEntity.getDirection())) { return false; }\r
-        if (!helpComparingValue(getNotes(), otherEntity.getNotes())) { return false; }\r
-        if (!helpComparingValue(getConnectorType(), otherEntity.getConnectorType())) { return false; }\r
-        if (!helpComparingValue(getSubtype(), otherEntity.getSubtype())) { return false; }\r
-        if (!helpComparingValue(getSourcecard(), otherEntity.getSourcecard())) { return false; }\r
-        if (!helpComparingValue(getSourceaccess(), otherEntity.getSourceaccess())) { return false; }\r
-        if (!helpComparingValue(getSourceelement(), otherEntity.getSourceelement())) { return false; }\r
-        if (!helpComparingValue(getDestcard(), otherEntity.getDestcard())) { return false; }\r
-        if (!helpComparingValue(getDestaccess(), otherEntity.getDestaccess())) { return false; }\r
-        if (!helpComparingValue(getDestelement(), otherEntity.getDestelement())) { return false; }\r
-        if (!helpComparingValue(getSourcerole(), otherEntity.getSourcerole())) { return false; }\r
-        if (!helpComparingValue(getSourceroletype(), otherEntity.getSourceroletype())) { return false; }\r
-        if (!helpComparingValue(getSourcerolenote(), otherEntity.getSourcerolenote())) { return false; }\r
-        if (!helpComparingValue(getSourcecontainment(), otherEntity.getSourcecontainment())) { return false; }\r
-        if (!helpComparingValue(getSourceisaggregate(), otherEntity.getSourceisaggregate())) { return false; }\r
-        if (!helpComparingValue(getSourceisordered(), otherEntity.getSourceisordered())) { return false; }\r
-        if (!helpComparingValue(getSourcequalifier(), otherEntity.getSourcequalifier())) { return false; }\r
-        if (!helpComparingValue(getDestrole(), otherEntity.getDestrole())) { return false; }\r
-        if (!helpComparingValue(getDestroletype(), otherEntity.getDestroletype())) { return false; }\r
-        if (!helpComparingValue(getDestrolenote(), otherEntity.getDestrolenote())) { return false; }\r
-        if (!helpComparingValue(getDestcontainment(), otherEntity.getDestcontainment())) { return false; }\r
-        if (!helpComparingValue(getDestisaggregate(), otherEntity.getDestisaggregate())) { return false; }\r
-        if (!helpComparingValue(getDestisordered(), otherEntity.getDestisordered())) { return false; }\r
-        if (!helpComparingValue(getDestqualifier(), otherEntity.getDestqualifier())) { return false; }\r
-        if (!helpComparingValue(getStartObjectId(), otherEntity.getStartObjectId())) { return false; }\r
-        if (!helpComparingValue(getEndObjectId(), otherEntity.getEndObjectId())) { return false; }\r
-        if (!helpComparingValue(getTopStartLabel(), otherEntity.getTopStartLabel())) { return false; }\r
-        if (!helpComparingValue(getTopMidLabel(), otherEntity.getTopMidLabel())) { return false; }\r
-        if (!helpComparingValue(getTopEndLabel(), otherEntity.getTopEndLabel())) { return false; }\r
-        if (!helpComparingValue(getBtmStartLabel(), otherEntity.getBtmStartLabel())) { return false; }\r
-        if (!helpComparingValue(getBtmMidLabel(), otherEntity.getBtmMidLabel())) { return false; }\r
-        if (!helpComparingValue(getBtmEndLabel(), otherEntity.getBtmEndLabel())) { return false; }\r
-        if (!helpComparingValue(getStartEdge(), otherEntity.getStartEdge())) { return false; }\r
-        if (!helpComparingValue(getEndEdge(), otherEntity.getEndEdge())) { return false; }\r
-        if (!helpComparingValue(getPtstartx(), otherEntity.getPtstartx())) { return false; }\r
-        if (!helpComparingValue(getPtstarty(), otherEntity.getPtstarty())) { return false; }\r
-        if (!helpComparingValue(getPtendx(), otherEntity.getPtendx())) { return false; }\r
-        if (!helpComparingValue(getPtendy(), otherEntity.getPtendy())) { return false; }\r
-        if (!helpComparingValue(getSeqno(), otherEntity.getSeqno())) { return false; }\r
-        if (!helpComparingValue(getHeadstyle(), otherEntity.getHeadstyle())) { return false; }\r
-        if (!helpComparingValue(getLinestyle(), otherEntity.getLinestyle())) { return false; }\r
-        if (!helpComparingValue(getRoutestyle(), otherEntity.getRoutestyle())) { return false; }\r
-        if (!helpComparingValue(getIsbold(), otherEntity.getIsbold())) { return false; }\r
-        if (!helpComparingValue(getLinecolor(), otherEntity.getLinecolor())) { return false; }\r
-        if (!helpComparingValue(getStereotype(), otherEntity.getStereotype())) { return false; }\r
-        if (!helpComparingValue(getVirtualinheritance(), otherEntity.getVirtualinheritance())) { return false; }\r
-        if (!helpComparingValue(getLinkaccess(), otherEntity.getLinkaccess())) { return false; }\r
-        if (!helpComparingValue(getPdata1(), otherEntity.getPdata1())) { return false; }\r
-        if (!helpComparingValue(getPdata2(), otherEntity.getPdata2())) { return false; }\r
-        if (!helpComparingValue(getPdata3(), otherEntity.getPdata3())) { return false; }\r
-        if (!helpComparingValue(getPdata4(), otherEntity.getPdata4())) { return false; }\r
-        if (!helpComparingValue(getPdata5(), otherEntity.getPdata5())) { return false; }\r
-        if (!helpComparingValue(getDiagramid(), otherEntity.getDiagramid())) { return false; }\r
-        if (!helpComparingValue(getEaGuid(), otherEntity.getEaGuid())) { return false; }\r
-        if (!helpComparingValue(getSourceconstraint(), otherEntity.getSourceconstraint())) { return false; }\r
-        if (!helpComparingValue(getDestconstraint(), otherEntity.getDestconstraint())) { return false; }\r
-        if (!helpComparingValue(getSourceisnavigable(), otherEntity.getSourceisnavigable())) { return false; }\r
-        if (!helpComparingValue(getDestisnavigable(), otherEntity.getDestisnavigable())) { return false; }\r
-        if (!helpComparingValue(getIsroot(), otherEntity.getIsroot())) { return false; }\r
-        if (!helpComparingValue(getIsleaf(), otherEntity.getIsleaf())) { return false; }\r
-        if (!helpComparingValue(getIsspec(), otherEntity.getIsspec())) { return false; }\r
-        if (!helpComparingValue(getSourcechangeable(), otherEntity.getSourcechangeable())) { return false; }\r
-        if (!helpComparingValue(getDestchangeable(), otherEntity.getDestchangeable())) { return false; }\r
-        if (!helpComparingValue(getSourcets(), otherEntity.getSourcets())) { return false; }\r
-        if (!helpComparingValue(getDestts(), otherEntity.getDestts())) { return false; }\r
-        if (!helpComparingValue(getStateflags(), otherEntity.getStateflags())) { return false; }\r
-        if (!helpComparingValue(getActionflags(), otherEntity.getActionflags())) { return false; }\r
-        if (!helpComparingValue(getIssignal(), otherEntity.getIssignal())) { return false; }\r
-        if (!helpComparingValue(getIsstimulus(), otherEntity.getIsstimulus())) { return false; }\r
-        if (!helpComparingValue(getDispatchaction(), otherEntity.getDispatchaction())) { return false; }\r
-        if (!helpComparingValue(getTarget2(), otherEntity.getTarget2())) { return false; }\r
-        if (!helpComparingValue(getStyleex(), otherEntity.getStyleex())) { return false; }\r
-        if (!helpComparingValue(getSourcestereotype(), otherEntity.getSourcestereotype())) { return false; }\r
-        if (!helpComparingValue(getDeststereotype(), otherEntity.getDeststereotype())) { return false; }\r
-        if (!helpComparingValue(getSourcestyle(), otherEntity.getSourcestyle())) { return false; }\r
-        if (!helpComparingValue(getDeststyle(), otherEntity.getDeststyle())) { return false; }\r
-        if (!helpComparingValue(getEventflags(), otherEntity.getEventflags())) { return false; }\r
         return true;\r
     }\r
 \r
@@ -566,90 +489,12 @@ public abstract class BsTConnector implements Entity, java.io.Serializable {
     }\r
 \r
     /**\r
-     * Calculates hash-code from all columns.\r
-     * @return Hash-code from all-columns.\r
+     * Calculates hash-code from primary-key.\r
+     * @return Hash-code from primary-keys.\r
      */\r
     public int hashCode() {\r
         int result = 17;\r
-        if (this.getConnectorId() != null) { result = result + this.getConnectorId().hashCode(); }\r
-        if (this.getName() != null) { result = result + this.getName().hashCode(); }\r
-        if (this.getDirection() != null) { result = result + this.getDirection().hashCode(); }\r
-        if (this.getNotes() != null) { result = result + this.getNotes().hashCode(); }\r
-        if (this.getConnectorType() != null) { result = result + this.getConnectorType().hashCode(); }\r
-        if (this.getSubtype() != null) { result = result + this.getSubtype().hashCode(); }\r
-        if (this.getSourcecard() != null) { result = result + this.getSourcecard().hashCode(); }\r
-        if (this.getSourceaccess() != null) { result = result + this.getSourceaccess().hashCode(); }\r
-        if (this.getSourceelement() != null) { result = result + this.getSourceelement().hashCode(); }\r
-        if (this.getDestcard() != null) { result = result + this.getDestcard().hashCode(); }\r
-        if (this.getDestaccess() != null) { result = result + this.getDestaccess().hashCode(); }\r
-        if (this.getDestelement() != null) { result = result + this.getDestelement().hashCode(); }\r
-        if (this.getSourcerole() != null) { result = result + this.getSourcerole().hashCode(); }\r
-        if (this.getSourceroletype() != null) { result = result + this.getSourceroletype().hashCode(); }\r
-        if (this.getSourcerolenote() != null) { result = result + this.getSourcerolenote().hashCode(); }\r
-        if (this.getSourcecontainment() != null) { result = result + this.getSourcecontainment().hashCode(); }\r
-        if (this.getSourceisaggregate() != null) { result = result + this.getSourceisaggregate().hashCode(); }\r
-        if (this.getSourceisordered() != null) { result = result + this.getSourceisordered().hashCode(); }\r
-        if (this.getSourcequalifier() != null) { result = result + this.getSourcequalifier().hashCode(); }\r
-        if (this.getDestrole() != null) { result = result + this.getDestrole().hashCode(); }\r
-        if (this.getDestroletype() != null) { result = result + this.getDestroletype().hashCode(); }\r
-        if (this.getDestrolenote() != null) { result = result + this.getDestrolenote().hashCode(); }\r
-        if (this.getDestcontainment() != null) { result = result + this.getDestcontainment().hashCode(); }\r
-        if (this.getDestisaggregate() != null) { result = result + this.getDestisaggregate().hashCode(); }\r
-        if (this.getDestisordered() != null) { result = result + this.getDestisordered().hashCode(); }\r
-        if (this.getDestqualifier() != null) { result = result + this.getDestqualifier().hashCode(); }\r
-        if (this.getStartObjectId() != null) { result = result + this.getStartObjectId().hashCode(); }\r
-        if (this.getEndObjectId() != null) { result = result + this.getEndObjectId().hashCode(); }\r
-        if (this.getTopStartLabel() != null) { result = result + this.getTopStartLabel().hashCode(); }\r
-        if (this.getTopMidLabel() != null) { result = result + this.getTopMidLabel().hashCode(); }\r
-        if (this.getTopEndLabel() != null) { result = result + this.getTopEndLabel().hashCode(); }\r
-        if (this.getBtmStartLabel() != null) { result = result + this.getBtmStartLabel().hashCode(); }\r
-        if (this.getBtmMidLabel() != null) { result = result + this.getBtmMidLabel().hashCode(); }\r
-        if (this.getBtmEndLabel() != null) { result = result + this.getBtmEndLabel().hashCode(); }\r
-        if (this.getStartEdge() != null) { result = result + this.getStartEdge().hashCode(); }\r
-        if (this.getEndEdge() != null) { result = result + this.getEndEdge().hashCode(); }\r
-        if (this.getPtstartx() != null) { result = result + this.getPtstartx().hashCode(); }\r
-        if (this.getPtstarty() != null) { result = result + this.getPtstarty().hashCode(); }\r
-        if (this.getPtendx() != null) { result = result + this.getPtendx().hashCode(); }\r
-        if (this.getPtendy() != null) { result = result + this.getPtendy().hashCode(); }\r
-        if (this.getSeqno() != null) { result = result + this.getSeqno().hashCode(); }\r
-        if (this.getHeadstyle() != null) { result = result + this.getHeadstyle().hashCode(); }\r
-        if (this.getLinestyle() != null) { result = result + this.getLinestyle().hashCode(); }\r
-        if (this.getRoutestyle() != null) { result = result + this.getRoutestyle().hashCode(); }\r
-        if (this.getIsbold() != null) { result = result + this.getIsbold().hashCode(); }\r
-        if (this.getLinecolor() != null) { result = result + this.getLinecolor().hashCode(); }\r
-        if (this.getStereotype() != null) { result = result + this.getStereotype().hashCode(); }\r
-        if (this.getVirtualinheritance() != null) { result = result + this.getVirtualinheritance().hashCode(); }\r
-        if (this.getLinkaccess() != null) { result = result + this.getLinkaccess().hashCode(); }\r
-        if (this.getPdata1() != null) { result = result + this.getPdata1().hashCode(); }\r
-        if (this.getPdata2() != null) { result = result + this.getPdata2().hashCode(); }\r
-        if (this.getPdata3() != null) { result = result + this.getPdata3().hashCode(); }\r
-        if (this.getPdata4() != null) { result = result + this.getPdata4().hashCode(); }\r
-        if (this.getPdata5() != null) { result = result + this.getPdata5().hashCode(); }\r
-        if (this.getDiagramid() != null) { result = result + this.getDiagramid().hashCode(); }\r
-        if (this.getEaGuid() != null) { result = result + this.getEaGuid().hashCode(); }\r
-        if (this.getSourceconstraint() != null) { result = result + this.getSourceconstraint().hashCode(); }\r
-        if (this.getDestconstraint() != null) { result = result + this.getDestconstraint().hashCode(); }\r
-        if (this.getSourceisnavigable() != null) { result = result + this.getSourceisnavigable().hashCode(); }\r
-        if (this.getDestisnavigable() != null) { result = result + this.getDestisnavigable().hashCode(); }\r
-        if (this.getIsroot() != null) { result = result + this.getIsroot().hashCode(); }\r
-        if (this.getIsleaf() != null) { result = result + this.getIsleaf().hashCode(); }\r
-        if (this.getIsspec() != null) { result = result + this.getIsspec().hashCode(); }\r
-        if (this.getSourcechangeable() != null) { result = result + this.getSourcechangeable().hashCode(); }\r
-        if (this.getDestchangeable() != null) { result = result + this.getDestchangeable().hashCode(); }\r
-        if (this.getSourcets() != null) { result = result + this.getSourcets().hashCode(); }\r
-        if (this.getDestts() != null) { result = result + this.getDestts().hashCode(); }\r
-        if (this.getStateflags() != null) { result = result + this.getStateflags().hashCode(); }\r
-        if (this.getActionflags() != null) { result = result + this.getActionflags().hashCode(); }\r
-        if (this.getIssignal() != null) { result = result + this.getIssignal().hashCode(); }\r
-        if (this.getIsstimulus() != null) { result = result + this.getIsstimulus().hashCode(); }\r
-        if (this.getDispatchaction() != null) { result = result + this.getDispatchaction().hashCode(); }\r
-        if (this.getTarget2() != null) { result = result + this.getTarget2().hashCode(); }\r
-        if (this.getStyleex() != null) { result = result + this.getStyleex().hashCode(); }\r
-        if (this.getSourcestereotype() != null) { result = result + this.getSourcestereotype().hashCode(); }\r
-        if (this.getDeststereotype() != null) { result = result + this.getDeststereotype().hashCode(); }\r
-        if (this.getSourcestyle() != null) { result = result + this.getSourcestyle().hashCode(); }\r
-        if (this.getDeststyle() != null) { result = result + this.getDeststyle().hashCode(); }\r
-        if (this.getEventflags() != null) { result = result + this.getEventflags().hashCode(); }\r
+        if (this.getConnectorId() != null) { result = result + getConnectorId().hashCode(); }\r
         return result;\r
     }\r
 \r
@@ -747,12 +592,12 @@ public abstract class BsTConnector implements Entity, java.io.Serializable {
     //                                                                            Accessor\r
     //                                                                            ========\r
 \r
-    /** The column annotation for S2Dao. {UQ : COUNTER : NotNull} */\r
+    /** The column annotation for S2Dao. {PK : UQ : COUNTER : NotNull} */\r
     public static final String connectorId_COLUMN = "Connector_ID";\r
 \r
     /**\r
      * Get the value of the column 'Connector_ID'. <br />\r
-     * {UQ : COUNTER : NotNull}\r
+     * {PK : UQ : COUNTER : NotNull}\r
      * @return The value of the column 'Connector_ID'. (Nullable)\r
      */\r
     public java.lang.Integer getConnectorId() {\r
@@ -761,7 +606,7 @@ public abstract class BsTConnector implements Entity, java.io.Serializable {
 \r
     /**\r
      * Set the value of the column 'Connector_ID'. <br />\r
-     * {UQ : COUNTER : NotNull}\r
+     * {PK : UQ : COUNTER : NotNull}\r
      * @param connectorId The value of the column 'Connector_ID'. (Nullable)\r
      */\r
     public void setConnectorId(java.lang.Integer connectorId) {\r
index 5002672..2f08e1d 100644 (file)
@@ -5,12 +5,13 @@ import java.util.*;
 import jp.sourceforge.ea2ddl.dao.allcommon.Entity;\r
 import jp.sourceforge.ea2ddl.dao.allcommon.dbmeta.DBMeta;\r
 import jp.sourceforge.ea2ddl.dao.allcommon.dbmeta.DBMetaInstanceHandler;\r
+import jp.sourceforge.ea2ddl.dao.exentity.*;\r
 \r
 /**\r
  * The entity of t_object(TABLE).\r
  * <pre>\r
  * [primary-key]\r
- *     \r
+ *     Object_ID\r
  * \r
  * [column]\r
  *     Object_ID, Object_Type, Diagram_ID, Name, Alias, Author, Version, Note, Package_ID, Stereotype, NType, Complexity, Effort, Style, Backcolor, BorderStyle, BorderWidth, Fontcolor, Bordercolor, CreatedDate, ModifiedDate, Status, Tagged, PDATA1, PDATA2, PDATA3, PDATA4, PDATA5, Concurrency, Visibility, Persistence, Cardinality, GenType, GenFile, Header1, Header2, Phase, Scope, GenOption, GenLinks, Classifier, ea_guid, ParentID, RunState, Classifier_guid, TPos, IsRoot, IsLeaf, IsSpec, IsActive, StateFlags, PackageFlags, Multiplicity, StyleEx, ActionFlags, EventFlags\r
@@ -28,13 +29,13 @@ import jp.sourceforge.ea2ddl.dao.allcommon.dbmeta.DBMetaInstanceHandler;
  *     \r
  * \r
  * [referrer-table]\r
- *     \r
+ *     t_objectproperties, t_attribute, t_operation, t_connector\r
  * \r
  * [foreign-property]\r
  *     \r
  * \r
  * [referrer-property]\r
- *     \r
+ *     tObjectpropertiesList, tAttributeList, tOperationList, tConnectorByStartObjectIdList, tConnectorByEndObjectIdList\r
  * </pre>\r
  * @author DBFlute(AutoGenerator)\r
  */
@@ -57,7 +58,7 @@ public abstract class BsTObject implements Entity, java.io.Serializable {
     // -----------------------------------------------------\r
     //                                                Column\r
     //                                                ------\r
-    /** The attribute of the column 'Object_ID'. {UQ : COUNTER : NotNull} */\r
+    /** The attribute of the column 'Object_ID'. {PK : UQ : COUNTER : NotNull} */\r
     protected java.lang.Integer _objectId;\r
 \r
     /** The attribute of the column 'Object_Type'. {VARCHAR(255)} */\r
@@ -270,12 +271,133 @@ public abstract class BsTObject implements Entity, java.io.Serializable {
     // ===================================================================================\r
     //                                                                   Referrer Property\r
     //                                                                   =================\r
+    // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r
+    //   Referrer Property = [TObjectpropertiesList]\r
+    // * * * * * * * * */\r
+\r
+    /** The entity list of referrer property 'TObjectpropertiesList'. */\r
+    protected List<TObjectproperties> _childrenTObjectpropertiesList;\r
+\r
+    /**\r
+     * Get the entity list of referrer property 'TObjectpropertiesList'. {without lazy-load} <br />\r
+     * @return The entity list of referrer property 'TObjectpropertiesList'. (NotNull: If it's not loaded yet, initializes the list instance of referrer as empty and returns it.)\r
+     */\r
+    public List<TObjectproperties> getTObjectpropertiesList() {\r
+        if (_childrenTObjectpropertiesList == null) { _childrenTObjectpropertiesList = new ArrayList<TObjectproperties>(); }\r
+        return _childrenTObjectpropertiesList;\r
+    }\r
+\r
+    /**\r
+     * Set the entity list of referrer property 'TObjectpropertiesList'.\r
+     * @param tObjectpropertiesList The entity list of referrer property 'TObjectpropertiesList'. (Nullable)\r
+     */\r
+    public void setTObjectpropertiesList(List<TObjectproperties> tObjectpropertiesList) {\r
+        _childrenTObjectpropertiesList = tObjectpropertiesList;\r
+    }\r
+\r
+    // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r
+    //   Referrer Property = [TAttributeList]\r
+    // * * * * * * * * */\r
+\r
+    /** The entity list of referrer property 'TAttributeList'. */\r
+    protected List<TAttribute> _childrenTAttributeList;\r
+\r
+    /**\r
+     * Get the entity list of referrer property 'TAttributeList'. {without lazy-load} <br />\r
+     * @return The entity list of referrer property 'TAttributeList'. (NotNull: If it's not loaded yet, initializes the list instance of referrer as empty and returns it.)\r
+     */\r
+    public List<TAttribute> getTAttributeList() {\r
+        if (_childrenTAttributeList == null) { _childrenTAttributeList = new ArrayList<TAttribute>(); }\r
+        return _childrenTAttributeList;\r
+    }\r
+\r
+    /**\r
+     * Set the entity list of referrer property 'TAttributeList'.\r
+     * @param tAttributeList The entity list of referrer property 'TAttributeList'. (Nullable)\r
+     */\r
+    public void setTAttributeList(List<TAttribute> tAttributeList) {\r
+        _childrenTAttributeList = tAttributeList;\r
+    }\r
+\r
+    // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r
+    //   Referrer Property = [TOperationList]\r
+    // * * * * * * * * */\r
+\r
+    /** The entity list of referrer property 'TOperationList'. */\r
+    protected List<TOperation> _childrenTOperationList;\r
+\r
+    /**\r
+     * Get the entity list of referrer property 'TOperationList'. {without lazy-load} <br />\r
+     * @return The entity list of referrer property 'TOperationList'. (NotNull: If it's not loaded yet, initializes the list instance of referrer as empty and returns it.)\r
+     */\r
+    public List<TOperation> getTOperationList() {\r
+        if (_childrenTOperationList == null) { _childrenTOperationList = new ArrayList<TOperation>(); }\r
+        return _childrenTOperationList;\r
+    }\r
+\r
+    /**\r
+     * Set the entity list of referrer property 'TOperationList'.\r
+     * @param tOperationList The entity list of referrer property 'TOperationList'. (Nullable)\r
+     */\r
+    public void setTOperationList(List<TOperation> tOperationList) {\r
+        _childrenTOperationList = tOperationList;\r
+    }\r
+\r
+    // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r
+    //   Referrer Property = [TConnectorByStartObjectIdList]\r
+    // * * * * * * * * */\r
+\r
+    /** The entity list of referrer property 'TConnectorByStartObjectIdList'. */\r
+    protected List<TConnector> _childrenTConnectorByStartObjectIdList;\r
+\r
+    /**\r
+     * Get the entity list of referrer property 'TConnectorByStartObjectIdList'. {without lazy-load} <br />\r
+     * @return The entity list of referrer property 'TConnectorByStartObjectIdList'. (NotNull: If it's not loaded yet, initializes the list instance of referrer as empty and returns it.)\r
+     */\r
+    public List<TConnector> getTConnectorByStartObjectIdList() {\r
+        if (_childrenTConnectorByStartObjectIdList == null) { _childrenTConnectorByStartObjectIdList = new ArrayList<TConnector>(); }\r
+        return _childrenTConnectorByStartObjectIdList;\r
+    }\r
+\r
+    /**\r
+     * Set the entity list of referrer property 'TConnectorByStartObjectIdList'.\r
+     * @param tConnectorByStartObjectIdList The entity list of referrer property 'TConnectorByStartObjectIdList'. (Nullable)\r
+     */\r
+    public void setTConnectorByStartObjectIdList(List<TConnector> tConnectorByStartObjectIdList) {\r
+        _childrenTConnectorByStartObjectIdList = tConnectorByStartObjectIdList;\r
+    }\r
+\r
+    // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r
+    //   Referrer Property = [TConnectorByEndObjectIdList]\r
+    // * * * * * * * * */\r
+\r
+    /** The entity list of referrer property 'TConnectorByEndObjectIdList'. */\r
+    protected List<TConnector> _childrenTConnectorByEndObjectIdList;\r
+\r
+    /**\r
+     * Get the entity list of referrer property 'TConnectorByEndObjectIdList'. {without lazy-load} <br />\r
+     * @return The entity list of referrer property 'TConnectorByEndObjectIdList'. (NotNull: If it's not loaded yet, initializes the list instance of referrer as empty and returns it.)\r
+     */\r
+    public List<TConnector> getTConnectorByEndObjectIdList() {\r
+        if (_childrenTConnectorByEndObjectIdList == null) { _childrenTConnectorByEndObjectIdList = new ArrayList<TConnector>(); }\r
+        return _childrenTConnectorByEndObjectIdList;\r
+    }\r
+\r
+    /**\r
+     * Set the entity list of referrer property 'TConnectorByEndObjectIdList'.\r
+     * @param tConnectorByEndObjectIdList The entity list of referrer property 'TConnectorByEndObjectIdList'. (Nullable)\r
+     */\r
+    public void setTConnectorByEndObjectIdList(List<TConnector> tConnectorByEndObjectIdList) {\r
+        _childrenTConnectorByEndObjectIdList = tConnectorByEndObjectIdList;\r
+    }\r
+\r
 \r
     // ===================================================================================\r
     //                                                                       Determination\r
     //                                                                       =============\r
     public boolean hasPrimaryKeyValue() {\r
-        return false;\r
+        if (_objectId == null) { return false; }\r
+        return true;\r
     }\r
 \r
     // ===================================================================================\r
@@ -301,69 +423,14 @@ public abstract class BsTObject implements Entity, java.io.Serializable {
     //                                                                      Basic Override\r
     //                                                                      ==============\r
     /**\r
-     * If the all-column value of the other is same as this one, returns true.\r
-     * @param other Other entity. (Nullable)\r
-     * @return Comparing result. If other is null, returns false.\r
+     * If the primary-key of the other is same as this one, returns true.\r
+     * @param other Other entity.\r
+     * @return Comparing result.\r
      */\r
     public boolean equals(Object other) {\r
         if (other == null || !(other instanceof BsTObject)) { return false; }\r
-        final BsTObject otherEntity = (BsTObject)other;\r
+        BsTObject otherEntity = (BsTObject)other;\r
         if (!helpComparingValue(getObjectId(), otherEntity.getObjectId())) { return false; }\r
-        if (!helpComparingValue(getObjectType(), otherEntity.getObjectType())) { return false; }\r
-        if (!helpComparingValue(getDiagramId(), otherEntity.getDiagramId())) { return false; }\r
-        if (!helpComparingValue(getName(), otherEntity.getName())) { return false; }\r
-        if (!helpComparingValue(getAlias(), otherEntity.getAlias())) { return false; }\r
-        if (!helpComparingValue(getAuthor(), otherEntity.getAuthor())) { return false; }\r
-        if (!helpComparingValue(getVersion(), otherEntity.getVersion())) { return false; }\r
-        if (!helpComparingValue(getNote(), otherEntity.getNote())) { return false; }\r
-        if (!helpComparingValue(getPackageId(), otherEntity.getPackageId())) { return false; }\r
-        if (!helpComparingValue(getStereotype(), otherEntity.getStereotype())) { return false; }\r
-        if (!helpComparingValue(getNtype(), otherEntity.getNtype())) { return false; }\r
-        if (!helpComparingValue(getComplexity(), otherEntity.getComplexity())) { return false; }\r
-        if (!helpComparingValue(getEffort(), otherEntity.getEffort())) { return false; }\r
-        if (!helpComparingValue(getStyle(), otherEntity.getStyle())) { return false; }\r
-        if (!helpComparingValue(getBackcolor(), otherEntity.getBackcolor())) { return false; }\r
-        if (!helpComparingValue(getBorderstyle(), otherEntity.getBorderstyle())) { return false; }\r
-        if (!helpComparingValue(getBorderwidth(), otherEntity.getBorderwidth())) { return false; }\r
-        if (!helpComparingValue(getFontcolor(), otherEntity.getFontcolor())) { return false; }\r
-        if (!helpComparingValue(getBordercolor(), otherEntity.getBordercolor())) { return false; }\r
-        if (!helpComparingValue(getCreateddate(), otherEntity.getCreateddate())) { return false; }\r
-        if (!helpComparingValue(getModifieddate(), otherEntity.getModifieddate())) { return false; }\r
-        if (!helpComparingValue(getStatus(), otherEntity.getStatus())) { return false; }\r
-        if (!helpComparingValue(getTagged(), otherEntity.getTagged())) { return false; }\r
-        if (!helpComparingValue(getPdata1(), otherEntity.getPdata1())) { return false; }\r
-        if (!helpComparingValue(getPdata2(), otherEntity.getPdata2())) { return false; }\r
-        if (!helpComparingValue(getPdata3(), otherEntity.getPdata3())) { return false; }\r
-        if (!helpComparingValue(getPdata4(), otherEntity.getPdata4())) { return false; }\r
-        if (!helpComparingValue(getPdata5(), otherEntity.getPdata5())) { return false; }\r
-        if (!helpComparingValue(getConcurrency(), otherEntity.getConcurrency())) { return false; }\r
-        if (!helpComparingValue(getVisibility(), otherEntity.getVisibility())) { return false; }\r
-        if (!helpComparingValue(getPersistence(), otherEntity.getPersistence())) { return false; }\r
-        if (!helpComparingValue(getCardinality(), otherEntity.getCardinality())) { return false; }\r
-        if (!helpComparingValue(getGentype(), otherEntity.getGentype())) { return false; }\r
-        if (!helpComparingValue(getGenfile(), otherEntity.getGenfile())) { return false; }\r
-        if (!helpComparingValue(getHeader1(), otherEntity.getHeader1())) { return false; }\r
-        if (!helpComparingValue(getHeader2(), otherEntity.getHeader2())) { return false; }\r
-        if (!helpComparingValue(getPhase(), otherEntity.getPhase())) { return false; }\r
-        if (!helpComparingValue(getScope(), otherEntity.getScope())) { return false; }\r
-        if (!helpComparingValue(getGenoption(), otherEntity.getGenoption())) { return false; }\r
-        if (!helpComparingValue(getGenlinks(), otherEntity.getGenlinks())) { return false; }\r
-        if (!helpComparingValue(getClassifier(), otherEntity.getClassifier())) { return false; }\r
-        if (!helpComparingValue(getEaGuid(), otherEntity.getEaGuid())) { return false; }\r
-        if (!helpComparingValue(getParentid(), otherEntity.getParentid())) { return false; }\r
-        if (!helpComparingValue(getRunstate(), otherEntity.getRunstate())) { return false; }\r
-        if (!helpComparingValue(getClassifierGuid(), otherEntity.getClassifierGuid())) { return false; }\r
-        if (!helpComparingValue(getTpos(), otherEntity.getTpos())) { return false; }\r
-        if (!helpComparingValue(getIsroot(), otherEntity.getIsroot())) { return false; }\r
-        if (!helpComparingValue(getIsleaf(), otherEntity.getIsleaf())) { return false; }\r
-        if (!helpComparingValue(getIsspec(), otherEntity.getIsspec())) { return false; }\r
-        if (!helpComparingValue(getIsactive(), otherEntity.getIsactive())) { return false; }\r
-        if (!helpComparingValue(getStateflags(), otherEntity.getStateflags())) { return false; }\r
-        if (!helpComparingValue(getPackageflags(), otherEntity.getPackageflags())) { return false; }\r
-        if (!helpComparingValue(getMultiplicity(), otherEntity.getMultiplicity())) { return false; }\r
-        if (!helpComparingValue(getStyleex(), otherEntity.getStyleex())) { return false; }\r
-        if (!helpComparingValue(getActionflags(), otherEntity.getActionflags())) { return false; }\r
-        if (!helpComparingValue(getEventflags(), otherEntity.getEventflags())) { return false; }\r
         return true;\r
     }\r
 \r
@@ -373,67 +440,12 @@ public abstract class BsTObject implements Entity, java.io.Serializable {
     }\r
 \r
     /**\r
-     * Calculates hash-code from all columns.\r
-     * @return Hash-code from all-columns.\r
+     * Calculates hash-code from primary-key.\r
+     * @return Hash-code from primary-keys.\r
      */\r
     public int hashCode() {\r
         int result = 17;\r
-        if (this.getObjectId() != null) { result = result + this.getObjectId().hashCode(); }\r
-        if (this.getObjectType() != null) { result = result + this.getObjectType().hashCode(); }\r
-        if (this.getDiagramId() != null) { result = result + this.getDiagramId().hashCode(); }\r
-        if (this.getName() != null) { result = result + this.getName().hashCode(); }\r
-        if (this.getAlias() != null) { result = result + this.getAlias().hashCode(); }\r
-        if (this.getAuthor() != null) { result = result + this.getAuthor().hashCode(); }\r
-        if (this.getVersion() != null) { result = result + this.getVersion().hashCode(); }\r
-        if (this.getNote() != null) { result = result + this.getNote().hashCode(); }\r
-        if (this.getPackageId() != null) { result = result + this.getPackageId().hashCode(); }\r
-        if (this.getStereotype() != null) { result = result + this.getStereotype().hashCode(); }\r
-        if (this.getNtype() != null) { result = result + this.getNtype().hashCode(); }\r
-        if (this.getComplexity() != null) { result = result + this.getComplexity().hashCode(); }\r
-        if (this.getEffort() != null) { result = result + this.getEffort().hashCode(); }\r
-        if (this.getStyle() != null) { result = result + this.getStyle().hashCode(); }\r
-        if (this.getBackcolor() != null) { result = result + this.getBackcolor().hashCode(); }\r
-        if (this.getBorderstyle() != null) { result = result + this.getBorderstyle().hashCode(); }\r
-        if (this.getBorderwidth() != null) { result = result + this.getBorderwidth().hashCode(); }\r
-        if (this.getFontcolor() != null) { result = result + this.getFontcolor().hashCode(); }\r
-        if (this.getBordercolor() != null) { result = result + this.getBordercolor().hashCode(); }\r
-        if (this.getCreateddate() != null) { result = result + this.getCreateddate().hashCode(); }\r
-        if (this.getModifieddate() != null) { result = result + this.getModifieddate().hashCode(); }\r
-        if (this.getStatus() != null) { result = result + this.getStatus().hashCode(); }\r
-        if (this.getTagged() != null) { result = result + this.getTagged().hashCode(); }\r
-        if (this.getPdata1() != null) { result = result + this.getPdata1().hashCode(); }\r
-        if (this.getPdata2() != null) { result = result + this.getPdata2().hashCode(); }\r
-        if (this.getPdata3() != null) { result = result + this.getPdata3().hashCode(); }\r
-        if (this.getPdata4() != null) { result = result + this.getPdata4().hashCode(); }\r
-        if (this.getPdata5() != null) { result = result + this.getPdata5().hashCode(); }\r
-        if (this.getConcurrency() != null) { result = result + this.getConcurrency().hashCode(); }\r
-        if (this.getVisibility() != null) { result = result + this.getVisibility().hashCode(); }\r
-        if (this.getPersistence() != null) { result = result + this.getPersistence().hashCode(); }\r
-        if (this.getCardinality() != null) { result = result + this.getCardinality().hashCode(); }\r
-        if (this.getGentype() != null) { result = result + this.getGentype().hashCode(); }\r
-        if (this.getGenfile() != null) { result = result + this.getGenfile().hashCode(); }\r
-        if (this.getHeader1() != null) { result = result + this.getHeader1().hashCode(); }\r
-        if (this.getHeader2() != null) { result = result + this.getHeader2().hashCode(); }\r
-        if (this.getPhase() != null) { result = result + this.getPhase().hashCode(); }\r
-        if (this.getScope() != null) { result = result + this.getScope().hashCode(); }\r
-        if (this.getGenoption() != null) { result = result + this.getGenoption().hashCode(); }\r
-        if (this.getGenlinks() != null) { result = result + this.getGenlinks().hashCode(); }\r
-        if (this.getClassifier() != null) { result = result + this.getClassifier().hashCode(); }\r
-        if (this.getEaGuid() != null) { result = result + this.getEaGuid().hashCode(); }\r
-        if (this.getParentid() != null) { result = result + this.getParentid().hashCode(); }\r
-        if (this.getRunstate() != null) { result = result + this.getRunstate().hashCode(); }\r
-        if (this.getClassifierGuid() != null) { result = result + this.getClassifierGuid().hashCode(); }\r
-        if (this.getTpos() != null) { result = result + this.getTpos().hashCode(); }\r
-        if (this.getIsroot() != null) { result = result + this.getIsroot().hashCode(); }\r
-        if (this.getIsleaf() != null) { result = result + this.getIsleaf().hashCode(); }\r
-        if (this.getIsspec() != null) { result = result + this.getIsspec().hashCode(); }\r
-        if (this.getIsactive() != null) { result = result + this.getIsactive().hashCode(); }\r
-        if (this.getStateflags() != null) { result = result + this.getStateflags().hashCode(); }\r
-        if (this.getPackageflags() != null) { result = result + this.getPackageflags().hashCode(); }\r
-        if (this.getMultiplicity() != null) { result = result + this.getMultiplicity().hashCode(); }\r
-        if (this.getStyleex() != null) { result = result + this.getStyleex().hashCode(); }\r
-        if (this.getActionflags() != null) { result = result + this.getActionflags().hashCode(); }\r
-        if (this.getEventflags() != null) { result = result + this.getEventflags().hashCode(); }\r
+        if (this.getObjectId() != null) { result = result + getObjectId().hashCode(); }\r
         return result;\r
     }\r
 \r
@@ -508,12 +520,12 @@ public abstract class BsTObject implements Entity, java.io.Serializable {
     //                                                                            Accessor\r
     //                                                                            ========\r
 \r
-    /** The column annotation for S2Dao. {UQ : COUNTER : NotNull} */\r
+    /** The column annotation for S2Dao. {PK : UQ : COUNTER : NotNull} */\r
     public static final String objectId_COLUMN = "Object_ID";\r
 \r
     /**\r
      * Get the value of the column 'Object_ID'. <br />\r
-     * {UQ : COUNTER : NotNull}\r
+     * {PK : UQ : COUNTER : NotNull}\r
      * @return The value of the column 'Object_ID'. (Nullable)\r
      */\r
     public java.lang.Integer getObjectId() {\r
@@ -522,7 +534,7 @@ public abstract class BsTObject implements Entity, java.io.Serializable {
 \r
     /**\r
      * Set the value of the column 'Object_ID'. <br />\r
-     * {UQ : COUNTER : NotNull}\r
+     * {PK : UQ : COUNTER : NotNull}\r
      * @param objectId The value of the column 'Object_ID'. (Nullable)\r
      */\r
     public void setObjectId(java.lang.Integer objectId) {\r
index d2781aa..e3c5698 100644 (file)
@@ -11,7 +11,7 @@ import jp.sourceforge.ea2ddl.dao.exentity.*;
  * The entity of t_operation(TABLE).\r
  * <pre>\r
  * [primary-key]\r
- *     \r
+ *     OperationID\r
  * \r
  * [column]\r
  *     OperationID, Object_ID, Name, Scope, Type, ReturnArray, Stereotype, IsStatic, Concurrency, Notes, Behaviour, GenOption, Pos, Style, Pure, Classifier, Code, IsRoot, IsLeaf, IsQuery, StateFlags, ea_guid, StyleEx\r
@@ -29,13 +29,13 @@ import jp.sourceforge.ea2ddl.dao.exentity.*;
  *     t_object\r
  * \r
  * [referrer-table]\r
- *     \r
+ *     t_operationparams\r
  * \r
  * [foreign-property]\r
  *     tObject\r
  * \r
  * [referrer-property]\r
- *     \r
+ *     tOperationparamsList\r
  * </pre>\r
  * @author DBFlute(AutoGenerator)\r
  */
@@ -58,7 +58,7 @@ public abstract class BsTOperation implements Entity, java.io.Serializable {
     // -----------------------------------------------------\r
     //                                                Column\r
     //                                                ------\r
-    /** The attribute of the column 'OperationID'. {UQ : COUNTER : NotNull} */\r
+    /** The attribute of the column 'OperationID'. {PK : UQ : COUNTER : NotNull} */\r
     protected java.lang.Integer _operationid;\r
 \r
     /** The attribute of the column 'Object_ID'. {INTEGER} */\r
@@ -197,12 +197,37 @@ public abstract class BsTOperation implements Entity, java.io.Serializable {
     // ===================================================================================\r
     //                                                                   Referrer Property\r
     //                                                                   =================\r
+    // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r
+    //   Referrer Property = [TOperationparamsList]\r
+    // * * * * * * * * */\r
+\r
+    /** The entity list of referrer property 'TOperationparamsList'. */\r
+    protected List<TOperationparams> _childrenTOperationparamsList;\r
+\r
+    /**\r
+     * Get the entity list of referrer property 'TOperationparamsList'. {without lazy-load} <br />\r
+     * @return The entity list of referrer property 'TOperationparamsList'. (NotNull: If it's not loaded yet, initializes the list instance of referrer as empty and returns it.)\r
+     */\r
+    public List<TOperationparams> getTOperationparamsList() {\r
+        if (_childrenTOperationparamsList == null) { _childrenTOperationparamsList = new ArrayList<TOperationparams>(); }\r
+        return _childrenTOperationparamsList;\r
+    }\r
+\r
+    /**\r
+     * Set the entity list of referrer property 'TOperationparamsList'.\r
+     * @param tOperationparamsList The entity list of referrer property 'TOperationparamsList'. (Nullable)\r
+     */\r
+    public void setTOperationparamsList(List<TOperationparams> tOperationparamsList) {\r
+        _childrenTOperationparamsList = tOperationparamsList;\r
+    }\r
+\r
 \r
     // ===================================================================================\r
     //                                                                       Determination\r
     //                                                                       =============\r
     public boolean hasPrimaryKeyValue() {\r
-        return false;\r
+        if (_operationid == null) { return false; }\r
+        return true;\r
     }\r
 \r
     // ===================================================================================\r
@@ -228,36 +253,14 @@ public abstract class BsTOperation implements Entity, java.io.Serializable {
     //                                                                      Basic Override\r
     //                                                                      ==============\r
     /**\r
-     * If the all-column value of the other is same as this one, returns true.\r
-     * @param other Other entity. (Nullable)\r
-     * @return Comparing result. If other is null, returns false.\r
+     * If the primary-key of the other is same as this one, returns true.\r
+     * @param other Other entity.\r
+     * @return Comparing result.\r
      */\r
     public boolean equals(Object other) {\r
         if (other == null || !(other instanceof BsTOperation)) { return false; }\r
-        final BsTOperation otherEntity = (BsTOperation)other;\r
+        BsTOperation otherEntity = (BsTOperation)other;\r
         if (!helpComparingValue(getOperationid(), otherEntity.getOperationid())) { return false; }\r
-        if (!helpComparingValue(getObjectId(), otherEntity.getObjectId())) { return false; }\r
-        if (!helpComparingValue(getName(), otherEntity.getName())) { return false; }\r
-        if (!helpComparingValue(getScope(), otherEntity.getScope())) { return false; }\r
-        if (!helpComparingValue(getType(), otherEntity.getType())) { return false; }\r
-        if (!helpComparingValue(getReturnarray(), otherEntity.getReturnarray())) { return false; }\r
-        if (!helpComparingValue(getStereotype(), otherEntity.getStereotype())) { return false; }\r
-        if (!helpComparingValue(getIsstatic(), otherEntity.getIsstatic())) { return false; }\r
-        if (!helpComparingValue(getConcurrency(), otherEntity.getConcurrency())) { return false; }\r
-        if (!helpComparingValue(getNotes(), otherEntity.getNotes())) { return false; }\r
-        if (!helpComparingValue(getBehaviour(), otherEntity.getBehaviour())) { return false; }\r
-        if (!helpComparingValue(getGenoption(), otherEntity.getGenoption())) { return false; }\r
-        if (!helpComparingValue(getPos(), otherEntity.getPos())) { return false; }\r
-        if (!helpComparingValue(getStyle(), otherEntity.getStyle())) { return false; }\r
-        if (!helpComparingValue(getPure(), otherEntity.getPure())) { return false; }\r
-        if (!helpComparingValue(getClassifier(), otherEntity.getClassifier())) { return false; }\r
-        if (!helpComparingValue(getCode(), otherEntity.getCode())) { return false; }\r
-        if (!helpComparingValue(getIsroot(), otherEntity.getIsroot())) { return false; }\r
-        if (!helpComparingValue(getIsleaf(), otherEntity.getIsleaf())) { return false; }\r
-        if (!helpComparingValue(getIsquery(), otherEntity.getIsquery())) { return false; }\r
-        if (!helpComparingValue(getStateflags(), otherEntity.getStateflags())) { return false; }\r
-        if (!helpComparingValue(getEaGuid(), otherEntity.getEaGuid())) { return false; }\r
-        if (!helpComparingValue(getStyleex(), otherEntity.getStyleex())) { return false; }\r
         return true;\r
     }\r
 \r
@@ -267,34 +270,12 @@ public abstract class BsTOperation implements Entity, java.io.Serializable {
     }\r
 \r
     /**\r
-     * Calculates hash-code from all columns.\r
-     * @return Hash-code from all-columns.\r
+     * Calculates hash-code from primary-key.\r
+     * @return Hash-code from primary-keys.\r
      */\r
     public int hashCode() {\r
         int result = 17;\r
-        if (this.getOperationid() != null) { result = result + this.getOperationid().hashCode(); }\r
-        if (this.getObjectId() != null) { result = result + this.getObjectId().hashCode(); }\r
-        if (this.getName() != null) { result = result + this.getName().hashCode(); }\r
-        if (this.getScope() != null) { result = result + this.getScope().hashCode(); }\r
-        if (this.getType() != null) { result = result + this.getType().hashCode(); }\r
-        if (this.getReturnarray() != null) { result = result + this.getReturnarray().hashCode(); }\r
-        if (this.getStereotype() != null) { result = result + this.getStereotype().hashCode(); }\r
-        if (this.getIsstatic() != null) { result = result + this.getIsstatic().hashCode(); }\r
-        if (this.getConcurrency() != null) { result = result + this.getConcurrency().hashCode(); }\r
-        if (this.getNotes() != null) { result = result + this.getNotes().hashCode(); }\r
-        if (this.getBehaviour() != null) { result = result + this.getBehaviour().hashCode(); }\r
-        if (this.getGenoption() != null) { result = result + this.getGenoption().hashCode(); }\r
-        if (this.getPos() != null) { result = result + this.getPos().hashCode(); }\r
-        if (this.getStyle() != null) { result = result + this.getStyle().hashCode(); }\r
-        if (this.getPure() != null) { result = result + this.getPure().hashCode(); }\r
-        if (this.getClassifier() != null) { result = result + this.getClassifier().hashCode(); }\r
-        if (this.getCode() != null) { result = result + this.getCode().hashCode(); }\r
-        if (this.getIsroot() != null) { result = result + this.getIsroot().hashCode(); }\r
-        if (this.getIsleaf() != null) { result = result + this.getIsleaf().hashCode(); }\r
-        if (this.getIsquery() != null) { result = result + this.getIsquery().hashCode(); }\r
-        if (this.getStateflags() != null) { result = result + this.getStateflags().hashCode(); }\r
-        if (this.getEaGuid() != null) { result = result + this.getEaGuid().hashCode(); }\r
-        if (this.getStyleex() != null) { result = result + this.getStyleex().hashCode(); }\r
+        if (this.getOperationid() != null) { result = result + getOperationid().hashCode(); }\r
         return result;\r
     }\r
 \r
@@ -336,12 +317,12 @@ public abstract class BsTOperation implements Entity, java.io.Serializable {
     //                                                                            Accessor\r
     //                                                                            ========\r
 \r
-    /** The column annotation for S2Dao. {UQ : COUNTER : NotNull} */\r
+    /** The column annotation for S2Dao. {PK : UQ : COUNTER : NotNull} */\r
     public static final String operationid_COLUMN = "OperationID";\r
 \r
     /**\r
      * Get the value of the column 'OperationID'. <br />\r
-     * {UQ : COUNTER : NotNull}\r
+     * {PK : UQ : COUNTER : NotNull}\r
      * @return The value of the column 'OperationID'. (Nullable)\r
      */\r
     public java.lang.Integer getOperationid() {\r
@@ -350,7 +331,7 @@ public abstract class BsTOperation implements Entity, java.io.Serializable {
 \r
     /**\r
      * Set the value of the column 'OperationID'. <br />\r
-     * {UQ : COUNTER : NotNull}\r
+     * {PK : UQ : COUNTER : NotNull}\r
      * @param operationid The value of the column 'OperationID'. (Nullable)\r
      */\r
     public void setOperationid(java.lang.Integer operationid) {\r
index 1a2c76b..4697559 100644 (file)
@@ -29,7 +29,7 @@ public class TConnectorDbm extends AbstractDBMeta {
     // ===================================================================================\r
     //                                                                         Column Info\r
     //                                                                         ===========\r
-    protected ColumnInfo _columnConnectorId = cci("Connector_ID", "connectorId", java.lang.Integer.class, false, null, null);\r
+    protected ColumnInfo _columnConnectorId = cci("Connector_ID", "connectorId", java.lang.Integer.class, true, null, null);\r
     protected ColumnInfo _columnName = cci("Name", "name", String.class, false, 255, 0);\r
     protected ColumnInfo _columnDirection = cci("Direction", "direction", String.class, false, 50, 0);\r
     protected ColumnInfo _columnNotes = cci("Notes", "notes", String.class, false, 2147483647, 0);\r
@@ -231,10 +231,8 @@ public class TConnectorDbm extends AbstractDBMeta {
     // -----------------------------------------------------\r
     //                                       Primary Element\r
     //                                       ---------------\r
-    public UniqueInfo getPrimaryUniqueInfo() {\r
-        throw new UnsupportedOperationException("The table doen not have primary key: " + getTableDbName());\r
-    }\r
-    public boolean hasPrimaryKey() { return false; }\r
+    public UniqueInfo getPrimaryUniqueInfo() { return createPrimaryUniqueInfo(columnConnectorId()); }\r
+    public boolean hasPrimaryKey() { return true; }\r
     public boolean hasTwoOrMorePrimaryKeys() { return false; }\r
 \r
     // ===================================================================================\r
index f4709a7..feb852f 100644 (file)
@@ -29,7 +29,7 @@ public class TObjectDbm extends AbstractDBMeta {
     // ===================================================================================\r
     //                                                                         Column Info\r
     //                                                                         ===========\r
-    protected ColumnInfo _columnObjectId = cci("Object_ID", "objectId", java.lang.Integer.class, false, null, null);\r
+    protected ColumnInfo _columnObjectId = cci("Object_ID", "objectId", java.lang.Integer.class, true, null, null);\r
     protected ColumnInfo _columnObjectType = cci("Object_Type", "objectType", String.class, false, 255, 0);\r
     protected ColumnInfo _columnDiagramId = cci("Diagram_ID", "diagramId", java.lang.Integer.class, false, null, null);\r
     protected ColumnInfo _columnName = cci("Name", "name", String.class, false, 255, 0);\r
@@ -185,10 +185,8 @@ public class TObjectDbm extends AbstractDBMeta {
     // -----------------------------------------------------\r
     //                                       Primary Element\r
     //                                       ---------------\r
-    public UniqueInfo getPrimaryUniqueInfo() {\r
-        throw new UnsupportedOperationException("The table doen not have primary key: " + getTableDbName());\r
-    }\r
-    public boolean hasPrimaryKey() { return false; }\r
+    public UniqueInfo getPrimaryUniqueInfo() { return createPrimaryUniqueInfo(columnObjectId()); }\r
+    public boolean hasPrimaryKey() { return true; }\r
     public boolean hasTwoOrMorePrimaryKeys() { return false; }\r
 \r
     // ===================================================================================\r
@@ -201,6 +199,26 @@ public class TObjectDbm extends AbstractDBMeta {
     // -----------------------------------------------------\r
     //                                     Referrer Property\r
     //                                     -----------------\r
+    public ReferrerInfo referrerTObjectpropertiesList() {\r
+        Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnObjectId(), TObjectpropertiesDbm.getInstance().columnObjectId());\r
+           return cri("TObjectpropertiesList", this, TObjectpropertiesDbm.getInstance(), map, false);\r
+    }\r
+    public ReferrerInfo referrerTAttributeList() {\r
+        Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnObjectId(), TAttributeDbm.getInstance().columnObjectId());\r
+           return cri("TAttributeList", this, TAttributeDbm.getInstance(), map, false);\r
+    }\r
+    public ReferrerInfo referrerTOperationList() {\r
+        Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnObjectId(), TOperationDbm.getInstance().columnObjectId());\r
+           return cri("TOperationList", this, TOperationDbm.getInstance(), map, false);\r
+    }\r
+    public ReferrerInfo referrerTConnectorByStartObjectIdList() {\r
+        Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnObjectId(), TConnectorDbm.getInstance().columnStartObjectId());\r
+           return cri("TConnectorByStartObjectIdList", this, TConnectorDbm.getInstance(), map, false);\r
+    }\r
+    public ReferrerInfo referrerTConnectorByEndObjectIdList() {\r
+        Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnObjectId(), TConnectorDbm.getInstance().columnEndObjectId());\r
+           return cri("TConnectorByEndObjectIdList", this, TConnectorDbm.getInstance(), map, false);\r
+    }\r
 \r
     // ===================================================================================\r
     //                                                                        Various Info\r
index cc92317..995017b 100644 (file)
@@ -29,7 +29,7 @@ public class TOperationDbm extends AbstractDBMeta {
     // ===================================================================================\r
     //                                                                         Column Info\r
     //                                                                         ===========\r
-    protected ColumnInfo _columnOperationid = cci("OperationID", "operationid", java.lang.Integer.class, false, null, null);\r
+    protected ColumnInfo _columnOperationid = cci("OperationID", "operationid", java.lang.Integer.class, true, null, null);\r
     protected ColumnInfo _columnObjectId = cci("Object_ID", "objectId", java.lang.Integer.class, false, null, null);\r
     protected ColumnInfo _columnName = cci("Name", "name", String.class, false, 255, 0);\r
     protected ColumnInfo _columnScope = cci("Scope", "scope", String.class, false, 50, 0);\r
@@ -119,10 +119,8 @@ public class TOperationDbm extends AbstractDBMeta {
     // -----------------------------------------------------\r
     //                                       Primary Element\r
     //                                       ---------------\r
-    public UniqueInfo getPrimaryUniqueInfo() {\r
-        throw new UnsupportedOperationException("The table doen not have primary key: " + getTableDbName());\r
-    }\r
-    public boolean hasPrimaryKey() { return false; }\r
+    public UniqueInfo getPrimaryUniqueInfo() { return createPrimaryUniqueInfo(columnOperationid()); }\r
+    public boolean hasPrimaryKey() { return true; }\r
     public boolean hasTwoOrMorePrimaryKeys() { return false; }\r
 \r
     // ===================================================================================\r
@@ -139,6 +137,10 @@ public class TOperationDbm extends AbstractDBMeta {
     // -----------------------------------------------------\r
     //                                     Referrer Property\r
     //                                     -----------------\r
+    public ReferrerInfo referrerTOperationparamsList() {\r
+        Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnOperationid(), TOperationparamsDbm.getInstance().columnOperationid());\r
+           return cri("TOperationparamsList", this, TOperationparamsDbm.getInstance(), map, false);\r
+    }\r
 \r
     // ===================================================================================\r
     //                                                                        Various Info\r
index 079b38c..ed530d2 100644 (file)
@@ -38,9 +38,15 @@ public class BsTConnectorCB extends AbstractConditionBean {
     //                                                                      PrimaryKey Map\r
     //                                                                      ==============\r
     public void acceptPrimaryKeyMap(Map<String, ? extends Object> primaryKeyMap) {\r
-\r
-        String msg = "This table has no primary-keys: " + getTableDbName();\r
-        throw new IllegalStateException(msg);\r
+        assertPrimaryKeyMap(primaryKeyMap);\r
+        {\r
+            Object obj = primaryKeyMap.get("Connector_ID");\r
+            if (obj instanceof java.lang.Integer) {\r
+                query().setConnectorId_Equal((java.lang.Integer)obj);\r
+            } else {\r
+                query().setConnectorId_Equal(new java.lang.Integer((String)obj));\r
+            }\r
+        }\r
 \r
     }\r
 \r
@@ -48,13 +54,13 @@ public class BsTConnectorCB extends AbstractConditionBean {
     //                                                                     OrderBy Setting\r
     //                                                                     ===============\r
     public ConditionBean addOrderBy_PK_Asc() {\r
-        String msg = "This table has no primary-keys: " + getTableDbName();\r
-        throw new IllegalStateException(msg);\r
+        query().addOrderBy_ConnectorId_Asc();\r
+        return this;\r
     }\r
 \r
     public ConditionBean addOrderBy_PK_Desc() {\r
-        String msg = "This table has no primary-keys: " + getTableDbName();\r
-        throw new IllegalStateException(msg);\r
+        query().addOrderBy_ConnectorId_Desc();\r
+        return this;\r
     }\r
 \r
     // ===================================================================================\r
@@ -274,6 +280,7 @@ public class BsTConnectorCB extends AbstractConditionBean {
         public void columnDeststyle() { doColumn("DestStyle"); }\r
         public void columnEventflags() { doColumn("EventFlags"); }\r
         protected void doSpecifyRequiredColumn() {\r
+            columnConnectorId();// PK\r
             if (_myQyCall.qy().hasConditionQueryTOperationBySourcerole()) {\r
                 columnSourcerole();// FK\r
             }\r
index ced174e..c6124d5 100644 (file)
@@ -37,9 +37,15 @@ public class BsTObjectCB extends AbstractConditionBean {
     //                                                                      PrimaryKey Map\r
     //                                                                      ==============\r
     public void acceptPrimaryKeyMap(Map<String, ? extends Object> primaryKeyMap) {\r
-\r
-        String msg = "This table has no primary-keys: " + getTableDbName();\r
-        throw new IllegalStateException(msg);\r
+        assertPrimaryKeyMap(primaryKeyMap);\r
+        {\r
+            Object obj = primaryKeyMap.get("Object_ID");\r
+            if (obj instanceof java.lang.Integer) {\r
+                query().setObjectId_Equal((java.lang.Integer)obj);\r
+            } else {\r
+                query().setObjectId_Equal(new java.lang.Integer((String)obj));\r
+            }\r
+        }\r
 \r
     }\r
 \r
@@ -47,13 +53,13 @@ public class BsTObjectCB extends AbstractConditionBean {
     //                                                                     OrderBy Setting\r
     //                                                                     ===============\r
     public ConditionBean addOrderBy_PK_Asc() {\r
-        String msg = "This table has no primary-keys: " + getTableDbName();\r
-        throw new IllegalStateException(msg);\r
+        query().addOrderBy_ObjectId_Asc();\r
+        return this;\r
     }\r
 \r
     public ConditionBean addOrderBy_PK_Desc() {\r
-        String msg = "This table has no primary-keys: " + getTableDbName();\r
-        throw new IllegalStateException(msg);\r
+        query().addOrderBy_ObjectId_Desc();\r
+        return this;\r
     }\r
 \r
     // ===================================================================================\r
@@ -202,8 +208,34 @@ public class BsTObjectCB extends AbstractConditionBean {
         public void columnActionflags() { doColumn("ActionFlags"); }\r
         public void columnEventflags() { doColumn("EventFlags"); }\r
         protected void doSpecifyRequiredColumn() {\r
+            columnObjectId();// PK\r
         }\r
         protected String getTableDbName() { return "t_object"; }\r
+        public RAFunction<TObjectpropertiesCB, TObjectCQ> derivedTObjectpropertiesList() {\r
+            return new RAFunction<TObjectpropertiesCB, TObjectCQ>(_baseCB, _myQyCall.qy(), new RAQSetupper<TObjectpropertiesCB, TObjectCQ>() {\r
+                public void setup(String function, SubQuery<TObjectpropertiesCB> subQuery, TObjectCQ cq, String aliasName) {\r
+                    cq.xderiveTObjectpropertiesList(function, subQuery, aliasName); } });\r
+        }\r
+        public RAFunction<TAttributeCB, TObjectCQ> derivedTAttributeList() {\r
+            return new RAFunction<TAttributeCB, TObjectCQ>(_baseCB, _myQyCall.qy(), new RAQSetupper<TAttributeCB, TObjectCQ>() {\r
+                public void setup(String function, SubQuery<TAttributeCB> subQuery, TObjectCQ cq, String aliasName) {\r
+                    cq.xderiveTAttributeList(function, subQuery, aliasName); } });\r
+        }\r
+        public RAFunction<TOperationCB, TObjectCQ> derivedTOperationList() {\r
+            return new RAFunction<TOperationCB, TObjectCQ>(_baseCB, _myQyCall.qy(), new RAQSetupper<TOperationCB, TObjectCQ>() {\r
+                public void setup(String function, SubQuery<TOperationCB> subQuery, TObjectCQ cq, String aliasName) {\r
+                    cq.xderiveTOperationList(function, subQuery, aliasName); } });\r
+        }\r
+        public RAFunction<TConnectorCB, TObjectCQ> derivedTConnectorByStartObjectIdList() {\r
+            return new RAFunction<TConnectorCB, TObjectCQ>(_baseCB, _myQyCall.qy(), new RAQSetupper<TConnectorCB, TObjectCQ>() {\r
+                public void setup(String function, SubQuery<TConnectorCB> subQuery, TObjectCQ cq, String aliasName) {\r
+                    cq.xderiveTConnectorByStartObjectIdList(function, subQuery, aliasName); } });\r
+        }\r
+        public RAFunction<TConnectorCB, TObjectCQ> derivedTConnectorByEndObjectIdList() {\r
+            return new RAFunction<TConnectorCB, TObjectCQ>(_baseCB, _myQyCall.qy(), new RAQSetupper<TConnectorCB, TObjectCQ>() {\r
+                public void setup(String function, SubQuery<TConnectorCB> subQuery, TObjectCQ cq, String aliasName) {\r
+                    cq.xderiveTConnectorByEndObjectIdList(function, subQuery, aliasName); } });\r
+        }\r
     }\r
 \r
     // Very Internal (for Suppressing Warn about 'Not Use Import')\r
index 8ca6b84..361899c 100644 (file)
@@ -38,9 +38,15 @@ public class BsTOperationCB extends AbstractConditionBean {
     //                                                                      PrimaryKey Map\r
     //                                                                      ==============\r
     public void acceptPrimaryKeyMap(Map<String, ? extends Object> primaryKeyMap) {\r
-\r
-        String msg = "This table has no primary-keys: " + getTableDbName();\r
-        throw new IllegalStateException(msg);\r
+        assertPrimaryKeyMap(primaryKeyMap);\r
+        {\r
+            Object obj = primaryKeyMap.get("OperationID");\r
+            if (obj instanceof java.lang.Integer) {\r
+                query().setOperationid_Equal((java.lang.Integer)obj);\r
+            } else {\r
+                query().setOperationid_Equal(new java.lang.Integer((String)obj));\r
+            }\r
+        }\r
 \r
     }\r
 \r
@@ -48,13 +54,13 @@ public class BsTOperationCB extends AbstractConditionBean {
     //                                                                     OrderBy Setting\r
     //                                                                     ===============\r
     public ConditionBean addOrderBy_PK_Asc() {\r
-        String msg = "This table has no primary-keys: " + getTableDbName();\r
-        throw new IllegalStateException(msg);\r
+        query().addOrderBy_Operationid_Asc();\r
+        return this;\r
     }\r
 \r
     public ConditionBean addOrderBy_PK_Desc() {\r
-        String msg = "This table has no primary-keys: " + getTableDbName();\r
-        throw new IllegalStateException(msg);\r
+        query().addOrderBy_Operationid_Desc();\r
+        return this;\r
     }\r
 \r
     // ===================================================================================\r
@@ -182,6 +188,7 @@ public class BsTOperationCB extends AbstractConditionBean {
         public void columnEaGuid() { doColumn("ea_guid"); }\r
         public void columnStyleex() { doColumn("StyleEx"); }\r
         protected void doSpecifyRequiredColumn() {\r
+            columnOperationid();// PK\r
             if (_myQyCall.qy().hasConditionQueryTObject()) {\r
                 columnObjectId();// FK\r
             }\r
@@ -196,6 +203,11 @@ public class BsTOperationCB extends AbstractConditionBean {
             }\r
             return _tObject;\r
         }\r
+        public RAFunction<TOperationparamsCB, TOperationCQ> derivedTOperationparamsList() {\r
+            return new RAFunction<TOperationparamsCB, TOperationCQ>(_baseCB, _myQyCall.qy(), new RAQSetupper<TOperationparamsCB, TOperationCQ>() {\r
+                public void setup(String function, SubQuery<TOperationparamsCB> subQuery, TOperationCQ cq, String aliasName) {\r
+                    cq.xderiveTOperationparamsList(function, subQuery, aliasName); } });\r
+        }\r
     }\r
 \r
     // Very Internal (for Suppressing Warn about 'Not Use Import')\r
index 69e7176..ad29196 100644 (file)
@@ -39,7 +39,7 @@ public abstract class AbstractBsTConnectorCQ extends AbstractConditionQuery {
     //                                                                               =====\r
     \r
     /**\r
-     * Equal(=). And NullIgnored, OnceRegistered. {UQ : COUNTER : NotNull}\r
+     * Equal(=). And NullIgnored, OnceRegistered. {PK : UQ : COUNTER : NotNull}\r
      * @param connectorId The value of connectorId as equal.\r
      */\r
     public void setConnectorId_Equal(java.lang.Integer connectorId) {\r
@@ -94,6 +94,16 @@ public abstract class AbstractBsTConnectorCQ extends AbstractConditionQuery {
         regConnectorId(CK_INS, cTL(connectorIdList));\r
     }\r
 \r
+    /**\r
+     * IsNull(is null). And OnceRegistered.\r
+     */\r
+    public void setConnectorId_IsNull() { regConnectorId(CK_ISN, DUMMY_OBJECT); }\r
+\r
+    /**\r
+     * IsNotNull(is not null). And OnceRegistered.\r
+     */\r
+    public void setConnectorId_IsNotNull() { regConnectorId(CK_ISNN, DUMMY_OBJECT); }\r
+\r
     protected void regConnectorId(ConditionKey key, Object value) {\r
         registerQuery(key, value, getCValueConnectorId(), "Connector_ID", "ConnectorId", "connectorId");\r
     }\r
index ae6e72c..ee8800b 100644 (file)
@@ -39,7 +39,7 @@ public abstract class AbstractBsTObjectCQ extends AbstractConditionQuery {
     //                                                                               =====\r
     \r
     /**\r
-     * Equal(=). And NullIgnored, OnceRegistered. {UQ : COUNTER : NotNull}\r
+     * Equal(=). And NullIgnored, OnceRegistered. {PK : UQ : COUNTER : NotNull}\r
      * @param objectId The value of objectId as equal.\r
      */\r
     public void setObjectId_Equal(java.lang.Integer objectId) {\r
@@ -414,6 +414,16 @@ public abstract class AbstractBsTObjectCQ extends AbstractConditionQuery {
     }\r
     abstract public String keepObjectId_DeriveSubQuery_TConnectorByEndObjectIdList(TConnectorCQ subQuery);\r
 \r
+    /**\r
+     * IsNull(is null). And OnceRegistered.\r
+     */\r
+    public void setObjectId_IsNull() { regObjectId(CK_ISN, DUMMY_OBJECT); }\r
+\r
+    /**\r
+     * IsNotNull(is not null). And OnceRegistered.\r
+     */\r
+    public void setObjectId_IsNotNull() { regObjectId(CK_ISNN, DUMMY_OBJECT); }\r
+\r
     protected void regObjectId(ConditionKey key, Object value) {\r
         registerQuery(key, value, getCValueObjectId(), "Object_ID", "ObjectId", "objectId");\r
     }\r
index e9e9553..97340db 100644 (file)
@@ -39,7 +39,7 @@ public abstract class AbstractBsTOperationCQ extends AbstractConditionQuery {
     //                                                                               =====\r
     \r
     /**\r
-     * Equal(=). And NullIgnored, OnceRegistered. {UQ : COUNTER : NotNull}\r
+     * Equal(=). And NullIgnored, OnceRegistered. {PK : UQ : COUNTER : NotNull}\r
      * @param operationid The value of operationid as equal.\r
      */\r
     public void setOperationid_Equal(java.lang.Integer operationid) {\r
@@ -158,6 +158,16 @@ public abstract class AbstractBsTOperationCQ extends AbstractConditionQuery {
     }\r
     abstract public String keepOperationid_DeriveSubQuery_TOperationparamsList(TOperationparamsCQ subQuery);\r
 \r
+    /**\r
+     * IsNull(is null). And OnceRegistered.\r
+     */\r
+    public void setOperationid_IsNull() { regOperationid(CK_ISN, DUMMY_OBJECT); }\r
+\r
+    /**\r
+     * IsNotNull(is not null). And OnceRegistered.\r
+     */\r
+    public void setOperationid_IsNotNull() { regOperationid(CK_ISNN, DUMMY_OBJECT); }\r
+\r
     protected void regOperationid(ConditionKey key, Object value) {\r
         registerQuery(key, value, getCValueOperationid(), "OperationID", "Operationid", "operationid");\r
     }\r
index ce6fa00..508db7b 100644 (file)
@@ -1,7 +1,6 @@
 package jp.sourceforge.ea2ddl.dao.exbhv;\r
 \r
-import java.util.List;\r
-\r
+import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ListResultBean;\r
 import jp.sourceforge.ea2ddl.dao.cbean.TAttributeCB;\r
 import jp.sourceforge.ea2ddl.dao.exentity.TAttribute;\r
 import jp.sourceforge.ea2ddl.dao.exentity.TObject;\r
@@ -9,17 +8,17 @@ import jp.sourceforge.ea2ddl.dao.exentity.TObject;
 /**\r
  * The behavior of t_attribute.\r
  * <p>\r
- * You can implement your original methods here.\r
- * This class is NOT overrided when re-generating.\r
+ * You can implement your original methods here. This class is NOT overrided\r
+ * when re-generating.\r
  * </p>\r
+ * \r
  * @author DBFlute(AutoGenerator)\r
- */
-@SuppressWarnings("unchecked")\r
+ */\r
 public class TAttributeBhv extends jp.sourceforge.ea2ddl.dao.bsbhv.BsTAttributeBhv {\r
-       public List<TAttribute> selectColumns(TObject table) {\r
+       public ListResultBean<TAttribute> selectColumns(TObject table) {\r
                final TAttributeCB cb = new TAttributeCB();\r
                cb.query().setObjectId_Equal(table.getObjectId());\r
-               cb.query().addOrderBy_Name_Asc();\r
+               cb.query().addOrderBy_Pos_Asc();\r
                return selectList(cb);\r
        }\r
 }\r
index 4a9cca0..2bcf590 100644 (file)
@@ -1,5 +1,10 @@
 package jp.sourceforge.ea2ddl.dao.exbhv;\r
 \r
+import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ListResultBean;\r
+import jp.sourceforge.ea2ddl.dao.cbean.TObjectconstraintCB;\r
+import jp.sourceforge.ea2ddl.dao.exentity.TObject;\r
+import jp.sourceforge.ea2ddl.dao.exentity.TObjectconstraint;\r
+\r
 /**\r
  * The behavior of t_objectconstraint.\r
  * <p>\r
@@ -7,7 +12,13 @@ package jp.sourceforge.ea2ddl.dao.exbhv;
  * This class is NOT overrided when re-generating.\r
  * </p>\r
  * @author DBFlute(AutoGenerator)\r
- */
-@SuppressWarnings("unchecked")\r
+ */\r
 public class TObjectconstraintBhv extends jp.sourceforge.ea2ddl.dao.bsbhv.BsTObjectconstraintBhv {\r
+       public boolean hasConstraint(TObject object, String constraint) {\r
+               final TObjectconstraintCB cb = new TObjectconstraintCB();\r
+               cb.query().setObjectId_Equal(object.getObjectId());\r
+               cb.query().setConstraint_Equal(constraint);\r
+               final ListResultBean<TObjectconstraint> constraints = selectList(cb);\r
+               return !constraints.isEmpty();\r
+       }\r
 }\r
index afcc39a..8df5c28 100644 (file)
@@ -1,5 +1,10 @@
 package jp.sourceforge.ea2ddl.dao.exbhv;\r
 \r
+import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ListResultBean;\r
+import jp.sourceforge.ea2ddl.dao.cbean.TObjectpropertiesCB;\r
+import jp.sourceforge.ea2ddl.dao.exentity.TObject;\r
+import jp.sourceforge.ea2ddl.dao.exentity.TObjectproperties;\r
+\r
 /**\r
  * The behavior of t_objectproperties.\r
  * <p>\r
@@ -7,7 +12,46 @@ package jp.sourceforge.ea2ddl.dao.exbhv;
  * This class is NOT overrided when re-generating.\r
  * </p>\r
  * @author DBFlute(AutoGenerator)\r
- */
-@SuppressWarnings("unchecked")\r
+ */\r
 public class TObjectpropertiesBhv extends jp.sourceforge.ea2ddl.dao.bsbhv.BsTObjectpropertiesBhv {\r
+       public ListResultBean<TObjectproperties> selectProperties(TObject object, String property) {\r
+               final TObjectpropertiesCB cb = new TObjectpropertiesCB();\r
+               if (object != null) {\r
+                       cb.query().setObjectId_Equal(object.getObjectId());\r
+               }\r
+               if (property != null) {\r
+                       cb.query().setProperty_Equal(property);\r
+               }\r
+               return selectList(cb);\r
+       }\r
+\r
+       public String getValue(TObject object, String key) {\r
+               final ListResultBean<TObjectproperties> properties = selectProperties(object, key);\r
+               if (properties.isEmpty()) {\r
+                       return null;\r
+               }\r
+               final StringBuffer b = new StringBuffer();\r
+               for (TObjectproperties prop : properties) {\r
+                       if (b.length() != 0) {\r
+                               b.append(" ");\r
+                       }\r
+                       b.append(prop.getValue());\r
+               }\r
+               return b.toString();\r
+       }\r
+\r
+       public String getNotes(TObject object, String key) {\r
+               final ListResultBean<TObjectproperties> properties = selectProperties(object, key);\r
+               if (properties.isEmpty()) {\r
+                       return null;\r
+               }\r
+               final StringBuffer b = new StringBuffer();\r
+               for (TObjectproperties prop : properties) {\r
+                       if (b.length() != 0) {\r
+                               b.append(" ");\r
+                       }\r
+                       b.append(prop.getNotes());\r
+               }\r
+               return b.toString();\r
+       }\r
 }\r
index 2ceaa2e..df760d1 100644 (file)
@@ -1,13 +1,35 @@
 package jp.sourceforge.ea2ddl.dao.exbhv;\r
 \r
+import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ListResultBean;\r
+import jp.sourceforge.ea2ddl.dao.cbean.TOperationCB;\r
+import jp.sourceforge.ea2ddl.dao.exentity.TObject;\r
+import jp.sourceforge.ea2ddl.dao.exentity.TOperation;\r
+\r
 /**\r
  * The behavior of t_operation.\r
  * <p>\r
- * You can implement your original methods here.\r
- * This class is NOT overrided when re-generating.\r
+ * You can implement your original methods here. This class is NOT overrided\r
+ * when re-generating.\r
  * </p>\r
+ * \r
  * @author DBFlute(AutoGenerator)\r
- */
-@SuppressWarnings("unchecked")\r
+ */\r
 public class TOperationBhv extends jp.sourceforge.ea2ddl.dao.bsbhv.BsTOperationBhv {\r
+\r
+       private TOperationparamsBhv _tOperationparamsBhv;\r
+\r
+       public void setTOperationparamsBhv(TOperationparamsBhv operationparamsBhv) {\r
+               _tOperationparamsBhv = operationparamsBhv;\r
+       }\r
+\r
+       public ListResultBean<TOperation> selectOperation(TObject object, String stereotype) {\r
+               final TOperationCB cb = new TOperationCB();\r
+               cb.query().setObjectId_Equal(object.getObjectId());\r
+               cb.query().setStereotype_Equal(stereotype);\r
+               final ListResultBean<TOperation> opeList = selectList(cb);\r
+               for (TOperation ope : opeList) {\r
+                       ope.setTOperationparamsList(_tOperationparamsBhv.selectOperationParams(ope));\r
+               }\r
+               return opeList;\r
+       }\r
 }\r
index a9f8512..ab78fb6 100644 (file)
@@ -1,5 +1,10 @@
 package jp.sourceforge.ea2ddl.dao.exbhv;\r
 \r
+import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ListResultBean;\r
+import jp.sourceforge.ea2ddl.dao.cbean.TOperationparamsCB;\r
+import jp.sourceforge.ea2ddl.dao.exentity.TOperation;\r
+import jp.sourceforge.ea2ddl.dao.exentity.TOperationparams;\r
+\r
 /**\r
  * The behavior of t_operationparams.\r
  * <p>\r
@@ -7,7 +12,12 @@ package jp.sourceforge.ea2ddl.dao.exbhv;
  * This class is NOT overrided when re-generating.\r
  * </p>\r
  * @author DBFlute(AutoGenerator)\r
- */
-@SuppressWarnings("unchecked")\r
+ */\r
 public class TOperationparamsBhv extends jp.sourceforge.ea2ddl.dao.bsbhv.BsTOperationparamsBhv {\r
+       public ListResultBean<TOperationparams> selectOperationParams(TOperation operation) {\r
+               final TOperationparamsCB cb = new TOperationparamsCB();\r
+               cb.query().setOperationid_Equal(operation.getOperationid());\r
+               cb.query().addOrderBy_Pos_Asc();\r
+               return selectList(cb);\r
+       }\r
 }\r
index 042049c..9bbfeaa 100644 (file)
@@ -1,5 +1,7 @@
 package jp.sourceforge.ea2ddl.dao.exentity;\r
 \r
+import java.util.List;\r
+\r
 /**\r
  * The entity of t_operation.\r
  * <p>\r
@@ -7,10 +9,19 @@ package jp.sourceforge.ea2ddl.dao.exentity;
  * This class is NOT overrided when re-generating.\r
  * </p>\r
  * @author DBFlute(AutoGenerator)\r
- */
-@SuppressWarnings("unchecked")\r
+ */\r
 public class TOperation extends jp.sourceforge.ea2ddl.dao.bsentity.BsTOperation {\r
 \r
     /** Serial version UID. (Default) */\r
     private static final long serialVersionUID = 1L;\r
+    \r
+    private List<TOperationparams> _tOperationparamsList;\r
+\r
+       public List<TOperationparams> getTOperationparamsList() {\r
+               return _tOperationparamsList;\r
+       }\r
+\r
+       public void setTOperationparamsList(List<TOperationparams> operationparamsList) {\r
+               _tOperationparamsList = operationparamsList;\r
+       }\r
 }\r