org.openstreetmap.osmosis.core.pgsql.v0_6.impl
Class DatabaseCapabilityChecker

java.lang.Object
  extended by org.openstreetmap.osmosis.core.pgsql.v0_6.impl.DatabaseCapabilityChecker

public class DatabaseCapabilityChecker
extends java.lang.Object

Provides information about which features a database supports.

Author:
Brett Henderson

Constructor Summary
DatabaseCapabilityChecker(DatabaseContext dbCtx)
          Creates a new instance.
 
Method Summary
 boolean isActionSupported()
          Indicates if action support is available.
 boolean isWayBboxSupported()
          Indicates if way bounding box support is available.
 boolean isWayLinestringSupported()
          Indicates if way linestring support is available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseCapabilityChecker

public DatabaseCapabilityChecker(DatabaseContext dbCtx)
Creates a new instance.

Parameters:
dbCtx - The database context to use for accessing the database.
Method Detail

isActionSupported

public boolean isActionSupported()
Indicates if action support is available.

Returns:
True if supported, otherwise false.

isWayBboxSupported

public boolean isWayBboxSupported()
Indicates if way bounding box support is available.

Returns:
True if supported, otherwise false.

isWayLinestringSupported

public boolean isWayLinestringSupported()
Indicates if way linestring support is available.

Returns:
True if supported, otherwise false.