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>
JPAMapUserFederatedIdentityEntity
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:
- Serialized Form
-
-
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 Constructor Description JpaUserFederatedIdentityEntity()
JpaUserFederatedIdentityEntity(DeepCloner cloner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Integer
getCurrentSchemaVersion()
Integer
getEntityVersion()
String
getId()
String
getIdentityProvider()
JpaUserEntity
getParent()
Parent entity that should get its optimistic locking version updated upon changes in the childString
getToken()
String
getUserId()
String
getUserName()
int
hashCode()
boolean
isMetadataInitialized()
void
setEntityVersion(Integer version)
void
setId(String id)
void
setIdentityProvider(String identityProvider)
void
setParent(JpaUserEntity root)
void
setToken(String token)
void
setUserId(String userId)
void
setUserName(String userName)
-
Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
clearUpdatedFlag, isUpdated
-
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
-
-
-
-
Constructor Detail
-
JpaUserFederatedIdentityEntity
public JpaUserFederatedIdentityEntity()
-
JpaUserFederatedIdentityEntity
public JpaUserFederatedIdentityEntity(DeepCloner cloner)
-
-
Method Detail
-
isMetadataInitialized
public boolean isMetadataInitialized()
-
getEntityVersion
public Integer getEntityVersion()
- Specified by:
getEntityVersion
in interfaceJpaRootEntity
- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
public void setEntityVersion(Integer version)
- Specified by:
setEntityVersion
in interfaceJpaRootEntity
- Parameters:
version
- sets current supported version to JPA entity.
-
getCurrentSchemaVersion
public Integer getCurrentSchemaVersion()
- Specified by:
getCurrentSchemaVersion
in interfaceJpaRootEntity
-
getParent
public JpaUserEntity 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
public void setParent(JpaUserEntity root)
-
getId
public String getId()
- Specified by:
getId
in interfaceAbstractEntity
-
setId
public void setId(String id)
- Specified by:
setId
in interfaceAbstractEntity
-
getToken
public String getToken()
- Specified by:
getToken
in interfaceMapUserFederatedIdentityEntity
-
setToken
public void setToken(String token)
- Specified by:
setToken
in interfaceMapUserFederatedIdentityEntity
-
getUserId
public String getUserId()
- Specified by:
getUserId
in interfaceMapUserFederatedIdentityEntity
-
setUserId
public void setUserId(String userId)
- Specified by:
setUserId
in interfaceMapUserFederatedIdentityEntity
-
getIdentityProvider
public String getIdentityProvider()
- Specified by:
getIdentityProvider
in interfaceMapUserFederatedIdentityEntity
-
setIdentityProvider
public void setIdentityProvider(String identityProvider)
- Specified by:
setIdentityProvider
in interfaceMapUserFederatedIdentityEntity
-
getUserName
public String getUserName()
- Specified by:
getUserName
in interfaceMapUserFederatedIdentityEntity
-
setUserName
public void setUserName(String userName)
- Specified by:
setUserName
in interfaceMapUserFederatedIdentityEntity
-
-