|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.repo.sleepycat.StoredDatabaseInfo
@PrimaryKey(value="databaseName") @Independent @Alias(value="CARBONADO_DATABASE_INFO") public abstract class StoredDatabaseInfo
Stores basic information about the BDB databases managed by BDBRepository.
Note: This storable cannot have indexes defined, since it is used to discover information about indexes. It would create a cyclic dependency.
| Field Summary | |
|---|---|
static int |
EVOLUTION_NONE
Evolution strategy code |
static int |
EVOLUTION_STANDARD
Evolution strategy code |
| Constructor Summary | |
|---|---|
StoredDatabaseInfo()
|
|
| Method Summary | |
|---|---|
abstract long |
getCreationTimestamp()
Returns the milliseconds from 1970-01-01T00:00:00Z when this record was created. |
abstract String |
getDatabaseName()
|
abstract int |
getEvolutionStrategy()
Returns EVOLUTION_NONE if evolution of records is not supported. |
abstract byte[] |
getExtraData()
Since this record cannot evolve, this property allows it to be extended without conflicting with existing records. |
abstract String |
getIndexNameDescriptor()
Returns the index name descriptor for the keys of this database. |
abstract String |
getIndexTypeDescriptor()
Returns the types of the index properties. |
abstract int |
getVersionNumber()
Record version number for this StoredDatabaseInfo instance. |
abstract void |
setCreationTimestamp(long timestamp)
|
abstract void |
setDatabaseName(String name)
|
abstract void |
setEvolutionStrategy(int strategy)
|
abstract void |
setExtraData(byte[] data)
|
abstract void |
setIndexNameDescriptor(String descriptor)
|
abstract void |
setIndexTypeDescriptor(String descriptor)
|
abstract void |
setVersionNumber(int version)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.amazon.carbonado.Storable |
|---|
copy, copyAllProperties, copyDirtyProperties, copyPrimaryKeyProperties, copyUnequalProperties, copyVersionProperty, delete, equalPrimaryKeys, equalProperties, equals, getPropertyValue, hasDirtyProperties, hashCode, insert, isPropertyClean, isPropertyDirty, isPropertySupported, isPropertyUninitialized, load, markAllPropertiesClean, markAllPropertiesDirty, markPropertiesClean, markPropertiesDirty, prepare, propertyMap, readFrom, setPropertyValue, storableType, toString, toStringKeyOnly, tryDelete, tryInsert, tryLoad, tryUpdate, update, writeTo |
| Field Detail |
|---|
public static final int EVOLUTION_NONE
public static final int EVOLUTION_STANDARD
| Constructor Detail |
|---|
public StoredDatabaseInfo()
| Method Detail |
|---|
public abstract String getDatabaseName()
public abstract void setDatabaseName(String name)
@Nullable public abstract String getIndexNameDescriptor()
StorableIndex, and
it does not contain type information.
public abstract void setIndexNameDescriptor(String descriptor)
@Nullable public abstract String getIndexTypeDescriptor()
StorableIndex.
public abstract void setIndexTypeDescriptor(String descriptor)
public abstract int getEvolutionStrategy()
public abstract void setEvolutionStrategy(int strategy)
public abstract long getCreationTimestamp()
public abstract void setCreationTimestamp(long timestamp)
@Version public abstract int getVersionNumber()
public abstract void setVersionNumber(int version)
@Nullable public abstract byte[] getExtraData()
public abstract void setExtraData(byte[] data)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||