Enum SQLServerSchema.ObjectType
- java.lang.Object
-
- java.lang.Enum<SQLServerSchema.ObjectType>
-
- migratedb.v1.core.internal.database.sqlserver.SQLServerSchema.ObjectType
-
- All Implemented Interfaces:
Serializable,Comparable<SQLServerSchema.ObjectType>
- Enclosing class:
- SQLServerSchema
protected static enum SQLServerSchema.ObjectType extends Enum<SQLServerSchema.ObjectType>
SQL Server object types for which we support automatic clean-up. These types can be used in conjunction with thesys.objectscatalog. The full list of object types is available in the MSDN documentation (see thetypecolumn description.)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGGREGATEAggregate function (CLR).ASSEMBLY_DML_TRIGGERAssembly (CLR) DML trigger.CHECK_CONSTRAINTCHECK constraint.CLR_SCALAR_FUNCTIONAssembly (CLR) scalar-function.CLR_STORED_PROCEDUREAssembly (CLR) stored-procedure.CLR_TABLE_VALUED_FUNCTIONAssembly (CLR) table-valued function.DEFAULT_CONSTRAINTDEFAULT constraint.FOREIGN_KEYFOREIGN KEY constraint.INLINED_TABLE_FUNCTIONIn-lined table-function.PRIMARY_KEYPRIMARY KEY constraint.RULERule (old-style, stand-alone).SCALAR_FUNCTIONScalar function.SEQUENCE_OBJECTSequence object.SQL_DML_TRIGGERSQL DML trigger.STORED_PROCEDUREStored procedure.SYNONYMSynonym.TABLE_VALUED_FUNCTIONTable-valued function.UNIQUE_CONSTRAINTUnique Constraint.USER_TABLEUser table.VIEWView.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SQLServerSchema.ObjectTypevalueOf(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.
-
-
Field Detail
-
code
public final String code
-
-
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(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-