|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.co.melco.preserv.spatial.AbstractRelationshipManager
jp.co.melco.preserv.spatial.psvBufferRelationManagerImpl
タイトル: バッファ用関連管理クラス
説明: バッファリング対応の関連管理クラス実装です。
著作権: Copyright (c) 2005
会社名: Mitsubishi Electric Corporation
フィールドの概要 | |
protected static int |
EXIST_VALUE
関連取得済みで、関連がある状態を表します。 |
protected static int |
GET_NOT_YET
関連未取得状態を表します。 |
static int |
LEAF
internalIdが関連先である事を示します。 |
protected static int |
NO_RELATIONS
関連取得済みですが、関連が無い状態を表します。 |
static int |
NULL
internalIdが消去される事を示します。 |
protected static int |
REMOVED_BY_GC
関連取得済みですが、関連がGCにより消去された事を表します。 |
static int |
ROOT
internalIdが関連元である事を示します。 |
コンストラクタの概要 | |
psvBufferRelationManagerImpl()
|
メソッドの概要 | |
protected void |
changeRelatedKey(psvRelationship relationship,
java.lang.Long oldKey,
java.lang.Long newKey)
関連を構成している関連元、関連先の地物管理キーをoldKeyからnewKeyへと変更します。 |
void |
clearCachedRelatedRelation(java.lang.Long internalId)
地物管理キーを指定して、キャッシュされた関連を解放します。 |
void |
clearCachedRelation(java.lang.Long internalId)
地物管理キーを指定して、キャッシュを解放します。 |
void |
clearCachedRelationsAll()
全キャッシュを消去します。 |
void |
clearModifiedRelatedRelation(java.lang.Long internalId)
地物管理キーを指定して、キャッシュされた関連を解放します。 |
void |
clearModifiedRelation(java.lang.Long internalId)
internalIdで指定された地物の変更が加えられた関連を解放します。 |
void |
clearModifiedRelationsAll()
変更された関連を全て消去します。 |
boolean |
containsModifiedRelation(java.lang.Long internalId)
internalIdで指定された地物の変更が加えられた関連があるか返します。 |
static boolean |
containsRelationship(psvRelationship[] relationships,
psvRelationship relationship,
java.lang.Long internalKey,
int relationType)
relationshipの中にrelationshipと同じ名称の関連が含まれるかを返します。 |
static java.util.List |
getAndRelationship(psvRelationship[] relationships1,
psvRelationship[] relationships2,
java.lang.Long internalKey)
relationship1とrelationship2の両方に含まれる関連(インスタンスはrelationships2のもの)を返します。 |
protected psvRelationship[] |
getCachedRelationships(java.lang.Long internalKey)
地物管理キーにマッピングされてキャッシュされた地物関連を返します。 |
protected static int |
getInternalKeyLocaltion(java.lang.Long internalKey,
psvRelationship relation)
地物管理キーがrelationの何処にあるかを返します。 |
protected java.util.Set |
getInternalKeySet(psvRelationship relationship)
地物関連の関連元、関連先地物管理キーを返します。 |
protected java.util.Set |
getInternalKeySet(psvRelationship[] relationships)
地物関連の関連元、関連先地物管理キーを返します。 |
java.util.List |
getModifiedRelationList(java.lang.Long internalId)
地物管理キーに対応した編集スタックにある関連を返します。 |
static java.util.List |
getNotContainsRelationship(psvRelationship[] targetRelationships,
psvRelationship[] containsRelationships,
java.lang.Long internalKey)
targetRelationshipsのうち、containsRelationshipsに含まれない関連を返します。 |
static jp.co.melco.preserv.spatial.psvBufferRelationManagerImpl.RelationDifference |
getRelationDifference(java.lang.Long internalId,
psvRelationship oldRelation,
psvRelationship newRelation)
oldRelationshipとnewRelationshipの関連差分を返します。 |
static jp.co.melco.preserv.spatial.psvBufferRelationManagerImpl.RelationDifference[] |
getRelationsDifferences(java.lang.Long internalId,
psvRelationship[] oldRelationships,
psvRelationship[] newRelationships)
oldRelationshipsとnewRelationshipの両方に含まれる関連の差分を返します。 |
static psvRelationship |
getRelationship(java.util.List relationshipList,
java.lang.String name,
java.lang.Long internalKey,
int relationType)
relationshipListの中に含まれるnameと同じ名称の関連を返します。 |
static psvRelationship |
getRelationship(psvRelationship[] relationships,
java.lang.String name,
java.lang.Long internalKey,
int relationType)
relationshipsの中に含まれるnameと同じ名称の関連を返します。 |
protected psvRelationship[] |
getRelationships(java.lang.Long key)
キーにマッピングされた関連を返します。 |
psvRelationship[] |
getRelationships(java.lang.Long[] internalIds)
指定されたinternalIdsに対応する関連を返します。 |
protected int |
getState(java.lang.Long internalId)
内部IDに対応した値の状態を返します。 |
boolean |
isPriorFeatureHas(java.lang.Long internalId)
internalIdで指定された内部IDの地物が持っている関連があれば、その関連を優先させます。 |
protected static boolean |
isSameContents(java.util.Collection idCollectionA,
java.util.Collection idCollectionB)
idCollectionAとidCollectionBの内容が同じか判定して返します。 |
protected static boolean |
isSameRelation(psvRelationship relationship1,
psvRelationship relationship2)
realtionship1とrelationship2が同一の関連を表すかを判定して返します。 |
protected java.util.Collection |
loadRelationshipsFromServer(java.lang.Long[] internalIds)
internalIdsで指定された地物管理キーの地物関連をキャッシュし、地物関連全てを返します。 |
void |
notifyChangeInternalKey(java.lang.Long oldKey,
java.lang.Long newKey,
psvFeature feature)
地物の管理キー変更を通知します。 |
void |
notifyChangeRelationship(java.lang.Long internalId,
psvRelationship[] oldRelations,
psvRelationship[] newRelations)
関連が変更された事を通知します。 |
void |
notifyFeatureAdded(psvFeature[] features)
地物追加リクエストがされた事を通知します。 |
void |
notifyFeatureChanged(psvFeature[] features)
地物の変更リクエストがされた事を通知します。 |
void |
notifyFeatureGot(psvFeature[] features)
地物取得リクエストがされた事を通知します。 |
void |
notifyFeatureRemoved(psvFeature[] features)
地物削除リクエストがされた事を通知します。 |
void |
notifyFeatureWillAdd(psvFeature[] features)
地物追加リクエスト前を通知します。 |
void |
notifyFeatureWillChange(psvFeature[] features)
地物の変更リクエスト前を通知します。 |
void |
notifyFeatureWillRemove(psvFeature[] features)
地物削除リクエスト前を通知します。 |
void |
putModifiedRelations(java.lang.Long internalId,
java.util.List relationshipList)
編集した関連を編集スタックに設定します。 |
void |
putModifiedRelations(java.lang.Long internalId,
psvRelationship[] relationships)
編集した関連を編集スタックに設定します。 |
protected void |
putRelationships(java.lang.Long key,
psvRelationship[] relationships)
キーと関連をマッピングします。 |
protected void |
releaseRelationships(java.lang.Long key)
キーにマッピングされた関連をメモリ上から解放します。 |
static void |
removeAndInternalKey(java.util.Collection collection1,
java.util.Collection collection2)
地物管理キーのコレクション collection1とcollection2の両方に含まれる地物管理キーを、 両方のコレクションから削除します。 |
void |
setMapBinder(jp.co.melco.preserv.spatial.psvFeatureMapBinder featureMapBinder)
通信用オブジェクトを設定します。 |
protected void |
setRelationship(psvFeature[] features)
featuresに編集された関連を設定します。 |
protected static long[] |
toPrimitive(java.lang.Long[] langLongs)
java.lang.Longの配列をプリミティブ型の配列に変換して返します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected static final int GET_NOT_YET
protected static final int NO_RELATIONS
protected static final int REMOVED_BY_GC
protected static final int EXIST_VALUE
public static final int ROOT
public static final int LEAF
public static final int NULL
コンストラクタの詳細 |
public psvBufferRelationManagerImpl()
メソッドの詳細 |
public void clearModifiedRelationsAll()
public void setMapBinder(jp.co.melco.preserv.spatial.psvFeatureMapBinder featureMapBinder)
featureMapBinder
- 通信用オブジェクトpublic psvRelationship[] getRelationships(java.lang.Long[] internalIds)
jp.co.melco.preserv.spatial.psvRelationshipManager
内の getRelationships
internalIds
- 関連取得対象の地物管理キー
jp.co.melco.preserv.mog.common.mdmException
- 通信失敗時protected java.util.Collection loadRelationshipsFromServer(java.lang.Long[] internalIds)
internalIds
- 地物管理キー
public boolean isPriorFeatureHas(java.lang.Long internalId)
jp.co.melco.preserv.spatial.psvRelationshipManager
内の isPriorFeatureHas
internalId
- 内部ID
psvRelationshipManager.isPriorFeatureHas(java.lang.Long)
public void clearModifiedRelation(java.lang.Long internalId)
internalId
- 地物管理キーpublic boolean containsModifiedRelation(java.lang.Long internalId)
internalId
- 地物管理キー
public void clearModifiedRelatedRelation(java.lang.Long internalId)
internalId
- 地物管理キーpublic java.util.List getModifiedRelationList(java.lang.Long internalId)
internalId
- 地物管理キー
public void putModifiedRelations(java.lang.Long internalId, java.util.List relationshipList)
internalId
- relationshipsが属する地物の地物管理キーrelationshipList
- 編集された関連(要素:psvRelationship)public void putModifiedRelations(java.lang.Long internalId, psvRelationship[] relationships)
internalId
- relationshipsが属する地物の地物管理キーrelationships
- 編集された関連public void notifyChangeRelationship(java.lang.Long internalId, psvRelationship[] oldRelations, psvRelationship[] newRelations)
jp.co.melco.preserv.spatial.psvRelationshipChangeListener
内の notifyChangeRelationship
internalId
- 関連が変更された地物の内部IDoldRelations
- 古い関連オブジェクトnewRelations
- 新しい関連オブジェクトpsvRelationshipChangeListener.notifyChangeRelationship(java.lang.Long, jp.co.melco.preserv.spatial.psvRelationship[], jp.co.melco.preserv.spatial.psvRelationship[])
public void notifyFeatureGot(psvFeature[] features)
jp.co.melco.preserv.spatial.psvFeatureRequestListener
内の notifyFeatureGot
features
- 取得リクエストを出した地物psvFeatureRequestListener.notifyFeatureGot(jp.co.melco.preserv.spatial.psvFeature[])
public void notifyFeatureAdded(psvFeature[] features)
jp.co.melco.preserv.spatial.psvFeatureRequestListener
内の notifyFeatureAdded
features
- 追加リクエストを出した地物psvFeatureRequestListener.notifyFeatureAdded(jp.co.melco.preserv.spatial.psvFeature[])
public void notifyFeatureChanged(psvFeature[] features)
jp.co.melco.preserv.spatial.psvFeatureRequestListener
内の notifyFeatureChanged
features
- 変更リクエストを出した地物psvFeatureRequestListener.notifyFeatureChanged(jp.co.melco.preserv.spatial.psvFeature[])
public void notifyFeatureRemoved(psvFeature[] features)
jp.co.melco.preserv.spatial.psvFeatureRequestListener
内の notifyFeatureRemoved
features
- 削除リクエストを出した地物psvFeatureRequestListener.notifyFeatureRemoved(jp.co.melco.preserv.spatial.psvFeature[])
protected void setRelationship(psvFeature[] features)
features
- 関連を設定する地物public void notifyFeatureWillChange(psvFeature[] features)
jp.co.melco.preserv.spatial.psvFeatureRequestListener
内の notifyFeatureWillChange
features
- 変更リクエストを出す地物psvFeatureRequestListener.notifyFeatureWillChange(jp.co.melco.preserv.spatial.psvFeature[])
public void notifyFeatureWillRemove(psvFeature[] features)
jp.co.melco.preserv.spatial.psvFeatureRequestListener
内の notifyFeatureWillRemove
features
- 削除リクエストを出す地物psvFeatureRequestListener.notifyFeatureWillRemove(jp.co.melco.preserv.spatial.psvFeature[])
public void notifyFeatureWillAdd(psvFeature[] features)
jp.co.melco.preserv.spatial.psvFeatureRequestListener
内の notifyFeatureWillAdd
features
- 追加リクエストを出す地物psvFeatureRequestListener.notifyFeatureWillAdd(jp.co.melco.preserv.spatial.psvFeature[])
public void notifyChangeInternalKey(java.lang.Long oldKey, java.lang.Long newKey, psvFeature feature)
jp.co.melco.preserv.spatial.psvFeature.psvInternalKeyChangeListener
内の notifyChangeInternalKey
oldKey
- 古い地物管理キーnewKey
- 新しい地物管理キーfeature
- 管理キーが変更となる地物psvFeature.psvInternalKeyChangeListener.notifyChangeInternalKey(java.lang.Long,
java.lang.Long, jp.co.melco.preserv.spatial.psvFeature)
public static jp.co.melco.preserv.spatial.psvBufferRelationManagerImpl.RelationDifference[] getRelationsDifferences(java.lang.Long internalId, psvRelationship[] oldRelationships, psvRelationship[] newRelationships)
internalId
- 差分作成元となる地物の地物管理キーoldRelationships
- 変更前関連配列newRelationships
- 変更後関連配列
public static jp.co.melco.preserv.spatial.psvBufferRelationManagerImpl.RelationDifference getRelationDifference(java.lang.Long internalId, psvRelationship oldRelation, psvRelationship newRelation)
internalId
- 差分作成元となる地物の地物管理キーoldRelation
- 変更前関連newRelation
- 変更後関連
public void clearCachedRelationsAll()
public void clearCachedRelation(java.lang.Long internalId)
internalId
- 地物管理キーpublic void clearCachedRelatedRelation(java.lang.Long internalId)
internalId
- 地物管理キーprotected int getState(java.lang.Long internalId)
internalId
- 内部ID
protected void putRelationships(java.lang.Long key, psvRelationship[] relationships)
key
- キー(内部ID)relationships
- キーに対応付けられた関連オブジェクトprotected psvRelationship[] getCachedRelationships(java.lang.Long internalKey)
internalKey
- 地物管理キー
protected psvRelationship[] getRelationships(java.lang.Long key)
key
- キー(内部ID)
protected void releaseRelationships(java.lang.Long key)
key
- キー(内部ID)protected java.util.Set getInternalKeySet(psvRelationship[] relationships)
relationships
- 地物関連
protected java.util.Set getInternalKeySet(psvRelationship relationship)
relationship
- 地物関連
protected static long[] toPrimitive(java.lang.Long[] langLongs)
langLongs
- 変換対象
public static psvRelationship getRelationship(java.util.List relationshipList, java.lang.String name, java.lang.Long internalKey, int relationType)
relationshipList
- 関連リストname
- 検索関連名称internalKey
- 関連を持つ地物の地物管理キーrelationType
- ROOT,LEAFの何れか 地物関連を持つ地物管理キーが何処に属するかの指定
public static boolean containsRelationship(psvRelationship[] relationships, psvRelationship relationship, java.lang.Long internalKey, int relationType)
relationships
- 関連配列relationship
- 検索関連internalKey
- 関連を持つ地物の地物管理キーrelationType
- ROOT,LEAFの何れか 地物関連を持つ地物管理キーが何処に属するかの指定
public static psvRelationship getRelationship(psvRelationship[] relationships, java.lang.String name, java.lang.Long internalKey, int relationType)
relationships
- 関連配列name
- 検索関連名称internalKey
- 関連を持つ地物の地物管理キーrelationType
- ROOT,LEAFの何れか 地物関連を持つ地物管理キーが何処に属するかの指定
protected static int getInternalKeyLocaltion(java.lang.Long internalKey, psvRelationship relation)
internalKey
- 地物管理キーrelation
- 地物関連
public static java.util.List getAndRelationship(psvRelationship[] relationships1, psvRelationship[] relationships2, java.lang.Long internalKey)
relationships1
- 関連配列1relationships2
- 関連配列2internalKey
- 関連を持つ地物の地物管理キー
public static java.util.List getNotContainsRelationship(psvRelationship[] targetRelationships, psvRelationship[] containsRelationships, java.lang.Long internalKey)
targetRelationships
- 関連配列containsRelationships
- targetRelationshipsに含まれない事を調査する関連internalKey
- 関連を持つ地物の地物管理キー
public static void removeAndInternalKey(java.util.Collection collection1, java.util.Collection collection2)
collection1
- 地物管理キーのコレクション1(要素:Long)collection2
- 地物管理キーのコレクション2(要素:Long)protected void changeRelatedKey(psvRelationship relationship, java.lang.Long oldKey, java.lang.Long newKey)
relationship
- 関連oldKey
- 変更前の地物管理キーnewKey
- 変更後の地物管理キーprotected static boolean isSameRelation(psvRelationship relationship1, psvRelationship relationship2)
relationship1
- 地物関連1relationship2
- 地物関連2
protected static boolean isSameContents(java.util.Collection idCollectionA, java.util.Collection idCollectionB)
idCollectionA
- 地物管理キーのCollectionAidCollectionB
- 地物管理キーのCollectionB
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |