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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.authorization.entity.MapScopeEntity
MapScopeEntity.AbstractMapScopeEntity
-
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 JpaScopeEntity()No-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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)IntegergetCurrentSchemaVersion()StringgetDisplayName()IntegergetEntityVersion()StringgetIconUri()StringgetId()StringgetName()StringgetRealmId()StringgetResourceServerId()intgetVersion()Version of the JPA entity used for optimistic lockinginthashCode()booleanisMetadataInitialized()voidsetDisplayName(String displayName)voidsetEntityVersion(Integer entityVersion)voidsetIconUri(String iconUri)voidsetId(String id)voidsetName(String name)voidsetRealmId(String realmId)voidsetResourceServerId(String resourceServerId)-
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
-
JpaScopeEntity
public JpaScopeEntity()
No-argument constructor, used by hibernate to instantiate entities.
-
JpaScopeEntity
public JpaScopeEntity(DeepCloner cloner)
-
-
Method Detail
-
isMetadataInitialized
public boolean isMetadataInitialized()
-
getEntityVersion
public Integer getEntityVersion()
- Specified by:
getEntityVersionin interfaceJpaRootEntity- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
public void setEntityVersion(Integer entityVersion)
- Specified by:
setEntityVersionin interfaceJpaRootEntity- Parameters:
entityVersion- sets current supported version to JPA entity.
-
getCurrentSchemaVersion
public Integer 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
public String getId()
- Specified by:
getIdin interfaceAbstractEntity- Overrides:
getIdin classMapScopeEntity.AbstractMapScopeEntity
-
setId
public void setId(String id)
- Specified by:
setIdin interfaceAbstractEntity- Overrides:
setIdin classMapScopeEntity.AbstractMapScopeEntity
-
getRealmId
public String getRealmId()
- Specified by:
getRealmIdin interfaceMapScopeEntity
-
setRealmId
public void setRealmId(String realmId)
- Specified by:
setRealmIdin interfaceMapScopeEntity
-
getResourceServerId
public String getResourceServerId()
- Specified by:
getResourceServerIdin interfaceMapScopeEntity
-
setResourceServerId
public void setResourceServerId(String resourceServerId)
- Specified by:
setResourceServerIdin interfaceMapScopeEntity
-
getName
public String getName()
- Specified by:
getNamein interfaceMapScopeEntity
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceMapScopeEntity
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceMapScopeEntity
-
setDisplayName
public void setDisplayName(String displayName)
- Specified by:
setDisplayNamein interfaceMapScopeEntity
-
getIconUri
public String getIconUri()
- Specified by:
getIconUriin interfaceMapScopeEntity
-
setIconUri
public void setIconUri(String iconUri)
- Specified by:
setIconUriin interfaceMapScopeEntity
-
-