jp.oarts.pirka.iop.tool.core.plugin.file.db
クラス SearcherDaoFileCreator

java.lang.Object
  上位を拡張 jp.oarts.pirka.iop.tool.core.tools.text.TextCreator
      上位を拡張 jp.oarts.pirka.iop.tool.core.business.FileCreatorSampleModelerTextCreatorSimplePlugin
          上位を拡張 jp.oarts.pirka.iop.tool.core.plugin.file.db.SearcherDaoFileCreator
すべての実装されたインタフェース:
java.io.Serializable, FileCreatorSampleModelerPlugin, Plugin

public class SearcherDaoFileCreator
extends FileCreatorSampleModelerTextCreatorSimplePlugin

サーチャーDAO・ファイルクリエータープラグイン

作成者:
ito
関連項目:
直列化された形式

入れ子のクラスの概要
(package private)  class SearcherDaoFileCreator.ItemInfoEx
           
(package private)  class SearcherDaoFileCreator.NodeLinkInfo
           
(package private)  class SearcherDaoFileCreator.TableInfo
           
(package private)  class SearcherDaoFileCreator.TableNoItemId
           
 
フィールドの概要
static java.lang.String PLUGIN_NAME
           
static java.lang.String PLUGIN_NAME_JP
           
static java.lang.String SAFFIX_NAME_DAO
           
 
クラス jp.oarts.pirka.iop.tool.core.business.FileCreatorSampleModelerTextCreatorSimplePlugin から継承されたフィールド
attributeItemMap, canAttachFlag, canExecuteFlag, name, nameJp, pluginType, useSaveAndLoadParameter
 
クラス jp.oarts.pirka.iop.tool.core.tools.text.TextCreator から継承されたフィールド
baseTextName, CHANGE_AFTER_CHAR_STRING, CHANGE_MARK_STRING, CHANGE_PRE_CHAR_STRING, COMMENT_CHAR, commonParamMap, logger, MARK_CHAR, MARK_STRING, MARK2_STRING, paramMap, suffix, textCreatorMap, textMap, TITLE_CHAR
 
コンストラクタの概要
SearcherDaoFileCreator()
           
 
メソッドの概要
 void checkAttribute(int dataId, java.util.HashMap<java.lang.String,java.util.TreeMap<java.lang.Integer,java.util.HashMap<java.lang.String,AttributeData>>> dataMap, InterfaceProject interfaceProject)
          全行の属性項目のチェックを行う
エラーが発生したらエラーメッセージをInterfaceExceptionにセットして投げる
 void checkAttribute(int dataId, int itemId, java.util.HashMap<java.lang.String,AttributeData> dataMap, InterfaceProject interfaceProject)
          属性項目のチェックを行う
エラーが発生したらエラーメッセージをInterfaceExceptionにセットして投げる エラーになった属性項目はその名前をerrrorKeyListに追加する
 void checkParameter(java.util.HashMap<java.lang.String,ParameterData> dataMap, InterfaceProject interfaceProject, java.util.List<java.lang.String> errrorKeyList)
          パラメータのチェックを行う
エラーが発生したらエラーメッセージをInterfaceExceptionにセットして投げる
エラーになったパラメータはその名前をerrrorKeyListに追加する
 AttributeFileImage create(java.util.HashMap<java.lang.String,ParameterData> dataMap, InterfaceProject interfaceProject)
          ファイル作成処理
protected  byte[] createFileImage(InterfaceProject interfaceProject, DbType db, int targetInterfaceId, java.lang.String packageName, int rootIncludeId, java.util.List<SearcherDaoFileCreator.NodeLinkInfo> nodeLinkInfoLis, java.util.TreeMap<java.lang.Integer,java.lang.Integer> tableNo2InterfaceDataIdMap, java.util.TreeMap<java.lang.Integer,SearcherDaoFileCreator.ItemInfoEx> itemId2ItemInfoExMap, java.util.List<SearcherDaoFileCreator.TableNoItemId> primaryKeyTableNoItemIdList)
           
protected  void createItemIdMap(InterfaceProject interfaceProject, int orgItemId, java.lang.String includeIdKey, int dataId, int itemId, java.util.Map<java.lang.Integer,SearcherDaoFileCreator.ItemInfoEx> itemId2ItemInfoExMap, java.util.HashMap<java.lang.String,java.lang.Integer> includeIdKey2TableNoMap)
          アイテムIDとアイテム情報のマップを作成する。
