Search in sources :

Example 1 with JDBCRequest

use of org.opennms.netmgt.provision.detector.jdbc.request.JDBCRequest in project opennms by OpenNMS.

the class JdbcQueryDetector method sqlQuery.

private static RequestBuilder<JDBCRequest> sqlQuery(final String sqlQuery) {
    return new RequestBuilder<JDBCRequest>() {

        @Override
        public JDBCRequest getRequest() {
            JDBCRequest request = new JDBCRequest();
            request.setSqyQuery(sqlQuery);
            return request;
        }
    };
}
Also used : RequestBuilder(org.opennms.netmgt.provision.support.RequestBuilder) JDBCRequest(org.opennms.netmgt.provision.detector.jdbc.request.JDBCRequest)

Example 2 with JDBCRequest

use of org.opennms.netmgt.provision.detector.jdbc.request.JDBCRequest in project opennms by OpenNMS.

the class JdbcStoredProcedureDetector method storedProcedure.

private static RequestBuilder<JDBCRequest> storedProcedure(final String storedProcedure) {
    return new RequestBuilder<JDBCRequest>() {

        @Override
        public JDBCRequest getRequest() {
            JDBCRequest request = new JDBCRequest();
            request.setStoredProcedure(storedProcedure);
            return request;
        }
    };
}
Also used : RequestBuilder(org.opennms.netmgt.provision.support.RequestBuilder) JDBCRequest(org.opennms.netmgt.provision.detector.jdbc.request.JDBCRequest)

Aggregations

JDBCRequest (org.opennms.netmgt.provision.detector.jdbc.request.JDBCRequest)2 RequestBuilder (org.opennms.netmgt.provision.support.RequestBuilder)2