public class HouseDao extends ru.bitel.common.dao.AbstractIdDao<House>
cacheFilter, cacheJoin, cacheOrderBy, cachePaged, cachePS, cacheWhat, con, getByIdPS, logger, mid, moduleId, orderByPattern, SQL_CALC_FOUND_ROWS, SQL_DELETE, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_LIMIT, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_WHERE, tableName
Constructor and Description |
---|
HouseDao(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
House |
get(int id)
Возвращает объект по его ID.
|
protected House |
getFromRS(java.sql.ResultSet rs) |
java.util.List<House> |
list(int cityId,
int areaId,
int streetId,
int quarterId,
int house,
java.lang.String frac,
Page page) |
protected void |
updateImpl(House b)
Этот метод каждый реализует сам со своей логикой.
|
protected House getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS
in class ru.bitel.common.dao.AbstractDao<House>
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
protected void updateImpl(House b) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
ru.bitel.common.dao.AbstractDao
updateImpl
in class ru.bitel.common.dao.AbstractDao<House>
b
- экземпляр моделиru.bitel.bgbilling.common.BGException
- ошибкиjava.sql.SQLException
- ошибкиpublic House get(int id) throws ru.bitel.bgbilling.common.BGException
ru.bitel.common.dao.AbstractIdDao
get
in class ru.bitel.common.dao.AbstractIdDao<House>
ru.bitel.bgbilling.common.BGException