|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.schematic.INgObjectTypeProxy
public class INgObjectTypeProxy
Provides access to members that control the object type.
The object type is a meta type object you have to use to create an element type or a diagram type by code, and set their primary parameters definition.
INgDiagramType,
INgElementType,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E |
| Constructor Summary | |
|---|---|
|
INgObjectTypeProxy()
|
|
INgObjectTypeProxy(Object obj)
|
protected |
INgObjectTypeProxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
INgAttribute |
createAttribute(String attributeName,
int attributeType)
Creates a new attribute named 'attributeName' whose type is 'attributeType' for the object type. |
void |
delete(boolean deleteDescendants)
Deletes the object type. |
INgAttribute |
getAttribute(String attributeName)
Returns the attibute named 'attributeName' defined for the object type. |
INgAttributes |
getAttributes()
List of the attributes defined for the object type. |
INgDataSource |
getDataSource()
Data source related to the object type. |
INgNames |
getFieldNames()
List of the query field names used to build up each object identifier implemented by the object type. |
String |
getName()
Name of the object type. |
INgParameters |
getParameters()
List of the query parameters. |
INgProject |
getProject()
Project of the object type. |
String |
getQueryString()
Query, name of the query, or name of the table that returns all objects of the object type. |
void |
readExternal(ObjectInput in)
|
void |
removeListener(String iidStr,
Object theListener)
|
void |
setDataSource(INgDataSource pVal)
Data source related to the object type. |
void |
setFieldNames(INgNames pVal)
List of the query field names used to build up each object identifier implemented by the object type. |
void |
setName(String pVal)
Name of the object type. |
void |
setParameters(INgParameters pVal)
List of the query parameters. |
void |
setQueryString(String pVal)
Query, name of the query, or name of the table that returns all objects of the object type. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class com.esri.arcgis.interop.Dispatch |
|---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, queryInterface, release, setNativeMode, setPropertyByName, toString, vtblInvoke |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public INgObjectTypeProxy()
public INgObjectTypeProxy(Object obj)
throws IOException
IOException
protected INgObjectTypeProxy(Object obj,
String iid)
throws IOException
IOException| Method Detail |
|---|
public void addListener(String iidStr,
Object theListener,
Object theSource)
throws IOException
addListener in class com.esri.arcgis.interop.DispatchIOException
public void removeListener(String iidStr,
Object theListener)
throws IOException
removeListener in class com.esri.arcgis.interop.DispatchIOException
public String getName()
throws IOException,
AutomationException
The Name property identifies the type of the associated diagram type or of the associated element type. It must be a unique name. Generally, this property is defined:
- either at the time the associated element type or diagram type is defined with ArcGIS Schematics Designer,
- or by programming when creating a new type of element or a new type of diagram using the CreateElementType or CreateDiagramType methods.
getName in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.getName(),
INgElementType.getName()
public void setName(String pVal)
throws IOException,
AutomationException
setName in interface INgObjectTypepVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgAttributes getAttributes()
throws IOException,
AutomationException
These attributes could have been defined:
- either by calling the INgObjectType CreateAttribute method in the code
- or when its associated element type or diagram type has been created through ArcGIS Schematics Designer.
The Attributes property can returnNULL when no attribute is defined for the associated element type or diagram type.
getAttributes in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgObjectType.getAttribute(String)
public INgAttribute getAttribute(String attributeName)
throws IOException,
AutomationException
getAttribute in interface INgObjectTypeattributeName - The attributeName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgAttribute createAttribute(String attributeName,
int attributeType)
throws IOException,
AutomationException
createAttribute in interface INgObjectTypeattributeName - The attributeName (in)attributeType - A com.esri.arcgis.schematic.esriNgAttributeType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgObjectType.getAttributes(),
INgObjectType.getAttribute(String)
public INgNames getFieldNames()
throws IOException,
AutomationException
When several field names are specified, the object type identifier is obtained by concatenating all the fields in their entry sequence order (the concatenated fields are hyphenated). If one or several field names do(es) not correspond to a field returned by the query, Schematics considers the corresponding name as a character string to be concatenated with the other fields to identify the objects of this type.
If there is only one obejct of the given type, the obejct type identifier can be set to NULL
This list can be defined:
- when defining the related element type or diagram type through ArcGIS Schematics Designer,
- or by code
getFieldNames in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFieldNames(INgNames pVal)
throws IOException,
AutomationException
setFieldNames in interface INgObjectTypepVal - A reference to a com.esri.arcgis.schematic.INgNames (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgDataSource getDataSource()
throws IOException,
AutomationException
This property identifies the name of the data source used to connect the database where schematic objects are stored; that is, it specifies the database related to the the query that will return all objects of this type.
This data source can have been specified:
- when defining the related element type or diagram type through ArcGIS Schematics Designer,
- or by code.
The Datasource property can also be set to NULL if no query is associated to this object type.
getDataSource in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDataSource(INgDataSource pVal)
throws IOException,
AutomationException
setDataSource in interface INgObjectTypepVal - A reference to a com.esri.arcgis.schematic.INgDataSource (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getQueryString()
throws IOException,
AutomationException
The Datasource property identifies the datasource used to connect the database the query is related to. The query can be parameterized or not. In the case of a parameterized query, the Parameters property specifies the list of the parameters.
Note: In the case of an ADO connection without parameters, Schematics considers the attributes passed to the query as being text type attributes, by default. Any non textual attribute passed as a parameter must be followed by the ':' character sign.
getQueryString in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setQueryString(String pVal)
throws IOException,
AutomationException
setQueryString in interface INgObjectTypepVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgParameters getParameters()
throws IOException,
AutomationException
getParameters in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setParameters(INgParameters pVal)
throws IOException,
AutomationException
setParameters in interface INgObjectTypepVal - A reference to a com.esri.arcgis.schematic.INgParameters (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void delete(boolean deleteDescendants)
throws IOException,
AutomationException
delete in interface INgObjectTypedeleteDescendants - The deleteDescendants (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgProject getProject()
throws IOException,
AutomationException
getProject in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class com.esri.arcgis.interop.DispatchIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class com.esri.arcgis.interop.DispatchIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||