Class AlterExpression
java.lang.Object
net.sf.jsqlparser.statement.alter.AlterExpression
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
<AlterExpression.ColumnDataType> private List
<AlterExpression.ColumnDropDefault> private List
<AlterExpression.ColumnDropNotNull> private String
private String
private String
private String
private List
<ConstraintState> private String
private String
private boolean
private Index
private String
private Index
private AlterOperation
private String
private Set
<ReferentialAction> private String
private boolean
private String
private boolean
private boolean
private boolean
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addColDataType
(String columnName, ColDataType colDataType) void
addColDataType
(AlterExpression.ColumnDataType columnDataType) void
addColDropDefault
(AlterExpression.ColumnDropDefault columnDropDefault) void
addColDropNotNull
(AlterExpression.ColumnDropNotNull columnDropNotNull) addConstraints
(Collection<? extends ConstraintState> constraints) addConstraints
(ConstraintState... constraints) addFkColumns
(String... fkColumns) addFkColumns
(Collection<String> fkColumns) addFkSourceColumns
(String... fkSourceColumns) addFkSourceColumns
(Collection<String> fkSourceColumns) void
addParameters
(String... params) addPkColumns
(String... pkColumns) addPkColumns
(Collection<String> pkColumns) addUkColumns
(String... ukColumns) addUkColumns
(Collection<String> ukColumns) Deprecated.getIndex()
boolean
getUk()
boolean
boolean
void
hasColumn
(boolean hasColumn) boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
boolean
void
void
setColOldName
(String columnOldName) Deprecated.void
setColumnName
(String columnName) void
setColumnOldName
(String columnOldName) void
setCommentText
(String commentText) void
setConstraintName
(String constraintName) void
setConstraints
(List<ConstraintState> constraints) void
setFkColumns
(List<String> fkColumns) void
setFkSourceColumns
(List<String> fkSourceColumns) void
setFkSourceSchema
(String fkSourceSchema) void
setFkSourceTable
(String fkSourceTable) void
void
setNewTableName
(String newTableName) void
setOldIndex
(Index oldIndex) void
setOnDeleteCascade
(boolean onDeleteCascade) void
setOnDeleteRestrict
(boolean onDeleteRestrict) void
setOnDeleteSetNull
(boolean onDeleteSetNull) void
setOperation
(AlterOperation operation) void
setOptionalSpecifier
(String optionalSpecifier) void
setPkColumns
(List<String> pkColumns) void
private void
setReferentialAction
(ReferentialAction.Type type, ReferentialAction.Action action, boolean set) void
setTruncatePartitionName
(String truncatePartitionName) void
setUk
(boolean uk) void
setUkColumns
(List<String> ukColumns) void
void
setUseEqual
(boolean useEqual) void
setUseIfNotExists
(boolean useIfNotExists) void
setUsingIfExists
(boolean usingIfExists) toString()
boolean
void
useBrackets
(boolean useBrackets) withColumnName
(String columnName) withColumnOldName
(String columnOldName) withCommentText
(String commentText) withConstraintName
(String constraintName) withConstraints
(List<ConstraintState> constraints) withFkColumns
(List<String> fkColumns) withFkSourceColumns
(List<String> fkSourceColumns) withFkSourceSchema
(String fkSourceSchema) withFkSourceTable
(String fkSourceTable) withOnDeleteCascade
(boolean onDeleteCascade) withOnDeleteRestrict
(boolean onDeleteRestrict) withOnDeleteSetNull
(boolean onDeleteSetNull) withOperation
(AlterOperation operation) withOptionalSpecifier
(String optionalSpecifier) withPkColumns
(List<String> pkColumns) withTruncatePartitionName
(String truncatePartitionName) withUk
(boolean uk) withUkColumns
(List<String> ukColumns) withUkName
(String ukName) withUseEqual
(boolean useEqual) withUserIfNotExists
(boolean userIfNotExists) withUsingIfExists
(boolean usingIfExists)
-
Field Details
-
operation
-
optionalSpecifier
-
newTableName
-
columnName
-
columnOldName
-
colDataTypeList
-
columnDropNotNullList
-
columnDropDefaultList
-
pkColumns
-
ukColumns
-
ukName
-
index
-
oldIndex
-
constraintName
-
usingIfExists
private boolean usingIfExists -
referentialActions
-
fkColumns
-
fkSourceSchema
-
fkSourceTable
-
fkSourceColumns
-
uk
private boolean uk -
useEqual
private boolean useEqual -
constraints
-
parameters
-
commentText
-
hasColumn
private boolean hasColumn -
useBrackets
private boolean useBrackets -
truncatePartitionName
-
useIfNotExists
private boolean useIfNotExists
-
-
Constructor Details
-
AlterExpression
public AlterExpression()
-
-
Method Details
-
getOldIndex
-
setOldIndex
-
hasColumn
public boolean hasColumn() -
useBrackets
public boolean useBrackets() -
useBrackets
public void useBrackets(boolean useBrackets) -
hasColumn
public void hasColumn(boolean hasColumn) -
getFkSourceSchema
-
setFkSourceSchema
-
getCommentText
-
setCommentText
-
getOperation
-
setOperation
-
getOptionalSpecifier
-
setOptionalSpecifier
-
setReferentialAction
- Parameters:
type
-action
-
-
withReferentialAction
public AlterExpression withReferentialAction(ReferentialAction.Type type, ReferentialAction.Action action) -
removeReferentialAction
- Parameters:
type
-
-
getReferentialAction
- Parameters:
type
-- Returns:
-
setReferentialAction
private void setReferentialAction(ReferentialAction.Type type, ReferentialAction.Action action, boolean set) -
isOnDeleteCascade
Deprecated.- Returns:
-
setOnDeleteCascade
- Parameters:
onDeleteCascade
-
-
isOnDeleteRestrict
Deprecated.- Returns:
-
setOnDeleteRestrict
- Parameters:
onDeleteRestrict
-
-
isOnDeleteSetNull
Deprecated.- Returns:
-
setOnDeleteSetNull
- Parameters:
onDeleteSetNull
-
-
getFkColumns
-
setFkColumns
-
getFkSourceTable
-
setFkSourceTable
-
getColDataTypeList
-
addColDataType
-
addColDataType
-
addColDropNotNull
-
addColDropDefault
-
getFkSourceColumns
-
setFkSourceColumns
-
getNewTableName
-
setNewTableName
-
getColumnName
-
setColumnName
-
getColOldName
Deprecated. -
setColOldName
Deprecated. -
getColumnOldName
-
setColumnOldName
-
getConstraintName
-
setConstraintName
-
isUsingIfExists
public boolean isUsingIfExists() -
setUsingIfExists
public void setUsingIfExists(boolean usingIfExists) -
getPkColumns
-
setPkColumns
-
getUkColumns
-
setUkColumns
-
getUkName
-
setUkName
-
getIndex
-
setIndex
-
getConstraints
-
setConstraints
-
getColumnDropNotNullList
-
addParameters
-
getParameters
-
getUseEqual
public boolean getUseEqual() -
setUseEqual
public void setUseEqual(boolean useEqual) -
getUk
public boolean getUk() -
setUk
public void setUk(boolean uk) -
getTruncatePartitionName
-
setTruncatePartitionName
-
withTruncatePartitionName
-
isUseIfNotExists
public boolean isUseIfNotExists() -
setUseIfNotExists
public void setUseIfNotExists(boolean useIfNotExists) -
withUserIfNotExists
-
toString
-
withOperation
-
withOptionalSpecifier
-
withColumnName
-
withPkColumns
-
withUkColumns
-
withUkName
-
withIndex
-
withConstraintName
-
withUsingIfExists
-
withOnDeleteRestrict
-
withOnDeleteSetNull
-
withOnDeleteCascade
-
withFkColumns
-
withFkSourceSchema
-
withFkSourceTable
-
withFkSourceColumns
-
withUk
-
withUseEqual
-
withConstraints
-
withCommentText
-
withColumnOldName
-
addPkColumns
-
addPkColumns
-
addUkColumns
-
addUkColumns
-
addFkColumns
-
addFkColumns
-
addFkSourceColumns
-
addFkSourceColumns
-
addConstraints
-
addConstraints
-
getReferentialAction(ReferentialAction.Type)