mil.dod.th.ose.core/src/mil/dod/th/ose/core/factory/api/data/BaseFactoryObjectDataManager.java
protected void mergeEntity(final UUID uuid, final FactoryObjectData.Builder factInformationBuilder) throws 
            IllegalArgumentException, FactoryObjectInformationException
    {
        final PersistentData factData = m_PersistentDataStore.find(uuid);
        factData.setEntity(factInformationBuilder.build().toByteArray());
        
        try
        {
            m_PersistentDataStore.merge(factData);
        }
        catch (final PersistenceFailedException | ValidationFailedException e)
        {
            throw new FactoryObjectInformationException(
                String.format("Unable to update location for asset with uuid %s, because the factory object"
                    + " information could not be merged.", uuid.toString()), e);
        }
    }
/**
     * Merge updated information to an existent entity.
     * @param uuid
     *     the UUID of entity
     * @param factInformationBuilder
     *     the message builder to persist, this method will build the message
     * @throws IllegalArgumentException
     *     if a data message cannot be found for the given UUID
     * @throws FactoryObjectInformationException
     *     if an error occurs that prevents the data from being persisted
     */
Merge updated information to an existent entity.
@param uuid
the UUID of entity
@param factInformationBuilder
the message builder to persist, this method will build the message
@throws IllegalArgumentException
if a data message cannot be found for the given UUID
@throws FactoryObjectInformationException
if an error occurs that prevents the data from being persisted
Merge updated information to an existent entity . @param uuid the UUID of entity @param factInformationBuilder the message builder to persist this method will build the message @throws IllegalArgumentException if a data message cannot be found for the given UUID @throws FactoryObjectInformationException if an error occurs that prevents the data from being persisted
protected void mergeEntity(final UUID uuid, final FactoryObjectData.Builder factInformationBuilder) throws 
            IllegalArgumentException, FactoryObjectInformationException
    {
        final PersistentData factData = m_PersistentDataStore.find(uuid);
        factData.setEntity(factInformationBuilder.build().toByteArray());
        try
        {
            m_PersistentDataStore.merge(factData);
        }
        catch (final PersistenceFailedException | ValidationFailedException e)
        {
            throw new FactoryObjectInformationException(
                String.format("Unable to update location for asset with uuid %s, because the factory object"
                    + " information could not be merged.", uuid.toString()), e);
        }
    }
protected void mergeEntity ( final UUID uuid , final FactoryObjectData . Builder factInformationBuilder ) throws IllegalArgumentException , FactoryObjectInformationException { final PersistentData factData = m_PersistentDataStore . find ( uuid ) ; factData . setEntity ( factInformationBuilder . build ( ) . toByteArray ( ) ) ; try { m_PersistentDataStore . merge ( factData ) ; } catch ( final PersistenceFailedException | ValidationFailedException e ) { throw new FactoryObjectInformationException ( String . format ( "Unable to update location for asset with uuid %s, because the factory object" + " information could not be merged." , uuid . toString ( ) ) , e ) ; } }
Merge updated information to an existent entity.
Merge updated information to an existent entity .