Class JpaUserConsentEntity
java.lang.Object
org.keycloak.models.map.common.UpdatableEntity.Impl
org.keycloak.models.map.storage.jpa.user.entity.JpaUserConsentEntity
- All Implemented Interfaces:
Serializable,AbstractEntity,UpdatableEntity,JpaChildEntity<JpaUserEntity>,JpaRootEntity,MapUserConsentEntity
@Entity
public class JpaUserConsentEntity
extends UpdatableEntity.Impl
implements MapUserConsentEntity, JpaRootEntity, JpaChildEntity<JpaUserEntity>
JPA
MapUserConsentEntity implementation. Some fields are annotated with @Column(insertable = false, updatable = false)
to indicate that they are automatically generated from json fields. As such, these fields are non-insertable and non-updatable.- Author:
- Stefan Guilhen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntity
UpdatableEntity.Impl -
Field Summary
Fields inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
updated -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGrantedClientScopesId(String scope) booleangetId()Parent entity that should get its optimistic locking version updated upon changes in the childinthashCode()booleanvoidremoveGrantedClientScopesId(String scopes) voidsetClientId(String clientId) voidsetCreatedDate(Long createdDate) voidsetEntityVersion(Integer version) voidsetGrantedClientScopesIds(Set<String> scopesIds) voidvoidsetLastUpdatedDate(Long lastUpdatedDate) voidsetParent(JpaUserEntity root) Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
clearUpdatedFlag, isUpdated, markUpdatedFlagMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.map.storage.jpa.JpaRootEntity
updateEntityVersionMethods inherited from interface org.keycloak.models.map.common.UpdatableEntity
clearUpdatedFlag, isUpdated, markUpdatedFlag
-
Constructor Details
-
JpaUserConsentEntity
public JpaUserConsentEntity() -
JpaUserConsentEntity
-
-
Method Details
-
isMetadataInitialized
public boolean isMetadataInitialized() -
getEntityVersion
- Specified by:
getEntityVersionin interfaceJpaRootEntity- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
- Specified by:
setEntityVersionin interfaceJpaRootEntity- Parameters:
version- sets current supported version to JPA entity.
-
getParent
Description copied from interface:JpaChildEntityParent entity that should get its optimistic locking version updated upon changes in the child- Specified by:
getParentin interfaceJpaChildEntity<JpaUserEntity>
-
setParent
-
getId
- Specified by:
getIdin interfaceAbstractEntity
-
setId
- Specified by:
setIdin interfaceAbstractEntity
-
getCurrentSchemaVersion
- Specified by:
getCurrentSchemaVersionin interfaceJpaRootEntity
-
getClientId
- Specified by:
getClientIdin interfaceMapUserConsentEntity
-
setClientId
- Specified by:
setClientIdin interfaceMapUserConsentEntity
-
getGrantedClientScopesIds
- Specified by:
getGrantedClientScopesIdsin interfaceMapUserConsentEntity
-
addGrantedClientScopesId
- Specified by:
addGrantedClientScopesIdin interfaceMapUserConsentEntity
-
setGrantedClientScopesIds
- Specified by:
setGrantedClientScopesIdsin interfaceMapUserConsentEntity
-
removeGrantedClientScopesId
- Specified by:
removeGrantedClientScopesIdin interfaceMapUserConsentEntity
-
getCreatedDate
- Specified by:
getCreatedDatein interfaceMapUserConsentEntity
-
setCreatedDate
- Specified by:
setCreatedDatein interfaceMapUserConsentEntity
-
getLastUpdatedDate
- Specified by:
getLastUpdatedDatein interfaceMapUserConsentEntity
-
setLastUpdatedDate
- Specified by:
setLastUpdatedDatein interfaceMapUserConsentEntity
-
hashCode
public int hashCode() -
equals
-