Package org.flywaydb.database.sqlserver
Enum SQLServerSchema.ObjectType
- java.lang.Object
-
- java.lang.Enum<SQLServerSchema.ObjectType>
-
- org.flywaydb.database.sqlserver.SQLServerSchema.ObjectType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SQLServerSchema.ObjectType>
- Enclosing class:
- SQLServerSchema
protected static enum SQLServerSchema.ObjectType extends java.lang.Enum<SQLServerSchema.ObjectType>
SQL Server object types for which we support automatic clean-up. These types can be used in conjunction with thesys.objects
catalog. The full list of object types is available in the MSDN documentation (see thetype
column description.)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGGREGATE
Aggregate function (CLR).ASSEMBLY_DML_TRIGGER
Assembly (CLR) DML trigger.CHECK_CONSTRAINT
CHECK constraint.CLR_SCALAR_FUNCTION
Assembly (CLR) scalar-function.CLR_STORED_PROCEDURE
Assembly (CLR) stored-procedure.CLR_TABLE_VALUED_FUNCTION
Assembly (CLR) table-valued function.DEFAULT_CONSTRAINT
DEFAULT constraint.FOREIGN_KEY
FOREIGN KEY constraint.INLINED_TABLE_FUNCTION
In-lined table-function.PRIMARY_KEY
PRIMARY KEY constraint.RULE
Rule (old-style, stand-alone).SCALAR_FUNCTION
Scalar function.SEQUENCE_OBJECT
Sequence object.SQL_DML_TRIGGER
SQL DML trigger.STORED_PROCEDURE
Stored procedure.SYNONYM
Synonym.TABLE_VALUED_FUNCTION
Table-valued function.UNIQUE_CONSTRAINT
Unique Constraint.USER_TABLE
User table.VIEW
View.
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
code
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SQLServerSchema.ObjectType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SQLServerSchema.ObjectType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AGGREGATE
public static final SQLServerSchema.ObjectType AGGREGATE
Aggregate function (CLR).
-
CHECK_CONSTRAINT
public static final SQLServerSchema.ObjectType CHECK_CONSTRAINT
CHECK constraint.
-
DEFAULT_CONSTRAINT
public static final SQLServerSchema.ObjectType DEFAULT_CONSTRAINT
DEFAULT constraint.
-
PRIMARY_KEY
public static final SQLServerSchema.ObjectType PRIMARY_KEY
PRIMARY KEY constraint.
-
FOREIGN_KEY
public static final SQLServerSchema.ObjectType FOREIGN_KEY
FOREIGN KEY constraint.
-
INLINED_TABLE_FUNCTION
public static final SQLServerSchema.ObjectType INLINED_TABLE_FUNCTION
In-lined table-function.
-
SCALAR_FUNCTION
public static final SQLServerSchema.ObjectType SCALAR_FUNCTION
Scalar function.
-
CLR_SCALAR_FUNCTION
public static final SQLServerSchema.ObjectType CLR_SCALAR_FUNCTION
Assembly (CLR) scalar-function.
-
CLR_TABLE_VALUED_FUNCTION
public static final SQLServerSchema.ObjectType CLR_TABLE_VALUED_FUNCTION
Assembly (CLR) table-valued function.
-
STORED_PROCEDURE
public static final SQLServerSchema.ObjectType STORED_PROCEDURE
Stored procedure.
-
CLR_STORED_PROCEDURE
public static final SQLServerSchema.ObjectType CLR_STORED_PROCEDURE
Assembly (CLR) stored-procedure.
-
RULE
public static final SQLServerSchema.ObjectType RULE
Rule (old-style, stand-alone).
-
SYNONYM
public static final SQLServerSchema.ObjectType SYNONYM
Synonym.
-
TABLE_VALUED_FUNCTION
public static final SQLServerSchema.ObjectType TABLE_VALUED_FUNCTION
Table-valued function.
-
ASSEMBLY_DML_TRIGGER
public static final SQLServerSchema.ObjectType ASSEMBLY_DML_TRIGGER
Assembly (CLR) DML trigger.
-
SQL_DML_TRIGGER
public static final SQLServerSchema.ObjectType SQL_DML_TRIGGER
SQL DML trigger.
-
UNIQUE_CONSTRAINT
public static final SQLServerSchema.ObjectType UNIQUE_CONSTRAINT
Unique Constraint.
-
USER_TABLE
public static final SQLServerSchema.ObjectType USER_TABLE
User table.
-
VIEW
public static final SQLServerSchema.ObjectType VIEW
View.
-
SEQUENCE_OBJECT
public static final SQLServerSchema.ObjectType SEQUENCE_OBJECT
Sequence object.
-
-
Method Detail
-
values
public static SQLServerSchema.ObjectType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SQLServerSchema.ObjectType c : SQLServerSchema.ObjectType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SQLServerSchema.ObjectType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-