and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
id
, artist, album, title, `comment`, `year`, track, disc_no, composer, artist_sort,
`file`, lastDir, isDir, bitRate, sampleRate, noOfSamples, channelCount, encodingType,
durationAsDouble, lossless, variableBitRate, md5
id
, artist, album, title, `comment`, `year`, track, disc_no, composer, artist_sort,
isDir, bitRate, sampleRate, noOfSamples, channelCount, encodingType,
durationAsDouble, lossless, variableBitRate, md5
delete
from music_data
where id = #{id,jdbcType=INTEGER}
delete from music_data
insert into music_data (artist, album, title,
`comment`, `year`, track,
disc_no, composer, artist_sort,
`file`, lastDir, isDir,
bitRate, sampleRate, noOfSamples,
channelCount, encodingType, durationAsDouble,
lossless, variableBitRate, md5)
values (#{artist,jdbcType=VARCHAR}, #{album,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
#{comment,jdbcType=VARCHAR}, #{year,jdbcType=VARCHAR}, #{track,jdbcType=VARCHAR},
#{discNo,jdbcType=VARCHAR}, #{composer,jdbcType=VARCHAR}, #{artistSort,jdbcType=VARCHAR},
#{file,jdbcType=VARCHAR}, #{lastdir,jdbcType=VARCHAR}, #{isdir,jdbcType=INTEGER},
#{bitrate,jdbcType=INTEGER}, #{samplerate,jdbcType=INTEGER}, #{noofsamples,jdbcType=BIGINT},
#{channelcount,jdbcType=INTEGER}, #{encodingtype,jdbcType=VARCHAR}, #{durationasdouble,jdbcType=DOUBLE},
#{lossless,jdbcType=INTEGER}, #{variablebitrate,jdbcType=INTEGER}, #{md5,jdbcType=VARCHAR})
insert into music_data
artist,
album,
title,
`comment`,
`year`,
track,
disc_no,
composer,
artist_sort,
`file`,
lastDir,
isDir,
bitRate,
sampleRate,
noOfSamples,
channelCount,
encodingType,
durationAsDouble,
lossless,
variableBitRate,
md5,
#{artist,jdbcType=VARCHAR},
#{album,jdbcType=VARCHAR},
#{title,jdbcType=VARCHAR},
#{comment,jdbcType=VARCHAR},
#{year,jdbcType=VARCHAR},
#{track,jdbcType=VARCHAR},
#{discNo,jdbcType=VARCHAR},
#{composer,jdbcType=VARCHAR},
#{artistSort,jdbcType=VARCHAR},
#{file,jdbcType=VARCHAR},
#{lastdir,jdbcType=VARCHAR},
#{isdir,jdbcType=INTEGER},
#{bitrate,jdbcType=INTEGER},
#{samplerate,jdbcType=INTEGER},
#{noofsamples,jdbcType=BIGINT},
#{channelcount,jdbcType=INTEGER},
#{encodingtype,jdbcType=VARCHAR},
#{durationasdouble,jdbcType=DOUBLE},
#{lossless,jdbcType=INTEGER},
#{variablebitrate,jdbcType=INTEGER},
#{md5,jdbcType=VARCHAR},
update music_data
id = #{record.id,jdbcType=INTEGER},
artist = #{record.artist,jdbcType=VARCHAR},
album = #{record.album,jdbcType=VARCHAR},
title = #{record.title,jdbcType=VARCHAR},
`comment` = #{record.comment,jdbcType=VARCHAR},
`year` = #{record.year,jdbcType=VARCHAR},
track = #{record.track,jdbcType=VARCHAR},
disc_no = #{record.discNo,jdbcType=VARCHAR},
composer = #{record.composer,jdbcType=VARCHAR},
artist_sort = #{record.artistSort,jdbcType=VARCHAR},
`file` = #{record.file,jdbcType=VARCHAR},
lastDir = #{record.lastdir,jdbcType=VARCHAR},
isDir = #{record.isdir,jdbcType=INTEGER},
bitRate = #{record.bitrate,jdbcType=INTEGER},
sampleRate = #{record.samplerate,jdbcType=INTEGER},
noOfSamples = #{record.noofsamples,jdbcType=BIGINT},
channelCount = #{record.channelcount,jdbcType=INTEGER},
encodingType = #{record.encodingtype,jdbcType=VARCHAR},
durationAsDouble = #{record.durationasdouble,jdbcType=DOUBLE},
lossless = #{record.lossless,jdbcType=INTEGER},
variableBitRate = #{record.variablebitrate,jdbcType=INTEGER},
md5 = #{record.md5,jdbcType=VARCHAR},
update music_data
set id = #{record.id,jdbcType=INTEGER},
artist = #{record.artist,jdbcType=VARCHAR},
album = #{record.album,jdbcType=VARCHAR},
title = #{record.title,jdbcType=VARCHAR},
`comment` = #{record.comment,jdbcType=VARCHAR},
`year` = #{record.year,jdbcType=VARCHAR},
track = #{record.track,jdbcType=VARCHAR},
disc_no = #{record.discNo,jdbcType=VARCHAR},
composer = #{record.composer,jdbcType=VARCHAR},
artist_sort = #{record.artistSort,jdbcType=VARCHAR},
`file` = #{record.file,jdbcType=VARCHAR},
lastDir = #{record.lastdir,jdbcType=VARCHAR},
isDir = #{record.isdir,jdbcType=INTEGER},
bitRate = #{record.bitrate,jdbcType=INTEGER},
sampleRate = #{record.samplerate,jdbcType=INTEGER},
noOfSamples = #{record.noofsamples,jdbcType=BIGINT},
channelCount = #{record.channelcount,jdbcType=INTEGER},
encodingType = #{record.encodingtype,jdbcType=VARCHAR},
durationAsDouble = #{record.durationasdouble,jdbcType=DOUBLE},
lossless = #{record.lossless,jdbcType=INTEGER},
variableBitRate = #{record.variablebitrate,jdbcType=INTEGER},
md5 = #{record.md5,jdbcType=VARCHAR}
update music_data
artist = #{artist,jdbcType=VARCHAR},
album = #{album,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
`comment` = #{comment,jdbcType=VARCHAR},
`year` = #{year,jdbcType=VARCHAR},
track = #{track,jdbcType=VARCHAR},
disc_no = #{discNo,jdbcType=VARCHAR},
composer = #{composer,jdbcType=VARCHAR},
artist_sort = #{artistSort,jdbcType=VARCHAR},
`file` = #{file,jdbcType=VARCHAR},
lastDir = #{lastdir,jdbcType=VARCHAR},
isDir = #{isdir,jdbcType=INTEGER},
bitRate = #{bitrate,jdbcType=INTEGER},
sampleRate = #{samplerate,jdbcType=INTEGER},
noOfSamples = #{noofsamples,jdbcType=BIGINT},
channelCount = #{channelcount,jdbcType=INTEGER},
encodingType = #{encodingtype,jdbcType=VARCHAR},
durationAsDouble = #{durationasdouble,jdbcType=DOUBLE},
lossless = #{lossless,jdbcType=INTEGER},
variableBitRate = #{variablebitrate,jdbcType=INTEGER},
md5 = #{md5,jdbcType=VARCHAR},
where id = #{id,jdbcType=INTEGER}
update music_data
set artist = #{artist,jdbcType=VARCHAR},
album = #{album,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
`comment` = #{comment,jdbcType=VARCHAR},
`year` = #{year,jdbcType=VARCHAR},
track = #{track,jdbcType=VARCHAR},
disc_no = #{discNo,jdbcType=VARCHAR},
composer = #{composer,jdbcType=VARCHAR},
artist_sort = #{artistSort,jdbcType=VARCHAR},
`file` = #{file,jdbcType=VARCHAR},
lastDir = #{lastdir,jdbcType=VARCHAR},
isDir = #{isdir,jdbcType=INTEGER},
bitRate = #{bitrate,jdbcType=INTEGER},
sampleRate = #{samplerate,jdbcType=INTEGER},
noOfSamples = #{noofsamples,jdbcType=BIGINT},
channelCount = #{channelcount,jdbcType=INTEGER},
encodingType = #{encodingtype,jdbcType=VARCHAR},
durationAsDouble = #{durationasdouble,jdbcType=DOUBLE},
lossless = #{lossless,jdbcType=INTEGER},
variableBitRate = #{variablebitrate,jdbcType=INTEGER},
md5 = #{md5,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
TRUNCATE `web_tools`.`music_data`;