public final class DBIndexField
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
DBField |
field
field
|
DBClass |
rootClass
root class
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
classKey() |
static DBIndexField |
find(DBClass dbClass,
DBField baseField,
VirtualDB layer)
Finds the index for this layer/class
|
VirtualDB |
getDataBase() |
java.lang.String |
getKey() |
java.lang.String |
getRequiredVersionList() |
java.lang.String |
getVersionList() |
static void |
increment(DBField dbField) |
boolean |
isBad() |
boolean |
isDirty()
If the layer has any rows for this class and the index is not clean then
the index is marked as dirty.
|
void |
reload()
Reload the index version
|
static void |
reloadIndexes(VirtualDB layer)
reload ALL indexes.
|
static void |
reloadIndexes(VirtualDB layer,
DBField field)
reload ALL indexes.
|
void |
setBad(boolean v)
If an index could not be created then set as bad.
|
static void |
storeVersionList(VirtualDB layer,
DBClass dbClass,
DBField field,
java.lang.String targetVersionList) |
public final DBClass rootClass
public final DBField field
public static void reloadIndexes(@Nonnull
VirtualDB layer)
layer - the layer.public static void reloadIndexes(@Nonnull
VirtualDB layer,
@Nonnull
DBField field)
layer - the layer.field - the fieldpublic static void storeVersionList(VirtualDB layer, DBClass dbClass, DBField field, java.lang.String targetVersionList) throws java.lang.Exception
dbClass - the classlayer - the layerfield - the fieldtargetVersionList - the target versionjava.lang.Exception - a serious problempublic void reload()
throws java.lang.Exception
java.lang.Exception - a serious problem@CheckReturnValue @Nonnull public VirtualDB getDataBase()
@CheckReturnValue @Nonnull public java.lang.String getVersionList()
@CheckReturnValue
@Nonnull
public java.lang.String getRequiredVersionList()
throws java.lang.Exception
java.lang.Exception - a serious problem@CheckReturnValue @Nonnull public java.lang.String getKey()
@CheckReturnValue @Nonnull public java.lang.String classKey()
public void setBad(boolean v)
v - true if bad@CheckReturnValue public boolean isBad()
@CheckReturnValue
public boolean isDirty()
throws java.lang.Exception
java.lang.Exception - a serious problempublic static void increment(@Nonnull
DBField dbField)
throws java.lang.Exception
dbField - the fieldjava.lang.Exception - a serious problem@Nonnull @CheckReturnValue public static DBIndexField find(@Nonnull DBClass dbClass, @Nonnull DBField baseField, @Nonnull VirtualDB layer) throws java.lang.Exception
baseField - the fielddbClass - the classlayer - the layerjava.lang.Exception - a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.