Class JpaSingleUseObjectEntity
java.lang.Object
org.keycloak.models.map.common.UpdatableEntity.Impl
org.keycloak.models.map.singleUseObject.MapSingleUseObjectEntity.AbstractSingleUseObjectEntity
org.keycloak.models.map.storage.jpa.singleUseObject.entity.JpaSingleUseObjectEntity
- All Implemented Interfaces:
Serializable,AbstractEntity,ExpirableEntity,UpdatableEntity,MapSingleUseObjectEntity,JpaRootEntity,JpaRootVersionedEntity
@Entity
public class JpaSingleUseObjectEntity
extends MapSingleUseObjectEntity.AbstractSingleUseObjectEntity
implements JpaRootVersionedEntity
JPA
MapSingleUseObjectEntity 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.singleUseObject.MapSingleUseObjectEntity
MapSingleUseObjectEntity.AbstractSingleUseObjectEntityNested 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
ConstructorsConstructorDescriptionNo-argument constructor, used by hibernate to instantiate entities.JpaSingleUseObjectEntity(DeepCloner cloner) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.getId()getNotes()intVersion of the JPA entity used for optimistic lockinginthashCode()booleanvoidsetEntityVersion(Integer entityVersion) voidsetExpiration(Long expiration) Sets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.voidvoidvoidvoidsetObjectKey(String objectKey) 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
-
JpaSingleUseObjectEntity
public JpaSingleUseObjectEntity()No-argument constructor, used by hibernate to instantiate entities. -
JpaSingleUseObjectEntity
-
-
Method Details
-
isMetadataInitialized
public boolean isMetadataInitialized() -
getVersion
public int getVersion()Description copied from interface:JpaRootVersionedEntityVersion of the JPA entity used for optimistic locking- Specified by:
getVersionin interfaceJpaRootVersionedEntity
-
getEntityVersion
- Specified by:
getEntityVersionin interfaceJpaRootEntity- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
- Specified by:
setEntityVersionin interfaceJpaRootEntity- Parameters:
entityVersion- sets current supported version to JPA entity.
-
getId
- Specified by:
getIdin interfaceAbstractEntity- Overrides:
getIdin classMapSingleUseObjectEntity.AbstractSingleUseObjectEntity
-
setId
- Specified by:
setIdin interfaceAbstractEntity- Overrides:
setIdin classMapSingleUseObjectEntity.AbstractSingleUseObjectEntity
-
getObjectKey
- Specified by:
getObjectKeyin interfaceMapSingleUseObjectEntity
-
setObjectKey
- Specified by:
setObjectKeyin interfaceMapSingleUseObjectEntity
-
getCurrentSchemaVersion
- Specified by:
getCurrentSchemaVersionin interfaceJpaRootEntity
-
getNotes
- Specified by:
getNotesin interfaceMapSingleUseObjectEntity
-
getNote
- Specified by:
getNotein interfaceMapSingleUseObjectEntity
-
setNotes
- Specified by:
setNotesin interfaceMapSingleUseObjectEntity
-
setNote
- Specified by:
setNotein interfaceMapSingleUseObjectEntity
-
getExpiration
Description copied from interface:ExpirableEntityReturns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.- Specified by:
getExpirationin interfaceExpirableEntity- Returns:
- a timestamp in milliseconds since The Epoch or
nullif this entity never expires or expiration is not known.
-
setExpiration
Description copied from interface:ExpirableEntitySets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.- Specified by:
setExpirationin interfaceExpirableEntity- Parameters:
expiration- a timestamp in milliseconds since The Epoch ornullif this entity never expires.
-
hashCode
public int hashCode() -
equals
-