|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.MemoryRelationshipClassFactory
public class MemoryRelationshipClassFactory
Object used to create memory relationship class objects.
A MemoryRelationshipClassFactory is an object that manages the MemoryRelationshipClasses that exist in the application. You must use either a MemoryRelationshipClassFactory or a MemoryRelationshipClassName object to create new MemoryRelationshipClasses.
Like WorkspaceFactory, a MemoryRelationshipClassFactory is a singleton object. This means that you can only have one instance of this object per COM STA apartment / per thread.
MemoryRelationshipClassFactory is the one and only instance of its class.
Constructor Summary | |
---|---|
MemoryRelationshipClassFactory()
Constructs a MemoryRelationshipClassFactory using ArcGIS Engine. |
|
MemoryRelationshipClassFactory(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MemoryRelationshipClassFactory theMemoryRelationshipClassFactory = (MemoryRelationshipClassFactory) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
IRelationshipClass |
open(String name,
IObjectClass originPrimaryClass,
String originPrimaryKeyField,
IObjectClass originForeignClass,
String originForeignKeyField,
String forwardPathLabel,
String backwardPathLabel,
int cardinality)
Opens the memory relationship class specified by the given properties. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public MemoryRelationshipClassFactory() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic MemoryRelationshipClassFactory(Object obj) throws IOException
MemoryRelationshipClassFactory theMemoryRelationshipClassFactory = (MemoryRelationshipClassFactory) obj;
obj
to MemoryRelationshipClassFactory
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IRelationshipClass open(String name, IObjectClass originPrimaryClass, String originPrimaryKeyField, IObjectClass originForeignClass, String originForeignKeyField, String forwardPathLabel, String backwardPathLabel, int cardinality) throws IOException, AutomationException
The Open method either creates a new MemoryRelationshipClass or returns a reference to an existing MemoryRelationshipClass if that class has already been created.
When creating a MemoryRelationshipClass, much of the same information that is required for a RelationshipClass in the Geodatabase is needed. However, MemoryRelationshipClasses are always simple and non-attributed so only two tables and two fields need to be specified. The originPrimaryKeyField refers to the field in the originPrimaryClass while the originForeignKeyField refers to the field in the originForeignClass.
Once the MemoryRelationshipClass is created, the
IRelationshipClass interface can be used to find
the tables and fields specified in the Open
method. Here is how the properties from IRelationshipClass are
mapped to the parameters of the Open
method:
IRelationshipClass Property | Open method parameter |
---|---|
DestinationClass | originForeignClass |
OriginClass | originPrimaryClass |
OriginPrimaryKey | originPrimaryKeyField |
OriginForeignKey | originPrimaryKeyField |
ForwardPathLabel | ForwardPathLabel |
BackwardPathLabel | BackwardPathLabel |
Cardinality | Cardinality |
The diagram below describes the associations that define a MemoryRelationshipClass.
open
in interface IMemoryRelationshipClassFactory
name
- The name (in)originPrimaryClass
- A reference to a com.esri.arcgis.geodatabase.IObjectClass (in)originPrimaryKeyField
- The originPrimaryKeyField (in)originForeignClass
- A reference to a com.esri.arcgis.geodatabase.IObjectClass (in)originForeignKeyField
- The originForeignKeyField (in)forwardPathLabel
- The forwardPathLabel (in)backwardPathLabel
- The backwardPathLabel (in)cardinality
- A com.esri.arcgis.geodatabase.esriRelCardinality constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |