Package org.pgcodekeeper.core.schema.ms
Class MsProcedure
java.lang.Object
org.pgcodekeeper.core.schema.PgStatement
org.pgcodekeeper.core.schema.AbstractFunction
org.pgcodekeeper.core.schema.ms.AbstractMsFunction
org.pgcodekeeper.core.schema.ms.MsProcedure
- All Implemented Interfaces:
IHashable,IFunction,ISearchPath,IStatement,SourceStatement
Represents a Microsoft SQL stored procedure.
Supports execution of SQL statements and business logic within the database.
-
Field Summary
Fields inherited from class org.pgcodekeeper.core.schema.PgStatement
GO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets 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.AbstractMsFunction
computeHash, getDbType, getFirstPart, getSecondPart, isAnsiNulls, isQuotedIdentified, setAnsiNulls, setFirstPart, setQuotedIdentified, setSecondPart, 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
getContainingSchema, getDatabase, getSchemaNameMethods inherited from interface org.pgcodekeeper.core.schema.IStatement
getBareName, getComment, getName, getParent, getQualifiedNameMethods inherited from interface org.pgcodekeeper.core.schema.SourceStatement
appendName, appendSourceStatement
-
Constructor Details
-
MsProcedure
Creates a new Microsoft SQL stored procedure.- Parameters:
name- the procedure name
-
-
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
-