java.lang.Object
com.orientechnologies.orient.core.record.ORecordAbstract
com.orientechnologies.orient.core.record.impl.ODocument
org.gcube.informationsystem.resourceregistry.persistence.orientdb.utils.MetadataOrient
All Implemented Interfaces:
com.orientechnologies.orient.core.db.record.ODetachable, com.orientechnologies.orient.core.db.record.OIdentifiable, com.orientechnologies.orient.core.db.record.ORecordElement, com.orientechnologies.orient.core.record.OElement, com.orientechnologies.orient.core.record.ORecord, com.orientechnologies.orient.core.record.ORecordSchemaAware, com.orientechnologies.orient.core.serialization.OSerializableStream, Externalizable, Serializable, Comparable<com.orientechnologies.orient.core.db.record.OIdentifiable>, Iterable<Map.Entry<String,Object>>, Comparator<com.orientechnologies.orient.core.db.record.OIdentifiable>, org.gcube.informationsystem.base.reference.Element, org.gcube.informationsystem.base.reference.properties.Metadata, org.gcube.informationsystem.base.reference.properties.PropertyElement

public class MetadataOrient extends com.orientechnologies.orient.core.record.impl.ODocument implements org.gcube.informationsystem.base.reference.properties.Metadata
Author:
Luca Frosini (ISTI - CNR)
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.db.record.ORecordElement

    com.orientechnologies.orient.core.db.record.ORecordElement.STATUS
  • Field Summary

    Fields inherited from class com.orientechnologies.orient.core.record.impl.ODocument

    _allowChainedAccess, _fields, _fieldSize, _lazyLoad, _ordered, _owners, _schema, _trackingChanges, EMPTY_STRINGS, RECORD_TYPE

    Fields inherited from class com.orientechnologies.orient.core.record.ORecordAbstract

    _contentChanged, _dirty, _dirtyManager, _listeners, _recordFormat, _recordId, _recordVersion, _size, _source, _status

    Fields inherited from interface org.gcube.informationsystem.base.reference.Element

    DATETIME_PATTERN, REDACTED, TYPE_PROPERTY, UNKNOWN_USER

    Fields inherited from interface org.gcube.informationsystem.base.reference.properties.Metadata

    CREATED_BY_PROPERTY, CREATION_TIME_PROPERTY, LAST_UPDATE_BY_PROPERTY, LAST_UPDATE_TIME_PROPERTY, NAME
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Creates a new MetadataOrient instance.
    protected
    MetadataOrient(String iClassName)
    Creates a new MetadataOrient instance for the specified class name.
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
     
     
    void
    setCreatedBy(String createdBy)
    Sets the name of the user who created this element.
    void
    setCreationTime(Date creationTime)
    Sets the creation timestamp of this element.
    void
    setLastUpdateBy(String lastUpdateBy)
    Sets the name of the user who last updated this element.
    void
    setLastUpdateTime(Date lastUpdateTime)
    Sets the last update timestamp of this element.
    toJSON(String iFormat)
     

    Methods inherited from class com.orientechnologies.orient.core.record.impl.ODocument

    addOwner, asEdge, asVertex, autoConvertFieldsToClass, autoConvertValues, checkClass, checkFieldName, checkForFields, clear, clearSource, clearTrackData, containsField, convertAllMultiValuesToTrackedVersions, copy, copyTo, deserializeFields, detach, equals, eval, eval, field, field, field, field, field, fieldNames, fields, fields, fields, fieldType, fieldValues, fill, fill, fillClassIfNeed, fromJSON, fromJSON, fromJSON, fromJSON, fromMap, fromStream, fromString, getClassName, getCollectionTimeLine, getDirtyFields, getGlobalPropertyById, getImmutableSchemaClass, getImmutableSchemaClass, getOrCreate, getOriginalValue, getOwner, getOwners, getProperty, getPropertyNames, getRawEntries, getRawProperty, getRecordType, getSchemaClass, getSchemaType, hashCode, hasOwners, hasSameContentOf, internalReset, isAllowChainedAccess, isEdge, isEmbedded, isEmpty, isLazyLoad, isOrdered, isTrackingChanges, isVertex, iterator, load, load, load, merge, merge, mergeMap, placeholder, rawContainsField, rawField, rawField, readExternal, reload, removeField, removeOwner, removeProperty, reset, save, save, save, setAllowChainedAccess, setClass, setClassName, setClassNameIfExists, setDirty, setDirtyNoChanged, setFieldType, setLazyLoad, setOrdered, setProperty, setProperty, setTrackingChanges, setup, toMap, toStream, toStream, toString, toString, track, undo, undo, unload, unTrack, validate, validateEmbedded, validateField, validateLink, validateLinkCollection, validateType, writeExternal

    Methods inherited from class com.orientechnologies.orient.core.record.ORecordAbstract

    addIdentityChangeListener, addListener, checkForLoading, compare, compareTo, delete, flatCopy, getDatabase, getDatabaseIfDefined, getDatabaseIfDefinedInternal, getDatabaseInternal, getDirtyManager, getIdentity, getInternalStatus, getRecord, getSize, getVersion, invokeListenerEvent, isContentChanged, isDirty, isLocked, load, lock, lockingStrategy, onAfterIdentityChanged, onBeforeIdentityChanged, reload, reload, reload, removeIdentityChangeListener, removeListener, save, setContentChanged, setDirtyManager, setIdentity, setIdentity, setInternalStatus, setVersion, toJSON, toJSON, toJSON, unlock, unsetDirty

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface com.orientechnologies.orient.core.db.record.OIdentifiable

    getRecord, isLocked, lock, lockingStrategy, unlock

    Methods inherited from interface com.orientechnologies.orient.core.record.ORecord

    delete, getDatabase, getIdentity, getSize, getVersion, isDirty, load, reload, reload, save, toJSON

    Methods inherited from interface com.orientechnologies.orient.core.db.record.ORecordElement

    getInternalStatus, setInternalStatus
  • Constructor Details

    • MetadataOrient

      public MetadataOrient()
      Creates a new MetadataOrient instance.
    • MetadataOrient

      protected MetadataOrient(String iClassName)
      Creates a new MetadataOrient instance for the specified class name.
      Parameters:
      iClassName - the OrientDB document class name
  • Method Details

    • getTypeName

      public String getTypeName()
      Specified by:
      getTypeName in interface org.gcube.informationsystem.base.reference.Element
    • getCreatedBy

      public String getCreatedBy()
      Specified by:
      getCreatedBy in interface org.gcube.informationsystem.base.reference.properties.Metadata
    • setCreatedBy

      public void setCreatedBy(String createdBy)
      Sets the name of the user who created this element.
      Parameters:
      createdBy - the username
    • getCreationTime

      public Date getCreationTime()
      Specified by:
      getCreationTime in interface org.gcube.informationsystem.base.reference.properties.Metadata
    • setCreationTime

      public void setCreationTime(Date creationTime)
      Sets the creation timestamp of this element.
      Parameters:
      creationTime - the creation date
    • getLastUpdateBy

      public String getLastUpdateBy()
      Specified by:
      getLastUpdateBy in interface org.gcube.informationsystem.base.reference.properties.Metadata
    • setLastUpdateBy

      public void setLastUpdateBy(String lastUpdateBy)
      Sets the name of the user who last updated this element.
      Parameters:
      lastUpdateBy - the username
    • getLastUpdateTime

      public Date getLastUpdateTime()
      Specified by:
      getLastUpdateTime in interface org.gcube.informationsystem.base.reference.properties.Metadata
    • setLastUpdateTime

      public void setLastUpdateTime(Date lastUpdateTime)
      Sets the last update timestamp of this element.
      Parameters:
      lastUpdateTime - the last update date
    • toJSON

      public String toJSON(String iFormat)
      Specified by:
      toJSON in interface com.orientechnologies.orient.core.record.ORecord
      Overrides:
      toJSON in class com.orientechnologies.orient.core.record.ORecordAbstract