Class BasicTypeImpl<J>
java.lang.Object
org.hibernate.metamodel.model.domain.internal.BasicTypeImpl<J>
- All Implemented Interfaces:
BasicType<J>
,Type<J>
,Serializable
,JdbcMapping
,JdbcMappingContainer
,MappingType
,BasicDomainType<J>
,DomainType<J>
,ReturnableType<J>
,SimpleDomainType<J>
,SqmBindableType<J>
,SqmExpressible<J>
,SqmDomainType<J>
,BindableType<J>
,OutputableType<J>
- Direct Known Subclasses:
PrimitiveBasicTypeImpl
public class BasicTypeImpl<J>
extends Object
implements BasicDomainType<J>, SqmDomainType<J>, JdbcMapping, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Type
Type.PersistenceType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Can the given instance of this type actually perform the parameter value extractions?extract
(CallableStatement statement, int paramIndex, SharedSessionContractImplementor session) Perform the extractionextract
(CallableStatement statement, String paramName, SharedSessionContractImplementor session) Perform the extractionTheJavaType
representing this domain type.The Java class which represents by this domain type.JavaType<?>
The descriptor for the Java type represented by this expressible typeDescriptor for the SQL type mapped by this type.The strategy for binding values of this expressible type to JDBCPreparedStatement
s andCallableStatement
s.The strategy for extracting values of this expressible type from JDBC ResultSets, CallableStatements, etcThe name of the type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.metamodel.model.domain.BasicDomainType
getPersistenceType
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMapping
convertToDomainValue, convertToRelationalValue, forEachJdbcType, forEachJdbcType, getCastType, getJdbcJavaType, getJdbcLiteralFormatter, getJdbcMapping, getJdbcTypeCount, getMappedJavaType, getSingleJdbcMapping, getValueConverter
Methods inherited from interface org.hibernate.query.sqm.SqmBindableType
resolveExpressible
Methods inherited from interface org.hibernate.query.sqm.tree.domain.SqmDomainType
getTupleLength
Methods inherited from interface org.hibernate.query.sqm.SqmExpressible
getRelationalJavaType
-
Constructor Details
-
BasicTypeImpl
-
-
Method Details
-
getJavaType
Description copied from interface:DomainType
The Java class which represents by this domain type.- Specified by:
getJavaType
in interfaceBasicDomainType<J>
- Specified by:
getJavaType
in interfaceDomainType<J>
- Specified by:
getJavaType
in interfaceSimpleDomainType<J>
- Specified by:
getJavaType
in interfaceType<J>
- See Also:
-
getTypeName
Description copied from interface:DomainType
The name of the type. Usually, but not always, the name of a Java class.- Specified by:
getTypeName
in interfaceDomainType<J>
- Specified by:
getTypeName
in interfaceSqmDomainType<J>
- Specified by:
getTypeName
in interfaceSqmExpressible<J>
- See Also:
-
getSqmType
- Specified by:
getSqmType
in interfaceSqmExpressible<J>
-
getExpressibleJavaType
Description copied from interface:DomainType
TheJavaType
representing this domain type.- Specified by:
getExpressibleJavaType
in interfaceDomainType<J>
- Specified by:
getExpressibleJavaType
in interfaceSqmExpressible<J>
-
canDoExtraction
public boolean canDoExtraction()Description copied from interface:OutputableType
Can the given instance of this type actually perform the parameter value extractions?- Specified by:
canDoExtraction
in interfaceOutputableType<J>
- Returns:
true
indicates thatOutputableType.extract(java.sql.CallableStatement, int, org.hibernate.engine.spi.SharedSessionContractImplementor)
calls will not fail due toIllegalStateException
.
-
getJdbcType
Description copied from interface:OutputableType
Descriptor for the SQL type mapped by this type.- Specified by:
getJdbcType
in interfaceJdbcMapping
- Specified by:
getJdbcType
in interfaceOutputableType<J>
-
getJavaTypeDescriptor
Description copied from interface:JdbcMapping
The descriptor for the Java type represented by this expressible type- Specified by:
getJavaTypeDescriptor
in interfaceJdbcMapping
-
getJdbcValueExtractor
Description copied from interface:JdbcMapping
The strategy for extracting values of this expressible type from JDBC ResultSets, CallableStatements, etc- Specified by:
getJdbcValueExtractor
in interfaceJdbcMapping
-
getJdbcValueBinder
Description copied from interface:JdbcMapping
The strategy for binding values of this expressible type to JDBCPreparedStatement
s andCallableStatement
s.- Specified by:
getJdbcValueBinder
in interfaceJdbcMapping
-