Class MsAbstractFunction
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
- All Implemented Interfaces:
IFunction,ISearchPath,IStatement,MsSourceStatement,IHashable
- Direct Known Subclasses:
MsFunction,MsProcedure
public abstract class MsAbstractFunction
extends MsAbstractCommonFunction
implements MsSourceStatement
Abstract base class for Microsoft SQL functions.
Provides common functionality for Microsoft SQL function implementations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeHash(Hasher hasher) Computes the hash of the implementing object using the provided hasher.Gets the first part of the source statement (before CREATE/ALTER).Gets the second part of the source statement (after the object name).booleanbooleanvoidsetAnsiNulls(boolean ansiNulls) voidsetFirstPart(String firstPart) Sets the first part of the source statement.voidsetQuotedIdentified(boolean quotedIdentified) voidsetSecondPart(String secondPart) Sets the second part of the source statement.Methods inherited from class org.pgcodekeeper.core.database.ms.schema.MsAbstractCommonFunction
addArgument, appendAlterSQL, canDropBeforeCreate, compare, 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, compare, deepCopy, formatSql, getAuthor, getBareName, getChildren, getComment, getCreationSQL, getDependencies, getDescendants, getDropSQL, getLibName, getLocation, getName, getOwner, getParent, getPrivileges, getQualifiedName, getQuotedName, getQuoter, getRenameCommand, getSeparator, getSQL, getStatementType, getTwin, getTypeName, hasChildren, isLib, isOwned, quote, setComment, setLibName, setLocation, setOwner, shallowCopyMethods inherited from interface org.pgcodekeeper.core.database.ms.schema.MsSourceStatement
appendName, appendSourceStatement
-
Method Details
-
getFirstPart
Description copied from interface:MsSourceStatementGets the first part of the source statement (before CREATE/ALTER).- Specified by:
getFirstPartin interfaceMsSourceStatement- Returns:
- the first part of the source
-
setFirstPart
Description copied from interface:MsSourceStatementSets the first part of the source statement.- Specified by:
setFirstPartin interfaceMsSourceStatement- Parameters:
firstPart- the first part to set
-
getSecondPart
Description copied from interface:MsSourceStatementGets the second part of the source statement (after the object name).- Specified by:
getSecondPartin interfaceMsSourceStatement- Returns:
- the second part of the source
-
setSecondPart
Description copied from interface:MsSourceStatementSets the second part of the source statement.- Specified by:
setSecondPartin interfaceMsSourceStatement- Parameters:
secondPart- the second part to set
-
setAnsiNulls
public void setAnsiNulls(boolean ansiNulls) -
isAnsiNulls
public boolean isAnsiNulls() -
setQuotedIdentified
public void setQuotedIdentified(boolean quotedIdentified) -
isQuotedIdentified
public boolean isQuotedIdentified() -
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 classMsAbstractCommonFunction- Parameters:
hasher- the hasher instance to use for hash computation
-