Examples of DataSourceInfo


Examples of org.ofbiz.entity.config.DatasourceInfo

        }
        return pathBuffer.toString();
    }

    public static List<URL> getUrlList(String helperName) {
        DatasourceInfo datasourceInfo = EntityConfigUtil.getDatasourceInfo(helperName);
        return getUrlList(helperName, null, datasourceInfo.readDatas);
    }
View Full Code Here

Examples of org.ofbiz.entity.config.DatasourceInfo

        DatasourceInfo datasourceInfo = EntityConfigUtil.getDatasourceInfo(helperName);
        return getUrlList(helperName, null, datasourceInfo.readDatas);
    }

    public static List<URL> getUrlList(String helperName, String componentName) {
        DatasourceInfo datasourceInfo = EntityConfigUtil.getDatasourceInfo(helperName);
        return getUrlList(helperName, componentName, datasourceInfo.readDatas);
    }
View Full Code Here

Examples of org.ofbiz.entity.config.DatasourceInfo

            synchronized (GenericHelperFactory.class) {
                // must check if null again as one of the blocked threads can still enter
                helper = helperCache.get(helperName);
                if (helper == null) {
                    try {
                        DatasourceInfo datasourceInfo = EntityConfigUtil.getDatasourceInfo(helperName);

                        if (datasourceInfo == null) {
                            throw new IllegalStateException("Could not find datasource definition with name " + helperName);
                        }
                        String helperClassName = datasourceInfo.helperClass;
View Full Code Here

Examples of org.ofbiz.entity.config.DatasourceInfo

     */
    public void setValue(Blob field) throws SQLException {
        if (field != null) {
            _ps.setBlob(_ind, field);
        } else {
            DatasourceInfo datasourceInfo = EntityConfigUtil.getDatasourceInfo(this.helperName);
            if (datasourceInfo.useBinaryTypeForBlob) {
                _ps.setNull(_ind, Types.BINARY);
            } else {
                _ps.setNull(_ind, Types.BLOB);
            }
View Full Code Here

Examples of org.ofbiz.entity.config.DatasourceInfo

                is.close();
            } catch (IOException ex) {
                throw new SQLException(ex.getMessage());
            }
        } else {
            DatasourceInfo datasourceInfo = EntityConfigUtil.getDatasourceInfo(this.helperName);
            if (datasourceInfo.useBinaryTypeForBlob) {
                _ps.setNull(_ind, Types.BINARY);
            } else {
                _ps.setNull(_ind, Types.BLOB);
            }
View Full Code Here

Examples of org.ofbiz.entity.config.DatasourceInfo

     */
    public void setBytes(byte[] bytes) throws SQLException {
        if (bytes != null) {
            _ps.setBytes(_ind, bytes);
        } else {
            DatasourceInfo datasourceInfo = EntityConfigUtil.getDatasourceInfo(this.helperName);
            if (datasourceInfo.useBinaryTypeForBlob) {
                _ps.setNull(_ind, Types.BINARY);
            } else {
                _ps.setNull(_ind, Types.BLOB);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.