svnno****@sourc*****
svnno****@sourc*****
2008年 10月 25日 (土) 18:02:09 JST
Revision: 2031 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=jiemamy&view=rev&rev=2031 Author: daisuke_m Date: 2008-10-25 18:02:08 +0900 (Sat, 25 Oct 2008) Log Message: ----------- J-coreSpecに、全(概念的)フィールドに対するアクセサインターフェイスを定義し、J-coreに実装。 Modified Paths: -------------- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/AbstractModel.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/ColumnModelImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/DomainModelImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/RootModelImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/AbstractConnectionModelImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/AbstractRelationModelImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/ForeignKeyMappingImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/ForeignKeyModelImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/constraint/AbstractConstraintModel.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/constraint/ConstraintSetModelImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/constraint/ConstraintUtil.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/dataset/InsertDataSetModelImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/dataset/RecordModelImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/index/IndexColumnModelImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/index/IndexModelImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/AbstractEntityModelImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/AbstractNodeModelImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/StickyModelImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/TableModelImpl.java artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/ViewModelImpl.java zeus/trunk/org.jiemamy.spec.core/META-INF/MANIFEST.MF zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/model/constraint/ConstraintSetModel.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/model/node/AbstractEntityModel.java Added Paths: ----------- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/ColumnModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/DomainModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/JiemamyModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/RootModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ConnectionModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ForeignKeyMappingAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ForeignKeyModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/RelationModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/constraint/ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/constraint/ConstraintAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/constraint/ConstraintSetModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/dataset/ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/dataset/InsertDataSetModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/dataset/RecordModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/index/ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/index/IndexColumnModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/index/IndexModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/EntityModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/NodeModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/StickyModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/TableModelAccessor.java zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/ViewModelAccessor.java -------------- next part -------------- Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/AbstractModel.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/AbstractModel.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/AbstractModel.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -20,13 +20,14 @@ import org.seasar.framework.util.tiger.CollectionsUtil; import org.jiemamy.spec.Processor; +import org.jiemamy.spec.accessor.JiemamyModelAccessor; import org.jiemamy.spec.model.JiemamyModel; /** * Jiemamyが扱う、ユーザが定義するDB設計に関わるデータ(モデル)クラスの抽象クラス。 * @author daisuke */ -public abstract class AbstractModel implements JiemamyModel { +public abstract class AbstractModel implements JiemamyModel, JiemamyModelAccessor { /** 適用可能なアダプタのリスト */ private List<Object> adapters = CollectionsUtil.newArrayList(); @@ -149,14 +150,10 @@ } /** - * モデルマネージャにモデルの登録を行う。 + * {@inheritDoc} */ - protected void initialize() { - if (isInitialized() == false) { - ModelIdManager modelManager = ModelIdManager.getInstance(); - modelManager.register(this); - initialized = true; - } + public void setAdapters(List<Object> adapters) { + this.adapters = adapters; } /** @@ -164,7 +161,25 @@ * @param id モデルID * @category accessing */ - void setId(UUID id) { + public void setId(UUID id) { this.id = id; } + + /** + * {@inheritDoc} + */ + public void setInitialized(boolean initialized) { + this.initialized = initialized; + } + + /** + * モデルマネージャにモデルの登録を行う。 + */ + protected void initialize() { + if (isInitialized() == false) { + ModelIdManager modelManager = ModelIdManager.getInstance(); + modelManager.register(this); + initialized = true; + } + } } Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/ColumnModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/ColumnModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/ColumnModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -20,6 +20,7 @@ import org.jiemamy.core.model.constraint.ConstraintSetModelImpl; import org.jiemamy.core.model.constraint.ConstraintUtil; +import org.jiemamy.spec.accessor.ColumnModelAccessor; import org.jiemamy.spec.model.ColumnModel; import org.jiemamy.spec.model.DomainModel; import org.jiemamy.spec.model.constraint.Constraint; @@ -32,7 +33,7 @@ * @author daisuke */ @SuppressWarnings("serial") -public class ColumnModelImpl extends AbstractModel implements ColumnModel { +public class ColumnModelImpl extends AbstractModel implements ColumnModel, ColumnModelAccessor { /** 物理名 */ private String name; @@ -204,6 +205,14 @@ } /** + * 制約を設定する。 + * @param constraints 制約 + */ + public void setConstraints(ConstraintSetModel constraints) { + this.constraints = constraints; + } + + /** * {@inheritDoc} */ public void setDataType(DataType dataType) { @@ -245,13 +254,6 @@ this.name = name; } - /** - * {@inheritDoc} - */ - public void setRepresentation(boolean representation) { - this.representation = representation; - } - // /** // * {@inheritDoc} // */ @@ -263,16 +265,15 @@ /** * {@inheritDoc} */ - public void setSimpleIndex(boolean simpleIndex) { - this.simpleIndex = simpleIndex; + public void setRepresentation(boolean representation) { + this.representation = representation; } /** - * 制約を設定する。 - * @param constraints 制約 + * {@inheritDoc} */ - void setConstraints(ConstraintSetModel constraints) { - this.constraints = constraints; + public void setSimpleIndex(boolean simpleIndex) { + this.simpleIndex = simpleIndex; } } Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/DomainModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/DomainModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/DomainModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -19,6 +19,7 @@ package org.jiemamy.core.model; import org.jiemamy.core.model.constraint.ConstraintSetModelImpl; +import org.jiemamy.spec.accessor.DomainModelAccessor; import org.jiemamy.spec.model.DomainModel; import org.jiemamy.spec.model.constraint.Constraint; import org.jiemamy.spec.model.constraint.ConstraintSetModel; @@ -30,7 +31,7 @@ * @author daisuke */ @SuppressWarnings("serial") -public class DomainModelImpl extends AbstractModel implements DomainModel { +public class DomainModelImpl extends AbstractModel implements DomainModel, DomainModelAccessor { /** ドメイン名 */ private String name; @@ -99,6 +100,14 @@ } /** + * 制約を取得する。 + * @return 制約 + */ + public ConstraintSetModel getConstraints() { + return constraints; + } + + /** * {@inheritDoc} */ public DataType getDataType() { @@ -178,6 +187,14 @@ } /** + * 制約を設定する。 + * @param constraints 制約 + */ + public void setConstraints(ConstraintSetModel constraints) { + this.constraints = constraints; + } + + /** * {@inheritDoc} */ public void setDataType(DataType dataType) { @@ -208,6 +225,13 @@ /** * {@inheritDoc} */ + public void setLogicalName(String logicalName) { + this.logicalName = logicalName; + } + + /** + * {@inheritDoc} + */ public void setName(String name) { this.name = name; } @@ -227,20 +251,4 @@ return dataType.toString(); } - /** - * 制約を取得する。 - * @return 制約 - */ - ConstraintSetModel getConstraints() { - return constraints; - } - - /** - * 制約を設定する。 - * @param constraints 制約 - */ - void setConstraints(ConstraintSetModel constraints) { - this.constraints = constraints; - } - } Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/RootModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/RootModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/RootModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -29,6 +29,7 @@ import org.jiemamy.core.utils.processor.root.GetNodesProcessor; import org.jiemamy.core.utils.processor.root.ProvideEntityNameProcessor; import org.jiemamy.creator.JiemamyModelFactory; +import org.jiemamy.spec.accessor.RootModelAccessor; import org.jiemamy.spec.exception.CannotAppendException; import org.jiemamy.spec.exception.TooManyElementsException; import org.jiemamy.spec.extension.dialect.IdentifierValidator; @@ -46,7 +47,7 @@ * @author daisuke */ @SuppressWarnings("serial") -public class RootModelImpl extends AbstractModel implements RootModel { +public class RootModelImpl extends AbstractModel implements RootModel, RootModelAccessor { /** SQL方言クラス名 */ private String dialectClassName; @@ -276,32 +277,25 @@ } /** - * {@inheritDoc} + * ドメインのリストを設定する。 + * @param domains ドメインのリスト */ - public void setEndScript(String endScript) { - this.endScript = endScript; + public void setDomains(List<DomainModel> domains) { + this.domains = domains; } /** * {@inheritDoc} */ - public void setSchemaName(String schemaName) { - this.schemaName = schemaName; + public void setEndScript(String endScript) { + this.endScript = endScript; } /** - * ドメインのリストを設定する。 - * @param domains ドメインのリスト - */ - void setDomains(List<DomainModel> domains) { - this.domains = domains; - } - - /** * INSERTデータセットを設定する。 * @param insertDataSets INSERTデータセット */ - void setInsertDataSets(List<InsertDataSetModel> insertDataSets) { + public void setInsertDataSets(List<InsertDataSetModel> insertDataSets) { this.insertDataSets = insertDataSets; } @@ -309,8 +303,15 @@ * ノードのリストを設定する。 * @param nodes ノードのリスト */ - void setNodes(List<AbstractNodeModel> nodes) { + public void setNodes(List<AbstractNodeModel> nodes) { this.nodes = nodes; } + /** + * {@inheritDoc} + */ + public void setSchemaName(String schemaName) { + this.schemaName = schemaName; + } + } Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/AbstractConnectionModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/AbstractConnectionModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/AbstractConnectionModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -20,6 +20,7 @@ import org.jiemamy.core.model.AbstractModel; import org.jiemamy.core.utils.processor.connection.IsCyclicProcessor; +import org.jiemamy.spec.accessor.connection.ConnectionModelAccessor; import org.jiemamy.spec.model.connection.AbstractConnectionModel; import org.jiemamy.spec.model.node.AbstractNodeModel; @@ -28,7 +29,8 @@ * * @author daisuke */ -public abstract class AbstractConnectionModelImpl extends AbstractModel implements AbstractConnectionModel { +public abstract class AbstractConnectionModelImpl extends AbstractModel implements AbstractConnectionModel, + ConnectionModelAccessor { /** 接続元ノード */ protected AbstractNodeModel source; Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/AbstractRelationModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/AbstractRelationModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/AbstractRelationModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -18,6 +18,7 @@ */ package org.jiemamy.core.model.connection; +import org.jiemamy.spec.accessor.connection.RelationModelAccessor; import org.jiemamy.spec.model.connection.AbstractRelationModel; import org.jiemamy.spec.model.node.AbstractEntityModel; @@ -26,7 +27,8 @@ * * @author daisuke */ -public abstract class AbstractRelationModelImpl extends AbstractConnectionModelImpl implements AbstractRelationModel { +public abstract class AbstractRelationModelImpl extends AbstractConnectionModelImpl implements AbstractRelationModel, + RelationModelAccessor { private boolean disabled; Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/ForeignKeyMappingImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/ForeignKeyMappingImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/ForeignKeyMappingImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -20,6 +20,7 @@ import org.jiemamy.core.model.AbstractModel; import org.jiemamy.core.utils.processor.SetDefaultColumnsProcessor; +import org.jiemamy.spec.accessor.JiemamyModelAccessor; import org.jiemamy.spec.model.ColumnModel; import org.jiemamy.spec.model.RootModel; import org.jiemamy.spec.model.connection.ForeignKeyMapping; @@ -36,7 +37,7 @@ * @author daisuke */ @SuppressWarnings("serial") -public class ForeignKeyMappingImpl extends AbstractModel implements ForeignKeyMapping { +public class ForeignKeyMappingImpl extends AbstractModel implements ForeignKeyMapping, JiemamyModelAccessor { /** 制約を受けるカラム */ private ColumnModel constraintColumn; Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/ForeignKeyModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/ForeignKeyModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/connection/ForeignKeyModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -24,6 +24,7 @@ import org.jiemamy.core.utils.processor.connection.foreignkey.GetMappingProcessor; import org.jiemamy.core.utils.processor.connection.foreignkey.UpdateMappingsProcessor; +import org.jiemamy.spec.accessor.JiemamyModelAccessor; import org.jiemamy.spec.model.ColumnModel; import org.jiemamy.spec.model.RootModel; import org.jiemamy.spec.model.connection.ForeignKeyMapping; @@ -41,7 +42,7 @@ * @author daisuke */ @SuppressWarnings("serial") -public class ForeignKeyModelImpl extends AbstractRelationModelImpl implements ForeignKeyModel { +public class ForeignKeyModelImpl extends AbstractRelationModelImpl implements ForeignKeyModel, JiemamyModelAccessor { /** 名前 */ private String name; @@ -250,6 +251,14 @@ } /** + * マッピングのリストを設定する。 + * @param mappings マッピングのリスト + */ + public void setMappings(List<ForeignKeyMapping> mappings) { + this.mappings = mappings; + } + + /** * {@inheritDoc} */ public void setMatchType(MatchType matchType) { @@ -284,12 +293,4 @@ process(new UpdateMappingsProcessor(rootModel, createColumnWithFk)); } - /** - * マッピングのリストを設定する。 - * @param mappings マッピングのリスト - */ - void setMappings(List<ForeignKeyMapping> mappings) { - this.mappings = mappings; - } - } Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/constraint/AbstractConstraintModel.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/constraint/AbstractConstraintModel.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/constraint/AbstractConstraintModel.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -19,6 +19,7 @@ package org.jiemamy.core.model.constraint; import org.jiemamy.core.model.AbstractModel; +import org.jiemamy.spec.accessor.constraint.ConstraintAccessor; import org.jiemamy.spec.model.constraint.Constraint; /** @@ -26,7 +27,7 @@ * * @author daisuke */ -public abstract class AbstractConstraintModel extends AbstractModel implements Constraint { +public abstract class AbstractConstraintModel extends AbstractModel implements Constraint, ConstraintAccessor { /** 制約名 */ private String name; Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/constraint/ConstraintSetModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/constraint/ConstraintSetModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/constraint/ConstraintSetModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -25,6 +25,7 @@ import org.seasar.framework.util.tiger.CollectionsUtil; import org.jiemamy.core.model.AbstractModel; +import org.jiemamy.spec.accessor.constraint.ConstraintSetModelAccessor; import org.jiemamy.spec.model.constraint.Constraint; import org.jiemamy.spec.model.constraint.ConstraintSetModel; @@ -34,7 +35,7 @@ * @author daisuke */ @SuppressWarnings("serial") -public class ConstraintSetModelImpl extends AbstractModel implements ConstraintSetModel { +public class ConstraintSetModelImpl extends AbstractModel implements ConstraintSetModel, ConstraintSetModelAccessor { /** 制約のマップ */ private Map<Class<? extends Constraint>, Constraint> constraintMap = CollectionsUtil.newHashMap(); @@ -69,7 +70,14 @@ /** * {@inheritDoc} */ - public Collection<Constraint> getConstraintMap() { + public Map<Class<? extends Constraint>, Constraint> getConstraintMap() { + return constraintMap; + } + + /** + * {@inheritDoc} + */ + public Collection<Constraint> getConstraints() { return constraintMap.values(); } Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/constraint/ConstraintUtil.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/constraint/ConstraintUtil.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/constraint/ConstraintUtil.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -35,10 +35,10 @@ */ public static ConstraintSetModel marge(ConstraintSetModel a, ConstraintSetModel b) { ConstraintSetModel constraints = new ConstraintSetModelImpl(); - for (Constraint constraint : a.getConstraintMap()) { + for (Constraint constraint : a.getConstraints()) { constraints.add(constraint); } - for (Constraint constraint : b.getConstraintMap()) { + for (Constraint constraint : b.getConstraints()) { constraints.add(constraint); } return constraints; Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/dataset/InsertDataSetModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/dataset/InsertDataSetModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/dataset/InsertDataSetModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -24,6 +24,7 @@ import org.seasar.framework.container.annotation.tiger.Binding; import org.jiemamy.core.model.AbstractModel; +import org.jiemamy.spec.accessor.dataset.InsertDataSetModelAccessor; import org.jiemamy.spec.model.dataset.InsertDataSetModel; import org.jiemamy.spec.model.dataset.RecordModel; import org.jiemamy.spec.model.node.AbstractEntityModel; @@ -33,7 +34,7 @@ * @author daisuke */ @SuppressWarnings("serial") -public class InsertDataSetModelImpl extends AbstractModel implements InsertDataSetModel { +public class InsertDataSetModelImpl extends AbstractModel implements InsertDataSetModel, InsertDataSetModelAccessor { /** データセット名 */ private String name; @@ -77,7 +78,7 @@ * レコード情報を設定する。 * @param records レコード情報 */ - void setRecords(Map<AbstractEntityModel, List<RecordModel>> records) { + public void setRecords(Map<AbstractEntityModel, List<RecordModel>> records) { this.records = records; } } Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/dataset/RecordModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/dataset/RecordModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/dataset/RecordModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -23,6 +23,7 @@ import org.seasar.framework.container.annotation.tiger.Binding; import org.jiemamy.core.model.AbstractModel; +import org.jiemamy.spec.accessor.dataset.RecordModelAccessor; import org.jiemamy.spec.model.ColumnModel; import org.jiemamy.spec.model.dataset.RecordModel; @@ -31,7 +32,7 @@ * @author daisuke */ @SuppressWarnings("serial") -public class RecordModelImpl extends AbstractModel implements RecordModel { +public class RecordModelImpl extends AbstractModel implements RecordModel, RecordModelAccessor { /** * カラムに対応するデータ @@ -68,7 +69,7 @@ * カラムに対応するデータを設定する。 * @param values カラムに対応するデータ */ - void setValues(Map<ColumnModel, String> values) { + public void setValues(Map<ColumnModel, String> values) { this.values = values; } } Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/index/IndexColumnModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/index/IndexColumnModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/index/IndexColumnModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -19,6 +19,7 @@ package org.jiemamy.core.model.index; import org.jiemamy.core.model.AbstractModel; +import org.jiemamy.spec.accessor.index.IndexColumnModelAccessor; import org.jiemamy.spec.model.ColumnModel; import org.jiemamy.spec.model.index.IndexColumnModel; @@ -27,7 +28,7 @@ * @author daisuke */ @SuppressWarnings("serial") -public class IndexColumnModelImpl extends AbstractModel implements IndexColumnModel { +public class IndexColumnModelImpl extends AbstractModel implements IndexColumnModel, IndexColumnModelAccessor { /** インデックス対象カラム */ private ColumnModel column; Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/index/IndexModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/index/IndexModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/index/IndexModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -23,6 +23,7 @@ import org.seasar.framework.container.annotation.tiger.Binding; import org.jiemamy.core.model.AbstractModel; +import org.jiemamy.spec.accessor.index.IndexModelAccessor; import org.jiemamy.spec.model.index.IndexColumnModel; import org.jiemamy.spec.model.index.IndexModel; @@ -32,7 +33,7 @@ * @author daisuke */ @SuppressWarnings("serial") -public class IndexModelImpl extends AbstractModel implements IndexModel { +public class IndexModelImpl extends AbstractModel implements IndexModel, IndexModelAccessor { /** インデックス名 */ private String name; @@ -76,6 +77,14 @@ } /** + * インデックスカラムのリストを設定する。 + * @param columns インデックスカラムのリスト + */ + public void setColumns(List<IndexColumnModel> columns) { + this.columns = columns; + } + + /** * {@inheritDoc} */ public void setName(String name) { @@ -88,12 +97,4 @@ public void setUnique(boolean unique) { this.unique = unique; } - - /** - * インデックスカラムのリストを設定する。 - * @param columns インデックスカラムのリスト - */ - void setColumns(List<IndexColumnModel> columns) { - this.columns = columns; - } } Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/AbstractEntityModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/AbstractEntityModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/AbstractEntityModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -22,6 +22,7 @@ import org.jiemamy.core.utils.processor.entity.GetConstrainEntitiesProcessor; import org.jiemamy.core.utils.processor.entity.GetReferenceEntitiesProcessor; +import org.jiemamy.spec.accessor.node.EntityModelAccessor; import org.jiemamy.spec.model.node.AbstractEntityModel; /** @@ -29,7 +30,8 @@ * * @author daisuke */ -public abstract class AbstractEntityModelImpl extends AbstractNodeModelImpl implements AbstractEntityModel { +public abstract class AbstractEntityModelImpl extends AbstractNodeModelImpl implements AbstractEntityModel, + EntityModelAccessor { /** 名前 */ private String name; @@ -46,6 +48,7 @@ /** 説明文 */ private String description; + /** エクスポート対象として無効かどうか */ private boolean disabled; Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/AbstractNodeModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/AbstractNodeModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/AbstractNodeModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -23,6 +23,7 @@ import org.seasar.framework.container.annotation.tiger.Binding; import org.jiemamy.core.model.AbstractModel; +import org.jiemamy.spec.accessor.node.NodeModelAccessor; import org.jiemamy.spec.model.connection.AbstractConnectionModel; import org.jiemamy.spec.model.node.AbstractNodeModel; @@ -32,7 +33,7 @@ * @author daisuke */ @SuppressWarnings("serial") -public class AbstractNodeModelImpl extends AbstractModel implements AbstractNodeModel { +public class AbstractNodeModelImpl extends AbstractModel implements AbstractNodeModel, NodeModelAccessor { /** このモデルを接続元とするコネクションのリスト */ @Binding("list") @@ -75,7 +76,7 @@ * このモデルを接続元とするコネクションのリストを設定する。 * @param sourceConnections このモデルを接続元とするコネクションのリスト */ - void setSourceConnections(List<AbstractConnectionModel> sourceConnections) { + public void setSourceConnections(List<AbstractConnectionModel> sourceConnections) { this.sourceConnections = sourceConnections; } @@ -83,7 +84,7 @@ * このモデルを接続先とするコネクションのリストを設定する。 * @param targetConnections このモデルを接続先とするコネクションのリスト */ - void setTargetConnections(List<AbstractConnectionModel> targetConnections) { + public void setTargetConnections(List<AbstractConnectionModel> targetConnections) { this.targetConnections = targetConnections; } } Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/StickyModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/StickyModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/StickyModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -18,6 +18,7 @@ */ package org.jiemamy.core.model.node; +import org.jiemamy.spec.accessor.node.StickyModelAccessor; import org.jiemamy.spec.model.node.StickyModel; /** @@ -26,7 +27,7 @@ * @author daisuke */ @SuppressWarnings("serial") -public class StickyModelImpl extends AbstractNodeModelImpl implements StickyModel { +public class StickyModelImpl extends AbstractNodeModelImpl implements StickyModel, StickyModelAccessor { /** 内容文 */ private String contents; Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/TableModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/TableModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/TableModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -24,6 +24,7 @@ import org.jiemamy.core.utils.processor.entity.table.GetColumnProcessor; import org.jiemamy.core.utils.processor.entity.table.GetPrimaryKeyColumnsProcessor; +import org.jiemamy.spec.accessor.node.TableModelAccessor; import org.jiemamy.spec.exception.TooManyElementsException; import org.jiemamy.spec.model.ColumnModel; import org.jiemamy.spec.model.RootModel; @@ -37,7 +38,7 @@ * @author daisuke */ @SuppressWarnings("serial") -public class TableModelImpl extends AbstractEntityModelImpl implements TableModel { // implements DialectOptionSupport { +public class TableModelImpl extends AbstractEntityModelImpl implements TableModel, TableModelAccessor { // implements DialectOptionSupport { /** カラムのリスト */ @Binding("list") @@ -135,7 +136,7 @@ * テーブルCHECK制約のリストを設定する。 * @param checks テーブルCHECK制約のリスト */ - void setChecks(List<CheckConstraintModel> checks) { + public void setChecks(List<CheckConstraintModel> checks) { this.checks = checks; } @@ -143,7 +144,7 @@ * カラムのリストを設定する。 * @param columns カラムのリスト */ - void setColumns(List<ColumnModel> columns) { + public void setColumns(List<ColumnModel> columns) { this.columns = columns; } @@ -151,7 +152,7 @@ * インデックスのリストを設定する。 * @param indexes インデックスのリスト */ - void setIndexes(List<IndexModel> indexes) { + public void setIndexes(List<IndexModel> indexes) { this.indexes = indexes; } } Modified: artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/ViewModelImpl.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/ViewModelImpl.java 2008-10-24 18:28:51 UTC (rev 2030) +++ artemis/trunk/org.jiemamy.core/src/main/java/org/jiemamy/core/model/node/ViewModelImpl.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -18,6 +18,7 @@ */ package org.jiemamy.core.model.node; +import org.jiemamy.spec.accessor.node.ViewModelAccessor; import org.jiemamy.spec.model.RootModel; import org.jiemamy.spec.model.node.ViewModel; @@ -27,7 +28,7 @@ * @author daisuke */ @SuppressWarnings("serial") -public class ViewModelImpl extends AbstractEntityModelImpl implements ViewModel { +public class ViewModelImpl extends AbstractEntityModelImpl implements ViewModel, ViewModelAccessor { /** VIEW定義SELECT文 */ private String definition; Modified: zeus/trunk/org.jiemamy.spec.core/META-INF/MANIFEST.MF =================================================================== --- zeus/trunk/org.jiemamy.spec.core/META-INF/MANIFEST.MF 2008-10-24 18:28:51 UTC (rev 2030) +++ zeus/trunk/org.jiemamy.spec.core/META-INF/MANIFEST.MF 2008-10-25 09:02:08 UTC (rev 2031) @@ -9,6 +9,12 @@ Eclipse-LazyStart: false Export-Package: org.jiemamy.creator, org.jiemamy.spec, + org.jiemamy.spec.accessor, + org.jiemamy.spec.accessor.connection, + org.jiemamy.spec.accessor.constraint, + org.jiemamy.spec.accessor.dataset, + org.jiemamy.spec.accessor.index, + org.jiemamy.spec.accessor.node, org.jiemamy.spec.exception, org.jiemamy.spec.extension, org.jiemamy.spec.extension.composer, Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/ColumnModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/ColumnModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/ColumnModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,138 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor; + +import org.jiemamy.spec.model.constraint.ConstraintSetModel; +import org.jiemamy.spec.model.datatype.DataType; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface ColumnModelAccessor extends JiemamyModelAccessor { + + /** + * 制約を取得する。 + * @return 制約 + */ + ConstraintSetModel getConstraints(); + + /** + * 型を取得する。 + * @return 型 + */ + DataType getDataType(); + + /** + * デフォルト値を取得する。 + * @return デフォルト値 + */ + String getDefaultValue(); + + /** + * 説明文を取得する。 + * @return 説明文 + */ + String getDescription(); + + /** + * 自由文字列を取得する。 + * @return 自由文字列 + */ + String getFreeString(); + + /** + * 論理名を取得する。 + * @return 論理名 + */ + String getLogicalName(); + + /** + * 物理名を取得する。 + * @return 物理名 + */ + String getName(); + + /** + * 代表カラムかどうかを取得する。 + * @return 代表カラムかどうか + */ + boolean isRepresentation(); + + /** + * 単純インデックスの有無を取得する。 + * @return 単純インデックスの有無 + */ + boolean isSimpleIndex(); + + /** + * 制約を設定する。 + * @param constraints 制約 + */ + void setConstraints(ConstraintSetModel constraints); + + /** + * 型を設定する。 + * @param dataType 型 + */ + void setDataType(DataType dataType); + + /** + * デフォルト値を設定する。 + * @param defaultValue デフォルト値 + */ + void setDefaultValue(String defaultValue); + + /** + * 説明文を設定する。 + * @param description 説明文 + */ + void setDescription(String description); + + /** + * 自由文字列を設定する。 + * @param freeString 自由文字列 + */ + void setFreeString(String freeString); + + /** + * 論理名を設定する。 + * @param logicalName 論理名 + */ + void setLogicalName(String logicalName); + + /** + * 物理名を設定する。 + * @param name 物理名 + */ + void setName(String name); + + /** + * 代表カラムかどうかを設定する。 + * @param representation 代表カラムかどうか + */ + void setRepresentation(boolean representation); + + /** + * 単純インデックスの有無を設定する。 + * @param simpleIndex 単純インデックスの有無 + */ + void setSimpleIndex(boolean simpleIndex); + +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/ColumnModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/DomainModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/DomainModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/DomainModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,126 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor; + +import org.jiemamy.spec.model.constraint.ConstraintSetModel; +import org.jiemamy.spec.model.datatype.DataType; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface DomainModelAccessor { + + /** + * 制約を取得する。 + * @return 制約 + */ + ConstraintSetModel getConstraints(); + + /** + * ドメインとして定義された型を取得する。 + * @return ドメインとして定義された型 + */ + DataType getDataType(); + + /** + * デフォルト値を取得する。 + * @return デフォルト値 + */ + String getDefaultValue(); + + /** + * 説明文を取得する。 + * @return 説明文 + */ + String getDescription(); + + /** + * 自由文字列を取得する。 + * @return 自由文字列 + */ + String getFreeString(); + + /** + * 論理名を取得する。 + * @return 論理名 + */ + String getLogicalName(); + + /** + * ドメイン名を取得する。 + * @return ドメイン名 + */ + String getName(); + + /** + * 単純インデックスの有無を取得する。 + * @return 単純インデックスの有無 + */ + boolean isSimpleIndex(); + + /** + * 制約を設定する。 + * @param constraints 制約 + */ + void setConstraints(ConstraintSetModel constraints); + + /** + * ドメインとして定義された型を設定する。 + * @param dataType ドメインとして定義された型 + */ + void setDataType(DataType dataType); + + /** + * デフォルト値を設定する。 + * @param defaultValue デフォルト値 + */ + void setDefaultValue(String defaultValue); + + /** + * 説明文を設定する。 + * @param description 説明文 + */ + void setDescription(String description); + + /** + * 自由文字列を設定する。 + * @param freeString 自由文字列 + */ + void setFreeString(String freeString); + + /** + * 論理名を設定する。 + * @param logicalName 論理名 + */ + void setLogicalName(String logicalName); + + /** + * ドメイン名を設定する。 + * @param name ドメイン名 + */ + void setName(String name); + + /** + * 単純インデックスの有無を設定する。 + * @param simpleIndex 単純インデックスの有無 + */ + void setSimpleIndex(boolean simpleIndex); + +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/DomainModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/JiemamyModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/JiemamyModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/JiemamyModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,66 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor; + +import java.util.List; +import java.util.UUID; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface JiemamyModelAccessor { + + /** + * 適用可能なアダプタのリストを取得する。 + * @return 適用可能なアダプタのリスト + */ + List<Object> getAdapters(); + + /** + * モデルIDを取得する。 + * @return モデルID + */ + UUID getId(); + + /** + * 初期化済みフラグを取得する。 + * @return 初期化済みフラグ + */ + boolean isInitialized(); + + /** + * 適用可能なアダプタのリストを設定する。 + * @param adapters 適用可能なアダプタのリスト + */ + void setAdapters(List<Object> adapters); + + /** + * モデルIDを設定する。 + * @param id モデルID + */ + void setId(UUID id); + + /** + * 初期化済みフラグを設定する。 + * @param initialized 初期化済みフラグ + */ + void setInitialized(boolean initialized); + +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/JiemamyModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/RootModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/RootModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/RootModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,141 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor; + +import java.util.List; + +import org.jiemamy.spec.model.DomainModel; +import org.jiemamy.spec.model.dataset.InsertDataSetModel; +import org.jiemamy.spec.model.node.AbstractNodeModel; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface RootModelAccessor extends JiemamyModelAccessor { + +// /** +// * 当モデルに対して、子モデルを追加するアペンダのリストを取得する。 +// * @return 当モデルに対して、子モデルを追加するアペンダのリスト +// */ +// List<JiemamyModelAppender> getAppenders(); + + /** + * 開始スクリプトを取得する。 + * @return 開始スクリプト + */ + String getBeginScript(); + + /** + * 説明文を取得する。 + * @return 説明文 + */ + String getDescription(); + + /** + * SQL方言クラス名を取得する。 + * @return SQL方言クラス名 + */ + String getDialectClassName(); + + /** + * ドメインのリストを取得する。 + * @return ドメインのリスト + */ + List<DomainModel> getDomains(); + + /** + * 終了スクリプトを取得する。 + * @return 終了スクリプト + */ + String getEndScript(); + + /** + * INSERTデータセットを取得する。 + * @return INSERTデータセット + */ + List<InsertDataSetModel> getInsertDataSets(); + + /** + * ノードのリストを取得する。 + * @return ノードのリスト + */ + List<AbstractNodeModel> getNodes(); + + /** + * スキーマ名を取得する。 + * @return スキーマ名 + */ + String getSchemaName(); + +// /** +// * 当モデルに対して、子モデルを追加するアペンダのリストを設定する。 +// * @param appenders 当モデルに対して、子モデルを追加するアペンダのリスト +// */ +// void setAppenders(List<JiemamyModelAppender> appenders); + + /** + * 開始スクリプトを設定する。 + * @param beginScript 開始スクリプト + */ + void setBeginScript(String beginScript); + + /** + * 説明文を設定する。 + * @param description 説明文 + */ + void setDescription(String description); + + /** + * SQL方言クラス名を設定する。 + * @param dialectClassName SQL方言クラス名 + */ + void setDialectClassName(String dialectClassName); + + /** + * ドメインのリストを設定する。 + * @param domains ドメインのリスト + */ + void setDomains(List<DomainModel> domains); + + /** + * 終了スクリプトを設定する。 + * @param endScript 終了スクリプト + */ + void setEndScript(String endScript); + + /** + * INSERTデータセットを設定する。 + * @param insertDataSets INSERTデータセット + */ + void setInsertDataSets(List<InsertDataSetModel> insertDataSets); + + /** + * ノードのリストを設定する。 + * @param nodes ノードのリスト + */ + void setNodes(List<AbstractNodeModel> nodes); + + /** + * スキーマ名を設定する。 + * @param schemaName スキーマ名 + */ + void setSchemaName(String schemaName); + +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/RootModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ConnectionModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ConnectionModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ConnectionModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,54 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor.connection; + +import org.jiemamy.spec.accessor.JiemamyModelAccessor; +import org.jiemamy.spec.model.node.AbstractNodeModel; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface ConnectionModelAccessor extends JiemamyModelAccessor { + + /** + * 接続元ノードを取得する。 + * @return 接続元ノード + */ + AbstractNodeModel getSource(); + + /** + * 接続先ノードを取得する。 + * @return 接続先ノード + */ + AbstractNodeModel getTarget(); + + /** + * 接続元ノードを設定する。 + * @param source 接続元ノード + */ + void setSource(AbstractNodeModel source); + + /** + * 接続先ノードを設定する。 + * @param target 接続先ノード + */ + void setTarget(AbstractNodeModel target); + +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ConnectionModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ForeignKeyMappingAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ForeignKeyMappingAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ForeignKeyMappingAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,143 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor.connection; + +import java.util.List; + +import org.jiemamy.spec.accessor.JiemamyModelAccessor; +import org.jiemamy.spec.model.connection.ForeignKeyMapping; +import org.jiemamy.spec.model.connection.ForeignKeyModel.InitiallyCheckTime; +import org.jiemamy.spec.model.connection.ForeignKeyModel.MatchType; +import org.jiemamy.spec.model.connection.ForeignKeyModel.ReferentialAction; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface ForeignKeyMappingAccessor extends JiemamyModelAccessor { + + /** + * 説明文を取得する。 + * @return 説明文 + */ + String getDescription(); + + /** + * 遅延評価の初期状態。を取得する。 + * @return 遅延評価の初期状態。 + */ + InitiallyCheckTime getInitiallyCheckTime(); + + /** + * 論理名を取得する。 + * @return 論理名 + */ + String getLogicalName(); + + /** + * マッピングのリストを取得する。 + * @return マッピングのリスト + */ + List<ForeignKeyMapping> getMappings(); + + /** + * マッチ型を取得する。 + * @return マッチ型 + */ + MatchType getMatchType(); + + /** + * 名前を取得する。 + * @return 名前 + */ + String getName(); + + /** + * 削除時アクションを取得する。 + * @return 削除時アクション + */ + ReferentialAction getOnDelete(); + + /** + * 更新時アクションを取得する。 + * @return 更新時アクション + */ + ReferentialAction getOnUpdate(); + + /** + * 遅延評価可能性。を取得する。 + * @return 遅延評価可能性。 + */ + boolean isDeferrable(); + + /** + * 遅延評価可能性。を設定する。 + * @param deferrable 遅延評価可能性。 + */ + void setDeferrable(boolean deferrable); + + /** + * 説明文を設定する。 + * @param description 説明文 + */ + void setDescription(String description); + + /** + * 遅延評価の初期状態。を設定する。 + * @param initiallyCheckTime 遅延評価の初期状態。 + */ + void setInitiallyCheckTime(InitiallyCheckTime initiallyCheckTime); + + /** + * 論理名を設定する。 + * @param logicalName 論理名 + */ + void setLogicalName(String logicalName); + + /** + * マッピングのリストを設定する。 + * @param mappings マッピングのリスト + */ + void setMappings(List<ForeignKeyMapping> mappings); + + /** + * マッチ型を設定する。 + * @param matchType マッチ型 + */ + void setMatchType(MatchType matchType); + + /** + * 名前を設定する。 + * @param name 名前 + */ + void setName(String name); + + /** + * 削除時アクションを設定する。 + * @param onDelete 削除時アクション + */ + void setOnDelete(ReferentialAction onDelete); + + /** + * 更新時アクションを設定する。 + * @param onUpdate 更新時アクション + */ + void setOnUpdate(ReferentialAction onUpdate); + +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ForeignKeyMappingAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ForeignKeyModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ForeignKeyModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ForeignKeyModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,142 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor.connection; + +import java.util.List; + +import org.jiemamy.spec.accessor.JiemamyModelAccessor; +import org.jiemamy.spec.model.connection.ForeignKeyMapping; +import org.jiemamy.spec.model.connection.ForeignKeyModel.InitiallyCheckTime; +import org.jiemamy.spec.model.connection.ForeignKeyModel.MatchType; +import org.jiemamy.spec.model.connection.ForeignKeyModel.ReferentialAction; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface ForeignKeyModelAccessor extends JiemamyModelAccessor { + + /** + * 説明文を取得する。 + * @return 説明文 + */ + String getDescription(); + + /** + * 遅延評価の初期状態。を取得する。 + * @return 遅延評価の初期状態。 + */ + InitiallyCheckTime getInitiallyCheckTime(); + + /** + * 論理名を取得する。 + * @return 論理名 + */ + String getLogicalName(); + + /** + * マッピングのリストを取得する。 + * @return マッピングのリスト + */ + List<ForeignKeyMapping> getMappings(); + + /** + * マッチ型を取得する。 + * @return マッチ型 + */ + MatchType getMatchType(); + + /** + * 名前を取得する。 + * @return 名前 + */ + String getName(); + + /** + * 削除時アクションを取得する。 + * @return 削除時アクション + */ + ReferentialAction getOnDelete(); + + /** + * 更新時アクションを取得する。 + * @return 更新時アクション + */ + ReferentialAction getOnUpdate(); + + /** + * 遅延評価可能性。を取得する。 + * @return 遅延評価可能性。 + */ + boolean isDeferrable(); + + /** + * 遅延評価可能性。を設定する。 + * @param deferrable 遅延評価可能性。 + */ + void setDeferrable(boolean deferrable); + + /** + * 説明文を設定する。 + * @param description 説明文 + */ + void setDescription(String description); + + /** + * 遅延評価の初期状態。を設定する。 + * @param initiallyCheckTime 遅延評価の初期状態。 + */ + void setInitiallyCheckTime(InitiallyCheckTime initiallyCheckTime); + + /** + * 論理名を設定する。 + * @param logicalName 論理名 + */ + void setLogicalName(String logicalName); + + /** + * マッピングのリストを設定する。 + * @param mappings マッピングのリスト + */ + void setMappings(List<ForeignKeyMapping> mappings); + + /** + * マッチ型を設定する。 + * @param matchType マッチ型 + */ + void setMatchType(MatchType matchType); + + /** + * 名前を設定する。 + * @param name 名前 + */ + void setName(String name); + + /** + * 削除時アクションを設定する。 + * @param onDelete 削除時アクション + */ + void setOnDelete(ReferentialAction onDelete); + + /** + * 更新時アクションを設定する。 + * @param onUpdate 更新時アクション + */ + void setOnUpdate(ReferentialAction onUpdate); +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/ForeignKeyModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/RelationModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/RelationModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/RelationModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,41 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor.connection; + +import org.jiemamy.spec.accessor.JiemamyModelAccessor; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface RelationModelAccessor extends JiemamyModelAccessor { + + /** + * エクスポート対象として無効かどうかを取得する。 + * @return エクスポート対象として無効かどうか + */ + boolean isDisabled(); + + /** + * エクスポート対象として無効かどうかを設定する。 + * @param disabled エクスポート対象として無効かどうか + */ + void setDisabled(boolean disabled); + +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/connection/RelationModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/constraint/ConstraintAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/constraint/ConstraintAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/constraint/ConstraintAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,41 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor.constraint; + +import org.jiemamy.spec.accessor.JiemamyModelAccessor; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface ConstraintAccessor extends JiemamyModelAccessor { + + /** + * 制約名を取得する。 + * @return 制約名 + */ + String getName(); + + /** + * 制約名を設定する。 + * @param name 制約名 + */ + void setName(String name); + +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/constraint/ConstraintAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/constraint/ConstraintSetModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/constraint/ConstraintSetModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/constraint/ConstraintSetModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,44 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor.constraint; + +import java.util.Map; + +import org.jiemamy.spec.accessor.JiemamyModelAccessor; +import org.jiemamy.spec.model.constraint.Constraint; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface ConstraintSetModelAccessor extends JiemamyModelAccessor { + + /** + * 制約のマップを取得する。 + * @return 制約のマップ + */ + Map<Class<? extends Constraint>, Constraint> getConstraintMap(); + + /** + * 制約のマップを設定する。 + * @param constraintMap 制約のマップ + */ + void setConstraintMap(Map<Class<? extends Constraint>, Constraint> constraintMap); + +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/constraint/ConstraintSetModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/dataset/InsertDataSetModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/dataset/InsertDataSetModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/dataset/InsertDataSetModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,57 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor.dataset; + +import java.util.List; +import java.util.Map; + +import org.jiemamy.spec.accessor.JiemamyModelAccessor; +import org.jiemamy.spec.model.dataset.RecordModel; +import org.jiemamy.spec.model.node.AbstractEntityModel; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface InsertDataSetModelAccessor extends JiemamyModelAccessor { + + /** + * データセット名を取得する。 + * @return データセット名 + */ + String getName(); + + /** + * レコード情報を取得する。 + * @return レコード情報 + */ + Map<AbstractEntityModel, List<RecordModel>> getRecords(); + + /** + * データセット名を設定する。 + * @param name データセット名 + */ + void setName(String name); + + /** + * レコード情報を設定する。 + * @param records レコード情報 + */ + void setRecords(Map<AbstractEntityModel, List<RecordModel>> records); +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/dataset/InsertDataSetModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/dataset/RecordModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/dataset/RecordModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/dataset/RecordModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,43 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor.dataset; + +import java.util.Map; + +import org.jiemamy.spec.accessor.JiemamyModelAccessor; +import org.jiemamy.spec.model.ColumnModel; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface RecordModelAccessor extends JiemamyModelAccessor { + + /** + * カラムに対応するデータを取得する。 + * @return カラムに対応するデータ + */ + Map<ColumnModel, String> getValues(); + + /** + * カラムに対応するデータを設定する。 + * @param values カラムに対応するデータ + */ + void setValues(Map<ColumnModel, String> values); +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/dataset/RecordModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/index/IndexColumnModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/index/IndexColumnModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/index/IndexColumnModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,55 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor.index; + +import org.jiemamy.spec.accessor.JiemamyModelAccessor; +import org.jiemamy.spec.model.ColumnModel; +import org.jiemamy.spec.model.index.IndexColumnModel.SortType; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface IndexColumnModelAccessor extends JiemamyModelAccessor { + + /** + * インデックス対象カラムを取得する。 + * @return インデックス対象カラム + */ + ColumnModel getColumn(); + + /** + * カラムソート方式を取得する。 + * @return カラムソート方式 + */ + SortType getSortType(); + + /** + * インデックス対象カラムを設定する。 + * @param column インデックス対象カラム + */ + void setColumn(ColumnModel column); + + /** + * カラムソート方式を設定する。 + * @param sortType カラムソート方式 + */ + void setSortType(SortType sortType); + +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/index/IndexColumnModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/index/IndexModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/index/IndexModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/index/IndexModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,67 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor.index; + +import java.util.List; + +import org.jiemamy.spec.accessor.JiemamyModelAccessor; +import org.jiemamy.spec.model.index.IndexColumnModel; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface IndexModelAccessor extends JiemamyModelAccessor { + + /** + * インデックスカラムのリストを取得する。 + * @return インデックスカラムのリスト + */ + List<IndexColumnModel> getColumns(); + + /** + * インデックス名を取得する。 + * @return インデックス名 + */ + String getName(); + + /** + * ユニークインデックスか否かを取得する。 + * @return ユニークインデックスか否か + */ + boolean isUnique(); + + /** + * インデックスカラムのリストを設定する。 + * @param columns インデックスカラムのリスト + */ + void setColumns(List<IndexColumnModel> columns); + + /** + * インデックス名を設定する。 + * @param name インデックス名 + */ + void setName(String name); + + /** + * ユニークインデックスか否かを設定する。 + * @param unique ユニークインデックスか否か + */ + void setUnique(boolean unique); +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/index/IndexModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/EntityModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/EntityModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/EntityModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,101 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor.node; + +import org.jiemamy.spec.accessor.JiemamyModelAccessor; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface EntityModelAccessor extends JiemamyModelAccessor { + + /** + * 開始スクリプトを取得する。 + * @return 開始スクリプト + */ + String getBeginScript(); + + /** + * 説明文を取得する。 + * @return 説明文 + */ + String getDescription(); + + /** + * 終了スクリプトを取得する。 + * @return 終了スクリプト + */ + String getEndScript(); + + /** + * 論理名を取得する。 + * @return 論理名 + */ + String getLogicalName(); + + /** + * 名前を取得する。 + * @return 名前 + */ + String getName(); + + /** + * エクスポート対象として無効かどうかを取得する。 + * @return エクスポート対象として無効かどうか + */ + boolean isDisabled(); + + /** + * 開始スクリプトを設定する。 + * @param beginScript 開始スクリプト + */ + void setBeginScript(String beginScript); + + /** + * 説明文を設定する。 + * @param description 説明文 + */ + void setDescription(String description); + + /** + * エクスポート対象として無効かどうかを設定する。 + * @param disabled エクスポート対象として無効かどうか + */ + void setDisabled(boolean disabled); + + /** + * 終了スクリプトを設定する。 + * @param endScript 終了スクリプト + */ + void setEndScript(String endScript); + + /** + * 論理名を設定する。 + * @param logicalName 論理名 + */ + void setLogicalName(String logicalName); + + /** + * 名前を設定する。 + * @param name 名前 + */ + void setName(String name); + +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/EntityModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/NodeModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/NodeModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/NodeModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,56 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor.node; + +import java.util.List; + +import org.jiemamy.spec.accessor.JiemamyModelAccessor; +import org.jiemamy.spec.model.connection.AbstractConnectionModel; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface NodeModelAccessor extends JiemamyModelAccessor { + + /** + * このモデルを接続元とするコネクションのリストを取得する。 + * @return このモデルを接続元とするコネクションのリスト + */ + List<AbstractConnectionModel> getSourceConnections(); + + /** + * このモデルを接続先とするコネクションのリストを取得する。 + * @return このモデルを接続先とするコネクションのリスト + */ + List<AbstractConnectionModel> getTargetConnections(); + + /** + * このモデルを接続元とするコネクションのリストを設定する。 + * @param sourceConnections このモデルを接続元とするコネクションのリスト + */ + void setSourceConnections(List<AbstractConnectionModel> sourceConnections); + + /** + * このモデルを接続先とするコネクションのリストを設定する。 + * @param targetConnections このモデルを接続先とするコネクションのリスト + */ + void setTargetConnections(List<AbstractConnectionModel> targetConnections); + +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/NodeModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/StickyModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/StickyModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/StickyModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,38 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor.node; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface StickyModelAccessor { + + /** + * 内容文を取得する。 + * @return 内容文 + */ + String getContents(); + + /** + * 内容文を設定する。 + * @param contents 内容文 + */ + void setContents(String contents); +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/StickyModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/TableModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/TableModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/TableModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,69 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor.node; + +import java.util.List; + +import org.jiemamy.spec.model.ColumnModel; +import org.jiemamy.spec.model.constraint.CheckConstraintModel; +import org.jiemamy.spec.model.index.IndexModel; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface TableModelAccessor { + + /** + * テーブルCHECK制約のリストを取得する。 + * @return テーブルCHECK制約のリスト + */ + List<CheckConstraintModel> getChecks(); + + /** + * カラムのリストを取得する。 + * @return カラムのリスト + */ + List<ColumnModel> getColumns(); + + /** + * インデックスのリストを取得する。 + * @return インデックスのリスト + */ + List<IndexModel> getIndexes(); + + /** + * テーブルCHECK制約のリストを設定する。 + * @param checks テーブルCHECK制約のリスト + */ + void setChecks(List<CheckConstraintModel> checks); + + /** + * カラムのリストを設定する。 + * @param columns カラムのリスト + */ + void setColumns(List<ColumnModel> columns); + + /** + * インデックスのリストを設定する。 + * @param indexes インデックスのリスト + */ + void setIndexes(List<IndexModel> indexes); + +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/TableModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/ViewModelAccessor.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/ViewModelAccessor.java (rev 0) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/ViewModelAccessor.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -0,0 +1,38 @@ +/* + * Copyright 2007-2008 MIYAMOTO Daisuke, jiemamy.org and the Others. + * Created on 2008/10/25 + * + * This file is part of Jiemamy. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ +package org.jiemamy.spec.accessor.node; + +/** + * TODO for daisuke + * @author daisuke + */ +public interface ViewModelAccessor { + + /** + * VIEW定義SELECT文を取得する。 + * @return VIEW定義SELECT文 + */ + String getDefinition(); + + /** + * VIEW定義SELECT文を設定する。 + * @param definition VIEW定義SELECT文 + */ + void setDefinition(String definition); +} Property changes on: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/accessor/node/ViewModelAccessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/model/constraint/ConstraintSetModel.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/model/constraint/ConstraintSetModel.java 2008-10-24 18:28:51 UTC (rev 2030) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/model/constraint/ConstraintSetModel.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -39,7 +39,7 @@ * 制約のセットを取得する。 * @return 制約のセット */ - Collection<Constraint> getConstraintMap(); + Collection<Constraint> getConstraints(); /** * 指定した制約があるかどうか調べる。 Modified: zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/model/node/AbstractEntityModel.java =================================================================== --- zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/model/node/AbstractEntityModel.java 2008-10-24 18:28:51 UTC (rev 2030) +++ zeus/trunk/org.jiemamy.spec.core/src/main/java/org/jiemamy/spec/model/node/AbstractEntityModel.java 2008-10-25 09:02:08 UTC (rev 2031) @@ -70,6 +70,10 @@ */ List<AbstractEntityModel> getReferenceEntities(boolean recursive); + /** + * エクスポート対象として無効かどうかを取得する。 + * @return エクスポート対象として無効かどうか + */ boolean isDisabled(); /** @@ -84,6 +88,10 @@ */ void setDescription(String description); + /** + * エクスポート対象として無効かどうかを設定する。 + * @param disabled エクスポート対象として無効かどうか + */ void setDisabled(boolean disabled); /**