forked from Coded/SIPRP
				
			no message
	
		
	
				
					
				
			git-svn-id: https://svn.coded.pt/svn/SIPRP@370 bb69d46d-e84e-40c8-a05a-06db0d633741
							parent
							
								
									ab1261e651
								
							
						
					
					
						commit
						1dcbe93837
					
				| @ -0,0 +1,83 @@ | |||||||
|  | /* | ||||||
|  | * TrabalhadoresFichasAptidao.java | ||||||
|  | * | ||||||
|  | * Generated by com.evutils.codegen.JDOObjectGenerator on May 14, 2007 | ||||||
|  | * | ||||||
|  | * Use but DON'T TOUCH | ||||||
|  | */ | ||||||
|  | package siprp.medicina.processo.data; | ||||||
|  | 
 | ||||||
|  | import com.evolute.utils.jdo.*; | ||||||
|  | 
 | ||||||
|  | public final class TrabalhadoresFichasAptidao implements JDOInnerObject | ||||||
|  | { | ||||||
|  | 	private Integer id; | ||||||
|  | 	private Integer processo_id; | ||||||
|  | 	private Integer exame_id; | ||||||
|  | 
 | ||||||
|  | 	public TrabalhadoresFichasAptidao() | ||||||
|  | 	{ | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public Object getField( String fieldName ) | ||||||
|  | 	{ | ||||||
|  | 		if( fieldName == TrabalhadoresFichasAptidaoData.ID ) | ||||||
|  | 		{ | ||||||
|  | 			return id; | ||||||
|  | 		} | ||||||
|  | 		else if( fieldName == TrabalhadoresFichasAptidaoData.PROCESSO_ID ) | ||||||
|  | 		{ | ||||||
|  | 			return processo_id; | ||||||
|  | 		} | ||||||
|  | 		else if( fieldName == TrabalhadoresFichasAptidaoData.EXAME_ID ) | ||||||
|  | 		{ | ||||||
|  | 			return exame_id; | ||||||
|  | 		} | ||||||
|  | 		else if( fieldName.equals( TrabalhadoresFichasAptidaoData.ID ) ) | ||||||
|  | 		{ | ||||||
|  | 			return id; | ||||||
|  | 		} | ||||||
|  | 		else if( fieldName.equals( TrabalhadoresFichasAptidaoData.PROCESSO_ID ) ) | ||||||
|  | 		{ | ||||||
|  | 			return processo_id; | ||||||
|  | 		} | ||||||
|  | 		else if( fieldName.equals( TrabalhadoresFichasAptidaoData.EXAME_ID ) ) | ||||||
|  | 		{ | ||||||
|  | 			return exame_id; | ||||||
|  | 		} | ||||||
|  | 		return null; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setField( String fieldName, Object value ) | ||||||
|  | 	{ | ||||||
|  | 		if( fieldName == TrabalhadoresFichasAptidaoData.ID ) | ||||||
|  | 		{ | ||||||
|  | 			id = ( Integer ) value; | ||||||
|  | 		} | ||||||
|  | 		else if( fieldName == TrabalhadoresFichasAptidaoData.PROCESSO_ID ) | ||||||
|  | 		{ | ||||||
|  | 			processo_id = ( Integer ) value; | ||||||
|  | 		} | ||||||
|  | 		else if( fieldName == TrabalhadoresFichasAptidaoData.EXAME_ID ) | ||||||
|  | 		{ | ||||||
|  | 			exame_id = ( Integer ) value; | ||||||
|  | 		} | ||||||
|  | 		else if( fieldName.equals( TrabalhadoresFichasAptidaoData.ID ) ) | ||||||
|  | 		{ | ||||||
|  | 			id = ( Integer )  value; | ||||||
|  | 		} | ||||||
|  | 		else if( fieldName.equals( TrabalhadoresFichasAptidaoData.PROCESSO_ID ) ) | ||||||
|  | 		{ | ||||||
|  | 			processo_id = ( Integer )  value; | ||||||
|  | 		} | ||||||
|  | 		else if( fieldName.equals( TrabalhadoresFichasAptidaoData.EXAME_ID ) ) | ||||||
|  | 		{ | ||||||
|  | 			exame_id = ( Integer )  value; | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public Class getOuterClass() | ||||||
|  | 	{ | ||||||
|  | 		return TrabalhadoresFichasAptidaoData.class; | ||||||
|  | 	} | ||||||
|  | } | ||||||
| @ -0,0 +1,59 @@ | |||||||
|  | /* | ||||||
|  | * TrabalhadoresFichasAptidaoData.java | ||||||
|  | * | ||||||
|  | * Generated by com.evutils.codegen.JDOObjectGenerator on May 14, 2007 | ||||||
|  | * | ||||||
|  | * Use but DON'T TOUCH | ||||||
|  | */ | ||||||
|  | package siprp.medicina.processo.data; | ||||||
|  | 
 | ||||||
|  | import java.util.HashMap; | ||||||
|  | import com.evolute.utils.jdo.*; | ||||||
|  | 
 | ||||||
|  | public final class TrabalhadoresFichasAptidaoData extends JDOObject | ||||||
|  | { | ||||||
|  | 	public static final String ID = "id"; | ||||||
|  | 	public static final String PROCESSO_ID = "processo_id"; | ||||||
|  | 	public static final String EXAME_ID = "exame_id"; | ||||||
|  | 
 | ||||||
|  | 	public static final String FIELD_NAMES[] = new String[]{ | ||||||
|  | 		PROCESSO_ID, EXAME_ID, }; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 	protected static final String ALL_FIELD_NAMES[] = new String[]{ | ||||||
|  | 		ID, PROCESSO_ID, EXAME_ID, }; | ||||||
|  | 
 | ||||||
|  | 	private HashMap dataHash; | ||||||
|  | 
 | ||||||
|  | 	public TrabalhadoresFichasAptidaoData() | ||||||
|  | 	{ | ||||||
|  | 		dataHash = new HashMap(); | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	protected Object innerGet( String fieldName ) | ||||||
|  | 		throws Exception | ||||||
|  | 	{ | ||||||
|  | 		return dataHash.get( fieldName ); | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	protected void innerSet( String fieldName, Object value ) | ||||||
|  | 		throws Exception | ||||||
|  | 	{ | ||||||
|  | 		dataHash.put( fieldName, value ); | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String []getFieldNames() | ||||||
|  | 	{ | ||||||
|  | 		return FIELD_NAMES; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	protected String []getAllFieldNames() | ||||||
|  | 	{ | ||||||
|  | 		return ALL_FIELD_NAMES; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public Class getInnerClass() | ||||||
|  | 	{ | ||||||
|  | 		return TrabalhadoresFichasAptidao.class; | ||||||
|  | 	} | ||||||
|  | } | ||||||
| @ -0,0 +1,25 @@ | |||||||
|  | /* | ||||||
|  | * TrabalhadoresFichasAptidaoID.java | ||||||
|  | * | ||||||
|  | * Generated by com.evolute.codegen.jdo.idclassgenerators.JPOXIDClassGenerator on May 14, 2007 | ||||||
|  | * | ||||||
|  | * Use but DON'T TOUCH | ||||||
|  | */ | ||||||
|  | package siprp.medicina.processo.data; | ||||||
|  | 
 | ||||||
|  | import java.io.*; | ||||||
|  | 
 | ||||||
|  | import com.evolute.utils.jdo.jpox.*; | ||||||
|  | 
 | ||||||
|  | public final class TrabalhadoresFichasAptidaoID extends IntegerID | ||||||
|  | 	implements Serializable | ||||||
|  | { | ||||||
|  | 	public TrabalhadoresFichasAptidaoID() | ||||||
|  | 	{ | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public TrabalhadoresFichasAptidaoID( String str ) | ||||||
|  | 	{ | ||||||
|  | 		super( str ); | ||||||
|  | 	} | ||||||
|  | } | ||||||
| @ -0,0 +1,63 @@ | |||||||
|  | /* | ||||||
|  |  * V7_5_To_V7_6.java | ||||||
|  |  * | ||||||
|  |  * Created on 26 de Setembro de 2006, 11:48 | ||||||
|  |  * | ||||||
|  |  * To change this template, choose Tools | Template Manager | ||||||
|  |  * and open the template in the editor. | ||||||
|  |  */ | ||||||
|  | 
 | ||||||
|  | package siprp.update.updates; | ||||||
|  | 
 | ||||||
|  | import com.evolute.utils.*; | ||||||
|  | import com.evolute.utils.arrays.*; | ||||||
|  | import com.evolute.utils.db.*; | ||||||
|  | import com.evolute.utils.sql.*; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | /** | ||||||
|  |  * | ||||||
|  |  * @author fpalma | ||||||
|  |  */ | ||||||
|  | public class V7_5_To_V7_6  | ||||||
|  | 		implements siprp.update.Update | ||||||
|  | { | ||||||
|  | 	 | ||||||
|  | 	/** | ||||||
|  | 	 * Creates a new instance of V7_5_To_V7_6 | ||||||
|  | 	 */ | ||||||
|  | 	public V7_5_To_V7_6() | ||||||
|  | 	{ | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
|  | 	public String []listChanges() | ||||||
|  | 	{ | ||||||
|  | 		return new String[]{ "Alterar tabela dos processos" }; | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
|  | 	public double getStartVersion() | ||||||
|  | 	{ | ||||||
|  | 		return 7.5; | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
|  | 	public double getEndVersion() | ||||||
|  | 	{ | ||||||
|  | 		return 7.6; | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
|  | 	public void doUpdate() | ||||||
|  | 		throws Exception | ||||||
|  | 	{ | ||||||
|  | 		DBManager dbm = ( DBManager ) Singleton.getInstance( Singleton.DEFAULT_DBMANAGER ); | ||||||
|  | 		Executer executer = dbm.getSharedExecuter(); | ||||||
|  | 		com.evolute.utils.sql.Update update =  | ||||||
|  | 				new com.evolute.utils.sql.Update(  | ||||||
|  | 					"ALTER TABLE trabalhadores_processo ADD sub_motivo int4;" ); | ||||||
|  | 		executer.executeQuery( update ); | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
|  | 	public String toString() | ||||||
|  | 	{ | ||||||
|  | 		return "v7.5 para v7.6"; | ||||||
|  | 	} | ||||||
|  | } | ||||||
					Loading…
					
					
				
		Reference in new issue