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>
,SimpleDomainType<J>
,BindableType<J>
,OutputableType<J>
,ReturnableType<J>
,SqmExpressible<J>
- Direct Known Subclasses:
PrimitiveBasicTypeImpl
public class BasicTypeImpl<J>
extends Object
implements BasicDomainType<J>, JdbcMapping, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Type
Type.PersistenceType
-
Constructor Summary
-
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 extractionThe Java type descriptor for this expressibleThe 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, etcMethods 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
areEqual
Methods inherited from interface org.hibernate.metamodel.model.domain.DomainType
getSqmType, getTupleLength
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.metamodel.model.domain.SimpleDomainType
getBindableJavaType
Methods inherited from interface org.hibernate.query.sqm.SqmExpressible
getRelationalJavaType, getTypeName, isInstance, resolveExpressible
-
Constructor Details
-
BasicTypeImpl
-
-
Method Details
-
getPersistenceType
- Specified by:
getPersistenceType
in interfaceBasicDomainType<J>
- Specified by:
getPersistenceType
in interfaceType<J>
-
getExpressibleJavaType
Description copied from interface:SqmExpressible
The Java type descriptor for this expressible- Specified by:
getExpressibleJavaType
in interfaceSqmExpressible<J>
-
getJavaType
- Specified by:
getJavaType
in interfaceType<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
-