All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openmdx.generic1.jpa3.DecimalProperty Maven / Gradle / Ivy

There is a newer version: 2.18.10
Show newest version
// ----------------------------------------------------------------------------
// Instance/Begin
// ----------------------------------------------------------------------------
//////////////////////////////////////////////////////////////////////////////
//
// Name: $Id: AbstractMapper.java,v 1.10 2011/07/08 13:20:51 wfro Exp $
// Generated by: openMDX Java Mapper
// Date: Mon Mar 09 17:04:35 CET 2020
//
// GENERATED - DO NOT CHANGE MANUALLY
//
//////////////////////////////////////////////////////////////////////////////
package org.openmdx.generic1.jpa3;

/**
 * Class DecimalProperty
 */
@SuppressWarnings("serial")
public class DecimalProperty  extends org.openmdx.generic1.jpa3.Property
 implements org.openmdx.generic1.cci2.DecimalProperty
{

  /**
   * Constructor
   */
  public DecimalProperty(
  ){
    // Implements Serializable
  }

// ----------------------------------------------------------------------------
// Instance/AttributeGetSparseArray
// ----------------------------------------------------------------------------
  /**
   * Retrieves a SparseArray containing all the elements for the attribute decimalValue.
   * @return A SparseArray containing all elements for this attribute.
   */
  public org.w3c.cci2.SparseArray getDecimalValue(
  ){
    java.util.SortedMap slices = openmdxjdoGetSlices();
    return org.w3c.cci2.SortedMaps.asSparseArray(
      new org.w3c.jpa3.AbstractObject.SlicedMap(slices) {
        @Override
        protected java.math.BigDecimal getValue(DecimalProperty$Slice slice) {
         return slice.getDecimalValue();
        }
        @Override
        protected void setValue(DecimalProperty$Slice slice, java.math.BigDecimal value) {
          openmdxjdoMakeDirty();
          slice.setDecimalValue(value);
        }
        @Override
        protected DecimalProperty$Slice newSlice(int index) {
          return new DecimalProperty$Slice(DecimalProperty.this, index);
        }
        @Override
        protected void setSize(int size) {
          openmdxjdoMakeDirty();
          decimalValue_size = size;
        }
        @Override
        public int size() {
          return decimalValue_size;
        }
      }
    );
  }

// ----------------------------------------------------------------------------
// Instance/AttributeSetSparseArray
// ----------------------------------------------------------------------------
  /**
   * Clears decimalValue and adds the given value(s).
   * 

* This method is equivalent to

   *   array.clear();
   *   array.putAll(decimalValue);
   * 
* @param decimalValue value(s) to be added to decimalValue */ public void setDecimalValue( java.util.Map decimalValue ){ openmdxjdoSetArray( getDecimalValue(), decimalValue ); } // ---------------------------------------------------------------------------- // Instance/End // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- // Instance/DeclareSize // ---------------------------------------------------------------------------- /** * Number of elements of attribute decimalValue */ int decimalValue_size; // ---------------------------------------------------------------------------- // Instance/Begin // ---------------------------------------------------------------------------- ////////////////////////////////////////////////////////////////////////////// // // Name: $Id: AbstractMapper.java,v 1.10 2011/07/08 13:20:51 wfro Exp $ // Generated by: openMDX Java Mapper // Date: Mon Mar 09 17:04:35 CET 2020 // // GENERATED - DO NOT CHANGE MANUALLY // ////////////////////////////////////////////////////////////////////////////// }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy