org.hibernate.dialect.lock.LockingStrategy .
Currently only the root table gets locked, except for the case of HQL and Criteria queries against dialects which do not support either (1) FOR UPDATE OF or (2) support hint locking (in which case *all* queried tables would be locked).
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The root table alias.The driving alias; or the alias for the table
mapped by this persister in the hierarchy. drivingAlias)Get the SQL alias this persister would use for the root table given the passed driving alias. |
| public String[] | Returns: The root table identifier column names.Get the names of columns on the root table used to persist the identifier. |
| public String | |
| public String | Returns: The version column name.For versioned entities, get the name of the column (again, expected on the root table) used to store the version values. |
| getRootTableAlias | back to summary |
|---|---|
| public String getRootTableAlias(String drivingAlias) Get the SQL alias this persister would use for the root table given the passed driving alias. | |
| getRootTableIdentifierColumnNames | back to summary |
|---|---|
| public String[] getRootTableIdentifierColumnNames() Get the names of columns on the root table used to persist the identifier.
| |
| getRootTableName | back to summary |
|---|---|
| public String getRootTableName() Locks are always applied to the "root table".
| |
| getVersionColumnName | back to summary |
|---|---|
| public String getVersionColumnName() For versioned entities, get the name of the column (again, expected on the root table) used to store the version values.
| |