|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.co.melco.preserv.spatial.psvRequestBuffer
タイトル: リクエストバッファクラス
説明: リクエストをバッファするクラスです。
バッファされたリクエストは、バッファ追加関数の呼ばれた順でバッファされます。
但し、地物管理キーの整合より、追加地物のみ、又は更新、削除地物のみの何れかしかバッファ出来ません。
psvAbstractAppndixRequestBulder実装クラスを設定する事により、 ユーザが作成したmdmRequestEnvelopeを同時にサーバへ送付する事が出来ます。
また、リクエストクラス自体は隠蔽している為、IDとしてキーを用いてHashMapでも管理します。
著作権: Copyright (c) 2005
会社名: Mitsubishi Electric Corporation
入れ子クラスの概要 | |
protected static class |
psvRequestBuffer.DefaultTag
タイトル: リクエストクラス識別用タグクラス 著作権: Copyright (c) 2005 会社名: Mitsubishi Electric Corporation |
static interface |
psvRequestBuffer.ErrorListener
説明: 本クラスのエラーリスナです。 |
フィールドの概要 | |
protected psvAbstractAppendixRequestBuilder |
appendixRequestBuilder
拡張リクエストリスナpsvAbstractAppendixRequestBuilderです。 |
protected AttributeLoadable |
attributeLoader
属性読込クラスです。 |
protected jp.co.melco.preserv.spatial.psvBindingCore |
bindingCore
通信用クラスです。 |
protected java.util.List |
bufferedRequestList
mdmRequestEnvelopeで構成されるバッファリングリクエストのリストです。 |
static int |
DELETE
削除オペレーション文字列です。 |
protected java.util.List |
errorListenerList
エラーリスナpsvErrorListenerのリストです。 |
protected java.util.List |
featureRequestListeners
地物リクエストリスナリストです。 |
static int |
INSERT
追加オペレーション文字列です。 |
protected java.util.Map |
paramMap
引数用リストです。 |
protected psvBufferRelationManagerImpl |
relationshipManager
関連管理クラスです。 |
protected jp.co.melco.preserv.spatial.psvAbstractAppendixRequestBuilder.RequestOperationListener |
requestOperationListener
拡張リクエスト作成クラス対応用の動作リスナです。 |
protected java.util.List |
tagList
タグ順序用のリストです。 |
protected java.util.Map |
tagMap
削除対象のmdmRequestEnvelopeを識別する為のタグMapです。 |
static int |
UPDATE
変更オペレーション文字列です。 |
メソッドの概要 | |
protected boolean |
addRequest(java.lang.Object key,
jp.co.melco.preserv.mog.common.mdmRequestEnvelope request)
リクエストを登録します。 |
boolean |
bufferAddFeatureRequest(psvFeature feature)
地物追加リクエストのバッファ登録を行います。 |
boolean |
bufferChangeFeatureRequest(psvFeature feature)
地物変更リクエストのバッファ登録を行います。 |
boolean |
bufferRemoveFeatureRequest(psvFeature feature)
地物削除リクエストのバッファ登録を行います。 |
void |
clearBufferedRequest()
バッファされたリクエストをクリアします。 |
boolean |
commit()
バッファリングされた要求をコミットします。 |
boolean |
containsAddFeatureRequest(java.lang.Long internalKey)
地物管理キーで指定された地物の地物追加リクエストがバッファ登録されているかを返します。 |
boolean |
containsBuffer(java.lang.Object key)
keyで関連付けられたリクエストがバッファ登録されているかを返します。 |
boolean |
containsChangeFeatureRequest(java.lang.Long internalKey)
地物管理キーで指定された地物の地物変更リクエストがバッファ登録されているかを返します。 |
boolean |
containsRemoveFeatureRequest(java.lang.Long internalKey)
地物管理キーで指定された地物の地物削除リクエストがバッファ登録されているかを返します。 |
protected void |
correctResponseList()
未登録の地物登録リクエストと変更リクエストがある場合は、 変更リクエストの地物を登録に置き換え、 未登録地物の登録リクエストと削除リクエストがある場合は、両方削除します。 |
protected void |
fireAppendixCommitError(java.lang.Object key,
java.lang.String message)
拡張リクエスト作成クラスのコミット時に発生したエラーを通知します。 |
protected void |
fireCommitError(int type,
java.lang.String message,
psvFeature[] features)
コミット時のエラーを通知します。 |
protected void |
fireFeaturesAdded(psvFeature[] features)
地物が追加された事を通知します。 |
protected void |
fireFeaturesChanged(psvFeature[] features)
地物が変更された事を通知します。 |
protected void |
fireFeaturesGot(psvFeature[] features)
地物が取得された事を通知します。 |
protected void |
fireFeaturesRemoved(psvFeature[] features)
地物が削除された事を通知します。 |
protected void |
fireFeaturesWillAdd(psvFeature[] features)
地物が追加される事を通知します。 |
protected void |
fireFeaturesWillChange(psvFeature[] features)
地物が変更される事を通知します。 |
protected void |
fireFeaturesWillRemove(psvFeature[] features)
地物が削除される事を通知します。 |
java.lang.String |
getBizID()
業務IDを返します。 |
java.lang.Object |
getBizObject()
業務オブジェクトを返します。 |
protected psvFeature |
getBufferedAddFeature(java.lang.Long internalKey)
地物管理キーで指定された、バッファされている追加地物を取得します。 |
protected psvFeature |
getBufferedChangeFeature(java.lang.Long internalKey)
地物管理キーで指定された、バッファされている変更地物を取得します。 |
protected psvFeature |
getBufferedRemoveFeature(java.lang.Long internalKey)
地物管理キーで指定された、バッファされている削除地物を取得します。 |
int |
getBufferedRequestCount()
バッファされたリクエストの数を返します。 |
protected psvFeature[] |
getParamFeature(java.lang.Object tag)
paramMapにキーを指定して地物を取得します。 |
static boolean |
hasUnregisteredRelation(psvFeature feature)
地物が未登録の関連を持つかを返します。 |
static boolean |
hasUnregisterTopologyReference(psvFeature feature)
ノード、エッジが未登録地物への参照を持つかを返します。 |
boolean |
isBufferedAddRequest()
地物追加リクエストがバッファされているかを返します。 |
boolean |
isBufferedChangeRequest()
地物変更リクエストがバッファされているかを返します。 |
boolean |
isBufferedRemoveRequest()
地物削除リクエストがバッファされているかを返します。 |
static boolean |
isEnableUpdate(psvFeature feature)
更新可能な地物かを判定します。 |
boolean |
isSameBizIDLastRequest(java.lang.String bizID)
最後に追加されたリクエストが、同じbizIDかを返します。 |
protected void |
putParamFeature(java.lang.Object tag,
psvFeature feature)
paramMapにキーを指定して地物を挿入します。 |
void |
releaseAppendixRequestBuilder()
本クラスに指定されている拡張リクエスト作成クラスを本クラス管理から削除します。 |
protected void |
removeParamFeature(java.lang.Object tag)
paramMapからキーを指定して地物を削除します。 |
protected boolean |
removeRequest(java.lang.Object key)
登録時のキーを使用して、リクエストを削除します。 |
protected void |
replaceAddFeature(psvFeature changeFeature)
変更リクエスト地物changeFeatureを追加リクエストの対象として設定し、 更新リクエスト自体は削除します。 |
protected void |
replaceChangeFeature(psvFeature changeFeature)
changeFeatureをparamMap,FeatureRequestEnvelopeが持つ地物を、 同じ地物の更新イベントが持つ地物と置き換えます。 |
void |
setAppendixRequestBuilder(psvAbstractAppendixRequestBuilder appendixRequestBuilder)
拡張リクエスト作成クラスを本クラス管理に設定します。 |
void |
setBizID(java.lang.String bizID)
業務IDを設定します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
public static final int INSERT
public static final int DELETE
public static final int UPDATE
protected java.util.List tagList
protected java.util.Map paramMap
protected java.util.List bufferedRequestList
protected psvAbstractAppendixRequestBuilder appendixRequestBuilder
protected java.util.List errorListenerList
protected java.util.Map tagMap
protected jp.co.melco.preserv.spatial.psvBindingCore bindingCore
protected AttributeLoadable attributeLoader
protected psvBufferRelationManagerImpl relationshipManager
protected java.util.List featureRequestListeners
protected jp.co.melco.preserv.spatial.psvAbstractAppendixRequestBuilder.RequestOperationListener requestOperationListener
メソッドの詳細 |
public java.lang.String getBizID()
public void setBizID(java.lang.String bizID)
bizID
- 業務IDpublic java.lang.Object getBizObject()
public int getBufferedRequestCount()
public boolean isBufferedAddRequest()
public boolean isBufferedChangeRequest()
public boolean isBufferedRemoveRequest()
public boolean containsAddFeatureRequest(java.lang.Long internalKey)
internalKey
- 地物の地物管理キー
public boolean containsChangeFeatureRequest(java.lang.Long internalKey)
internalKey
- 地物の地物管理キー
public boolean containsRemoveFeatureRequest(java.lang.Long internalKey)
internalKey
- 地物の地物管理キー
public boolean isSameBizIDLastRequest(java.lang.String bizID)
bizID
- 業務ID
public boolean containsBuffer(java.lang.Object key)
key
- リクエストキー
public boolean bufferAddFeatureRequest(psvFeature feature)
feature
- 追加地物
public boolean bufferChangeFeatureRequest(psvFeature feature)
feature
- 変更地物
public boolean bufferRemoveFeatureRequest(psvFeature feature)
feature
- 削除地物
protected void putParamFeature(java.lang.Object tag, psvFeature feature)
tag
- キーfeature
- 挿入地物protected void removeParamFeature(java.lang.Object tag)
tag
- タグprotected psvFeature[] getParamFeature(java.lang.Object tag)
tag
- タグprotected psvFeature getBufferedAddFeature(java.lang.Long internalKey)
internalKey
- 地物管理キー
protected psvFeature getBufferedChangeFeature(java.lang.Long internalKey)
internalKey
- 地物管理キー
protected psvFeature getBufferedRemoveFeature(java.lang.Long internalKey)
internalKey
- 地物管理キー
public void setAppendixRequestBuilder(psvAbstractAppendixRequestBuilder appendixRequestBuilder)
appendixRequestBuilder
- 拡張リクエスト作成クラスpublic void releaseAppendixRequestBuilder()
protected void correctResponseList()
public static boolean isEnableUpdate(psvFeature feature)
feature
- 更新対象
public static boolean hasUnregisteredRelation(psvFeature feature)
feature
- 地物
public static boolean hasUnregisterTopologyReference(psvFeature feature)
feature
- 調査地物
public boolean commit()
protected void fireFeaturesChanged(psvFeature[] features)
features
- 変更地物protected void fireFeaturesAdded(psvFeature[] features)
features
- 追加地物protected void fireFeaturesRemoved(psvFeature[] features)
features
- 削除地物protected void fireFeaturesWillChange(psvFeature[] features)
features
- 変更地物protected void fireFeaturesWillAdd(psvFeature[] features)
features
- 追加地物protected void fireFeaturesWillRemove(psvFeature[] features)
features
- 削除地物protected void fireFeaturesGot(psvFeature[] features)
features
- 取得地物protected void fireCommitError(int type, java.lang.String message, psvFeature[] features)
type
- psvRequestBuffer.INSERT,DELETE,UDPATEの何れかmessage
- 付加メッセージfeatures
- エラーが発生した地物protected void fireAppendixCommitError(java.lang.Object key, java.lang.String message)
key
- 追加時のキーmessage
- 付加メッセージpublic void clearBufferedRequest()
protected boolean addRequest(java.lang.Object key, jp.co.melco.preserv.mog.common.mdmRequestEnvelope request)
key
- 削除キー(HashMapのキーとして使用されます。)request
- 登録リクエストprotected void replaceAddFeature(psvFeature changeFeature)
changeFeature
- 変更リクエスト地物protected void replaceChangeFeature(psvFeature changeFeature)
changeFeature
- 置き換える地物protected boolean removeRequest(java.lang.Object key)
key
- キー
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |