Package org.hibernate.mapping
Class UserDefinedObjectType
- java.lang.Object
-
- org.hibernate.mapping.AbstractUserDefinedType
-
- org.hibernate.mapping.UserDefinedObjectType
-
- All Implemented Interfaces:
Serializable
,ContributableDatabaseObject
,Exportable
,Contributable
,UserDefinedType
@Incubating public class UserDefinedObjectType extends AbstractUserDefinedType
A mapping model object representing a relational database UDT.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserDefinedObjectType(String contributor, Namespace namespace, Identifier physicalTypeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addColumn(Column column)
boolean
containsColumn(Column column)
Column
getColumn(int n)
Column
getColumn(Identifier name)
Column
getColumn(Column column)
Return the column which is identified by column provided as argument.Collection<Column>
getColumns()
int
getColumnSpan()
String
getComment()
int[]
getOrderMapping()
void
reorderColumns(List<Column> columns)
void
setComment(String comment)
-
Methods inherited from class org.hibernate.mapping.AbstractUserDefinedType
equals, equals, getCatalog, getContributor, getExportIdentifier, getName, getNameIdentifier, getQualifiedName, getQualifiedTableName, getQuotedCatalog, getQuotedCatalog, getQuotedName, getQuotedName, getQuotedSchema, getQuotedSchema, getSchema, hashCode, isCatalogQuoted, isQuoted, isSchemaQuoted, setCatalog, setName, setQuoted, setSchema, toString
-
-
-
-
Constructor Detail
-
UserDefinedObjectType
public UserDefinedObjectType(String contributor, Namespace namespace, Identifier physicalTypeName)
-
-
Method Detail
-
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()
-
containsColumn
public boolean containsColumn(Column column)
-
getComment
public String getComment()
-
setComment
public void setComment(String comment)
-
getOrderMapping
@Internal public int[] getOrderMapping()
-
-