|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.co.melco.preserv.spatial.AbstractRelationshipManager
jp.co.melco.preserv.spatial.psvRelationshipManagerImpl
タイトル: 関連管理クラス
説明: 関連管理を行うクラスです。
著作権: 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が関連元である事を示します。 |
コンストラクタの概要 | |
psvRelationshipManagerImpl()
|
メソッドの概要 | |
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()
全キャッシュを消去します。 |
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)
地物関連の関連元、関連先地物管理キーを返します。 |
static java.util.List |
getNotContainsRelationship(psvRelationship[] targetRelationships,
psvRelationship[] containsRelationships,
java.lang.Long internalKey)
targetRelationshipsのうち、containsRelationshipsに含まれない関連を返します。 |
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が同一の関連を表すかを判定して返します。 |
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)
地物削除リクエスト前を通知します。 |
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 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 psvRelationshipManagerImpl()
メソッドの詳細 |
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
- 通信失敗時public void notifyChangeRelationship(java.lang.Long internalId, psvRelationship[] oldRelations, psvRelationship[] newRelations)
jp.co.melco.preserv.spatial.psvRelationshipChangeListener
の記述:
jp.co.melco.preserv.spatial.psvRelationshipChangeListener
内の notifyChangeRelationship
internalId
- 関連が変更された地物の内部IDoldRelations
- 古い関連オブジェクトnewRelations
- 新しい関連オブジェクトpublic void notifyFeatureChanged(psvFeature[] features)
jp.co.melco.preserv.spatial.psvFeatureRequestListener
の記述:
jp.co.melco.preserv.spatial.psvFeatureRequestListener
内の notifyFeatureChanged
features
- 変更リクエストを出した地物public void notifyFeatureGot(psvFeature[] features)
jp.co.melco.preserv.spatial.psvFeatureRequestListener
の記述:
jp.co.melco.preserv.spatial.psvFeatureRequestListener
内の notifyFeatureGot
features
- 取得リクエストを出した地物public void notifyFeatureRemoved(psvFeature[] features)
jp.co.melco.preserv.spatial.psvFeatureRequestListener
の記述:
jp.co.melco.preserv.spatial.psvFeatureRequestListener
内の notifyFeatureRemoved
features
- 削除リクエストを出した地物public void notifyFeatureAdded(psvFeature[] features)
jp.co.melco.preserv.spatial.psvFeatureRequestListener
の記述:
jp.co.melco.preserv.spatial.psvFeatureRequestListener
内の notifyFeatureAdded
features
- 追加リクエストを出した地物public void notifyFeatureWillChange(psvFeature[] features)
jp.co.melco.preserv.spatial.psvFeatureRequestListener
の記述:
jp.co.melco.preserv.spatial.psvFeatureRequestListener
内の notifyFeatureWillChange
features
- 変更リクエストを出す地物public void notifyFeatureWillRemove(psvFeature[] features)
jp.co.melco.preserv.spatial.psvFeatureRequestListener
の記述:
jp.co.melco.preserv.spatial.psvFeatureRequestListener
内の notifyFeatureWillRemove
features
- 削除リクエストを出す地物public void notifyFeatureWillAdd(psvFeature[] features)
jp.co.melco.preserv.spatial.psvFeatureRequestListener
の記述:
jp.co.melco.preserv.spatial.psvFeatureRequestListener
内の notifyFeatureWillAdd
features
- 追加リクエストを出す地物public boolean isPriorFeatureHas(java.lang.Long internalId)
jp.co.melco.preserv.spatial.psvRelationshipManager
の記述:
jp.co.melco.preserv.spatial.psvRelationshipManager
内の isPriorFeatureHas
internalId
- 内部ID
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
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |