Class UserCardCopyManager
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.common.dao.AbstarctDaoConstant
ru.bitel.bgbilling.common.dao.AbstractDao<UserCardCopy>
ru.bitel.bgbilling.common.dao.AbstractIdDao<UserCardCopy>
ru.bitel.common.model.LoggingAbstractManager<UserCardCopy>
ru.bitel.bgbilling.modules.cerbercrypt.server.bean.UserCardCopyManager
Класс менеджер для работы с копиями пользовательских карт.
-
Field Summary
Fields inherited from class ru.bitel.common.model.LoggingAbstractManager
userIdFields inherited from class ru.bitel.bgbilling.common.dao.AbstractDao
orderByPatternFields inherited from class ru.bitel.bgbilling.common.dao.AbstarctDaoConstant
con, ERROR, fields, moduleId, SQL_ALL, SQL_AND, SQL_CALC_FOUND_ROWS, SQL_DELETE, SQL_DISTINCT, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_JOIN, SQL_LEFT_JOIN, SQL_LIMIT, SQL_NOT_IN, SQL_ON, SQL_ON_DUPLICATE_KEY_UPDATE, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_VALUES, SQL_WHERE, tableName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteCardCopies(int uid) Удаляет все копии основной карты.intgetCopyCount(int uid, Date date) Возвращает количество копий пользовательской карты, активных на указанную дату.protected UserCardCopygetList(int uid) Возвращает список копий по основной карте.getListByDate(int uid, LocalDate date) Возвращает список копий по основной карте активных на указанную дату.protected booleanУстанавливает ссылку на основную карту.protected voidMethods inherited from class ru.bitel.common.model.LoggingAbstractManager
delete, logListByCid, logListByOid, updateMethods inherited from class ru.bitel.bgbilling.common.dao.AbstractIdDao
executeUpdate, get, getAndDelete, getAndUpdate, opt, prepareStatement, sqlCommand, sqlCommandAndTable, sqlQuery, sqlWhereIdMethods inherited from class ru.bitel.bgbilling.common.dao.AbstractDao
delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getQueryById, getSQLOrder, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, psSetPeriod, queryPeriod, setStatementParamMethods inherited from class ru.bitel.bgbilling.common.dao.AbstarctDaoConstant
getSQLOrder, getTableName, sqlLimitMethods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
error, error, error, getLogger, logError, logError, warn
-
Constructor Details
-
UserCardCopyManager
-
-
Method Details
-
getList
Возвращает список копий по основной карте. Сортировка по дате начала действия.- Parameters:
uid- код основной карты (или -1 если игнорировать)- Returns:
- список копий
- Throws:
ru.bitel.bgbilling.common.BGException- ошибкиSQLException
-
getListByDate
Возвращает список копий по основной карте активных на указанную дату.- Parameters:
uid- код основной карты (или -1 если игнорировать)date- указанная дата- Returns:
- список копий
- Throws:
ru.bitel.bgbilling.common.BGException- ошибкиSQLException
-
updateImpl
- Specified by:
updateImplin classru.bitel.bgbilling.common.dao.AbstractDao<UserCardCopy>- Throws:
SQLException
-
deleteCardCopies
Удаляет все копии основной карты.- Parameters:
uid- основная карта- Throws:
ru.bitel.bgbilling.common.BGException- ошибкиSQLException
-
getCopyCount
Возвращает количество копий пользовательской карты, активных на указанную дату.- Parameters:
uid- основная картаdate- указанная дата- Returns:
- количество копий
- Throws:
ru.bitel.bgbilling.common.BGException- ошибки
-
getFromRS
- Specified by:
getFromRSin classru.bitel.bgbilling.common.dao.AbstractDao<UserCardCopy>- Throws:
SQLException
-
setParentCard
Устанавливает ссылку на основную карту.- Parameters:
b- копия- Returns:
- результат создания ссылки
-