Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright (c) 1998-2015 Caucho Technology -- all rights reserved
*
* This file is part of Resin(R)
*
* Each copy or derived work must preserve the copyright notice and this
* notice unmodified.
*
* Resin Open Source is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Resin Open Source is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
* of NON-INFRINGEMENT. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License
* along with Resin Open Source; if not, write to the
*
* Free Software Foundation, Inc.
* 59 Temple Place, Suite 330
* Boston, MA 02111-1307 USA
*
* @author Scott Ferguson
*/
package com.caucho.v5.ramp.db;
import io.baratine.db.Cursor;
import io.baratine.db.CursorPrepareSync;
import io.baratine.db.DatabaseService;
import io.baratine.db.DatabaseWatch;
import io.baratine.service.Cancel;
import io.baratine.service.MethodRef;
import io.baratine.service.Result;
import io.baratine.service.Service;
import io.baratine.stream.ResultStream;
import io.baratine.stream.ResultStreamBuilder;
import java.util.Arrays;
import com.caucho.v5.kraken.KrakenSystem;
import com.caucho.v5.kraken.table.TableManagerKraken;
/*
* Entry to the store.
*/
public class DatabaseServiceRamp implements DatabaseService
{
private TableManagerKraken _tableManager;
public DatabaseServiceRamp()
{
KrakenSystem krakenSystem = KrakenSystem.current();
TableManagerKraken kraken = krakenSystem.getTableManager();
_tableManager = kraken;
}
public DatabaseServiceRamp(String name, String hostName)
{
this();
}
/**
* Executes a command against the database.
*
* @param sql the query to be executed
* @param result the result of the command
* @param args parameters for the query
*/
@Override
public void exec(String sql, Result