Package jetbrains.buildServer.users.impl
Class BasePropertyUpdater<IDType>
- java.lang.Object
-
- jetbrains.buildServer.users.impl.BasePropertyUpdater<IDType>
-
- All Implemented Interfaces:
PropertyUpdater<IDType>
- Direct Known Subclasses:
UserGroupPropertyUpdater
,UserPropertyUpdater
public abstract class BasePropertyUpdater<IDType> extends Object implements PropertyUpdater<IDType>
- Author:
- Maxim.Manuylov Date: 18.09.2014
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BasePropertyUpdater(SQLRunnerEx sqlRunner, String propertyTableName, String idFieldName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
deleteProperty(IDType id, PropertyKey propertyKey)
protected abstract Pair<String,Object[]>
getInsertQueryWithParams(IDType id, String key, UnicodeString unicode)
protected abstract Pair<String,Object[]>
getUpdateQueryWithParams(IDType id, String key, UnicodeString unicode)
void
setProperties(IDType id, Map<? extends PropertyKey,String> properties)
void
setProperty(IDType id, PropertyKey propertyKey, String value)
-
-
-
Constructor Detail
-
BasePropertyUpdater
protected BasePropertyUpdater(@NotNull SQLRunnerEx sqlRunner, @NotNull String propertyTableName, @NotNull String idFieldName)
-
-
Method Detail
-
setProperties
public void setProperties(@NotNull IDType id, @NotNull Map<? extends PropertyKey,String> properties)
- Specified by:
setProperties
in interfacePropertyUpdater<IDType>
-
setProperty
public void setProperty(@NotNull IDType id, @NotNull PropertyKey propertyKey, String value)
- Specified by:
setProperty
in interfacePropertyUpdater<IDType>
-
deleteProperty
public void deleteProperty(@NotNull IDType id, @NotNull PropertyKey propertyKey)
- Specified by:
deleteProperty
in interfacePropertyUpdater<IDType>
-
getUpdateQueryWithParams
@NotNull protected abstract Pair<String,Object[]> getUpdateQueryWithParams(@NotNull IDType id, @NotNull String key, @NotNull UnicodeString unicode)
-
-