com.alibaba.fastsql.wall.WallConfigMBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastsql Show documentation
Show all versions of fastsql Show documentation
An JDBC datasource implementation.
/*
* Copyright 1999-2017 Alibaba Group Holding Ltd.
*
* 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.
*/
package com.alibaba.fastsql.wall;
import java.util.Set;
public interface WallConfigMBean {
boolean isInited();
String getDir();
void setDir(String dir);
void init();
void loadConfig(String dir);
boolean isNoneBaseStatementAllow();
void setNoneBaseStatementAllow(boolean noneBaseStatementAllow);
boolean isTruncateAllow();
void setTruncateAllow(boolean truncateAllow);
boolean isSelelctAllow();
void setSelelctAllow(boolean selelctAllow);
boolean isSelectIntoAllow();
void setSelectIntoAllow(boolean selectIntoAllow);
boolean isSelectIntoOutfileAllow();
void setSelectIntoOutfileAllow(boolean selectIntoOutfileAllow);
boolean isSelectUnionCheck();
void setSelectUnionCheck(boolean selectUnionCheck);
boolean isSelectWhereAlwayTrueCheck();
void setSelectWhereAlwayTrueCheck(boolean selectWhereAlwayTrueCheck);
boolean isSelectHavingAlwayTrueCheck();
void setSelectHavingAlwayTrueCheck(boolean selectHavingAlwayTrueCheck);
boolean isDeleteAllow();
void setDeleteAllow(boolean deleteAllow);
boolean isDeleteWhereAlwayTrueCheck();
void setDeleteWhereAlwayTrueCheck(boolean deleteWhereAlwayTrueCheck);
boolean isUpdateAllow();
void setUpdateAllow(boolean updateAllow);
boolean isUpdateWhereAlayTrueCheck();
void setUpdateWhereAlayTrueCheck(boolean updateWhereAlayTrueCheck);
boolean isInsertAllow();
void setInsertAllow(boolean insertAllow);
boolean isMergeAllow();
void setMergeAllow(boolean mergeAllow);
boolean isMultiStatementAllow();
void setMultiStatementAllow(boolean multiStatementAllow);
boolean isSchemaCheck();
void setSchemaCheck(boolean schemaCheck);
boolean isTableCheck();
void setTableCheck(boolean tableCheck);
boolean isFunctionCheck();
void setFunctionCheck(boolean functionCheck);
boolean isVariantCheck();
void setVariantCheck(boolean variantCheck);
boolean isObjectCheck();
void setObjectCheck(boolean objectCheck);
boolean isCommentAllow();
void setCommentAllow(boolean commentAllow);
Set getDenyFunctions();
Set getDenyTables();
Set getDenySchemas();
Set getDenyVariants();
Set getDenyObjects();
Set getReadOnlyTables();
boolean isDenyObjects(String name);
boolean isDenySchema(String name);
boolean isDenyFunction(String name);
}