com.alachisoft.ncache.client.QueryCommand Maven / Gradle / Ivy
package com.alachisoft.ncache.client;
// Copyright (c) 2020 Alachisoft
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License
/**
* Class to hold query text and values.
*/
public class QueryCommand {
/**
* Get query text.
*/
private String _query;
/**
* Query values.
*/
private java.util.HashMap _parameters;
/**
* Initialized new instance of QueryCommand.
*
* @param query SQL-like query text.
*/
public QueryCommand(String query) {
_query = query;
setParameters(new java.util.HashMap());
}
public final String getQuery() {
return _query;
}
public final java.util.HashMap getParameters() {
return _parameters;
}
private void setParameters(java.util.HashMap value) {
_parameters = value;
}
}