
rapture.kernel.script.ScriptStructured Maven / Gradle / Ivy
/**
* The MIT License (MIT)
*
* Copyright (C) 2011-2016 Incapture Technologies LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**
* This is an autogenerated file. You should not edit this file as any changes
* will be overwritten.
*/
package rapture.kernel.script;
import java.util.List;
import java.util.Map;
import rapture.common.api.StructuredApi;
import rapture.common.api.ScriptStructuredApi;
import org.apache.log4j.Logger;
import rapture.common.exception.RaptureException;
import rapture.common.StoredProcedureParams;
import rapture.common.StoredProcedureResponse;
import rapture.common.TableIndex;
import rapture.common.StructuredRepoConfig;
import rapture.common.ForeignKey;
@SuppressWarnings("all")
public class ScriptStructured extends KernelScriptImplBase implements ScriptStructuredApi {
private StructuredApi api;
private static final Logger log = Logger.getLogger(ScriptStructured.class);
public ScriptStructured(StructuredApi api) {
this.api = api;
}
@Override
public void createStructuredRepo(String uri,String config) {
api.createStructuredRepo(callingCtx, uri, config); }
@Override
public void deleteStructuredRepo(String uri) {
api.deleteStructuredRepo(callingCtx, uri); }
@Override
public Boolean structuredRepoExists(String uri) {
Boolean ret = api.structuredRepoExists(callingCtx, uri);
return ret; }
@Override
public StructuredRepoConfig getStructuredRepoConfig(String uri) {
StructuredRepoConfig ret = api.getStructuredRepoConfig(callingCtx, uri);
return ret; }
@Override
public List getStructuredRepoConfigs() {
List ret = api.getStructuredRepoConfigs(callingCtx);
return ret; }
@Override
public void createTableUsingSql(String schema,String rawSql) {
api.createTableUsingSql(callingCtx, schema, rawSql); }
@Override
public void createTable(String tableUri,Map columns) {
api.createTable(callingCtx, tableUri, columns); }
@Override
public void dropTable(String tableUri) {
api.dropTable(callingCtx, tableUri); }
@Override
public Boolean tableExists(String tableUri) {
Boolean ret = api.tableExists(callingCtx, tableUri);
return ret; }
@Override
public List getSchemas() {
List ret = api.getSchemas(callingCtx);
return ret; }
@Override
public List getTables(String repoUri) {
List ret = api.getTables(callingCtx, repoUri);
return ret; }
@Override
public Map describeTable(String tableUri) {
Map ret = api.describeTable(callingCtx, tableUri);
return ret; }
@Override
public void addTableColumns(String tableUri,Map columns) {
api.addTableColumns(callingCtx, tableUri, columns); }
@Override
public void deleteTableColumns(String tableUri,List columnNames) {
api.deleteTableColumns(callingCtx, tableUri, columnNames); }
@Override
public void updateTableColumns(String tableUri,Map columns) {
api.updateTableColumns(callingCtx, tableUri, columns); }
@Override
public void renameTableColumns(String tableUri,Map columnNames) {
api.renameTableColumns(callingCtx, tableUri, columnNames); }
@Override
public void createIndex(String tableUri,String indexName,List columnNames) {
api.createIndex(callingCtx, tableUri, indexName, columnNames); }
@Override
public void dropIndex(String tableUri,String indexName) {
api.dropIndex(callingCtx, tableUri, indexName); }
@Override
public List getIndexes(String tableUri) {
List ret = api.getIndexes(callingCtx, tableUri);
return ret; }
@Override
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy