java.lang.Object
org.gcube.informationsystem.resourceregistry.persistence.orientdb.base.OrientDBTypeMapping

public class OrientDBTypeMapping extends Object
Author:
Luca Frosini (ISTI - CNR) Create a mapping between OrientDB OType https://orientdb.gitbooks.io/orientdb-manual/content/orientdb.wiki/Types.html and PropertyTypeName.BaseType
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final Map<org.gcube.informationsystem.types.PropertyTypeName.BaseType,com.orientechnologies.orient.core.metadata.schema.OType>
    The mapping from Information System BaseType to OrientDB OType.
    protected static final Map<com.orientechnologies.orient.core.metadata.schema.OType,org.gcube.informationsystem.types.PropertyTypeName.BaseType>
    The mapping from OrientDB OType to Information System BaseType.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.gcube.informationsystem.types.PropertyTypeName.BaseType
    getBaseTypeByOType(com.orientechnologies.orient.core.metadata.schema.OType oType)
    Returns the matching PropertyTypeName.BaseType for the specified OrientDB OType.
    static com.orientechnologies.orient.core.metadata.schema.OType
    getOTypeByBaseType(org.gcube.informationsystem.types.PropertyTypeName.BaseType baseType)
    Returns the matching OrientDB OType for the specified PropertyTypeName.BaseType.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BASE_TYPE_TO_OTYPE

      protected static final Map<org.gcube.informationsystem.types.PropertyTypeName.BaseType,com.orientechnologies.orient.core.metadata.schema.OType> BASE_TYPE_TO_OTYPE
      The mapping from Information System BaseType to OrientDB OType.
    • OTYPE_TO_BASE_TYPE

      protected static final Map<com.orientechnologies.orient.core.metadata.schema.OType,org.gcube.informationsystem.types.PropertyTypeName.BaseType> OTYPE_TO_BASE_TYPE
      The mapping from OrientDB OType to Information System BaseType.
  • Constructor Details

    • OrientDBTypeMapping

      public OrientDBTypeMapping()
  • Method Details

    • getOTypeByBaseType

      public static com.orientechnologies.orient.core.metadata.schema.OType getOTypeByBaseType(org.gcube.informationsystem.types.PropertyTypeName.BaseType baseType)
      Returns the matching OrientDB OType for the specified PropertyTypeName.BaseType.
      Parameters:
      baseType - the Information System base type
      Returns:
      the matching OrientDB OType
    • getBaseTypeByOType

      public static org.gcube.informationsystem.types.PropertyTypeName.BaseType getBaseTypeByOType(com.orientechnologies.orient.core.metadata.schema.OType oType)
      Returns the matching PropertyTypeName.BaseType for the specified OrientDB OType.
      Parameters:
      oType - the OrientDB schema type
      Returns:
      the matching Information System BaseType