Class MsClrProcedure
java.lang.Object
org.pgcodekeeper.core.database.base.schema.AbstractStatement
org.pgcodekeeper.core.database.ms.schema.MsAbstractStatement
org.pgcodekeeper.core.database.ms.schema.MsAbstractCommonFunction
org.pgcodekeeper.core.database.ms.schema.MsAbstractClrFunction
org.pgcodekeeper.core.database.ms.schema.MsClrProcedure
- All Implemented Interfaces:
IFunction,ISearchPath,IStatement,IHashable
Represents a Microsoft SQL CLR stored procedure.
CLR procedures are implemented in managed code and executed within the SQL Server runtime.
-
Constructor Summary
ConstructorsConstructorDescriptionMsClrProcedure(String name, String assembly, String assemblyClass, String assemblyMethod) Creates a new Microsoft SQL CLR procedure. -
Method Summary
Modifier and TypeMethodDescriptionbooleancompare(IStatement obj) This method does not account for nested child PgStatements.getDeclaration(Argument arg) Gets the type of this database object.booleanDetermines whether this function needs to be dropped before creating the new version.Methods inherited from class org.pgcodekeeper.core.database.ms.schema.MsAbstractClrFunction
addOption, computeHashMethods inherited from class org.pgcodekeeper.core.database.ms.schema.MsAbstractCommonFunction
addArgument, appendAlterSQL, canDropBeforeCreate, getArguments, getCreationSQL, getReturns, getReturnsColumns, setReturnsMethods inherited from class org.pgcodekeeper.core.database.ms.schema.MsAbstractStatement
appendOwnerSQL, formatSql, getQuoter, getRenameCommand, getSeparator, isOwnedMethods inherited from class org.pgcodekeeper.core.database.base.schema.AbstractStatement
addDependency, addPrivilege, appendAlterComments, appendComments, appendPrivileges, canDrop, checkComments, clearPrivileges, compareChildren, deepCopy, equals, fillChildrenList, fillDescendantsList, getAuthor, getBareName, getChildren, getComment, getDependencies, getDescendants, getDropSQL, getDropSQL, getLibName, getLocation, getName, getObjectState, getObjectState, getOwner, getParent, getPrivileges, getQualifiedName, getSQL, getTwin, hasChildren, hashCode, isLib, setAuthor, setComment, setLibName, setLocation, setOwner, setParent, shallowCopy, toStringMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ISearchPath
getContainingSchema, getDatabase, getSchemaName, toObjectReferenceMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IStatement
addDependency, appendOwnerSQL, canDrop, clearPrivileges, deepCopy, formatSql, getAuthor, getBareName, getChildren, getComment, getDependencies, getDescendants, getDropSQL, getLibName, getLocation, getName, getOwner, getParent, getPrivileges, getQualifiedName, getQuotedName, getQuoter, getRenameCommand, getSeparator, getSQL, getTwin, getTypeName, hasChildren, isLib, isOwned, quote, setComment, setLibName, setLocation, setOwner, shallowCopy
-
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
-
getDeclaration
-
needDrop
Description copied from interface:IFunctionDetermines whether this function needs to be dropped before creating the new version.- Parameters:
newFunction- the new function version to compare against- Returns:
- true if the function needs to be dropped and recreated
-
compare
Description copied from class:AbstractStatementThis method does not account for nested child PgStatements. Shallow version ofAbstractStatement.equals(Object)- Specified by:
comparein interfaceIStatement- Overrides:
comparein classMsAbstractCommonFunction
-