org.axiondb

Interface IndexFactory

public interface IndexFactory

A simple factory for creating Indexinstances.

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

Method Summary
IndexmakeNewInstance(String name, Column col, boolean unique, boolean memorydb)
IndexmakeNewSystemInstance(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

public Index makeNewInstance(String name, Column col, boolean unique, boolean memorydb)

makeNewSystemInstance

public 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. 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