Package org.hibernate.mapping
Class AbstractUserDefinedType
- java.lang.Object
-
- org.hibernate.mapping.AbstractUserDefinedType
-
- All Implemented Interfaces:
Serializable
,ContributableDatabaseObject
,Exportable
,Contributable
,UserDefinedType
- Direct Known Subclasses:
UserDefinedArrayType
,UserDefinedObjectType
public class AbstractUserDefinedType extends Object implements UserDefinedType
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractUserDefinedType(String contributor, Namespace namespace, Identifier physicalTypeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
boolean
equals(AbstractUserDefinedType table)
String
getCatalog()
String
getContributor()
The name of the contributor which contributed thisString
getExportIdentifier()
Get a unique identifier to make sure we are not exporting the same database structure multiple times.String
getName()
Identifier
getNameIdentifier()
String
getQualifiedName(SqlStringGenerationContext context)
QualifiedTableName
getQualifiedTableName()
String
getQuotedCatalog()
String
getQuotedCatalog(Dialect dialect)
String
getQuotedName()
String
getQuotedName(Dialect dialect)
String
getQuotedSchema()
String
getQuotedSchema(Dialect dialect)
String
getSchema()
int
hashCode()
boolean
isCatalogQuoted()
boolean
isQuoted()
boolean
isSchemaQuoted()
void
setCatalog(String catalog)
void
setName(String name)
void
setQuoted(boolean quoted)
void
setSchema(String schema)
String
toString()
-
-
-
Constructor Detail
-
AbstractUserDefinedType
public AbstractUserDefinedType(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)
- Specified by:
getQualifiedName
in interfaceUserDefinedType
-
setName
public void setName(String name)
-
getName
public String getName()
- Specified by:
getName
in interfaceUserDefinedType
-
getNameIdentifier
public Identifier getNameIdentifier()
- Specified by:
getNameIdentifier
in interfaceUserDefinedType
-
getQuotedName
public String getQuotedName()
- Specified by:
getQuotedName
in interfaceUserDefinedType
-
getQuotedName
public String getQuotedName(Dialect dialect)
- Specified by:
getQuotedName
in interfaceUserDefinedType
-
getQualifiedTableName
public QualifiedTableName getQualifiedTableName()
- Specified by:
getQualifiedTableName
in interfaceUserDefinedType
-
isQuoted
public boolean isQuoted()
- Specified by:
isQuoted
in interfaceUserDefinedType
-
setQuoted
public void setQuoted(boolean quoted)
-
setSchema
public void setSchema(String schema)
-
getSchema
public String getSchema()
- Specified by:
getSchema
in interfaceUserDefinedType
-
getQuotedSchema
public String getQuotedSchema()
- Specified by:
getQuotedSchema
in interfaceUserDefinedType
-
getQuotedSchema
public String getQuotedSchema(Dialect dialect)
- Specified by:
getQuotedSchema
in interfaceUserDefinedType
-
isSchemaQuoted
public boolean isSchemaQuoted()
- Specified by:
isSchemaQuoted
in interfaceUserDefinedType
-
setCatalog
public void setCatalog(String catalog)
-
getCatalog
public String getCatalog()
- Specified by:
getCatalog
in interfaceUserDefinedType
-
getQuotedCatalog
public String getQuotedCatalog()
- Specified by:
getQuotedCatalog
in interfaceUserDefinedType
-
isCatalogQuoted
public boolean isCatalogQuoted()
- Specified by:
isCatalogQuoted
in interfaceUserDefinedType
-
equals
public boolean equals(AbstractUserDefinedType table)
-
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.
-
-