// _bout.close();
// _list = null;
// _bout = null;
/* users_roles */
DotConnect dc = new DotConnect();
// dc.setSQL("select * from users_roles");
// _list = dc.getResults();
// _xstream = new XStream(new DomDriver());
// _writing = new File(backupTempFilePath + "/Users_Roles.xml");
// _bout = new BufferedOutputStream(new FileOutputStream(_writing));
// _xstream.toXML(_list, _bout);
// _bout.close();
// _list = null;
// _bout = null;
//
// /* users_groups */
// dc.setSQL("select * from users_groups");
// _list = dc.getResults();
// _xstream = new XStream(new DomDriver());
// _writing = new File(backupTempFilePath + "/Users_Groups.xml");
// _bout = new BufferedOutputStream(new FileOutputStream(_writing));
// _xstream.toXML(_list, _bout);
// _bout.close();
// _list = null;
// _bout = null;
//
// /* users_groups */
// dc.setSQL("select * from groups_roles");
// _list = dc.getResults();
// _xstream = new XStream(new DomDriver());
// _writing = new File(backupTempFilePath + "/Groups_Roles.xml");
// _bout = new BufferedOutputStream(new FileOutputStream(_writing));
// _xstream.toXML(_list, _bout);
// _bout.close();
// _list = null;
// _bout = null;
/* counter */
dc.setSQL("select * from counter");
_list = dc.getResults();
_xstream = new XStream(new DomDriver());
_writing = new File(backupTempFilePath + "/Counter.xml");
_bout = new BufferedOutputStream(new FileOutputStream(_writing));
_xstream.toXML(_list, _bout);
_bout.close();
_list = null;
_bout = null;
/* counter */
dc.setSQL("select * from address");
_list = dc.getResults();
_xstream = new XStream(new DomDriver());
_writing = new File(backupTempFilePath + "/Address.xml");
_bout = new BufferedOutputStream(new FileOutputStream(_writing));
_xstream.toXML(_list, _bout);
_bout.close();
_list = null;
_bout = null;
/* pollschoice */
dc.setSQL("select * from pollschoice");
_list = dc.getResults();
_xstream = new XStream(new DomDriver());
_writing = new File(backupTempFilePath + "/Pollschoice.xml");
_bout = new BufferedOutputStream(new FileOutputStream(_writing));
_xstream.toXML(_list, _bout);
_bout.close();
_list = null;
_bout = null;
/* pollsdisplay */
dc.setSQL("select * from pollsdisplay");
_list = dc.getResults();
_xstream = new XStream(new DomDriver());
_writing = new File(backupTempFilePath + "/Pollsdisplay.xml");
_bout = new BufferedOutputStream(new FileOutputStream(_writing));
_xstream.toXML(_list, _bout);
_bout.close();
_list = null;
_bout = null;
/* pollsquestion */
dc.setSQL("select * from pollsquestion");
_list = dc.getResults();
_xstream = new XStream(new DomDriver());
_writing = new File(backupTempFilePath + "/Pollsquestion.xml");
_bout = new BufferedOutputStream(new FileOutputStream(_writing));
_xstream.toXML(_list, _bout);
_bout.close();
_list = null;
_bout = null;
/* pollsvote */
dc.setSQL("select * from pollsvote");
_list = dc.getResults();
_xstream = new XStream(new DomDriver());
_writing = new File(backupTempFilePath + "/Pollsvote.xml");
_bout = new BufferedOutputStream(new FileOutputStream(_writing));
_xstream.toXML(_list, _bout);
_bout.close();
_list = null;
_bout = null;
/* image */
_list = ImageLocalManagerUtil.getImages();
/*
* The changes in this part were made for Oracle databases. Oracle has problems when
* getString() method is called on a LONG field on an Oracle database. Because of this,
* the object is loaded from liferay and DotConnect is not used
* http://jira.dotmarketing.net/browse/DOTCMS-1911
*/
_xstream = new XStream(new DomDriver());
_writing = new File(backupTempFilePath + "/Image.xml");
_bout = new BufferedOutputStream(new FileOutputStream(_writing));
_xstream.toXML(_list, _bout);
_bout.close();
_list = null;
_bout = null;
/* portlet */
/*
* The changes in this part were made for Oracle databases. Oracle has problems when
* getString() method is called on a LONG field on an Oracle database. Because of this,
* the object is loaded from liferay and DotConnect is not used
* http://jira.dotmarketing.net/browse/DOTCMS-1911
*/
dc.setSQL("select * from portlet");
_list = dc.getResults();
_xstream = new XStream(new DomDriver());
_writing = new File(backupTempFilePath + "/Portlet.xml");
_bout = new BufferedOutputStream(new FileOutputStream(_writing));
_xstream.toXML(_list, _bout);
_bout.close();