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

org.openmdx.generic1.jpa3.IntegerProperty 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 IntegerProperty
 */
@SuppressWarnings("serial")
public class IntegerProperty  extends org.openmdx.generic1.jpa3.Property
 implements org.openmdx.generic1.cci2.IntegerProperty
{

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

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

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

* This method is equivalent to

   *   array.clear();
   *   array.putAll(integerValue);
   * 
* @param integerValue value(s) to be added to integerValue */ public void setIntegerValue( java.util.Map integerValue ){ openmdxjdoSetArray( getIntegerValue(), integerValue ); } // ---------------------------------------------------------------------------- // Instance/End // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- // Instance/DeclareSize // ---------------------------------------------------------------------------- /** * Number of elements of attribute integerValue */ int integerValue_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