Class JpaScopeEntity
java.lang.Object
org.keycloak.models.map.common.UpdatableEntity.Impl
org.keycloak.models.map.authorization.entity.MapScopeEntity.AbstractMapScopeEntity
org.keycloak.models.map.storage.jpa.authorization.scope.entity.JpaScopeEntity
- All Implemented Interfaces:
Serializable,MapScopeEntity,AbstractEntity,UpdatableEntity,JpaRootEntity,JpaRootVersionedEntity
@Entity
public class JpaScopeEntity
extends MapScopeEntity.AbstractMapScopeEntity
implements JpaRootVersionedEntity
There are some fields marked by
@Column(insertable = false, updatable = false).
Those fields are automatically generated by database from json field,
therefore marked as non-insertable and non-updatable to instruct hibernate.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.map.authorization.entity.MapScopeEntity
MapScopeEntity.AbstractMapScopeEntityNested 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.JpaScopeEntity(UUID id, int version, Integer entityVersion, String realmId, UUID resourceServerId, String name) Used by hibernate when calling cb.construct from read(QueryParameters) method.JpaScopeEntity(DeepCloner cloner) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()getName()intVersion of the JPA entity used for optimistic lockinginthashCode()booleanvoidsetDisplayName(String displayName) voidsetEntityVersion(Integer entityVersion) voidsetIconUri(String iconUri) voidvoidvoidsetRealmId(String realmId) voidsetResourceServerId(String resourceServerId) 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
-
JpaScopeEntity
public JpaScopeEntity()No-argument constructor, used by hibernate to instantiate entities. -
JpaScopeEntity
-
JpaScopeEntity
public JpaScopeEntity(UUID id, int version, Integer entityVersion, String realmId, UUID resourceServerId, String name) Used by hibernate when calling cb.construct from read(QueryParameters) method. It is used to select object without metadata(json) field.
-
-
Method Details
-
isMetadataInitialized
public boolean isMetadataInitialized() -
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.
-
getCurrentSchemaVersion
- Specified by:
getCurrentSchemaVersionin interfaceJpaRootEntity
-
getVersion
public int getVersion()Description copied from interface:JpaRootVersionedEntityVersion of the JPA entity used for optimistic locking- Specified by:
getVersionin interfaceJpaRootVersionedEntity
-
getId
- Specified by:
getIdin interfaceAbstractEntity- Overrides:
getIdin classMapScopeEntity.AbstractMapScopeEntity
-
setId
- Specified by:
setIdin interfaceAbstractEntity- Overrides:
setIdin classMapScopeEntity.AbstractMapScopeEntity
-
getRealmId
- Specified by:
getRealmIdin interfaceMapScopeEntity
-
setRealmId
- Specified by:
setRealmIdin interfaceMapScopeEntity
-
getResourceServerId
- Specified by:
getResourceServerIdin interfaceMapScopeEntity
-
setResourceServerId
- Specified by:
setResourceServerIdin interfaceMapScopeEntity
-
getName
- Specified by:
getNamein interfaceMapScopeEntity
-
setName
- Specified by:
setNamein interfaceMapScopeEntity
-
getDisplayName
- Specified by:
getDisplayNamein interfaceMapScopeEntity
-
setDisplayName
- Specified by:
setDisplayNamein interfaceMapScopeEntity
-
getIconUri
- Specified by:
getIconUriin interfaceMapScopeEntity
-
setIconUri
- Specified by:
setIconUriin interfaceMapScopeEntity
-
hashCode
public int hashCode() -
equals
-