|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.portal.metadata.AbstractMetadataManager<MDEXStateVersion> com.endeca.portal.metadata.datasource.MDEXStateVersionManager
public class MDEXStateVersionManager
Encapsulates DB-interaction methods specific to Studio Core MDEX State version. This is a mechanism that allows the cached MDEX State's on each node of a Latitude Studio install to detect changes and refresh their state.
Field Summary | |
---|---|
static java.lang.String |
MDEX_VERSION_KEY
|
static java.lang.String |
MDEX_VERSION_TYPE
|
Method Summary | ||
---|---|---|
long |
fetchMDEXStateVersion()
Retrieves the version number of the currently persisted MDEX State version. |
|
static MDEXStateVersionManager |
getInstance()
Return an instance of the MDEXStateVersionManager. |
|
boolean |
hasProperties()
Return true to indicate that this MetadataManager class works with MetadataObjects that have associated MetadataProperties. |
|
void |
incrementMDEXStateVersion()
This increases the persisted MDEX State version by 1. |
|
MDEXStateVersion |
objectFromMetadataRecord(com.endeca.portal.liferay.ext.metadata.model.MetadataRecord record)
Given a base Liferay record, return a Metadata Object; subclasses must implement this method. |
|
MDEXStateVersion |
persist(MDEXStateVersion incoming)
Persists a Metadata Object to the database |
|
|
propertyFromMetadataPropertyRecord(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord record)
Given a base Liferay record, return a Metadata Property; subclasses must implement this method. |
Methods inherited from class com.endeca.portal.metadata.AbstractMetadataManager |
---|
getMetadataPropertyRecords, getObject, getObjectById, getObjects, getProperties, getProperty, handleObjectPropertyPersistence, objectsFromMetadataRecords, persist, persistProperties, persistProperty, propertiesFromMetadataPropertyRecords, removeObjectById, removePropertyById, setupPropertyQuery |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MDEX_VERSION_KEY
public static final java.lang.String MDEX_VERSION_TYPE
Method Detail |
---|
public static MDEXStateVersionManager getInstance()
public long fetchMDEXStateVersion()
public void incrementMDEXStateVersion()
public MDEXStateVersion persist(MDEXStateVersion incoming) throws MetadataException
AbstractMetadataManager
persist
in class AbstractMetadataManager<MDEXStateVersion>
incoming
- the Metadata Object representing the record to be persisted
MetadataException
- if there was an error persisting the datapublic MDEXStateVersion objectFromMetadataRecord(com.endeca.portal.liferay.ext.metadata.model.MetadataRecord record)
AbstractMetadataManager
objectFromMetadataRecord
in interface MetadataManager<MDEXStateVersion>
objectFromMetadataRecord
in class AbstractMetadataManager<MDEXStateVersion>
record
- the base Liferay record
MetadataManager.objectFromMetadataRecord(MetadataRecord)
public <S extends MetadataProperty> S propertyFromMetadataPropertyRecord(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord record)
AbstractMetadataManager
propertyFromMetadataPropertyRecord
in interface MetadataManager<MDEXStateVersion>
propertyFromMetadataPropertyRecord
in class AbstractMetadataManager<MDEXStateVersion>
S
- an instance of a Metadata Property extensionrecord
- the base Liferay record
MetadataManager.propertyFromMetadataPropertyRecord(MetadataPropertyRecord)
public boolean hasProperties()
AbstractMetadataManager
hasProperties
in class AbstractMetadataManager<MDEXStateVersion>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |