Class JpaUserLoginFailureEntity
- java.lang.Object
-
- org.keycloak.models.map.common.UpdatableEntity.Impl
-
- org.keycloak.models.map.loginFailure.MapUserLoginFailureEntity.AbstractUserLoginFailureEntity
-
- org.keycloak.models.map.storage.jpa.loginFailure.entity.JpaUserLoginFailureEntity
-
- All Implemented Interfaces:
Serializable
,AbstractEntity
,UpdatableEntity
,MapUserLoginFailureEntity
,JpaRootEntity
,JpaRootVersionedEntity
@Entity public class JpaUserLoginFailureEntity extends MapUserLoginFailureEntity.AbstractUserLoginFailureEntity implements JpaRootVersionedEntity
JPAMapUserLoginFailureEntity
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.loginFailure.MapUserLoginFailureEntity
MapUserLoginFailureEntity.AbstractUserLoginFailureEntity
-
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 JpaUserLoginFailureEntity()
No-argument constructor, used by hibernate to instantiate entities.JpaUserLoginFailureEntity(UUID id, int version, Integer entityVersion, String realmId, String userId)
Used by hibernate when calling cb.construct from read(QueryParameters) method.JpaUserLoginFailureEntity(DeepCloner cloner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Integer
getCurrentSchemaVersion()
Integer
getEntityVersion()
Long
getFailedLoginNotBefore()
String
getId()
Long
getLastFailure()
String
getLastIPFailure()
Integer
getNumFailures()
String
getRealmId()
String
getUserId()
int
getVersion()
Version of the JPA entity used for optimistic lockingint
hashCode()
boolean
isMetadataInitialized()
void
setEntityVersion(Integer entityVersion)
void
setFailedLoginNotBefore(Long failedLoginNotBefore)
void
setId(String id)
void
setLastFailure(Long lastFailure)
void
setLastIPFailure(String lastIPFailure)
void
setNumFailures(Integer numFailures)
void
setRealmId(String realmId)
void
setUserId(String userId)
-
Methods inherited from class org.keycloak.models.map.loginFailure.MapUserLoginFailureEntity.AbstractUserLoginFailureEntity
clearFailures
-
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
-
JpaUserLoginFailureEntity
public JpaUserLoginFailureEntity()
No-argument constructor, used by hibernate to instantiate entities.
-
JpaUserLoginFailureEntity
public JpaUserLoginFailureEntity(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 entityVersion)
- Specified by:
setEntityVersion
in interfaceJpaRootEntity
- Parameters:
entityVersion
- sets current supported version to JPA entity.
-
getCurrentSchemaVersion
public Integer getCurrentSchemaVersion()
- Specified by:
getCurrentSchemaVersion
in interfaceJpaRootEntity
-
getVersion
public int getVersion()
Description copied from interface:JpaRootVersionedEntity
Version of the JPA entity used for optimistic locking- Specified by:
getVersion
in interfaceJpaRootVersionedEntity
-
getId
public String getId()
- Specified by:
getId
in interfaceAbstractEntity
- Overrides:
getId
in classMapUserLoginFailureEntity.AbstractUserLoginFailureEntity
-
setId
public void setId(String id)
- Specified by:
setId
in interfaceAbstractEntity
- Overrides:
setId
in classMapUserLoginFailureEntity.AbstractUserLoginFailureEntity
-
getRealmId
public String getRealmId()
- Specified by:
getRealmId
in interfaceMapUserLoginFailureEntity
-
setRealmId
public void setRealmId(String realmId)
- Specified by:
setRealmId
in interfaceMapUserLoginFailureEntity
-
getUserId
public String getUserId()
- Specified by:
getUserId
in interfaceMapUserLoginFailureEntity
-
setUserId
public void setUserId(String userId)
- Specified by:
setUserId
in interfaceMapUserLoginFailureEntity
-
getFailedLoginNotBefore
public Long getFailedLoginNotBefore()
- Specified by:
getFailedLoginNotBefore
in interfaceMapUserLoginFailureEntity
-
setFailedLoginNotBefore
public void setFailedLoginNotBefore(Long failedLoginNotBefore)
- Specified by:
setFailedLoginNotBefore
in interfaceMapUserLoginFailureEntity
-
getNumFailures
public Integer getNumFailures()
- Specified by:
getNumFailures
in interfaceMapUserLoginFailureEntity
-
setNumFailures
public void setNumFailures(Integer numFailures)
- Specified by:
setNumFailures
in interfaceMapUserLoginFailureEntity
-
getLastFailure
public Long getLastFailure()
- Specified by:
getLastFailure
in interfaceMapUserLoginFailureEntity
-
setLastFailure
public void setLastFailure(Long lastFailure)
- Specified by:
setLastFailure
in interfaceMapUserLoginFailureEntity
-
getLastIPFailure
public String getLastIPFailure()
- Specified by:
getLastIPFailure
in interfaceMapUserLoginFailureEntity
-
setLastIPFailure
public void setLastIPFailure(String lastIPFailure)
- Specified by:
setLastIPFailure
in interfaceMapUserLoginFailureEntity
-
-