public class FolderIndexPartitionSpecification extends TieSystemObject
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
DESCRIPTION_ATTRIBUTE
The name of the attribute that holds the
description of the FolderIndexPartitionSpecification.
|
static String |
INDEXNAME_PREFIX_LEFTRIGHT
The prefix for the database index name used for the LEFT/RIGHT index.
|
static String |
INDEXNAME_PREFIX_LEFTSOURCE
The prefix for the database index name used for the LEFTSOURCE index.
|
static String |
INDEXNAME_PREFIX_RIGHTLEFT
The prefix for the database index name used for the RIGHT/LEFT index.
|
static String |
NAME_ATTRIBUTE
The name of the attribute that holds the
name of the FolderIndexPartitionSpecification.
|
static String |
SETTINGS_ATTRIBUTE
The name of the Attribute that holds the
miscellaneous settings for partition management.
|
static String |
SYNCHRONOUS_ATTRIBUTE
The name of the attribute that holds the
indication of whether the partition is managed synchronously.
|
static String |
TABLENAME_PREFIX
The prefix for the table name.
|
static String |
TABLENAMESUFFIX_ATTRIBUTE
The name of the attribute that holds the
suffix for the table and other database objects for the storage
of this partition.
|
static String |
TOPFOLDER_ATTRIBUTE
The name of the attribute that holds
the top folder for the partition (PublicObject).
|
ACTIVE_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
FolderIndexPartitionSpecification(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Constructs a FolderIndexPartitionSpecification object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
activatePartition()
Activate the partition.
|
void |
addSetting(String key,
AttributeValue value)
Adds a setting (SimpleProperty) for this object.
|
void |
completeDeactivatePartition()
Complete to deactivation of the partition.
|
static FolderIndexPartitionSpecification[] |
findAll(LibrarySession session)
Returns the set of defined FolderIndexPartitionSpecifications.
|
static FolderIndexPartitionSpecification[] |
findAllActive(LibrarySession session)
Returns the set of ACTIVE FolderIndexPartitionSpecifications.
|
static FolderIndexPartitionSpecification |
findByName(LibrarySession session,
String name)
Returns the a FolderIndexPartitionSpecification matching the
specified name.
|
String |
getDescription()
Gets the description of this FolderIndexPartitionSpecification.
|
String |
getLeftRightIndexName()
Returns name of the database index used for "Left, Right"
|
String |
getLeftsourceIndexName()
Returns name of the database index used for "Leftsource"
|
static LibraryObjectLookupCache |
getLibraryObjectLookupCache(LibrarySession session)
Returns the LibraryObjectLookupCache used by find
FolderIndexPartitionSpecification instances by name.
|
String |
getRightLeftIndexName()
Returns name of the database index used for "Right, Left"
|
AttributeValue |
getSetting(String key)
Gets the setting on this object for the specified key.
|
SimpleProperty[] |
getSettings()
Gets the settings used to describe the instance.
|
String |
getTableName()
Returns name of the table used for the storage of this partition.
|
String |
getTableNameSuffix()
Returns suffix for the table and other database objects for the storage
of this partition.
|
Folder |
getTopFolder()
Returns the top folder for the partition.
|
Long |
getTopFolderId()
Returns the top folder ID for the partition.
|
boolean |
hasNameAttribute()
Returns true if this object is an instance of a class
that has a NAME attribute, and false otherwise.
|
int |
identifyAllRowCount()
Get the number of rows in the partition.
|
List<AttributeValueTable> |
identifyAllRows()
Identifies all rows in the partition.
|
int |
identifyDuplicateRowCount()
Get the number of duplicate rows in the partition.
|
List<AttributeValueTable> |
identifyDuplicateRows()
Identifies any duplicate rows in the partition.
|
List<AttributeValueTable> |
identifyExtraRows()
Identifies any extra rows in the partition - rows that should not
be present based on the state of the master folderindex.
|
List<AttributeValueTable> |
identifyMissingRows()
Identifies any missing rows in the partition - rows that should
be present based on the state of the master folderindex.
|
boolean |
isDeactivateCompleted()
Gets whether this instance has been completely deactivated.
|
boolean |
isDeactivateRequested()
Gets whether this instance has been requested to deactivate.
|
boolean |
isPreviouslyActivated()
Gets whether this instance was at one time activated.
|
boolean |
isSynchronous()
Gets indication of whether the partition is managed synchronously.
|
protected void |
postCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions after the
creation of a SystemObject.
|
protected void |
postUpdate(LibraryObjectDefinition lodef)
Extensibility point to perform actions after the update of a SystemObject.
|
protected void |
preFree(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the
permanent deletion ("free") of a object.
|
void |
rebuildPartition()
Rebuild the partition.
|
int |
removeDuplicateRows()
Removes any duplicate rows in the partition.
|
void |
removeSetting(String key)
Removes a setting (SimpleProperty) for this object.
|
protected void |
requestDeactivatePartition()
Request to deactivate the partition.
|
List<AttributeValueTable> |
selectWithMinus(LibrarySession sess,
String sql1,
String sql2,
String sort)
Perform the two specified subselects with a MINUS (or EXCEPT for Postgres),
operator identifying rows that are present in the first SQL but not
in the second SQL.
|
void |
setDeactivateCompleted(boolean val)
Sets whether this instance has been completely deactivated.
|
void |
setDeactivateRequested(boolean val)
Sets whether this instance has been requested to deactivate.
|
void |
setPreviouslyActivated(boolean val)
Sets whether this instance was at one time activated.
|
addCategory, constructSystemObject, constructSystemObjectVector, free, freeCategories, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasPropertyBundleAttribute, isActive, preCreate, preUpdate, putPolicy, removeAllPolicies, removePolicy, removePolicy, setActive, setPolicyBundle, setPolicyLists
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, auditUpdated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, free, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonName, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getDefinitionForSimplePropertyUpdates, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getLabel, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleEvent, handleFree, handleUpdate, hashCode, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, isValidEventType, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, prePostAuditEvent, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
public static final String CLASS_NAME
public static final String NAME_ATTRIBUTE
public static final String DESCRIPTION_ATTRIBUTE
public static final String TOPFOLDER_ATTRIBUTE
public static final String TABLENAMESUFFIX_ATTRIBUTE
public static final String SYNCHRONOUS_ATTRIBUTE
public static final String SETTINGS_ATTRIBUTE
public static final String TABLENAME_PREFIX
public static final String INDEXNAME_PREFIX_LEFTRIGHT
public static final String INDEXNAME_PREFIX_RIGHTLEFT
public static final String INDEXNAME_PREFIX_LEFTSOURCE
protected FolderIndexPartitionSpecification(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- current LibrarySessionid
- object idclassId
- class iddata
- data componentIfsException
- if the operation failspublic boolean hasNameAttribute() throws IfsException
LibraryObject
hasNameAttribute
in class LibraryObject
IfsException
- if operation fails.public String getDescription() throws IfsException
IfsException
- if operation failspublic Long getTopFolderId() throws IfsException
IfsException
- if the operation fails.public Folder getTopFolder() throws IfsException
IfsException
- if the operation fails.public String getTableNameSuffix() throws IfsException
IfsException
- if the operation fails.public boolean isSynchronous() throws IfsException
IfsException
- if the operation failspublic SimpleProperty[] getSettings() throws IfsException
IfsException
- if the operation failspublic AttributeValue getSetting(String key) throws IfsException
key
- the keyIfsException
- if the operation failspublic String getTableName() throws IfsException
IfsException
- if the operation fails.public String getLeftRightIndexName() throws IfsException
IfsException
- if the operation fails.public String getRightLeftIndexName() throws IfsException
IfsException
- if the operation fails.public String getLeftsourceIndexName() throws IfsException
IfsException
- if the operation fails.public void addSetting(String key, AttributeValue value) throws IfsException
key
- the setting property's keyvalue
- the setting property's valueIfsException
- if the operation failspublic void removeSetting(String key) throws IfsException
key
- the setting property's keyIfsException
- if the operation failspublic static LibraryObjectLookupCache getLibraryObjectLookupCache(LibrarySession session) throws IfsException
session
- the session contextIfsException
- if the operation fails.public static FolderIndexPartitionSpecification[] findAll(LibrarySession session) throws IfsException
The instances will be sorted by name.
session
- the session contextIfsException
- if the operation fails.public static FolderIndexPartitionSpecification findByName(LibrarySession session, String name) throws IfsException
FolderIndexPartitionSpecification names are case sensitive, so this operations requires an exact match with respect to case.
session
- the session contextname
- the FolderIndexPartitionSpecification nameIfsException
- if the operation fails.public static FolderIndexPartitionSpecification[] findAllActive(LibrarySession session) throws IfsException
The instances will be sorted by name.
session
- the session contextIfsException
- if the operation fails.protected void postCreate(LibraryObjectDefinition lodef) throws IfsException
SystemObject
This assumes that a transaction context has already been established.
postCreate
in class SystemObject
lodef
- object definition that was used to create the objectIfsException
- if operation failsprotected void postUpdate(LibraryObjectDefinition lodef) throws IfsException
SystemObject
Create any categories that are specified in the definition.
postUpdate
in class SystemObject
lodef
- object definition used to define how the
target object was updatedIfsException
- if operation failsprotected void preFree(LibraryObjectDefinition lodef) throws IfsException
LibraryObject
This method is typically overridden by subclasses that
perform other operations prior to the target object
being freed in order to all delete or modify objects related
to the target object.
Subclasses are expected to invoke super.preFree
.
preFree
in class LibraryObject
lodef
- object definition used to hold options related to the free
operationIfsException
- if operation fails.public void rebuildPartition() throws IfsException
This will drop the underlying table and re-create it - leaving everything else about the obejct the same.
This can only only only be run with all Nodes down at the moment. There is no easy way for me to verify this, so be careful out there.
IfsException
- if the operation fails.protected void activatePartition() throws IfsException
IfsException
- if the operation fails.protected void requestDeactivatePartition() throws IfsException
IfsException
- if the operation fails.public void completeDeactivatePartition() throws IfsException
IfsException
- if the operation fails.public boolean isPreviouslyActivated() throws IfsException
IfsException
- if the operation fails.public boolean isDeactivateRequested() throws IfsException
IfsException
- if the operation fails.public boolean isDeactivateCompleted() throws IfsException
IfsException
- if the operation fails.public void setPreviouslyActivated(boolean val) throws IfsException
val
- true iff this instance was at one time activatedIfsException
- if the operation fails.public void setDeactivateRequested(boolean val) throws IfsException
val
- true iff this instance was requested to deactivateIfsException
- if the operation fails.public void setDeactivateCompleted(boolean val) throws IfsException
val
- true iff this instance has been completely deactivatedIfsException
- if the operation fails.public List<AttributeValueTable> identifyMissingRows() throws IfsException
IfsException
- if the operation fails.public List<AttributeValueTable> identifyExtraRows() throws IfsException
IfsException
- if the operation fails.public List<AttributeValueTable> identifyDuplicateRows() throws IfsException
IfsException
- if the operation fails.public int identifyDuplicateRowCount() throws IfsException
IfsException
- if the operation fails.public List<AttributeValueTable> identifyAllRows() throws IfsException
IfsException
- if the operation fails.public int identifyAllRowCount() throws IfsException
IfsException
- if the operation fails.public List<AttributeValueTable> selectWithMinus(LibrarySession sess, String sql1, String sql2, String sort) throws IfsException
sess
- the session contextsql1
- the first SQLsql2
- the second SQLsort
- the ORDER BY clauseIfsException
- if the operation fails.public int removeDuplicateRows() throws IfsException
IfsException
- if the operation fails.Copyright © 2025. All rights reserved.