Class ResourceManager<T extends Resource>
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.common.dao.AbstractDaoConstant
bitel.billing.server.admin.resource.bean.ResourceManager<T>
public abstract class ResourceManager<T extends Resource>
extends ru.bitel.bgbilling.common.dao.AbstractDaoConstant
-
Field Summary
FieldsFields inherited from class ru.bitel.bgbilling.common.dao.AbstractDaoConstant
con, ERROR, fields, moduleId, SQL_ALL, SQL_AND, 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeResourceCategory(String ids, int categoryId) voiddeleteResource(String id) intgetResourceCount(int categoryId) protected abstract Tprotected abstract Stringprotected voidloadStandartResourceFromRs(ResultSet rs, Resource res) static ResourceManager<?> newResourceManager(String module, Connection con, int moduleId) voidabstract voidupdateResource(T res) Methods inherited from class ru.bitel.bgbilling.common.dao.AbstractDaoConstant
getPeriod, getPlaceholders, getSQLOrder, getSQLOrderFields, getTableName, psSetDate, psSetDateOrNull, psSetInt, psSetIntOrNull, psSetPeriod, psSetString, psSetStringOrNull, psSetTimestampOrNull, queryAndIn, setStatementParam, sqlDelete, sqlDeleteBatch, sqlInsert, sqlInsertBatch, sqlInsertGetId, sqlInsertOnDuplicateKeyUpdate, sqlInsertUpdateById, sqlUpdate, sqlUpdateBatchMethods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
error, error, error, getLogger, logError, logError, warn
-
Field Details
-
tableName
-
-
Constructor Details
-
ResourceManager
-
-
Method Details
-
changeResourceCategory
- Throws:
SQLException
-
getResourceCount
- Throws:
SQLException
-
deleteResource
- Throws:
SQLException
-
loadStandartResourceFromRs
- Throws:
SQLException
-
updateResource
- Throws:
SQLException
-
getResourceFromRs
- Throws:
SQLException
-
getTableName
-
newResourceManager
public static ResourceManager<?> newResourceManager(String module, Connection con, int moduleId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
syncResourceUse
public void syncResourceUse() throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-