Package ru.bitel.bgbilling.server.util
Class XMLDatabaseSerializer
java.lang.Object
ru.bitel.bgbilling.server.util.XMLDatabaseSerializer
- Direct Known Subclasses:
XMLDatabaseElementSerializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItemsFromRS(Connection con, String table, String keyColumn, String keyValue, String retColumn, boolean dateFilter, String date1, String date2, String joins) static intinsertElementToBase(Element el, Connection con) protected voidstartElement(String table) protected voidprotected voidwriteAtrtibute(String name, String val)
-
Field Details
-
BINARY_PREFIX
- See Also:
-
-
Constructor Details
-
XMLDatabaseSerializer
protected XMLDatabaseSerializer() -
XMLDatabaseSerializer
-
-
Method Details
-
addItemsFromRS
public List<String> addItemsFromRS(Connection con, String table, String keyColumn, String keyValue, String retColumn, boolean dateFilter, String date1, String date2, String joins) throws SQLException, XMLStreamException - Throws:
SQLExceptionXMLStreamException
-
addItemsFromRS
public void addItemsFromRS(String table, String retColumn, List<String> result, ResultSet rs) throws SQLException, XMLStreamException - Throws:
SQLExceptionXMLStreamException
-
writeAtrtibute
- Throws:
XMLStreamException
-
stopElement
- Throws:
XMLStreamException
-
startElement
- Throws:
XMLStreamException
-
insertElementToBase
- Throws:
SQLException
-