public interface

PostInsertIdentityPersister

implements EntityPersister
org.hibernate.id.PostInsertIdentityPersister
Known Indirect Subclasses

Class Overview

A persister that may have an identity assigned by execution of a SQL INSERT.

Summary

[Expand]
Inherited Constants
From interface org.hibernate.persister.entity.EntityPersister
Public Methods
abstract String getIdentitySelectString()
Get the database-specific SQL command to retrieve the last generated IDENTITY value.
abstract String[] getRootTableKeyColumnNames()
The names of the primary key columns in the root table.
abstract String getSelectByUniqueKeyString(String propertyName)
Get a SQL select string that performs a select based on a unique key determined by the given property name).
[Expand]
Inherited Methods
From interface org.hibernate.cache.OptimisticCacheSource
From interface org.hibernate.persister.entity.EntityPersister

Public Methods

public abstract String getIdentitySelectString ()

Get the database-specific SQL command to retrieve the last generated IDENTITY value.

Returns
  • The SQL command string

public abstract String[] getRootTableKeyColumnNames ()

The names of the primary key columns in the root table.

Returns
  • The primary key column names.

public abstract String getSelectByUniqueKeyString (String propertyName)

Get a SQL select string that performs a select based on a unique key determined by the given property name).

Parameters
propertyName The name of the property which maps to the column(s) to use in the select statement restriction.
Returns
  • The SQL select string