public class MappingTable extends AbstractTable
Constructor and Description |
---|
MappingTable(String tableName,
String firstIdColumnName,
String secondIdColumnName) |
Modifier and Type | Method and Description |
---|---|
void |
deleteForFirst(Connection connection,
long id) |
void |
deleteForSecond(Connection connection,
long id) |
String |
getFirstIdColumnName() |
String |
getSecondIdColumnName() |
void |
insert(Connection connection,
long firstId,
long secondId) |
clear, getTableName
public String getFirstIdColumnName()
public String getSecondIdColumnName()
public void insert(Connection connection, long firstId, long secondId) throws SQLException
SQLException
public void deleteForFirst(Connection connection, long id) throws SQLException
SQLException
public void deleteForSecond(Connection connection, long id) throws SQLException
SQLException