Package com.signalapp.dao
Class CoaxialDAO
- java.lang.Object
-
- com.signalapp.dao.BaseDAO<Coaxial>
-
- com.signalapp.dao.CoaxialDAO
-
-
Field Summary
-
Fields inherited from class com.signalapp.dao.BaseDAO
connection
-
-
Constructor Summary
Constructors Constructor Description CoaxialDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoaxialfindByComponenteId(int componenteId)Finds a coaxial component by its componente IDprotected java.lang.String[]getColumnNames()Gets the column names for this DAO's tableprotected java.lang.StringgetTableName()Gets the table name for this DAOprotected CoaxialmapResultSetToEntity(java.sql.ResultSet rs)Maps a database row to a Coaxial entityprotected voidsetPreparedStatementParams(java.sql.PreparedStatement ps, Coaxial entity)Sets parameters for database operations
-
-
-
Method Detail
-
getTableName
protected java.lang.String getTableName()
Gets the table name for this DAO- Specified by:
getTableNamein classBaseDAO<Coaxial>- Returns:
- The table name
-
getColumnNames
protected java.lang.String[] getColumnNames()
Gets the column names for this DAO's table- Specified by:
getColumnNamesin classBaseDAO<Coaxial>- Returns:
- Array of column names
-
mapResultSetToEntity
protected Coaxial mapResultSetToEntity(java.sql.ResultSet rs) throws java.sql.SQLException
Maps a database row to a Coaxial entity- Specified by:
mapResultSetToEntityin classBaseDAO<Coaxial>- 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 ps, Coaxial entity) throws java.sql.SQLExceptionSets parameters for database operations- Specified by:
setPreparedStatementParamsin classBaseDAO<Coaxial>- Parameters:
ps- The PreparedStatement to set parameters forentity- The entity containing the values to set- Throws:
java.sql.SQLException- if a database error occurs
-
findByComponenteId
public Coaxial findByComponenteId(int componenteId) throws java.sql.SQLException
Finds a coaxial component by its componente ID- Parameters:
componenteId- The ID of the associated componente- Returns:
- The Coaxial object if found, null otherwise
- Throws:
java.sql.SQLException- if a database error occurs
-
-