Package org.pgcodekeeper.core.schema.ms
Class MsFunction
java.lang.Object
org.pgcodekeeper.core.schema.PgStatement
org.pgcodekeeper.core.schema.AbstractFunction
org.pgcodekeeper.core.schema.ms.AbstractMsFunction
org.pgcodekeeper.core.schema.ms.MsFunction
- All Implemented Interfaces:
IHashable,IFunction,ISearchPath,IStatement,SourceStatement
Represents a Microsoft SQL user-defined function.
Supports scalar, table-valued, and other function types.
-
Field Summary
Fields inherited from class org.pgcodekeeper.core.schema.PgStatement
GO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeHash(Hasher hasher) Computes the hash of the implementing object using the provided hasher.Gets the type of this database object.booleanneedDrop(AbstractFunction newFunction) Determines whether this function needs to be dropped before creating the new version.voidsetFuncType(FuncTypes funcType) Methods inherited from class org.pgcodekeeper.core.schema.ms.AbstractMsFunction
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
-
MsFunction
Creates a new Microsoft SQL function.- Parameters:
name- the function 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
-
computeHash
Description copied from interface:IHashableComputes the hash of the implementing object using the provided hasher. The implementation should call appropriateputmethods on the hasher for all fields that should contribute to the hash value.- Specified by:
computeHashin interfaceIHashable- Overrides:
computeHashin classAbstractMsFunction- Parameters:
hasher- the hasher instance to use for hash computation
-
setFuncType
-