Class MsProcedure
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.MsAbstractFunction
org.pgcodekeeper.core.database.ms.schema.MsProcedure
- All Implemented Interfaces:
IFunction,ISearchPath,IStatement,MsSourceStatement,IHashable
Represents a Microsoft SQL stored procedure.
Supports execution of SQL statements and business logic within the database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompare(IStatement obj) This method does not account for nested child PgStatements.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.MsAbstractFunction
computeHash, getFirstPart, getSecondPart, isAnsiNulls, isQuotedIdentified, setAnsiNulls, setFirstPart, setQuotedIdentified, setSecondPartMethods 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, appendAlterSQL, appendOwnerSQL, canDrop, canDropBeforeCreate, clearPrivileges, deepCopy, formatSql, getAuthor, getBareName, getChildren, getComment, getCreationSQL, 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, shallowCopyMethods inherited from interface org.pgcodekeeper.core.database.ms.schema.MsSourceStatement
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 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
-