org.axiondb.engine.tables
Class ExternalTableFactory

java.lang.Object
  extended byorg.axiondb.engine.tables.ExternalTableFactory
All Implemented Interfaces:
TableFactory

public class ExternalTableFactory
extends Object
implements TableFactory

Implementation of ExternalTableFactory, to generate instances of concrete implementations of ExternalTable, such as flatfile and remote tables.

Version:
$Revision: 1.5 $ $Date: 2004/09/09 23:47:44 $

Field Summary
static HashMap EXTERNAL_LOADERS
           
static String PROP_VENDOR
          Property key representing (optional) DB vendor name for remote table
static String TYPE_DELIMITED
           
static String TYPE_FIXEDWIDTH
           
static String TYPE_REMOTE
           
static String TYPE_TAGGEDEBCDIC
           
 
Constructor Summary
ExternalTableFactory()
           
 
Method Summary
 void assertValidProperty(Properties props)
           
 Table createTable(Database database, String name)
           
 ExternalTable createTable(Database database, String name, Properties props, List columns)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_VENDOR

public static final String PROP_VENDOR
Property key representing (optional) DB vendor name for remote table

See Also:
Constant Field Values

TYPE_DELIMITED

public static final String TYPE_DELIMITED
See Also:
Constant Field Values

TYPE_FIXEDWIDTH

public static final String TYPE_FIXEDWIDTH
See Also:
Constant Field Values

TYPE_TAGGEDEBCDIC

public static final String TYPE_TAGGEDEBCDIC
See Also:
Constant Field Values

TYPE_REMOTE

public static final String TYPE_REMOTE
See Also:
Constant Field Values

EXTERNAL_LOADERS

public static final HashMap EXTERNAL_LOADERS
Constructor Detail

ExternalTableFactory

public ExternalTableFactory()
Method Detail

createTable

public Table createTable(Database database,
                         String name)
                  throws AxionException
Specified by:
createTable in interface TableFactory
Throws:
AxionException

createTable

public ExternalTable createTable(Database database,
                                 String name,
                                 Properties props,
                                 List columns)
                          throws AxionException
Throws:
AxionException

assertValidProperty

public void assertValidProperty(Properties props)
                         throws AxionException
Throws:
AxionException