All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.splout.db.common.ISQLiteManager Maven / Gradle / Ivy

Go to download

Splout is a read only, horizontally scalable SQL database that plays well with Hadoop.

There is a newer version: 0.3.0
Show newest version
package com.splout.db.common;

/*
 * #%L
 * Splout SQL commons
 * %%
 * Copyright (C) 2012 Datasalt Systems S.L.
 * %%
 * 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.
 * #L%
 */

import java.sql.Connection;
import java.sql.SQLException;

import com.splout.db.common.JSONSerDe.JSONSerDeException;

/**
 * Contract for implementing several SQL interfaces. We have implemented two for SQLite and we finally use only one in production.
 * This interface may be removed in the future.
 */
public interface ISQLiteManager {

	public String exec(String query) throws SQLException, JSONSerDeException;
	public String query(String query, int maxResults) throws SQLException, JSONSerDeException;
	public void close();
	public Connection getConnectionFromPool() throws SQLException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy