Class JpaUserFederatedIdentityEntity
java.lang.Object
org.keycloak.models.map.common.UpdatableEntity.Impl
org.keycloak.models.map.storage.jpa.user.entity.JpaUserFederatedIdentityEntity
- All Implemented Interfaces:
Serializable
,AbstractEntity
,UpdatableEntity
,JpaChildEntity<JpaUserEntity>
,JpaRootEntity
,MapUserFederatedIdentityEntity
@Entity
public class JpaUserFederatedIdentityEntity
extends UpdatableEntity.Impl
implements MapUserFederatedIdentityEntity, JpaRootEntity, JpaChildEntity<JpaUserEntity>
JPA
MapUserFederatedIdentityEntity
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
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
Parent entity that should get its optimistic locking version updated upon changes in the childgetToken()
int
hashCode()
boolean
void
setEntityVersion
(Integer version) void
void
setIdentityProvider
(String identityProvider) void
setParent
(JpaUserEntity root) void
void
void
setUserName
(String userName) Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
clearUpdatedFlag, isUpdated, markUpdatedFlag
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.models.map.storage.jpa.JpaRootEntity
updateEntityVersion
Methods inherited from interface org.keycloak.models.map.common.UpdatableEntity
clearUpdatedFlag, isUpdated, markUpdatedFlag
-
Constructor Details
-
JpaUserFederatedIdentityEntity
public JpaUserFederatedIdentityEntity() -
JpaUserFederatedIdentityEntity
-
-
Method Details
-
isMetadataInitialized
public boolean isMetadataInitialized() -
getEntityVersion
- Specified by:
getEntityVersion
in interfaceJpaRootEntity
- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
- Specified by:
setEntityVersion
in interfaceJpaRootEntity
- Parameters:
version
- sets current supported version to JPA entity.
-
getCurrentSchemaVersion
- Specified by:
getCurrentSchemaVersion
in interfaceJpaRootEntity
-
getParent
Description copied from interface:JpaChildEntity
Parent entity that should get its optimistic locking version updated upon changes in the child- Specified by:
getParent
in interfaceJpaChildEntity<JpaUserEntity>
-
setParent
-
getId
- Specified by:
getId
in interfaceAbstractEntity
-
setId
- Specified by:
setId
in interfaceAbstractEntity
-
getToken
- Specified by:
getToken
in interfaceMapUserFederatedIdentityEntity
-
setToken
- Specified by:
setToken
in interfaceMapUserFederatedIdentityEntity
-
getUserId
- Specified by:
getUserId
in interfaceMapUserFederatedIdentityEntity
-
setUserId
- Specified by:
setUserId
in interfaceMapUserFederatedIdentityEntity
-
getIdentityProvider
- Specified by:
getIdentityProvider
in interfaceMapUserFederatedIdentityEntity
-
setIdentityProvider
- Specified by:
setIdentityProvider
in interfaceMapUserFederatedIdentityEntity
-
getUserName
- Specified by:
getUserName
in interfaceMapUserFederatedIdentityEntity
-
setUserName
- Specified by:
setUserName
in interfaceMapUserFederatedIdentityEntity
-
hashCode
public int hashCode() -
equals
-