Package com.volantis.synergetics.reporting.config

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


    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) {
            datasource = unmarshalJDBCDatasource(ctx);
        } else if (type == DataSourceType.INTERNAL_POOL_DATASOURCE) {
            datasource = unmarshalInternalPoolDatasource(ctx);
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

TOP

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

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.