Package org.pgcodekeeper.core.schema.ms
Class MsType
java.lang.Object
org.pgcodekeeper.core.schema.PgStatement
org.pgcodekeeper.core.schema.AbstractType
org.pgcodekeeper.core.schema.ms.MsType
- All Implemented Interfaces:
IHashable,ISearchPath,IStatement,IStatementContainer
Represents a Microsoft SQL user-defined type that can be an alias type,
assembly type, or table type. Each type has specific properties and behaviors.
-
Field Summary
Fields inherited from class org.pgcodekeeper.core.schema.PgStatement
GO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(IStatement stmt) Adds a child statement to this container.booleancompare(PgStatement obj) This method does not account for nested child PgStatements.voidcomputeHash(Hasher hasher) Computes the hash of the implementing object using the provided hasher.Gets a child statement by name and type.voidsetAssemblyClass(String assemblyClass) voidsetAssemblyName(String assemblyName) voidsetBaseType(String baseType) voidsetMemoryOptimized(boolean isMemoryOptimized) voidsetNotNull(boolean isNotNull) Methods inherited from class org.pgcodekeeper.core.schema.AbstractType
appendAlterSQL, getContainingSchema, getCreationSQL, getStatementType, shallowCopyMethods inherited from class org.pgcodekeeper.core.schema.PgStatement
addAllDeps, addDep, addPrivilege, appendAlterComments, appendComments, appendOwnerSQL, canDrop, canDropBeforeCreate, 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
getDatabase, getSchemaNameMethods inherited from interface org.pgcodekeeper.core.schema.IStatement
getBareName, getComment, getName, getParent, getQualifiedName, getStatementType
-
Constructor Details
-
MsType
Creates a new Microsoft SQL user-defined type.- Parameters:
name- the type name
-
-
Method Details
-
compare
Description copied from class:PgStatementThis method does not account for nested child PgStatements. Shallow version ofPgStatement.equals(Object)- Overrides:
comparein classAbstractType
-
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- Parameters:
hasher- the hasher instance to use for hash computation
-
setBaseType
-
setNotNull
public void setNotNull(boolean isNotNull) -
setAssemblyName
-
setAssemblyClass
-
setMemoryOptimized
public void setMemoryOptimized(boolean isMemoryOptimized) -
addChild
Description copied from interface:IStatementContainerAdds a child statement to this container.- Specified by:
addChildin interfaceIStatementContainer- Parameters:
stmt- the child statement to add
-
getChild
Description copied from interface:IStatementContainerGets a child statement by name and type.- Specified by:
getChildin interfaceIStatementContainer- Parameters:
name- the name of the child to findtype- the type of the child to find- Returns:
- the child statement, or null if not found
-
getDbType
- Overrides:
getDbTypein classPgStatement
-