25.02.2015 Views

Introducing Spring Framework

Introducing Spring Framework

Introducing Spring Framework

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 16 ■ Messaging with Your <strong>Spring</strong> Application<br />

join types t<br />

on d.typeId = t.typeId<br />

<br />

<br />

<br />

<br />

select d.documentId, d.name, d.location, d.description as doc_desc,<br />

d.typeId, d.created, d.modified,<br />

t.name as type_name, t.description as type_desc, t.extension from<br />

documents d<br />

join types t<br />

on d.typeId = t.typeId<br />

where d.documentId = ?<br />

<br />

<br />

<br />

<br />

select d.documentId, d.name, d.location, d.description as doc_desc,<br />

d.typeId, d.created, d.modified,<br />

t.name as type_name, t.description as type_desc, t.extension from<br />

documents d<br />

join types t<br />

on d.typeId = t.typeId<br />

where t.name = ?<br />

<br />

<br />

<br />

<br />

insert into documents (documentId,name,location,description, typeId,<br />

created, modified)<br />

values (?,?,?,?,?,?,?)<br />

<br />

<br />

<br />

<br />

update documents set name = ?, location = ?, description = ?, typeId =<br />

?,modified = ?<br />

where documentId = ?<br />

<br />

<br />

<br />

<br />

delete from documents<br />

where documentId = ?<br />

<br />

<br />

<br />

<br />

<br />

<br />

222

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!