Package org.pgcodekeeper.core.schema.ms
Class MsClrProcedure
java.lang.Object
org.pgcodekeeper.core.schema.PgStatement
org.pgcodekeeper.core.schema.AbstractFunction
org.pgcodekeeper.core.schema.ms.AbstractMsClrFunction
org.pgcodekeeper.core.schema.ms.MsClrProcedure
- All Implemented Interfaces:
IHashable,IFunction,ISearchPath,IStatement
Represents a Microsoft SQL CLR stored procedure.
CLR procedures are implemented in managed code and executed within the SQL Server runtime.
-
Field Summary
Fields inherited from class org.pgcodekeeper.core.schema.PgStatement
GO -
Constructor Summary
ConstructorsConstructorDescriptionMsClrProcedure(String name, String assembly, String assemblyClass, String assemblyMethod) Creates a new Microsoft SQL CLR procedure. -
Method Summary
Modifier and TypeMethodDescriptiongetDeclaration(Argument arg) Gets the type of this database object.booleanneedDrop(AbstractFunction newFunction) Determines whether this function needs to be dropped before creating the new version.Methods inherited from class org.pgcodekeeper.core.schema.ms.AbstractMsClrFunction
addOption, computeHash, getDbType, shallowCopyMethods inherited from class org.pgcodekeeper.core.schema.AbstractFunction
addArgument, appendAlterSQL, canDropBeforeCreate, compare, getArguments, getContainingSchema, getCreationSQL, getReturns, getReturnsColumns, setReturnsMethods inherited from class org.pgcodekeeper.core.schema.PgStatement
addAllDeps, addDep, addPrivilege, appendAlterComments, appendComments, appendOwnerSQL, canDrop, checkComments, clearPrivileges, compareChildren, deepCopy, equals, getAuthor, getBareName, getChildren, getComment, getDeps, getDescendants, getDropSQL, getDropSQL, getLibName, getLocation, getName, getObjectState, getObjectState, getOwner, getParent, getPrivileges, getQualifiedName, getSQL, getTwin, getTypeName, hasChildren, hashCode, isLib, isOwned, isSubElement, setAuthor, setComment, setLibName, setLocation, setOwner, setParent, toStringMethods inherited from interface org.pgcodekeeper.core.schema.ISearchPath
getDatabase, getSchemaNameMethods inherited from interface org.pgcodekeeper.core.schema.IStatement
getBareName, getComment, getName, getParent, getQualifiedName
-
Constructor Details
-
MsClrProcedure
Creates a new Microsoft SQL CLR procedure.- Parameters:
name- the procedure nameassembly- the assembly name containing the implementationassemblyClass- the class within the assemblyassemblyMethod- the method within the class
-
-
Method Details
-
getStatementType
Description copied from interface:IStatementGets the type of this database object.- Returns:
- the database object type
-
needDrop
Description copied from class:AbstractFunctionDetermines whether this function needs to be dropped before creating the new version.- Specified by:
needDropin classAbstractFunction- Parameters:
newFunction- the new function version to compare against- Returns:
- true if the function needs to be dropped and recreated
-
getDeclaration
-