I would like to propose another round of storage deprecations, the goal of these is to remove and decrease visibility of code in order to simplify storage and move as much as possible over from API to implementation details. I am proposing deprecation of each of the following, after 2 releases this may be revisited and they may be removed or altered. The following are changes I have made locally and found xwiki-core does compile and test with those changes. For now I propose adding deprecation comments and annotations to each class or method.
WDYT? Caleb XWikiAttachmentStoreInterface.java saveAttachmentContent(XWikiAttachment attachment, XWikiContext context, boolean bTransaction) remove cleanUp(XWikiContext context) remove XWikiBatcher.java remove entirely XWikiBatcherFactory.java remove entirely XWikiBatcherStats.java remove entirely XWikiDefaultStore.java remove entirely XWikiHibernateBaseStore.java getDatabaseProductName(XWikiContext context) public --> protected shutdownHibernate(XWikiContext context) remove updateSchema(XWikiContext context) public --> private getSchemaFromWikiName(String wikiName, DatabaseProduct databaseProduct, XWikiContext context) protected --> private getSchemaFromWikiName(XWikiContext context) protected --> private getSchemaUpdateScript(Configuration config, XWikiContext context) public --> private updateSchema(String[] createSQL, XWikiContext context) public --> private updateSchema(BaseClass bclass, XWikiContext context) remove isVirtual(XWikiContext context) public --> protected beginTransaction(SessionFactory sfactory, XWikiContext context) public --> protected beginTransaction(SessionFactory sfactory, boolean withTransaction, XWikiContext context) public --> protected endTransaction(XWikiContext context, boolean commit, boolean withTransaction) public --> protected execute(XWikiContext context, boolean bTransaction, boolean doCommit, HibernateCallback<T> cb) public --> private XWikiHibernateStore.java getContent(XWikiDocument doc, StringBuffer buf) remove public List search(Query query, int nb, int start, XWikiContext context) remove injectCustomMappingsInSessionFactory(BaseClass bclass, XWikiContext context) public --> private injectCustomMappingsInSessionFactory(XWikiContext context) public --> private XWikiHibernateVersioningStore.java loadAllRCSNodeInfo(XWikiContext context, final long id, boolean bTransaction) protected --> private _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

