Class GeneratedValuesProcessor
- java.lang.Object
-
- org.hibernate.metamodel.mapping.internal.GeneratedValuesProcessor
-
@Incubating public class GeneratedValuesProcessor extends Object
Responsible for retrieving database-generated attribute values after aninsert
orupdate
statement is executed.Note that this class has responsibility for regular attributes of the entity. The primary key / id attribute is handled separately, being the responsibility of an instance of
InsertGeneratedIdentifierDelegate
.- See Also:
OnExecutionGenerator
-
-
Constructor Summary
Constructors Constructor Description GeneratedValuesProcessor(EntityMappingType entityDescriptor, EventType timing, SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityMappingType
getEntityDescriptor()
List<AttributeMapping>
getGeneratedValuesToSelect()
JdbcParametersList
getJdbcParameters()
SelectStatement
getSelectStatement()
SessionFactoryImplementor
getSessionFactory()
void
processGeneratedValues(Object entity, Object id, Object[] state, SharedSessionContractImplementor session)
Obtain the generated values, and populate the snapshot and the fields of the entity instance.
-
-
-
Constructor Detail
-
GeneratedValuesProcessor
public GeneratedValuesProcessor(EntityMappingType entityDescriptor, EventType timing, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
processGeneratedValues
public void processGeneratedValues(Object entity, Object id, Object[] state, SharedSessionContractImplementor session)
Obtain the generated values, and populate the snapshot and the fields of the entity instance.
-
getSelectStatement
public SelectStatement getSelectStatement()
-
getGeneratedValuesToSelect
public List<AttributeMapping> getGeneratedValuesToSelect()
-
getJdbcParameters
public JdbcParametersList getJdbcParameters()
-
getEntityDescriptor
public EntityMappingType getEntityDescriptor()
-
getSessionFactory
public SessionFactoryImplementor getSessionFactory()
-
-