public final class DBIndex
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static DBIndex |
create(DBClassConcrete dbClassConcrete,
VirtualDB layer) |
static DBIndex |
find(DBClassConcrete dbClassConcrete,
VirtualDB layer)
Finds the index for this layer/class
|
VirtualDB |
getDataBase() |
java.lang.String |
getKey() |
java.lang.String |
getRequiredVersionList() |
DBClassConcrete |
getRootClassConcrete() |
java.lang.String |
getVersionList() |
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.
|
boolean |
isDirty(boolean enableIndexer)
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.
|
void |
setBad(boolean bad)
If an index could not be created then set as bad.
|
static void |
storeVersionList(VirtualDB layer,
DBClassConcrete rootClassConcrete,
java.lang.String targetVersionList)
THREAD MODE: moved the store of the version number into a separate thread to prevent the silent rollback of a transaction if a race condition occurs on the initial insert.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic static void storeVersionList(@Nonnull
VirtualDB layer,
@Nonnull
DBClassConcrete rootClassConcrete,
@Nonnull
java.lang.String targetVersionList)
throws java.lang.Exception
layer - the layerrootClassConcrete - the root classtargetVersionList - the target version listjava.lang.Exception - a serious problempublic static void reloadIndexes(@Nonnull
VirtualDB layer)
layer - the layer.public void reload()
throws java.lang.Exception
java.lang.Exception - a serious problem@CheckReturnValue @Nonnull public VirtualDB getDataBase()
@CheckReturnValue @Nonnull public DBClassConcrete getRootClassConcrete()
@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()
public void setBad(boolean bad)
bad - flag as bad@CheckReturnValue public boolean isBad()
@CheckReturnValue
public boolean isDirty()
throws java.lang.Exception
java.lang.Exception - a serious problem@CheckReturnValue
public boolean isDirty(boolean enableIndexer)
throws java.lang.Exception
enableIndexer - enable the indexerjava.lang.Exception - a serious problem@CheckReturnValue @Nonnull public static DBIndex create(@Nonnull DBClassConcrete dbClassConcrete, @Nonnull VirtualDB layer) throws java.lang.Exception
dbClassConcrete - the classlayer - the layerjava.lang.Exception - a serious problem@CheckReturnValue @Nonnull public static DBIndex find(@Nonnull DBClassConcrete dbClassConcrete, @Nonnull VirtualDB layer) throws java.lang.Exception
dbClassConcrete - the classlayer - the layerjava.lang.Exception - a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.