org.axiondb
Interface IndexFactory

All Known Implementing Classes:
ArrayIndexFactory, BaseIndexFactory, BTreeIndexFactory

public interface IndexFactory

A simple factory for creating Indexinstances.

Version:
$Revision: 1.6 $ $Date: 2004/08/27 03:21:19 $

Method Summary
 Index makeNewInstance(String name, Column col, boolean unique)
           
 Index makeNewSystemInstance(Table table, Column col)
          Creates a new system index, with a unique internally-generated name, on the given column with the given state of uniqueness.
 

Method Detail

makeNewInstance

public Index makeNewInstance(String name,
                             Column col,
                             boolean unique)
                      throws AxionException
Throws:
AxionException

makeNewSystemInstance

public Index makeNewSystemInstance(Table table,
                                   Column col)
                            throws AxionException
Creates a new system index, with a unique internally-generated name, on the given column with the given state of uniqueness. This index cannot be deleted via DML, but must be deleted by its associated database object upon its own deletion.

Parameters:
table - Table in which col resides
col - Column to be indexed
Returns:
new system-generated Index with an internally-generated name
Throws:
AxionException - if error occurs during creation