eu.etaxonomy.cdm.model.common
Class CdmMetaData

java.lang.Object
  extended by eu.etaxonomy.cdm.model.common.CdmBase
      extended by eu.etaxonomy.cdm.model.common.CdmMetaData
All Implemented Interfaces:
ICdmBase, Serializable, Cloneable

@Entity
public class CdmMetaData
extends CdmBase

Version:
1.0
Author:
a.mueller
See Also:
Serialized Form

Nested Class Summary
static class CdmMetaData.MetaDataPropertyName
           
static class CdmMetaData.VersionComparator
           
 
Field Summary
 
Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase
uuid
 
Constructor Summary
protected CdmMetaData()
          Simple constructor to be used by Spring
  CdmMetaData(CdmMetaData.MetaDataPropertyName propertyName, String value)
           
 
Method Summary
static int compareVersion(String version1, String version2, Integer depth, IProgressMonitor monitor)
          Compares two version string.
static List<CdmMetaData> defaultMetaData()
           
static String getDbSchemaVersion()
           
 CdmMetaData.MetaDataPropertyName getPropertyName()
           
static String getTermsVersion()
           
 String getValue()
           
static boolean isDbSchemaVersionCompatible(String version)
           
static boolean isTermsVersionCompatible(String version)
           
static List<CdmMetaData> propertyList()
          Method to retrieve a CDM Libraries meta data
 void setPropertyName(CdmMetaData.MetaDataPropertyName propertyName)
           
 void setValue(String value)
           
 
Methods inherited from class eu.etaxonomy.cdm.model.common.CdmBase
addPropertyChangeListener, addPropertyChangeListener, clone, clone, deproxy, equals, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUuid, hashCode, hasListeners, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CdmMetaData

protected CdmMetaData()
Simple constructor to be used by Spring


CdmMetaData

public CdmMetaData(CdmMetaData.MetaDataPropertyName propertyName,
                   String value)
Method Detail

defaultMetaData

public static final List<CdmMetaData> defaultMetaData()
Returns:
a list of default metadata objects

propertyList

public static final List<CdmMetaData> propertyList()
Method to retrieve a CDM Libraries meta data

Returns:

getPropertyName

public CdmMetaData.MetaDataPropertyName getPropertyName()
Returns:
the propertyName

setPropertyName

public void setPropertyName(CdmMetaData.MetaDataPropertyName propertyName)
Parameters:
propertyName - the propertyName to set

getValue

public String getValue()
Returns:
the value

setValue

public void setValue(String value)
Parameters:
value - the value to set

compareVersion

public static int compareVersion(String version1,
                                 String version2,
                                 Integer depth,
                                 IProgressMonitor monitor)
Compares two version string. If version1 is higher than version2 a positive result is returned. If both are equal 0 is returned, otherwise -1 is returned.

Parameters:
version1 -
version2 -
depth -
monitor -
Returns:
See Also:
Comparator.compare(Object, Object)

isDbSchemaVersionCompatible

public static boolean isDbSchemaVersionCompatible(String version)

getDbSchemaVersion

public static String getDbSchemaVersion()

getTermsVersion

public static String getTermsVersion()

isTermsVersionCompatible

public static boolean isTermsVersionCompatible(String version)


Copyright © 2007-2013 EDIT. All Rights Reserved.