Creates a new cp measurement unit with the primary key. Does not add the cp measurement unit to the database.

@param CPMeasurementUnitId the primary key for the new cp measurement unit
@return the new cp measurement unit
489161
@Override
	@Transactional(enabled = false)
	public CPMeasurementUnit createCPMeasurementUnit(long CPMeasurementUnitId) {
		return cpMeasurementUnitPersistence.create(CPMeasurementUnitId);
	}
205256
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "unitOfMeasure")
    public JAXBElement<UnitOfMeasureType> createUnitOfMeasure(UnitOfMeasureType value) {
        return new JAXBElement<UnitOfMeasureType>(_UnitOfMeasure_QNAME, UnitOfMeasureType.class, null, value);
    }
1299839
@Override
	public CPOptionValue create(long CPOptionValueId) {
		CPOptionValue cpOptionValue = new CPOptionValueImpl();

		cpOptionValue.setNew(true);
		cpOptionValue.setPrimaryKey(CPOptionValueId);

		String uuid = PortalUUIDUtil.generate();

		cpOptionValue.setUuid(uuid);

		cpOptionValue.setCompanyId(companyProvider.getCompanyId());

		return cpOptionValue;
	}
1215765
@Override
	@Transactional(enabled = false)
	public CPDAvailabilityEstimate createCPDAvailabilityEstimate(
		long CPDAvailabilityEstimateId) {
		return cpdAvailabilityEstimatePersistence.create(CPDAvailabilityEstimateId);
	}
23466
@Override
	@Transactional(enabled = false)
	public CPDefinitionInventory createCPDefinitionInventory(
		long CPDefinitionInventoryId) {
		return cpDefinitionInventoryPersistence.create(CPDefinitionInventoryId);
	}
561598
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPMeasurementUnit updateCPMeasurementUnit(
		CPMeasurementUnit cpMeasurementUnit) {
		return cpMeasurementUnitPersistence.update(cpMeasurementUnit);
	}
1182357
public String getNormalizedUnit() {
    if (Measure_Type.featOkTst && ((Measure_Type)jcasType).casFeat_normalizedUnit == null)
      jcasType.jcas.throwFeatMissing("normalizedUnit", "ch.epfl.bbp.uima.types.Measure");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Measure_Type)jcasType).casFeatCode_normalizedUnit);}
1308639
@Indexable(type = IndexableType.DELETE)
	@Override
	public CPMeasurementUnit deleteCPMeasurementUnit(
		CPMeasurementUnit cpMeasurementUnit) {
		return cpMeasurementUnitPersistence.remove(cpMeasurementUnit);
	}
631132
public void addDenseUnit(CLIQUEUnit unit) {
    int numdim = unit.dimensionality();
    for(int i = 0; i < numdim; i++) {
      BitsUtil.setI(getDimensions(), unit.getDimension(i));
    }

    denseUnits.add(unit);
    coverage += unit.numberOfFeatureVectors();
  }
556763
public static CPMeasurementUnit toModel(CPMeasurementUnitSoap soapModel) {
		if (soapModel == null) {
			return null;
		}

		CPMeasurementUnit model = new CPMeasurementUnitImpl();

		model.setUuid(soapModel.getUuid());
		model.setCPMeasurementUnitId(soapModel.getCPMeasurementUnitId());
		model.setGroupId(soapModel.getGroupId());
		model.setCompanyId(soapModel.getCompanyId());
		model.setUserId(soapModel.getUserId());
		model.setUserName(soapModel.getUserName());
		model.setCreateDate(soapModel.getCreateDate());
		model.setModifiedDate(soapModel.getModifiedDate());
		model.setName(soapModel.getName());
		model.setKey(soapModel.getKey());
		model.setRate(soapModel.getRate());
		model.setPrimary(soapModel.isPrimary());
		model.setPriority(soapModel.getPriority());
		model.setType(soapModel.getType());
		model.setLastPublishDate(soapModel.getLastPublishDate());

		return model;
	}
686694
@Override
	@Transactional(enabled = false)
	public CPSpecificationOption createCPSpecificationOption(
		long CPSpecificationOptionId) {
		return cpSpecificationOptionPersistence.create(CPSpecificationOptionId);
	}
283701
@Override
  public Meter meter(String name) {
    final com.codahale.metrics.Meter meter = registry.meter(name);
    return new Meter() {
      @Override
      public void mark() {
        meter.mark();
      }

      @Override
      public void mark(long size) {
        meter.mark(size);
      }
    };
  }
1250031
public String getUnit() {
    if (Measure_Type.featOkTst && ((Measure_Type)jcasType).casFeat_unit == null)
      jcasType.jcas.throwFeatMissing("unit", "ch.epfl.bbp.uima.types.Measure");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Measure_Type)jcasType).casFeatCode_unit);}
632779
@Override
	@Transactional(enabled = false)
	public CPInstance createCPInstance(long CPInstanceId) {
		return cpInstancePersistence.create(CPInstanceId);
	}
897645
@Override
	public com.liferay.commerce.product.model.CPMeasurementUnit createCPMeasurementUnit(
		long CPMeasurementUnitId) {
		return _cpMeasurementUnitLocalService.createCPMeasurementUnit(CPMeasurementUnitId);
	}
786021
@Override
	@Transactional(enabled = false)
	public CPOption createCPOption(long CPOptionId) {
		return cpOptionPersistence.create(CPOptionId);
	}
1244929
public static UserCustomColumn createPrimaryKeyColumn(int index, String name) {
		return new UserCustomColumn(index, name, GeoPackageDataType.INTEGER,
				null, true, null, true);
	}