Class FeaturesAllowed
- java.lang.Object
-
- net.sf.jsqlparser.util.validation.feature.FeaturesAllowed
-
- All Implemented Interfaces:
FeatureSet
,ModifyableFeatureSet
,FeatureSetValidation
,ValidationCapability
public class FeaturesAllowed extends java.lang.Object implements FeatureSetValidation, ModifyableFeatureSet
Privileges/Features allowed
-
-
Field Summary
Fields Modifier and Type Field Description static FeaturesAllowed
ALTER
all "ALTER"Feature
'sstatic FeaturesAllowed
CREATE
all "CREATE"Feature
'sstatic FeaturesAllowed
DDL
all DDLFeature
'sstatic FeaturesAllowed
DELETE
static FeaturesAllowed
DML
all DMLFeature
'sstatic FeaturesAllowed
DROP
all "DROP"Feature
'sstatic FeaturesAllowed
EXECUTE
static FeaturesAllowed
EXPRESSIONS
private java.util.Set<Feature>
features
static FeaturesAllowed
INSERT
static FeaturesAllowed
JDBC
static FeaturesAllowed
MERGE
allFeature
' for SQL MERGE other similar commandsprivate java.util.Set<java.lang.String>
names
static FeaturesAllowed
SELECT
allFeature
' within SQL SELECT without modification features likeFeature.selectInto
, but jdbc-features likeFeature.jdbcParameter
andFeature.jdbcNamedParameter
private static java.lang.String
SEPERATOR
private static java.lang.String
SEPERATOR_REGEX
static FeaturesAllowed
UPDATE
-
Fields inherited from interface net.sf.jsqlparser.util.validation.feature.FeatureSetValidation
DEFAULT_NAME
-
-
Constructor Summary
Constructors Constructor Description FeaturesAllowed(java.lang.String name, Feature... features)
FeaturesAllowed(Feature... features)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeaturesAllowed
add(java.util.Collection<Feature> features)
FeaturesAllowed
add(Feature... features)
FeaturesAllowed
add(FeatureSet... featureSets)
private java.util.List<java.lang.String>
collectNames(FeatureSetValidation fs)
FeaturesAllowed
copy()
java.util.Set<Feature>
getFeatures()
ValidationException
getMessage(Feature feature)
java.lang.String
getName()
FeaturesAllowed
remove(java.util.Collection<Feature> features)
FeaturesAllowed
remove(Feature... features)
FeaturesAllowed
remove(FeatureSet... featureSets)
FeaturesAllowed
unmodifyable()
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
-
SEPERATOR_REGEX
private static final java.lang.String SEPERATOR_REGEX
- See Also:
- Constant Field Values
-
SEPERATOR
private static final java.lang.String SEPERATOR
- See Also:
- Constant Field Values
-
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.jdbcParameter
andFeature.jdbcNamedParameter
-
INSERT
public static final FeaturesAllowed INSERT
-
UPDATE
public static final FeaturesAllowed UPDATE
-
DELETE
public static final FeaturesAllowed DELETE
-
MERGE
public static final FeaturesAllowed MERGE
allFeature
' for SQL MERGE other similar commands
-
DML
public static final FeaturesAllowed DML
all DMLFeature
's
-
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
-
DDL
public static final FeaturesAllowed DDL
all DDLFeature
's
-
names
private java.util.Set<java.lang.String> names
-
features
private java.util.Set<Feature> features
-
-
Method Detail
-
add
public FeaturesAllowed add(FeatureSet... featureSets)
- Specified by:
add
in interfaceModifyableFeatureSet
- Parameters:
featureSets
-- Returns:
this
-
add
public FeaturesAllowed add(Feature... features)
- Specified by:
add
in interfaceModifyableFeatureSet
- Parameters:
features
-- Returns:
this
-
add
public FeaturesAllowed add(java.util.Collection<Feature> features)
- Specified by:
add
in interfaceModifyableFeatureSet
- Parameters:
features
-- Returns:
this
-
remove
public FeaturesAllowed remove(FeatureSet... featureSets)
- Specified by:
remove
in interfaceModifyableFeatureSet
- Parameters:
featureSets
-- Returns:
this
-
remove
public FeaturesAllowed remove(Feature... features)
- Specified by:
remove
in interfaceModifyableFeatureSet
- Parameters:
features
-- Returns:
this
-
remove
public FeaturesAllowed remove(java.util.Collection<Feature> features)
- Specified by:
remove
in interfaceModifyableFeatureSet
- Parameters:
features
-- Returns:
this
-
copy
public FeaturesAllowed copy()
- Specified by:
copy
in interfaceFeatureSet
- Returns:
- returns a modifiable copy of this
FeaturesAllowed
object - See Also:
unmodifyable()
-
unmodifyable
public FeaturesAllowed unmodifyable()
makes the innerFeature
-set unmodifiable- Specified by:
unmodifyable
in interfaceModifyableFeatureSet
- Returns:
this
- See Also:
copy()
-
getMessage
public ValidationException getMessage(Feature feature)
- Specified by:
getMessage
in interfaceFeatureSetValidation
- Returns:
featureName + " not allowed."
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceFeatureSetValidation
- Specified by:
getName
in interfaceValidationCapability
- Returns:
- a name of this
ValidationCapability
-
getFeatures
public java.util.Set<Feature> getFeatures()
- Specified by:
getFeatures
in interfaceFeatureSet
- Specified by:
getFeatures
in interfaceFeatureSetValidation
- Returns:
- all supported
Feature
's
-
collectNames
private java.util.List<java.lang.String> collectNames(FeatureSetValidation fs)
-
-