Class JpaLockEntity
- java.lang.Object
- 
- org.keycloak.models.map.common.UpdatableEntity.Impl
- 
- org.keycloak.models.map.lock.MapLockEntity.AbstractLockEntity
- 
- org.keycloak.models.map.storage.jpa.lock.entity.JpaLockEntity
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- AbstractEntity,- UpdatableEntity,- MapLockEntity,- JpaRootEntity,- JpaRootVersionedEntity
 
 @Entity public class JpaLockEntity extends MapLockEntity.AbstractLockEntity implements JpaRootVersionedEntity There are some fields marked by@Column(insertable = false, updatable = false). Those fields are automatically generated by database from json field, therefore marked as non-insertable and non-updatable to instruct hibernate.- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.keycloak.models.map.lock.MapLockEntityMapLockEntity.AbstractLockEntity, MapLockEntity.SearchableFields
 - 
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntityUpdatableEntity.Impl
 
- 
 - 
Field Summary- 
Fields inherited from class org.keycloak.models.map.common.UpdatableEntity.Implupdated
 
- 
 - 
Constructor SummaryConstructors Constructor Description JpaLockEntity()No-argument constructor, used by hibernate to instantiate entities.JpaLockEntity(UUID id, int version, Integer entityVersion, String name)JpaLockEntity(DeepCloner cloner)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)IntegergetCurrentSchemaVersion()IntegergetEntityVersion()StringgetId()StringgetKeycloakInstanceIdentifier()StringgetName()LonggetTimeAcquired()intgetVersion()Version of the JPA entity used for optimistic lockinginthashCode()booleanisMetadataInitialized()voidsetEntityVersion(Integer entityVersion)voidsetId(String id)voidsetKeycloakInstanceIdentifier(String keycloakInstanceIdentifier)voidsetName(String name)voidsetTimeAcquired(Long timeAcquired)- 
Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.ImplclearUpdatedFlag, isUpdated
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.map.storage.jpa.JpaRootEntityupdateEntityVersion
 - 
Methods inherited from interface org.keycloak.models.map.lock.MapLockEntityisLockUnchanged
 - 
Methods inherited from interface org.keycloak.models.map.common.UpdatableEntityclearUpdatedFlag, isUpdated
 
- 
 
- 
- 
- 
Constructor Detail- 
JpaLockEntitypublic JpaLockEntity() No-argument constructor, used by hibernate to instantiate entities.
 - 
JpaLockEntitypublic JpaLockEntity(DeepCloner cloner) 
 
- 
 - 
Method Detail- 
isMetadataInitializedpublic boolean isMetadataInitialized() 
 - 
getEntityVersionpublic Integer getEntityVersion() - Specified by:
- getEntityVersionin interface- JpaRootEntity
- Returns:
- current supported version of the JPA entity used for schema versioning.
 
 - 
getCurrentSchemaVersionpublic Integer getCurrentSchemaVersion() - Specified by:
- getCurrentSchemaVersionin interface- JpaRootEntity
 
 - 
setEntityVersionpublic void setEntityVersion(Integer entityVersion) - Specified by:
- setEntityVersionin interface- JpaRootEntity
- Parameters:
- entityVersion- sets current supported version to JPA entity.
 
 - 
getVersionpublic int getVersion() Description copied from interface:JpaRootVersionedEntityVersion of the JPA entity used for optimistic locking- Specified by:
- getVersionin interface- JpaRootVersionedEntity
 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- AbstractEntity
- Overrides:
- getIdin class- MapLockEntity.AbstractLockEntity
 
 - 
setIdpublic void setId(String id) - Specified by:
- setIdin interface- AbstractEntity
- Overrides:
- setIdin class- MapLockEntity.AbstractLockEntity
 
 - 
getNamepublic String getName() - Specified by:
- getNamein interface- MapLockEntity
 
 - 
setNamepublic void setName(String name) - Specified by:
- setNamein interface- MapLockEntity
 
 - 
getKeycloakInstanceIdentifierpublic String getKeycloakInstanceIdentifier() - Specified by:
- getKeycloakInstanceIdentifierin interface- MapLockEntity
 
 - 
setKeycloakInstanceIdentifierpublic void setKeycloakInstanceIdentifier(String keycloakInstanceIdentifier) - Specified by:
- setKeycloakInstanceIdentifierin interface- MapLockEntity
 
 - 
getTimeAcquiredpublic Long getTimeAcquired() - Specified by:
- getTimeAcquiredin interface- MapLockEntity
 
 - 
setTimeAcquiredpublic void setTimeAcquired(Long timeAcquired) - Specified by:
- setTimeAcquiredin interface- MapLockEntity
 
 
- 
 
-