public abstract class AbstractManager
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
static int |
BILL_ALL |
static int |
BILL_NEW |
static int |
BILL_PAYED |
protected java.sql.Connection |
con |
protected ContractManager |
contractManager |
static int |
DT_CREATED |
static int |
DT_PAYED |
protected static org.apache.log4j.Logger |
log |
protected int |
mid
Deprecated.
|
protected int |
moduleId |
protected Preferences |
moduleSetup |
protected Setup |
setup |
protected java.lang.String |
table |
static int |
USER_ADMIN |
static int |
USER_ALL |
static int |
USER_USER |
static int |
UT_ALL |
static int |
UT_NOTUNLOADED |
static int |
UT_UNLOADED |
Constructor and Description |
---|
AbstractManager(java.sql.Connection con,
int moduleId,
java.lang.String tableName) |
Modifier and Type | Method and Description |
---|---|
int |
addBillDoc(int userId,
BillDoc billDoc,
java.util.List<PositionValue> posList,
java.util.List<BillDoc> subList) |
abstract int |
addBillDoc(int userId,
BillDoc billDoc,
java.util.List<PositionValue> posList,
java.util.List<BillDoc> subList,
boolean checkPast) |
protected void |
addBillDocData(java.sql.Connection con,
BillDoc billDoc,
java.util.List<PositionValue> posList,
java.util.List<BillDoc> subList,
javax.xml.stream.XMLStreamWriter doc,
Contract contract) |
void |
addBillDocs(int userId,
java.io.InputStream billsXML,
int yy,
int mm,
java.util.Date date) |
void |
addBillDocs(int userId,
java.io.InputStream billsXML,
int yy,
int mm,
java.util.Date date,
boolean checkPast) |
protected void |
addNameCol(java.lang.String nameSortParam,
int sortMode,
int secSortMode,
java.lang.StringBuffer query) |
protected void |
addNameJoin(java.lang.String nameSortParam,
int sortMode,
int secSortMode,
java.lang.StringBuffer query) |
protected void |
addPackageFilterJoin(int packageParamId,
int packageId,
int sortMode,
java.lang.StringBuffer query) |
protected void |
addSortMode(int addressSortParam,
java.lang.String nameSortParam,
int sortMode,
int secondarySortMode,
java.lang.StringBuffer query) |
protected void |
addStreetCol(int addressSortParam,
int sortMode,
int secSortMode,
java.lang.StringBuffer query,
boolean forRegister) |
protected void |
addStreetJoin(int addressSortParam,
int sortMode,
int secSortMode,
java.lang.StringBuffer query,
boolean forRegister) |
void |
close() |
void |
delete(java.util.Collection<?> ids) |
void |
delete(int id) |
void |
delete(java.lang.String ids)
Deprecated.
use delete(Iterable ids)
|
protected abstract BillDoc |
getBillDoc(org.xml.sax.Attributes attributes) |
protected abstract BillDoc |
getBillDoc(XMLUtils.BGXMLEventReader reader,
javax.xml.stream.events.StartElement element) |
BillDoc |
getBillDocInfo(int id) |
protected int[] |
getNextNumbers(java.sql.Connection con,
int numberPoolId,
int yy,
int mm) |
byte[] |
getXMLData(int id)
Получение данных xml-ки документа по id.
|
byte[] |
getXMLData(int contractId,
int id)
Получение данных xml-ки документа по cid и id.
|
protected abstract void |
publishEvent(int userID,
BillDoc billDoc,
int billId) |
protected void |
setBankAccount(Bill bill,
int bankAccountId) |
protected void |
setOrganization(BillDoc billDoc,
int organizationId) |
java.lang.String |
updateNumber(int id,
int number,
int numberYear,
int numberMonth,
java.util.Calendar date,
int month,
int year) |
void |
updatePositions(int id,
org.w3c.dom.Element positions,
int correction,
java.lang.String payDoc,
java.lang.String payDocDate,
java.lang.String identifierGovermentContract) |
void |
updatePositions(int id,
java.lang.String posList,
int correction,
java.lang.String payDocData,
java.lang.String identifierGovermentContract) |
void |
updatePositions(int id,
java.lang.String posList,
java.lang.String identifierGovermentContract) |
protected static org.apache.log4j.Logger log
public static final int DT_CREATED
public static final int DT_PAYED
public static final int BILL_NEW
public static final int BILL_PAYED
public static final int BILL_ALL
public static final int USER_ALL
public static final int USER_ADMIN
public static final int USER_USER
public static final int UT_NOTUNLOADED
public static final int UT_UNLOADED
public static final int UT_ALL
protected java.sql.Connection con
@Deprecated protected int mid
protected int moduleId
protected Setup setup
protected Preferences moduleSetup
protected java.lang.String table
protected final ContractManager contractManager
public AbstractManager(java.sql.Connection con, int moduleId, java.lang.String tableName)
public final byte[] getXMLData(int contractId, int id)
public final byte[] getXMLData(int id)
public final void delete(int id)
@Deprecated public final void delete(java.lang.String ids)
public final void delete(java.util.Collection<?> ids) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public final void updatePositions(int id, java.lang.String posList, int correction, java.lang.String payDocData, java.lang.String identifierGovermentContract) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public final void updatePositions(int id, java.lang.String posList, java.lang.String identifierGovermentContract) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public final void updatePositions(int id, org.w3c.dom.Element positions, int correction, java.lang.String payDoc, java.lang.String payDocDate, java.lang.String identifierGovermentContract) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.lang.String updateNumber(int id, int number, int numberYear, int numberMonth, java.util.Calendar date, int month, int year) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected void addPackageFilterJoin(int packageParamId, int packageId, int sortMode, java.lang.StringBuffer query)
protected void addSortMode(int addressSortParam, java.lang.String nameSortParam, int sortMode, int secondarySortMode, java.lang.StringBuffer query)
protected void addStreetCol(int addressSortParam, int sortMode, int secSortMode, java.lang.StringBuffer query, boolean forRegister)
protected void addStreetJoin(int addressSortParam, int sortMode, int secSortMode, java.lang.StringBuffer query, boolean forRegister)
protected void addNameCol(java.lang.String nameSortParam, int sortMode, int secSortMode, java.lang.StringBuffer query)
protected void addNameJoin(java.lang.String nameSortParam, int sortMode, int secSortMode, java.lang.StringBuffer query)
protected final int[] getNextNumbers(java.sql.Connection con, int numberPoolId, int yy, int mm)
public void addBillDocs(int userId, java.io.InputStream billsXML, int yy, int mm, java.util.Date date) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
public void addBillDocs(int userId, java.io.InputStream billsXML, int yy, int mm, java.util.Date date, boolean checkPast) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
protected void addBillDocData(java.sql.Connection con, BillDoc billDoc, java.util.List<PositionValue> posList, java.util.List<BillDoc> subList, javax.xml.stream.XMLStreamWriter doc, Contract contract) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public int addBillDoc(int userId, BillDoc billDoc, java.util.List<PositionValue> posList, java.util.List<BillDoc> subList)
public abstract int addBillDoc(int userId, BillDoc billDoc, java.util.List<PositionValue> posList, java.util.List<BillDoc> subList, boolean checkPast)
protected abstract BillDoc getBillDoc(org.xml.sax.Attributes attributes)
protected abstract BillDoc getBillDoc(XMLUtils.BGXMLEventReader reader, javax.xml.stream.events.StartElement element)
protected void setBankAccount(Bill bill, int bankAccountId)
protected void setOrganization(BillDoc billDoc, int organizationId)
public BillDoc getBillDocInfo(int id)
protected abstract void publishEvent(int userID, BillDoc billDoc, int billId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void close()
close
in interface java.lang.AutoCloseable