org.axiondb
Interface IndexFactory

All Known Implementing Classes:
ArrayIndexFactory, BaseIndexFactory, BTreeIndexFactory

public interface IndexFactory

A simple factory for creating Indexinstances.

Version:
$Revision: 1.7 $ $Date: 2005/06/29 21:09:29 $

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

Method Detail

makeNewInstance

Index makeNewInstance(java.lang.String name,
                      Column col,
                      boolean unique,
                      boolean memorydb)
                      throws AxionException
Throws:
AxionException

makeNewSystemInstance

Index makeNewSystemInstance(Table table,
                            Column col,
                            boolean memorydb)
                            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