com.esri.arcgis.geodatabase
Class IDatabaseCompactProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.geodatabase.IDatabaseCompactProxy
All Implemented Interfaces:
IDatabaseCompact, Externalizable, Serializable

public class IDatabaseCompactProxy
extends com.esri.arcgis.interop.Dispatch
implements IDatabaseCompact, Serializable

Provides access to members for compacting a file or personal geodatabase.

Remarks

IDatabaseCompact is an optional interface supported by File and Personal geodatabases (Access Workspaces) which allows compaction of an Access database using the services of the Jet Engine or File geodatabases. After using a Personal or File geodatabase, the database may become fragmented on disk. The Compact method rearranges how a fragmented personal geodatabase is stored on disk or rearranges the files contained within a File Geodatabase workspace. Compacting a Personal or File geodatabase often reduces its size and improves its performance.

Using the IDatabaseCompact interface requires you to open a connection to the workspace. The Compact method on ILocalDatabaseCompact takes a WorkspaceName object as an argument, so it isn't necessary to open the workspace before compacting it.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IDatabaseCompactProxy()
           
  IDatabaseCompactProxy(Object obj)
           
protected IDatabaseCompactProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 boolean canCompact()
          True if this dataset can be compacted.
 void compact()
          Compacts the database.
 void removeListener(String iidStr, Object theListener)
           
 
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, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IDatabaseCompactProxy

public IDatabaseCompactProxy()

IDatabaseCompactProxy

public IDatabaseCompactProxy(Object obj)
                      throws IOException
Throws:
IOException

IDatabaseCompactProxy

protected IDatabaseCompactProxy(Object obj,
                                String iid)
                         throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

compact

public void compact()
             throws IOException,
                    AutomationException
Compacts the database.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
compact in interface IDatabaseCompact
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

canCompact

public boolean canCompact()
                   throws IOException,
                          AutomationException
True if this dataset can be compacted.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
canCompact in interface IDatabaseCompact
Returns:
The canCompact
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.