public class MDEXStateVersionManager extends AbstractMetadataManager<MDEXStateVersion> implements MetadataManager<MDEXStateVersion>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MDEX_VERSION_KEY |
static java.lang.String |
MDEX_VERSION_TYPE |
Modifier and Type | Method and Description |
---|---|
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
|
<S extends MetadataProperty> |
propertyFromMetadataPropertyRecord(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord record)
Given a base Liferay record, return a Metadata Property; subclasses must implement this method.
|
getMetadataPropertyRecords, getObject, getObjectById, getObjects, getProperties, getProperty, handleObjectPropertyPersistence, objectsFromMetadataRecords, persist, persistProperties, persistProperty, propertiesFromMetadataPropertyRecords, removeObjectById, removePropertyById, setupPropertyQuery
public static final java.lang.String MDEX_VERSION_KEY
public static final java.lang.String MDEX_VERSION_TYPE
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 persistedMetadataException
- 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 recordMetadataManager.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 recordMetadataManager.propertyFromMetadataPropertyRecord(MetadataPropertyRecord)
public boolean hasProperties()
AbstractMetadataManager
hasProperties
in class AbstractMetadataManager<MDEXStateVersion>
Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.