com.esri.arcgis.geodatabase
Interface ILocalDatabaseCompact

All Superinterfaces:
Serializable
All Known Implementing Classes:
AccessWorkspaceFactory, FileGDBWorkspaceFactory

public interface ILocalDatabaseCompact
extends Serializable

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

Remarks

ILocalDatabaseCompact is an optional interface supported by AccessWorkspaceFactories and FileGDBWorkspaceFactories that allows compaction of an Access database using the services of the Jet Engine or compaction of the files contained within a File Geodatabase workspace.

After using a Personal or File geodatabase, the database may become fragmented on disk. Compact rearranges how a fragmented Personal or File geodatabase is stored on disk. Compacting a Personal or File geodatabase often reduces its size and improves its performance.

The Compact method on ILocaDatabaseCompact takes a WorkspaceName object as an argument, so its not necessary to open the workspace before compacting it. The IDatabaseCompact interface on a file and personal geodatabase workspace also supports a Compact method.

Product Availability

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


Method Summary
 void compact(IWorkspaceName name)
          Compacts the database.
 

Method Detail

compact

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

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
name - A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.