com.esri.arcgis.geodatabase
Interface IDatabaseCompact

All Superinterfaces:
Serializable
All Known Implementing Classes:
IDatabaseCompactProxy, VersionedWorkspace, Workspace, WorkspaceName

public interface IDatabaseCompact
extends 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.


Method Summary
 boolean canCompact()
          True if this dataset can be compacted.
 void compact()
          Compacts the database.
 

Method Detail

compact

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

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

canCompact

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

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