From dna-commits at lists.jboss.org Thu Dec 3 17:10:38 2009 Content-Type: multipart/mixed; boundary="===============7867924380790735899==" MIME-Version: 1.0 From: dna-commits at lists.jboss.org To: dna-commits at lists.jboss.org Subject: [dna-commits] DNA SVN: r1392 - trunk/docs/reference/src/main/docbook/en-US/content/sequencers. Date: Thu, 03 Dec 2009 17:10:38 -0500 Message-ID: <200912032210.nB3MAcS0029158@svn01.web.mwc.hst.phx2.redhat.com> --===============7867924380790735899== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: blafond Date: 2009-12-03 17:10:38 -0500 (Thu, 03 Dec 2009) New Revision: 1392 Modified: trunk/docs/reference/src/main/docbook/en-US/content/sequencers/ddl.xml Log: DNA-49 Updated doc section and content for new DDL Sequencer to include exa= mple DDL and node properties. Modified: trunk/docs/reference/src/main/docbook/en-US/content/sequencers/dd= l.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/reference/src/main/docbook/en-US/content/sequencers/ddl.xml = 2009-12-03 22:09:38 UTC (rev 1391) +++ trunk/docs/reference/src/main/docbook/en-US/content/sequencers/ddl.xml = 2009-12-03 22:10:38 UTC (rev 1392) @@ -64,7 +64,35 @@ + + Example + Sequencing results in graph nodes basically representing the BN= F structure of each DDL statement. Below is an example DDL + schema definition statement containing table and view definition = statements. + + +CREATE SCHEMA hollywood + CREATE TABLE films (title varchar(255), release date, producerName varc= har(255)) + CREATE VIEW winners AS SELECT title, release FROM films WHERE producerN= ame IS NOT NULL; + + The resulting graph structure, shown below contains the raw sta= tement expression, pertinent table, column and key + reference information as well as critical integer position values= (line number, column number and character index) to + tie the statement back to the original DDL file. + + + + + + + + + + ]]> + + + + To use this sequencer, simply include the dna-sequencer-ddl<= /code> JAR in your application and configure the &JcrConfiguration; to use th= is sequencer using something similar to: --===============7867924380790735899==--