package org.arachb.arachadmin;

import java.sql.SQLException;

import org.apache.log4j.Logger;


/**
 * This bean supports individuals that appear in participants
 * @author pmidford
 *
 */
public class IndividualBean extends CachingBean {
	
	static final int DBID = 1;
	static final int DBSOURCEID = 2;
	static final int DBGENERATEDID = 3;
	static final int DBLABEL= 4;
	static final int DBTERM = 5;

	
	private int id;
	private String source_id;
	private String generated_id;
	private String label;
	private int term;  //the individual's class
	
	
	private static Logger log = Logger.getLogger(IndividualBean.class);


	@Override
	public void fill(AbstractResults record) throws SQLException {
		id = record.getInt(DBID);
		source_id = record.getString(DBSOURCEID);
		generated_id = record.getString(DBGENERATEDID);
		label = record.getString(DBLABEL);
		term = record.getInt(DBTERM);
	}

	@Override
	public int getId() {
		return id;
	}
	
	public String getSourceId() {
		return source_id;
	}
	
	public String getGeneratedId() {
		return generated_id;
	}

	public String getLabel(){
		return label;
	}

	public int getTerm(){
		return term;
	}

}

@@ -88,16 +88,158 @@
 Logger;%0A
+import org.arachb.owlbuilder.Owlbuilder;%0Aimport org.arachb.owlbuilder.lib.AbstractNamedEntity;%0Aimport org.semanticweb.owlapi.model.OWLObject;%0A
 %0A%0A/**%0A *
@@ -373,16 +373,46 @@
 ingBean 
+implements AbstractNamedEntity
 %7B%0A%09%0A%09sta
@@ -1313,10 +1313,428 @@
 rm;%0A%09%7D%0A%0A
+%0A%09@Override%0A%09public void setGeneratedId(String id) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09%0A%09%7D%0A%0A%09@Override%0A%09public String getIriString() %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return null;%0A%09%7D%0A%0A%09@Override%0A%09public Object checkIriString() %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return null;%0A%09%7D%0A%0A%09@Override%0A%09public void updateDB(AbstractConnection c) throws SQLException %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09%0A%09%7D%0A%0A
 %7D%0A

add AbstractNamedEntity interface and stub method defs