Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013

com.healthmarketscience.jackcess
Class IndexBuilder

java.lang.Object
  extended by com.healthmarketscience.jackcess.IndexBuilder

public class IndexBuilder
extends java.lang.Object

Builder style class for constructing an Index.


Nested Class Summary
static class IndexBuilder.Column
          Information about a column in this index (name and ordering).
 
Field Summary
static java.lang.String PRIMARY_KEY_NAME
          name typically used by MS Access for the primary key index
 
Constructor Summary
IndexBuilder(java.lang.String name)
           
 
Method Summary
 IndexBuilder addColumns(boolean ascending, java.lang.String... names)
          Adds the columns with the given ordering to the index.
 IndexBuilder addColumns(java.lang.String... names)
          Adds the columns with ASCENDING ordering to the index.
 java.util.List<IndexBuilder.Column> getColumns()
           
 byte getFlags()
           
 java.lang.String getName()
           
 byte getType()
           
 boolean isIgnoreNulls()
           
 boolean isPrimaryKey()
           
 boolean isUnique()
           
 IndexBuilder setIgnoreNulls()
          Sets this index to ignore null values.
 IndexBuilder setName(java.lang.String name)
          Sets the name of the index.
 IndexBuilder setPrimaryKey()
          Sets this index to be a primary key index (additionally sets the index as unique).
 IndexBuilder setUnique()
          Sets this index to enforce uniqueness.
 void validate(java.util.Set<java.lang.String> tableColNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIMARY_KEY_NAME

public static final java.lang.String PRIMARY_KEY_NAME
name typically used by MS Access for the primary key index

See Also:
Constant Field Values
Constructor Detail

IndexBuilder

public IndexBuilder(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

getType

public byte getType()

getFlags

public byte getFlags()

isPrimaryKey

public boolean isPrimaryKey()

isUnique

public boolean isUnique()

isIgnoreNulls

public boolean isIgnoreNulls()

getColumns

public java.util.List<IndexBuilder.Column> getColumns()

setName

public IndexBuilder setName(java.lang.String name)
Sets the name of the index.


addColumns

public IndexBuilder addColumns(java.lang.String... names)
Adds the columns with ASCENDING ordering to the index.


addColumns

public IndexBuilder addColumns(boolean ascending,
                               java.lang.String... names)
Adds the columns with the given ordering to the index.


setPrimaryKey

public IndexBuilder setPrimaryKey()
Sets this index to be a primary key index (additionally sets the index as unique).


setUnique

public IndexBuilder setUnique()
Sets this index to enforce uniqueness.


setIgnoreNulls

public IndexBuilder setIgnoreNulls()
Sets this index to ignore null values.


validate

public void validate(java.util.Set<java.lang.String> tableColNames)

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013