<commit_before>package fi.nls.oskari.map.userlayer.service;

import fi.nls.oskari.domain.map.userlayer.UserLayer;
import fi.nls.oskari.service.ServiceException;
import fi.nls.oskari.service.db.BaseService;

import java.util.List;

public interface UserLayerDbService extends BaseService<UserLayer> {

        public long insertUserLayerRow(final UserLayer userlayer );
        public int updateUserLayerCols(final UserLayer userlayer);
        public UserLayer getUserLayerById(long id);
        public List<UserLayer> getUserLayerByUid(String uid);
        public void deleteUserLayerById(final long id) throws ServiceException;
        public void deleteUserLayer(final UserLayer userlayer) throws ServiceException;
        public void deleteUserLayer(final long id) throws ServiceException;
        public int updatePublisherName(final long id, final String uuid, final String name);
}<commit_msg>edited userlayerdbservice to be suitable for mybatis implementation<commit_after>package fi.nls.oskari.map.userlayer.service;

import fi.nls.oskari.domain.map.userlayer.UserLayer;
import fi.nls.oskari.domain.map.userlayer.UserLayerData;
import fi.nls.oskari.domain.map.userlayer.UserLayerStyle;
import fi.nls.oskari.service.ServiceException;

import java.util.List;

public interface UserLayerDbService {
        //UserLayer related
        public int insertUserLayer(final UserLayer userlayer, final UserLayerStyle userLayerStyle, final List <UserLayerData> userLayerDataList) throws ServiceException;
        public int updateUserLayerCols(final UserLayer userlayer);
        public UserLayer getUserLayerById(long id);
        public List<UserLayer> getUserLayerByUuid(String uuid);
        public void deleteUserLayerById(final long id) throws ServiceException;
        public void deleteUserLayer(final UserLayer userlayer) throws ServiceException;
        public void deleteUserLayersByUuid(String uuid) throws ServiceException;
        public int updatePublisherName(final long id, final String uuid, final String name);
        //UserLayerStyle related
        public int updateUserLayerStyleCols(final UserLayerStyle userLayerStyle);
        public UserLayerStyle getUserLayerStyleById(final long id);
        //UserLayerData related
        public int updateUserLayerDataCols(final UserLayerData userlayerdata);
}
{'fraction_non_alphanumeric': 0.06414119672836849, 'fraction_numerical': 0.0, 'mean_word_length': 4.668292682926829, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4158080', 'n_tokens_mistral': 621, 'n_tokens_neox': 616, 'n_words': 166}