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 TypeMethodDescriptionbooleanCan 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 extractionTheJavaTyperepresenting 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 JDBCPreparedStatements andCallableStatements.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, waitMethods inherited from interface org.hibernate.metamodel.model.domain.BasicDomainType
getPersistenceTypeMethods inherited from interface org.hibernate.metamodel.mapping.JdbcMapping
convertToDomainValue, convertToRelationalValue, forEachJdbcType, forEachJdbcType, getCastType, getJdbcJavaType, getJdbcLiteralFormatter, getJdbcMapping, getJdbcTypeCount, getMappedJavaType, getSingleJdbcMapping, getValueConverterMethods inherited from interface org.hibernate.query.sqm.SqmBindableType
resolveExpressibleMethods inherited from interface org.hibernate.query.sqm.tree.domain.SqmDomainType
getTupleLengthMethods inherited from interface org.hibernate.query.sqm.SqmExpressible
getRelationalJavaType
-
Constructor Details
-
BasicTypeImpl
-
-
Method Details
-
getJavaType
Description copied from interface:DomainTypeThe Java class which represents by this domain type.- Specified by:
getJavaTypein interfaceBasicDomainType<J>- Specified by:
getJavaTypein interfaceDomainType<J>- Specified by:
getJavaTypein interfaceSimpleDomainType<J>- Specified by:
getJavaTypein interfaceType<J>- See Also:
-
getTypeName
Description copied from interface:DomainTypeThe name of the type. Usually, but not always, the name of a Java class.- Specified by:
getTypeNamein interfaceDomainType<J>- Specified by:
getTypeNamein interfaceSqmDomainType<J>- Specified by:
getTypeNamein interfaceSqmExpressible<J>- See Also:
-
getSqmType
- Specified by:
getSqmTypein interfaceSqmExpressible<J>
-
getExpressibleJavaType
Description copied from interface:DomainTypeTheJavaTyperepresenting this domain type.- Specified by:
getExpressibleJavaTypein interfaceDomainType<J>- Specified by:
getExpressibleJavaTypein interfaceSqmExpressible<J>
-
canDoExtraction
public boolean canDoExtraction()Description copied from interface:OutputableTypeCan the given instance of this type actually perform the parameter value extractions?- Specified by:
canDoExtractionin interfaceOutputableType<J>- Returns:
trueindicates thatOutputableType.extract(java.sql.CallableStatement, int, org.hibernate.engine.spi.SharedSessionContractImplementor)calls will not fail due toIllegalStateException.
-
getJdbcType
Description copied from interface:OutputableTypeDescriptor for the SQL type mapped by this type.- Specified by:
getJdbcTypein interfaceJdbcMapping- Specified by:
getJdbcTypein interfaceOutputableType<J>
-
getJavaTypeDescriptor
Description copied from interface:JdbcMappingThe descriptor for the Java type represented by this expressible type- Specified by:
getJavaTypeDescriptorin interfaceJdbcMapping
-
getJdbcValueExtractor
Description copied from interface:JdbcMappingThe strategy for extracting values of this expressible type from JDBC ResultSets, CallableStatements, etc- Specified by:
getJdbcValueExtractorin interfaceJdbcMapping
-
getJdbcValueBinder
Description copied from interface:JdbcMappingThe strategy for binding values of this expressible type to JDBCPreparedStatements andCallableStatements.- Specified by:
getJdbcValueBinderin interfaceJdbcMapping
-