- java.lang.Object
-
- net.sf.jsqlparser.util.validation.feature.FeaturesAllowed
-
- All Implemented Interfaces:
FeatureSet,ModifyableFeatureSet,FeatureSetValidation,ValidationCapability
public class FeaturesAllowed extends Object implements FeatureSetValidation, ModifyableFeatureSet
Privileges/Features allowed- Author:
- gitmotte
-
-
Field Summary
Fields Modifier and Type Field Description static FeaturesAllowedALTERall "ALTER"Feature'sstatic FeaturesAllowedCREATEall "CREATE"Feature'sstatic FeaturesAllowedDDLall DDLFeature'sstatic FeaturesAllowedDELETEstatic FeaturesAllowedDMLall DMLFeature'sstatic FeaturesAllowedDROPall "DROP"Feature'sstatic FeaturesAllowedEXECUTEstatic FeaturesAllowedEXPRESSIONSstatic FeaturesAllowedINSERTstatic FeaturesAllowedJDBCstatic FeaturesAllowedMERGEallFeature' for SQL MERGE other similar commandsstatic FeaturesAllowedSELECTallFeature' within SQL SELECT without modification features likeFeature.selectInto, but jdbc-features likeFeature.jdbcParameterandFeature.jdbcNamedParameterstatic FeaturesAllowedUPDATE-
Fields inherited from interface net.sf.jsqlparser.util.validation.feature.FeatureSetValidation
DEFAULT_NAME
-
-
Constructor Summary
Constructors Constructor Description FeaturesAllowed(String name, Feature... features)FeaturesAllowed(Feature... features)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeaturesAllowedadd(Collection<Feature> features)FeaturesAllowedadd(Feature... features)FeaturesAllowedadd(FeatureSet... featureSets)FeaturesAllowedcopy()Set<Feature>getFeatures()ValidationExceptiongetMessage(Feature feature)StringgetName()FeaturesAllowedremove(Collection<Feature> features)FeaturesAllowedremove(Feature... features)FeaturesAllowedremove(FeatureSet... featureSets)FeaturesAllowedunmodifyable()makes the innerFeature-set unmodifiable-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jsqlparser.parser.feature.FeatureSet
contains, getFeaturesClone, getNotContained, retainAll
-
Methods inherited from interface net.sf.jsqlparser.util.validation.feature.FeatureSetValidation
validate
-
Methods inherited from interface net.sf.jsqlparser.util.validation.ValidationCapability
toError, toError
-
-
-
-
Field Detail
-
JDBC
public static final FeaturesAllowed JDBC
-
EXPRESSIONS
public static final FeaturesAllowed EXPRESSIONS
-
SELECT
public static final FeaturesAllowed SELECT
allFeature' within SQL SELECT without modification features likeFeature.selectInto, but jdbc-features likeFeature.jdbcParameterandFeature.jdbcNamedParameter
-
MERGE
public static final FeaturesAllowed MERGE
allFeature' for SQL MERGE other similar commands
-
EXECUTE
public static final FeaturesAllowed EXECUTE
-
CREATE
public static final FeaturesAllowed CREATE
all "CREATE"Feature's
-
ALTER
public static final FeaturesAllowed ALTER
all "ALTER"Feature's
-
DROP
public static final FeaturesAllowed DROP
all "DROP"Feature's
-
INSERT
public static final FeaturesAllowed INSERT
-
UPDATE
public static final FeaturesAllowed UPDATE
-
DELETE
public static final FeaturesAllowed DELETE
-
DML
public static final FeaturesAllowed DML
all DMLFeature's
-
DDL
public static final FeaturesAllowed DDL
all DDLFeature's
-
-
Method Detail
-
add
public FeaturesAllowed add(FeatureSet... featureSets)
- Specified by:
addin interfaceModifyableFeatureSet- Parameters:
featureSets-- Returns:
this
-
add
public FeaturesAllowed add(Feature... features)
- Specified by:
addin interfaceModifyableFeatureSet- Parameters:
features-- Returns:
this
-
add
public FeaturesAllowed add(Collection<Feature> features)
- Specified by:
addin interfaceModifyableFeatureSet- Parameters:
features-- Returns:
this
-
remove
public FeaturesAllowed remove(FeatureSet... featureSets)
- Specified by:
removein interfaceModifyableFeatureSet- Parameters:
featureSets-- Returns:
this
-
remove
public FeaturesAllowed remove(Feature... features)
- Specified by:
removein interfaceModifyableFeatureSet- Parameters:
features-- Returns:
this
-
remove
public FeaturesAllowed remove(Collection<Feature> features)
- Specified by:
removein interfaceModifyableFeatureSet- Parameters:
features-- Returns:
this
-
copy
public FeaturesAllowed copy()
- Specified by:
copyin interfaceFeatureSet- Returns:
- returns a modifiable copy of this
FeaturesAllowedobject - See Also:
unmodifyable()
-
unmodifyable
public FeaturesAllowed unmodifyable()
makes the innerFeature-set unmodifiable- Specified by:
unmodifyablein interfaceModifyableFeatureSet- Returns:
this- See Also:
copy()
-
getMessage
public ValidationException getMessage(Feature feature)
- Specified by:
getMessagein interfaceFeatureSetValidation- Returns:
featureName + " not allowed."
-
getName
public String getName()
- Specified by:
getNamein interfaceFeatureSetValidation- Specified by:
getNamein interfaceValidationCapability- Returns:
- a name of this
ValidationCapability
-
getFeatures
public Set<Feature> getFeatures()
- Specified by:
getFeaturesin interfaceFeatureSet- Specified by:
getFeaturesin interfaceFeatureSetValidation- Returns:
- all supported
Feature's
-
-