public class ScriptLibraryManager extends ru.bitel.common.dao.AbstractIdDao<ScriptLibrary>
Constructor and Description |
---|
ScriptLibraryManager(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
void |
backup(int scriptId,
java.lang.String comment)
Сохраняем резервную копию библиотеки.
|
void |
deleteFull(int scriptId)
Удаляет скрипт и все его бэкапы.
|
ScriptLibrary |
getByName(java.lang.String name) |
protected ScriptLibrary |
getFromRS(java.sql.ResultSet rs) |
protected ScriptLibrary |
getPureFromRS(java.sql.ResultSet rs) |
Revision |
getRevisionProperties(int id)
Возвращает параметры ревизии библиотеки.
|
java.util.List<ScriptLibrary> |
list() |
java.util.List<ScriptLibrary> |
pureList()
Возвращает лист скриптов без текста (для экономии).
|
protected void |
updateImpl(ScriptLibrary lib) |
delete, get, getAndDelete, getAndUpdate
close, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, processException, recycle, setStatementParam, update
protected void updateImpl(ScriptLibrary lib) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<ScriptLibrary>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
public ScriptLibrary getByName(java.lang.String name) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<ScriptLibrary> list() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<ScriptLibrary> pureList() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected ScriptLibrary getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException
getFromRS
in class ru.bitel.common.dao.AbstractDao<ScriptLibrary>
java.sql.SQLException
protected ScriptLibrary getPureFromRS(java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLException
public Revision getRevisionProperties(int id) throws ru.bitel.bgbilling.common.BGException
id
- код библиотекиru.bitel.bgbilling.common.BGException
public void backup(int scriptId, java.lang.String comment) throws ru.bitel.bgbilling.common.BGException
scriptId
- код библиотеки.ru.bitel.bgbilling.common.BGException
public void deleteFull(int scriptId) throws ru.bitel.bgbilling.common.BGException
scriptId
- код скрипта.ru.bitel.bgbilling.common.BGException