Class VersionMapping

    • Constructor Detail

      • VersionMapping

        public VersionMapping​(Table table,
                              JavaTypeMapping delegate)
        Constructor.
        Parameters:
        table - Datastore table
        delegate - The JavaTypeMapping to delegate the storage
    • Method Detail

      • includeInFetchStatement

        public boolean includeInFetchStatement()
        Accessor for whether to include this column in any fetch statement
        Overrides:
        includeInFetchStatement in class JavaTypeMapping
        Returns:
        Whether to include the column when fetching.
      • getColumnMapping

        public ColumnMapping getColumnMapping​(int index)
        Accessor for a datastore mapping.
        Overrides:
        getColumnMapping in class JavaTypeMapping
        Parameters:
        index - The mapping index
        Returns:
        the datastore mapping
      • getJavaType

        public Class getJavaType()
        Accessor for the type represented here, returning the class itself
        Specified by:
        getJavaType in class JavaTypeMapping
        Returns:
        This class.
      • setObject

        public void setObject​(org.datanucleus.ExecutionContext ec,
                              PreparedStatement ps,
                              int[] exprIndex,
                              Object value)
        Mutator for the object in this column
        Overrides:
        setObject in class SingleFieldMapping
        Parameters:
        ec - execution context
        ps - The statement
        exprIndex - The indexes
        value - The value to set it to
      • getObject

        public Object getObject​(org.datanucleus.ExecutionContext ec,
                                ResultSet resultSet,
                                int[] exprIndex)
        Accessor for the object in this column
        Overrides:
        getObject in class SingleFieldMapping
        Parameters:
        ec - execution context
        resultSet - The ResultSet to get the value from
        exprIndex - The indexes
        Returns:
        The object