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 JPAMapSingleUseObjectEntityimplementation. 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.singleUseObject.MapSingleUseObjectEntityMapSingleUseObjectEntity.AbstractSingleUseObjectEntity
 - 
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntityUpdatableEntity.Impl
 
- 
 - 
Field Summary- 
Fields inherited from class org.keycloak.models.map.common.UpdatableEntity.Implupdated
 
- 
 - 
Constructor SummaryConstructors Constructor Description JpaSingleUseObjectEntity()No-argument constructor, used by hibernate to instantiate entities.JpaSingleUseObjectEntity(DeepCloner cloner)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)IntegergetCurrentSchemaVersion()IntegergetEntityVersion()LonggetExpiration()Returns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.StringgetId()StringgetNote(String name)Map<String,String>getNotes()StringgetObjectKey()intgetVersion()Version of the JPA entity used for optimistic lockinginthashCode()booleanisMetadataInitialized()voidsetEntityVersion(Integer entityVersion)voidsetExpiration(Long expiration)Sets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.voidsetId(String id)voidsetNote(String name, String value)voidsetNotes(Map<String,String> notes)voidsetObjectKey(String objectKey)- 
Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.ImplclearUpdatedFlag, isUpdated
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.map.storage.jpa.JpaRootEntityupdateEntityVersion
 - 
Methods inherited from interface org.keycloak.models.map.common.UpdatableEntityclearUpdatedFlag, isUpdated
 
- 
 
- 
- 
- 
Constructor Detail- 
JpaSingleUseObjectEntitypublic JpaSingleUseObjectEntity() No-argument constructor, used by hibernate to instantiate entities.
 - 
JpaSingleUseObjectEntitypublic JpaSingleUseObjectEntity(DeepCloner cloner) 
 
- 
 - 
Method Detail- 
isMetadataInitializedpublic boolean isMetadataInitialized() 
 - 
getVersionpublic int getVersion() Description copied from interface:JpaRootVersionedEntityVersion of the JPA entity used for optimistic locking- Specified by:
- getVersionin interface- JpaRootVersionedEntity
 
 - 
getEntityVersionpublic Integer getEntityVersion() - Specified by:
- getEntityVersionin interface- JpaRootEntity
- Returns:
- current supported version of the JPA entity used for schema versioning.
 
 - 
setEntityVersionpublic void setEntityVersion(Integer entityVersion) - Specified by:
- setEntityVersionin interface- JpaRootEntity
- Parameters:
- entityVersion- sets current supported version to JPA entity.
 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- AbstractEntity
- Overrides:
- getIdin class- MapSingleUseObjectEntity.AbstractSingleUseObjectEntity
 
 - 
setIdpublic void setId(String id) - Specified by:
- setIdin interface- AbstractEntity
- Overrides:
- setIdin class- MapSingleUseObjectEntity.AbstractSingleUseObjectEntity
 
 - 
getObjectKeypublic String getObjectKey() - Specified by:
- getObjectKeyin interface- MapSingleUseObjectEntity
 
 - 
setObjectKeypublic void setObjectKey(String objectKey) - Specified by:
- setObjectKeyin interface- MapSingleUseObjectEntity
 
 - 
getCurrentSchemaVersionpublic Integer getCurrentSchemaVersion() - Specified by:
- getCurrentSchemaVersionin interface- JpaRootEntity
 
 - 
getNotespublic Map<String,String> getNotes() - Specified by:
- getNotesin interface- MapSingleUseObjectEntity
 
 - 
getNotepublic String getNote(String name) - Specified by:
- getNotein interface- MapSingleUseObjectEntity
 
 - 
setNotespublic void setNotes(Map<String,String> notes) - Specified by:
- setNotesin interface- MapSingleUseObjectEntity
 
 - 
setNotepublic void setNote(String name, String value) - Specified by:
- setNotein interface- MapSingleUseObjectEntity
 
 - 
getExpirationpublic Long getExpiration() Description copied from interface:ExpirableEntityReturns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.- Specified by:
- getExpirationin interface- ExpirableEntity
- Returns:
- a timestamp in milliseconds since The Epoch or nullif this entity never expires or expiration is not known.
 
 - 
setExpirationpublic void setExpiration(Long expiration) Description copied from interface:ExpirableEntitySets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.- Specified by:
- setExpirationin interface- ExpirableEntity
- Parameters:
- expiration- a timestamp in milliseconds since The Epoch or- nullif this entity never expires.
 
 
- 
 
-