Package com.signalapp.dao
Class ResultadoSimulacionDAO
- java.lang.Object
-
- com.signalapp.dao.BaseDAO<ResultadoSimulacion>
-
- com.signalapp.dao.ResultadoSimulacionDAO
-
public class ResultadoSimulacionDAO extends BaseDAO<ResultadoSimulacion>
Data Access Object for the ResultadosSimulacion table Handles database operations for simulation result entities
-
-
Field Summary
-
Fields inherited from class com.signalapp.dao.BaseDAO
connection
-
-
Constructor Summary
Constructors Constructor Description ResultadoSimulacionDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteBySimulacionId(int idSimulacion)Delete all results for a specific simulationjava.util.List<ResultadoSimulacion>findBySimulacionId(int idSimulacion)Find all results for a specific simulationprotected java.lang.String[]getColumnNames()Gets the column names for the database tableprotected java.lang.StringgetTableName()Gets the name of the database table this DAO operates onprotected ResultadoSimulacionmapResultSetToEntity(java.sql.ResultSet rs)Maps a ResultSet row to an entity objectprotected voidsetPreparedStatementParams(java.sql.PreparedStatement stmt, ResultadoSimulacion entity)Sets the parameters for a PreparedStatement based on entity properties
-
-
-
Method Detail
-
getTableName
protected java.lang.String getTableName()
Description copied from class:BaseDAOGets the name of the database table this DAO operates on- Specified by:
getTableNamein classBaseDAO<ResultadoSimulacion>- Returns:
- The table name
-
getColumnNames
protected java.lang.String[] getColumnNames()
Description copied from class:BaseDAOGets the column names for the database table- Specified by:
getColumnNamesin classBaseDAO<ResultadoSimulacion>- Returns:
- Array of column names
-
mapResultSetToEntity
protected ResultadoSimulacion mapResultSetToEntity(java.sql.ResultSet rs) throws java.sql.SQLException
Description copied from class:BaseDAOMaps a ResultSet row to an entity object- Specified by:
mapResultSetToEntityin classBaseDAO<ResultadoSimulacion>- Parameters:
rs- The ResultSet containing the database row- Returns:
- The mapped entity object
- Throws:
java.sql.SQLException- if a database error occurs
-
setPreparedStatementParams
protected void setPreparedStatementParams(java.sql.PreparedStatement stmt, ResultadoSimulacion entity) throws java.sql.SQLExceptionDescription copied from class:BaseDAOSets the parameters for a PreparedStatement based on entity properties- Specified by:
setPreparedStatementParamsin classBaseDAO<ResultadoSimulacion>- Parameters:
stmt- The PreparedStatement to set parameters forentity- The entity containing the values to set- Throws:
java.sql.SQLException- if a database error occurs
-
findBySimulacionId
public java.util.List<ResultadoSimulacion> findBySimulacionId(int idSimulacion) throws java.sql.SQLException
Find all results for a specific simulation- Parameters:
idSimulacion- The simulation ID- Returns:
- List of results for the simulation
- Throws:
java.sql.SQLException- If a database error occurs
-
deleteBySimulacionId
public void deleteBySimulacionId(int idSimulacion) throws java.sql.SQLExceptionDelete all results for a specific simulation- Parameters:
idSimulacion- The simulation ID- Throws:
java.sql.SQLException- If a database error occurs
-
-