Class NumberMapping


public class NumberMapping extends SingleFieldMapping
Mapping for Number type.
  • Constructor Details

    • NumberMapping

      public NumberMapping()
  • Method Details

    • getJavaTypeForColumnMapping

      public String getJavaTypeForColumnMapping(int index)
      Description copied from class: SingleFieldMapping
      Accessor for the name of the java-type actually used when mapping the particular datastore field. This java-type must have an entry in the datastore mappings.
      Overrides:
      getJavaTypeForColumnMapping in class SingleFieldMapping
      Parameters:
      index - requested column index.
      Returns:
      the name of java-type for the requested column.
    • getJavaType

      public Class getJavaType()
      Description copied from class: JavaTypeMapping
      Accessor for the java type being mapped. This is the java type that the mapping represents. Some examples :
      • if the field is of type "MyClass" then the mapping will be OIDMapping (or subclass) the javaType will be OID, and the type will be MyClass.
      • if the field is of type "int" then the mapping will be IntegerMapping, the javaType will be Integer, and the type will be int.
      The "java type" is the java-type name used in the plugin.xml mapping file
      Specified by:
      getJavaType in class JavaTypeMapping
      Returns:
      The java type