mil.dod.th.ose.core/src/mil/dod/th/ose/core/factory/api/FactoryRegistry.java
public synchronized String persistNewObjectData(final String desiredName, final UUID uuid, 
            final FactoryDescriptor factory, final boolean autoRename) throws IllegalArgumentException,
            FactoryObjectInformationException
    {
        synchronized (m_NameSynchLock)
        {
            //check name for uniqueness
            final UUID entryUUID = m_FactoryObjectDataManager.getPersistentUuid(desiredName);
            final String nameEntry = getUniqueName(desiredName, uuid, autoRename);
        
            if (uuid.equals(entryUUID))
            {
                //name is already associated with the given object
                return nameEntry;
            }
        
            //persist the name
            m_FactoryObjectDataManager.persistNewObjectData(uuid, factory, nameEntry);
            return nameEntry;
        }
    }
/**
     * Add a persistent object entry to the data store. Used creating objects.
     * 
     * @param desiredName
     *     the name to persist. This method assumes the name is not blank or null.
     * @param uuid
     *     the UUID to associate with the name
     * @param factory
     *     the factory the object belongs to
     * @param autoRename
     *     if set to true then a duplicate name (typically a default name) should automatically have the UUID appended
     *     to create a new unique name automatically
     * @throws IllegalArgumentException
     *     thrown if the name is the duplicate of a name already in the data store.
     * @throws FactoryObjectInformationException
     *     thrown if a problem occurs saving the object name
     * @return string
     *     the persisted name. If autoRenamed, this will be the final unique name used.
     */
Add a persistent object entry to the data store. Used creating objects.

@param desiredName
the name to persist. This method assumes the name is not blank or null.
@param uuid
the UUID to associate with the name
@param factory
the factory the object belongs to
@param autoRename
if set to true then a duplicate name (typically a default name) should automatically have the UUID appended
to create a new unique name automatically
@throws IllegalArgumentException
thrown if the name is the duplicate of a name already in the data store.
@throws FactoryObjectInformationException
thrown if a problem occurs saving the object name
@return string
the persisted name. If autoRenamed, this will be the final unique name used.
Add a persistent object entry to the data store . Used creating objects . @param desiredName the name to persist . This method assumes the name is not blank or null . @param uuid the UUID to associate with the name @param factory the factory the object belongs to @param autoRename if set to true then a duplicate name ( typically a default name ) should automatically have the UUID appended to create a new unique name automatically @throws IllegalArgumentException thrown if the name is the duplicate of a name already in the data store . @throws FactoryObjectInformationException thrown if a problem occurs saving the object name @return string the persisted name . If autoRenamed this will be the final unique name used .
public synchronized String persistNewObjectData(final String desiredName, final UUID uuid, 
            final FactoryDescriptor factory, final boolean autoRename) throws IllegalArgumentException,
            FactoryObjectInformationException
    {
        synchronized (m_NameSynchLock)
        {
            final UUID entryUUID = m_FactoryObjectDataManager.getPersistentUuid(desiredName);
            final String nameEntry = getUniqueName(desiredName, uuid, autoRename);
            if (uuid.equals(entryUUID))
            {
                return nameEntry;
            }
            m_FactoryObjectDataManager.persistNewObjectData(uuid, factory, nameEntry);
            return nameEntry;
        }
    }
public synchronized String persistNewObjectData ( final String desiredName , final UUID uuid , final FactoryDescriptor factory , final boolean autoRename ) throws IllegalArgumentException , FactoryObjectInformationException { synchronized ( m_NameSynchLock ) { final UUID entryUUID = m_FactoryObjectDataManager . getPersistentUuid ( desiredName ) ; final String nameEntry = getUniqueName ( desiredName , uuid , autoRename ) ; if ( uuid . equals ( entryUUID ) ) { return nameEntry ; } m_FactoryObjectDataManager . persistNewObjectData ( uuid , factory , nameEntry ) ; return nameEntry ; } }
Add a persistent object entry to the data store.
Add a persistent object entry to the data store .
//check name for uniqueness //name is already associated with the given object //persist the name