Package com.volantis.synergetics.reporting.config

Examples of com.volantis.synergetics.reporting.config.DatasourceConfiguration


    }   
   
    // javadoc inherited
    public Object unmarshal(Object object, IUnmarshallingContext context)
            throws JiBXException {
        final DatasourceConfiguration datasource;
        final UnmarshallingContext ctx = (UnmarshallingContext) context;       
       
        final DataSourceType type = DataSourceType.literal(ctx.toStart());
       
        if (type == DataSourceType.JDBC_DATASOURCE) {
View Full Code Here


   
    // javadoc inherited
    public void marshal(Object arg0, IMarshallingContext context)
            throws JiBXException {
        MarshallingContext ctx = (MarshallingContext) context;
        DatasourceConfiguration dataSource = (DatasourceConfiguration) arg0;
        DataSourceType type = dataSource.getType();
        if (type == DataSourceType.JDBC_DATASOURCE) {
            JDBCDatasource jdbcDatasource = (JDBCDatasource) dataSource;
            ctx.startTag(index, JDBC_DATASOURCE_TAG_NAME);

            writeTagsTextContent(ctx, DRIVER_CLASS_TAG_NAME,
View Full Code Here

    /**
     * Test unmarshalling of a JDBC datasource
     */
    public void testJDBCUnmarshalling() throws Exception {
       
        DatasourceConfiguration datasource = parseDatasource(
                new ByteArrayInputStream(ANONYMOUS_JDBC_DATASOURCE.getBytes()));

        assertEquals(DataSourceType.JDBC_DATASOURCE, datasource.getType());
       
        JDBCDatasource jdbcDatasource = (JDBCDatasource) datasource;
       
        assertEquals("org.gjt.mm.mysql.Driver", jdbcDatasource.getDriverClass());
        assertEquals("jdbc:mysql://127.0.0.1/logging?user=logger&password=logpass&database=logging",
View Full Code Here

   
    /**
     * Test unmarshalling of a Internal Pool datasource
     */
    public void testInternalPoolDatasourceUnmarshalling() throws Exception {
        DatasourceConfiguration datasource = parseDatasource(
                new ByteArrayInputStream(
                        ANONYMOUS_INTERNAL_POOL_DATASOURCE.getBytes()));

        assertEquals(DataSourceType.INTERNAL_POOL_DATASOURCE,
                datasource.getType());
       
        InternalPoolDatasource internalPoolDatasource =
            (InternalPoolDatasource) datasource;
    
        assertEquals("org.gjt.mm.mysql.Driver",
View Full Code Here

     * Test unmarshalling of a Internal Pool datasource
     */
    public void testInternalPoolDatasourceUnmarshallingWithEmptyPassword()
        throws Exception {
       
        DatasourceConfiguration datasource = parseDatasource(
                new ByteArrayInputStream(
                        ANONYMOUS_INTERNAL_POOL_DATASOURCE_EMPTY_PASSWORD.getBytes()));
       
        InternalPoolDatasource internalPoolDatasource =
            (InternalPoolDatasource) datasource;
View Full Code Here

   
    /**
     * Test unmarshalling of a JNDI datasource
     */
    public void testJNDIDatasourceUnmarshalling() throws Exception {
        DatasourceConfiguration datasource = parseDatasource(
                new ByteArrayInputStream(ANONYMOUS_JNDI_DATASOURCE.getBytes()));

        assertEquals(DataSourceType.JNDI_DATASOURCE, datasource.getType());
       
        JNDIDatasource jndiDatasource =
            (JNDIDatasource) datasource;
    
        assertEquals("jdbc/TestDB", jndiDatasource.getJndiName());
View Full Code Here

TOP

Related Classes of com.volantis.synergetics.reporting.config.DatasourceConfiguration

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.