package org.arachb.owlbuilder.lib;

import java.sql.SQLException;

import org.arachb.arachadmin.AbstractConnection;



public interface AbstractNamedEntity extends AbstractEntity{
		
	public void setGeneratedId(String id);
		
	/**
	 * need to save the original generated id so old generated id's can
	 * be captured using SAMEAS
	 * @return raw value of generatedId field
	 **/
	public String getGeneratedId();

	/**
	 * 
	 * @return either assigned or generated identifier that can parse into an IRI
	 */
	public String getIriString();

	/**
	 * Non exception throwing version for use when generating IRI's
	 * probably better than a catch in the appropriate place
	 * @return string for making IRI's or null (means needs to be generated)
	 **/
	public Object checkIriString();
	
	/**
	 * 
	 * @param c
	 * @throws SQLException 
	 */
	public void updateDB(AbstractConnection c) throws SQLException;

	
}

package org.arachb.owlbuilder.lib;

import java.sql.SQLException;

import org.arachb.arachadmin.AbstractConnection;



public interface AbstractNamedEntity {
		
	public void setGeneratedId(String id);
		
	/**
	 * need to save the original generated id so old generated id's can
	 * be captured using SAMEAS
	 * @return raw value of generatedId field
	 **/
	public String getGeneratedId();

	/**
	 * 
	 * @return either assigned or generated identifier that can parse into an IRI
	 */
	public String getIriString();

	/**
	 * Non exception throwing version for use when generating IRI's
	 * probably better than a catch in the appropriate place
	 * @return string for making IRI's or null (means needs to be generated)
	 **/
	public Object checkIriString();
	
	/**
	 * 
	 * @param c
	 * @throws SQLException 
	 */
	public void updateDB(AbstractConnection c) throws SQLException;

	
}

remove dependence on AbstractEntity (which has gone away)