Package org.hibernate.mapping
Class UserDefinedType
- java.lang.Object
-
- org.hibernate.mapping.UserDefinedType
-
- All Implemented Interfaces:
Serializable
,ContributableDatabaseObject
,Exportable
,Contributable
public class UserDefinedType extends Object implements Serializable, ContributableDatabaseObject
A mapping model object representing a relational database UDT.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserDefinedType(String contributor, Namespace namespace, Identifier physicalTypeName)
-
Method Summary
-
-
-
Constructor Detail
-
UserDefinedType
public UserDefinedType(String contributor, Namespace namespace, Identifier physicalTypeName)
-
-
Method Detail
-
getContributor
public String getContributor()
Description copied from interface:Contributable
The name of the contributor which contributed this- Specified by:
getContributor
in interfaceContributable
-
getQualifiedName
public String getQualifiedName(SqlStringGenerationContext context)
-
setName
public void setName(String name)
-
getName
public String getName()
-
getNameIdentifier
public Identifier getNameIdentifier()
-
getQuotedName
public String getQuotedName()
-
getQualifiedTableName
public QualifiedTableName getQualifiedTableName()
-
isQuoted
public boolean isQuoted()
-
setQuoted
public void setQuoted(boolean quoted)
-
setSchema
public void setSchema(String schema)
-
getSchema
public String getSchema()
-
getQuotedSchema
public String getQuotedSchema()
-
isSchemaQuoted
public boolean isSchemaQuoted()
-
setCatalog
public void setCatalog(String catalog)
-
getCatalog
public String getCatalog()
-
getQuotedCatalog
public String getQuotedCatalog()
-
isCatalogQuoted
public boolean isCatalogQuoted()
-
getColumn
public Column getColumn(Column column)
Return the column which is identified by column provided as argument.- Parameters:
column
- column with at least a name.- Returns:
- the underlying column or null if not inside this table. Note: the instance *can* be different than the input parameter, but the name will be the same.
-
getColumn
public Column getColumn(Identifier name)
-
getColumn
public Column getColumn(int n)
-
addColumn
public void addColumn(Column column)
-
getColumnSpan
public int getColumnSpan()
-
getColumns
public Collection<Column> getColumns()
-
equals
public boolean equals(UserDefinedType table)
-
containsColumn
public boolean containsColumn(Column column)
-
getComment
public String getComment()
-
setComment
public void setComment(String comment)
-
getExportIdentifier
public String getExportIdentifier()
Description copied from interface:Exportable
Get a unique identifier to make sure we are not exporting the same database structure multiple times.- Specified by:
getExportIdentifier
in interfaceExportable
- Returns:
- The exporting identifier.
-
getOrderMapping
@Internal public int[] getOrderMapping()
-
-