Package pro.taskana.common.internal
Interface ConfigurationMapper
-
public interface ConfigurationMapper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>getAllCustomAttributes(boolean lockForUpdate)BooleanisSecurityEnabled(boolean lockForUpdate)voidsetAllCustomAttributes(Map<String,?> customAttributes)voidsetSecurityEnabled(boolean securityEnabled)
-
-
-
Method Detail
-
isSecurityEnabled
@Select("<script> SELECT ENFORCE_SECURITY FROM CONFIGURATION <if test=\'lockForUpdate == true\'>FETCH FIRST ROW ONLY FOR UPDATE <if test=\"_databaseId == \'db2\'\">WITH RS USE AND KEEP UPDATE LOCKS </if> </if></script>") Boolean isSecurityEnabled(boolean lockForUpdate)
-
setSecurityEnabled
@Update("UPDATE CONFIGURATION SET ENFORCE_SECURITY = #{securityEnabled} WHERE NAME = \'MASTER\'") void setSecurityEnabled(@Param("securityEnabled") boolean securityEnabled)
-
getAllCustomAttributes
@Select("<script> SELECT CUSTOM_ATTRIBUTES FROM CONFIGURATION <if test=\'lockForUpdate == true\'>FETCH FIRST ROW ONLY FOR UPDATE <if test=\"_databaseId == \'db2\'\">WITH RS USE AND KEEP UPDATE LOCKS </if> </if></script>") Map<String,Object> getAllCustomAttributes(boolean lockForUpdate)
-
-