/*
* EmpresasData.java
*
* Generated by com.evutils.codegen.EntityObjectGenerator
*
* Edit at will
*/
package siprp.data.outer;

import java.sql.Timestamp;

import com.evolute.entity.evo.EvoDataException;


public final class EmpresasData extends siprp.data.inner.Empresas
{

	public EmpresasData()
	{
		super();
	}
	
	@Override
	public void save() throws EvoDataException
	{
		if( getInactivo() == null )
		{
			setInactivo( "n" );
		}
		setActualizacao( new Timestamp(System.currentTimeMillis() ) );
		super.save();
	}
	
	@Override
	public void delete() throws EvoDataException
	{
		setInactivo( "y" );
		save();
	}
	
}