protected  void createLinkKey(InterfaceProject interfaceProject, int targetInterfaceId, java.lang.String includeIdKey, java.util.List<SearcherDaoFileCreator.NodeLinkInfo> nodeLinkInfoList, java.util.HashMap<java.lang.String,java.lang.Integer> includeIdKey2TableNoMap)
          リンクキーリストを作成する。
protected  void createTableNoMap(InterfaceProject interfaceProject, InterfaceData interfaceData, java.lang.String includeIdKey, java.util.HashMap<java.lang.String,java.lang.Integer> includeIdKey2TableNoMap, SearcherDaoFileCreator.TableInfo tableInfo)
          インクルードIDキー(#IncludeId#IncludeId・・・)とテーブル番号のマップを作成する。
 java.lang.String getAttributeComment()
          属性のコメントを取得する
 AttributeItem[] getAttributeItems()
          このプラグインのアッタチさたインターフェースに付加される属性項目の一覧取得
protected  SearcherDaoFileCreator.TableNoItemId getBaseItemId(InterfaceProject interfaceProject, java.lang.String IncludeIdKey, java.util.HashMap<java.lang.String,java.lang.Integer> includeIdKey2TableNoMap, int interfaceId, int itemId)
           
 java.lang.String getComment()
          プラグインコメント取得
 java.lang.String getParameterComment()
          パラメータコメント取得
 ParameterItem[] getParameterItems()
          このプラグインが必要とするパラメータの一覧取得
protected  java.lang.String makeAliaseTableName(int tableNo)
           
protected  void makeChaildLinkMap(java.lang.String includeIdKey, int parentIncludeId, java.util.List<SearcherDaoFileCreator.NodeLinkInfo> nodeLinkInfoList, java.util.HashMap<java.lang.Integer,java.util.HashSet<java.lang.Integer>> treeMap, int targetInterfaceId, InterfaceProject interfaceProject, java.util.HashMap<java.lang.String,java.lang.Integer> includeIdKey2TableNoMap)
          子インクルードIDのリンクマップを作成する
protected  java.lang.String makeFieldName(int tableNo, java.lang.String fieldName)
           
protected  java.lang.String makeIncludeIdKey(int IncludeId)
           
protected  java.lang.String makeIncludeIdKey(java.lang.String baseKey, int IncludeId)
           
protected  void makeIncludeIdList(java.util.List<java.lang.Integer> includeIdList, int parentIncludeId, java.util.HashMap<java.lang.Integer,java.util.HashSet<java.lang.Integer>> treeMap)
          木構造をたどりインクルードIDリストを作成する
protected  void makeTree(int parentIncludeId, java.util.HashMap<java.lang.Integer,java.util.HashSet<java.lang.Integer>> treeMap, java.util.HashSet<java.lang.Integer> usedIncludeIdSet, int targetInterfaceId, InterfaceProject interfaceProject)
          木構造のインクルードIDマップを作成する
 
クラス jp.oarts.pirka.iop.tool.core.business.FileCreatorSampleModelerTextCreatorSimplePlugin から継承されたメソッド
afterCheckAttribute, canAttach, canExecute, createZipImage, getAttributeItem, getName, getNameJp, getPluginType, getResourceFile, getResourceFile, out, out, preCheckAttribute, useDisableItemsAttribute, useSaveAndLoadParameter
 
クラス jp.oarts.pirka.iop.tool.core.tools.text.TextCreator から継承されたメソッド
analyze, clearCommonParameter, clearParameter, getMap, getText, getText, init, putMap, setCommonParameter, setParameter, setParameter
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

PLUGIN_NAME

public static final java.lang.String PLUGIN_NAME
関連項目:
定数フィールド値

PLUGIN_NAME_JP

public static final java.lang.String PLUGIN_NAME_JP
関連項目:
定数フィールド値

SAFFIX_NAME_DAO

public static final java.lang.String SAFFIX_NAME_DAO
関連項目:
定数フィールド値
コンストラクタの詳細

SearcherDaoFileCreator

public SearcherDaoFileCreator()
                       throws InterfaceException
例外:
InterfaceException
メソッドの詳細

getParameterItems

public ParameterItem[] getParameterItems()
インタフェース Plugin の記述:
このプラグインが必要とするパラメータの一覧取得

戻り値:
パラメータ一覧

getAttributeItems

public AttributeItem[] getAttributeItems()
インタフェース FileCreatorSampleModelerPlugin の記述:
このプラグインのアッタチさたインターフェースに付加される属性項目の一覧取得

戻り値:
属性項目の一覧

getComment

public java.lang.String getComment()
インタフェース Plugin の記述:
プラグインコメント取得

戻り値:
プラグインコメント

getAttributeComment

public java.lang.String getAttributeComment()
インタフェース FileCreatorSampleModelerPlugin の記述:
属性のコメントを取得する

戻り値:
属性のコメント

getParameterComment

public java.lang.String getParameterComment()
インタフェース Plugin の記述:
パラメータコメント取得

戻り値:
パラメータコメント

checkParameter

public void checkParameter(java.util.HashMap<java.lang.String,ParameterData> dataMap,
                           InterfaceProject interfaceProject,
                           java.util.List<java.lang.String> errrorKeyList)
                    throws InterfaceException
インタフェース Plugin の記述:
パラメータのチェックを行う
エラーが発生したらエラーメッセージをInterfaceExceptionにセットして投げる
エラーになったパラメータはその名前をerrrorKeyListに追加する

パラメータ:
dataMap - パラメータで^タマップ(キー:パラメータ名、値:パラメータデータ)
interfaceProject - インターフェースプロジェクト
errrorKeyList - エラーになった属性項目を追加する値スト
例外:
InterfaceException

checkAttribute

public void checkAttribute(int dataId,
                           int itemId,
                           java.util.HashMap<java.lang.String,AttributeData> dataMap,
                           InterfaceProject interfaceProject)
                    throws InterfaceException
インタフェース FileCreatorSampleModelerPlugin の記述:
属性項目のチェックを行う
エラーが発生したらエラーメッセージをInterfaceExceptionにセットして投げる エラーになった属性項目はその名前をerrrorKeyListに追加する

定義:
インタフェース FileCreatorSampleModelerPlugin 内の checkAttribute
オーバーライド:
クラス FileCreatorSampleModelerTextCreatorSimplePlugin 内の checkAttribute
パラメータ:
dataId - インタフェースID
itemId - アイテムID
dataMap - 属性値格納マップ(キー:属性項目名、値:属性値)
interfaceProject - インタフェースプロジェクト
例外:
InterfaceException

checkAttribute

public void checkAttribute(int dataId,
                           java.util.HashMap<java.lang.String,java.util.TreeMap<java.lang.Integer,java.util.HashMap<java.lang.String,AttributeData>>> dataMap,
                           InterfaceProject interfaceProject)
                    throws InterfaceException
インタフェース FileCreatorSampleModelerPlugin の記述:
全行の属性項目のチェックを行う
エラーが発生したらエラーメッセージをInterfaceExceptionにセットして投げる

定義:
インタフェース FileCreatorSampleModelerPlugin 内の checkAttribute
オーバーライド:
クラス FileCreatorSampleModelerTextCreatorSimplePlugin 内の checkAttribute
パラメータ:
dataId - インタフェースID
dataMap - 全データマップ(キー:インターフェース名、値:項目ID属性格納マップ(キー:インタフェース項目ID、値:項目属性値格納マップ( キー:属性項目名、値:属性値)))
interfaceProject - インタフェースプロジェクト
例外:
InterfaceException

create

public AttributeFileImage create(java.util.HashMap<java.lang.String,ParameterData> dataMap,
                                 InterfaceProject interfaceProject)
                          throws InterfaceException
インタフェース FileCreatorSampleModelerPlugin の記述:
ファイル作成処理

パラメータ:
dataMap - ファイル作成に必要なパラメータデータマップ(キー:パラメータキー名、値:パラメータデータ)
interfaceProject - インタフェースプロジェクト
戻り値:
作成されたファイルイメージオブジェクト
例外:
InterfaceException

makeIncludeIdKey

protected java.lang.String makeIncludeIdKey(int IncludeId)

makeIncludeIdKey

protected java.lang.String makeIncludeIdKey(java.lang.String baseKey,
                                            int IncludeId)

createTableNoMap

protected void createTableNoMap(InterfaceProject interfaceProject,
                                InterfaceData interfaceData,
                                java.lang.String includeIdKey,
                                java.util.HashMap<java.lang.String,java.lang.Integer> includeIdKey2TableNoMap,
                                SearcherDaoFileCreator.TableInfo tableInfo)
                         throws InterfaceException
インクルードIDキー(#IncludeId#IncludeId・・・)とテーブル番号のマップを作成する。
ただし、子インクルードが複数レコードのリンク属性を有するものは対象外とする。

パラメータ:
interfaceProject -
interfaceData -
includeIdKey -
includeIdKey2TableNoMap -
tableInfo -
例外:
InterfaceException

makeIncludeIdList

protected void makeIncludeIdList(java.util.List<java.lang.Integer> includeIdList,
                                 int parentIncludeId,
                                 java.util.HashMap<java.lang.Integer,java.util.HashSet<java.lang.Integer>> treeMap)
木構造をたどりインクルードIDリストを作成する

パラメータ:
includeIdList -
parentIncludeId -
treeMap -

createItemIdMap

protected void createItemIdMap(InterfaceProject interfaceProject,
                               int orgItemId,
                               java.lang.String includeIdKey,
                               int dataId,
                               int itemId,
                               java.util.Map<java.lang.Integer,SearcherDaoFileCreator.ItemInfoEx> itemId2ItemInfoExMap,
                               java.util.HashMap<java.lang.String,java.lang.Integer> includeIdKey2TableNoMap)
                        throws InterfaceException
アイテムIDとアイテム情報のマップを作成する。
ただし、子インクルードが複数レコードのリンク属性を有するものは対象外とする。

パラメータ:
interfaceProject -
interfaceData -
includeIdKey -
includeIdKey2TableNoMap -
tableInfo -
例外:
InterfaceException

createLinkKey

protected void createLinkKey(InterfaceProject interfaceProject,
                             int targetInterfaceId,
                             java.lang.String includeIdKey,
                             java.util.List<SearcherDaoFileCreator.NodeLinkInfo> nodeLinkInfoList,
                             java.util.HashMap<java.lang.String,java.lang.Integer> includeIdKey2TableNoMap)
                      throws InterfaceException
リンクキーリストを作成する。

パラメータ:
interfaceProject -
interfaceData -
includeIdKey -
includeIdKey2TableNoMap -
tableInfo -
例外:
InterfaceException

makeTree

protected void makeTree(int parentIncludeId,
                        java.util.HashMap<java.lang.Integer,java.util.HashSet<java.lang.Integer>> treeMap,
                        java.util.HashSet<java.lang.Integer> usedIncludeIdSet,
                        int targetInterfaceId,
                        InterfaceProject interfaceProject)
                 throws InterfaceException
木構造のインクルードIDマップを作成する

パラメータ:
parentIncludeId -
treeMap -
usedIncludeIdSet -
targetInterfaceId -
interfaceProject -
例外:
InterfaceException

makeChaildLinkMap

protected void makeChaildLinkMap(java.lang.String includeIdKey,
                                 int parentIncludeId,
                                 java.util.List<SearcherDaoFileCreator.NodeLinkInfo> nodeLinkInfoList,
                                 java.util.HashMap<java.lang.Integer,java.util.HashSet<java.lang.Integer>> treeMap,
                                 int targetInterfaceId,
                                 InterfaceProject interfaceProject,
                                 java.util.HashMap<java.lang.String,java.lang.Integer> includeIdKey2TableNoMap)
                          throws InterfaceException
子インクルードIDのリンクマップを作成する

パラメータ:
parentIncludeId -
chaildLinkMap -
targetInterfaceId -
interfaceProject -
例外:
InterfaceException

getBaseItemId

protected SearcherDaoFileCreator.TableNoItemId getBaseItemId(InterfaceProject interfaceProject,
                                                             java.lang.String IncludeIdKey,
                                                             java.util.HashMap<java.lang.String,java.lang.Integer> includeIdKey2TableNoMap,
                                                             int interfaceId,
                                                             int itemId)
                                                      throws InterfaceException
例外:
InterfaceException

createFileImage

protected byte[] createFileImage(InterfaceProject interfaceProject,
                                 DbType db,
                                 int targetInterfaceId,
                                 java.lang.String packageName,
                                 int rootIncludeId,
                                 java.util.List<SearcherDaoFileCreator.NodeLinkInfo> nodeLinkInfoLis,
                                 java.util.TreeMap<java.lang.Integer,java.lang.Integer> tableNo2InterfaceDataIdMap,
                                 java.util.TreeMap<java.lang.Integer,SearcherDaoFileCreator.ItemInfoEx> itemId2ItemInfoExMap,
                                 java.util.List<SearcherDaoFileCreator.TableNoItemId> primaryKeyTableNoItemIdList)
                          throws java.io.IOException,
                                 InterfaceException
例外:
java.io.IOException
InterfaceException

makeAliaseTableName

protected java.lang.String makeAliaseTableName(int tableNo)

makeFieldName

protected java.lang.String makeFieldName(int tableNo,
                                         java.lang.String fieldName)