com.hardcode.gdbms.engine.data.driver
Interface GDBMSDriver

All Superinterfaces:
com.hardcode.driverManager.Driver, TypeConverter
All Known Subinterfaces:
AlphanumericDBDriver, AlphanumericFileDriver, AlphanumericObjectDriver, DBDriver, FileDriver, ObjectDriver, SpatialDBDriver, SpatialFileDriver, SpatialObjectDriver
All Known Implementing Classes:
CSVDriver, CSVStringDriver, FooDriver, HSQLDBDriver, HSQLDBTransactionalDriver, MySQLDriver, ODBCDriver, PostgreSQLDriver

public interface GDBMSDriver
extends com.hardcode.driverManager.Driver, TypeConverter


Method Summary
 java.lang.String check(Field field, Value value)
          Checks if a given value is suitable for the specified field
 java.lang.String[] getAvailableTypes()
          Gets a string identificator for each type a field can have
 DriverMetadata getDriverMetadata()
          Gets the driver specific metadata
 java.lang.String[] getParameters(java.lang.String driverType)
          Gets the parameters used in creating the type
 boolean isReadOnly(int i)
          Returns true if the specified field is read only
 boolean isValidParameter(java.lang.String driverType, java.lang.String paramName, java.lang.String paramValue)
          Returns if the given value (paramValue) for the parameter called paramName of the given driver specific type is valid or not
 void setDataSourceFactory(DataSourceFactory dsf)
           
 
Methods inherited from interface com.hardcode.driverManager.Driver
getName
 
Methods inherited from interface com.hardcode.gdbms.engine.data.driver.TypeConverter
getType
 

Method Detail

setDataSourceFactory

void setDataSourceFactory(DataSourceFactory dsf)

getDriverMetadata

DriverMetadata getDriverMetadata()
                                 throws DriverException
Gets the driver specific metadata

Returns:
Throws:
DriverException

check

java.lang.String check(Field field,
                       Value value)
                       throws DriverException
Checks if a given value is suitable for the specified field

Parameters:
field -
value -
Returns:
Throws:
DriverException

isReadOnly

boolean isReadOnly(int i)
                   throws DriverException
Returns true if the specified field is read only

Parameters:
i -
Returns:
Throws:
DriverException

getAvailableTypes

java.lang.String[] getAvailableTypes()
                                     throws DriverException
Gets a string identificator for each type a field can have

Returns:
Throws:
DriverException

getParameters

java.lang.String[] getParameters(java.lang.String driverType)
                                 throws DriverException
Gets the parameters used in creating the type

Parameters:
driverType -
Returns:
Throws:
DriverException

isValidParameter

boolean isValidParameter(java.lang.String driverType,
                         java.lang.String paramName,
                         java.lang.String paramValue)
Returns if the given value (paramValue) for the parameter called paramName of the given driver specific type is valid or not

Parameters:
driverType -
paramName -
paramValue - null if the parameter is not specified
Returns:


Copyright © 2005-2006 . All Rights Reserved.