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

All Superinterfaces:
com.hardcode.driverManager.Driver, FileDriver, GDBMSDriver, ReadAccess, TypeConverter
All Known Implementing Classes:
CSVDriver, CSVStringDriver

public interface AlphanumericFileDriver
extends FileDriver

Interface to the files.


Method Summary
 void createSource(java.lang.String path, DriverMetadata dsm)
          Creates a new file with the given field names and types
 void writeFile(java.io.File file, DataSource dataSource)
          Writes the content of the DataWare to the specified file.
 
Methods inherited from interface com.hardcode.gdbms.engine.data.driver.FileDriver
close, completeFileName, copy, fileAccepted, open
 
Methods inherited from interface com.hardcode.gdbms.engine.data.driver.ReadAccess
getFieldValue, getRowCount
 
Methods inherited from interface com.hardcode.gdbms.engine.data.driver.GDBMSDriver
check, getAvailableTypes, getDriverMetadata, getParameters, isReadOnly, isValidParameter, setDataSourceFactory
 
Methods inherited from interface com.hardcode.driverManager.Driver
getName
 
Methods inherited from interface com.hardcode.gdbms.engine.data.driver.TypeConverter
getType
 

Method Detail

writeFile

void writeFile(java.io.File file,
               DataSource dataSource)
               throws DriverException
Writes the content of the DataWare to the specified file.

Parameters:
dataWare - DataWare with the contents
Throws:
DriverException

createSource

void createSource(java.lang.String path,
                  DriverMetadata dsm)
                  throws DriverException
Creates a new file with the given field names and types

Parameters:
path - Path to the new file
dsm - Metadata of the source
Throws:
DriverException - If the creation fails


Copyright © 2005-2006 . All Rights Reserved.