Package com.javaeye.jert.domain

Examples of com.javaeye.jert.domain.Database


        service.deleteReportDefinition(stored);
        assertNull(service.getReportDefinition(rd.getId()));
    }

    public void testDefaultParameterDefinition() {
        Database db = new Database();
        ((DatabaseService) context.getBean("databaseService")).createDatabase(db);

        ReportDefinition rd = new ReportDefinition();
        rd.setDatabase(db);
        rd.setName("test report one");
View Full Code Here


        assertEquals(1, rd.getParameterDefinitions().size());
    }

    public void testAllExportImport() {
        ExportImportService service = getService();
        Database db = new Database();
        db.addReportDefinition(getReportDefintion());
        db.addReportDefinition(getReportDefintion());
       
        String xml = service.exportAllToXml(db);
        ReportDefinition[] rds = service.importFromXml(xml);
        assertEquals(2, rds.length);
        assertReportDefinition(rds[0]);
View Full Code Here

        rd.setupDefaultParameterDefinition();
        update(rd);
    }

    public void deleteReportDefinition(ReportDefinition rd) {
        Database db = rd.getDatabase();
        db.removeReportDefinition(rd);
        //TODO How to Automatically Update the PersistenceCollection from the Second Cache?
        for(Iterator it=rd.getAssociatedDrillDownColumns().iterator();it.hasNext();){
            DrillDownColumn drillDownColumn=(DrillDownColumn)it.next();
            drillDownColumn.getReportDefinition().removeDrillDownColumn(drillDownColumn);
        }
View Full Code Here

*/
public class DatabaseServiceDefaultImpl extends AbstractService implements DatabaseService {
    private ConnectionManager connectionManager;

    public Database getDatabase(Long id) {
        Database db = (Database) loadById(Database.class, id);
        //TODO: how to fix these code?       
        if(db == null) return null;
        db.setConnectionManager(connectionManager);
        return db;
    }
View Full Code Here

TOP

Related Classes of com.javaeye.jert.domain.Database

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.