git-svn-id: https://svn.code.sf.net/p/jailer/code/trunk@314 3dd849cd-670e-4645-a7cd-dd197c8d0e81
This commit is contained in:
rwisser
2008-04-28 14:15:16 +00:00
parent 1ee41e2f46
commit ded174afdf
252 changed files with 8403 additions and 4354 deletions

22
admin/release.sh Normal file
View File

@@ -0,0 +1,22 @@
rm -rf ~/tmp/$1
rm -rf ~/tmp/$1.co
mkdir ~/tmp/$1
mkdir ~/tmp/$1.co
cd ~/tmp/$1.co
svn co https://jailer.svn.sf.net/svnroot/jailer/trunk_ui
cd ..
mv $1.co/trunk_ui/* $1
cd $1
cp doc/web/home.htm doc/web/index.html
rm -rf doc/htdocs
find -iname ".svn" -exec rm -rf '{}' \;
find -iname ".cvs*" -exec rm -rf '{}' \;
ant package
rm -rf admin
rm -rf out
rm svn-commit.tmp
mv datamodel.def datamodel
ls jailer.jar
cd ..
rm $1.zip
zip -r $1.zip $1

View File

@@ -1,2 +0,0 @@
cp -r /media/hda1/jailer_win/* .

View File

@@ -1,7 +0,0 @@
rm -rf ~/jailer_win/
cp -r /media/hda1/jailer_win ~/
rm -r /media/hda1/jailer_win
cp -r . /media/hda1/jailer_win
cd /media/hda1/jailer_win
find . -iname ".svn" -exec rm -r '{}' \;

View File

@@ -27,7 +27,7 @@ available targets:
<target name="compile" depends="clean">
<delete file="${JAR}"/>
<mkdir dir="${COMPILE_DIR}"/>
<javac source="5" destdir="${COMPILE_DIR}"
<javac source="5" target="5" destdir="${COMPILE_DIR}"
srcdir="${SRC_DIR}" debug="on" deprecation="off"
encoding="ISO-8859-1">
<classpath>

View File

@@ -1,3 +1,3 @@
Manifest-Version: 1.0
Main-Class: net.sf.jailer.ui.ExtractionModelFrame
Class-Path: lib/junit.jar lib/commons-logging.jar lib/log4j.jar lib/args4j.jar lib/spring.jar
Class-Path: lib/prefuse.jar lib/junit.jar lib/commons-logging.jar lib/log4j.jar lib/args4j.jar lib/spring.jar

BIN
config/all-rows.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
config/all-rows.xcf Normal file

Binary file not shown.

BIN
config/collapsed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -1,15 +0,0 @@
<aliases>
<alias name="mysql - modx">
<database url="jdbc:mysql://localhost:3306/modx"/>
<user name="root" password="gbpltw"/>
<driver class="org.gjt.mm.mysql.Driver">
<libraries>
<library url="/home/vladimir/programming/Java/Jailer/trunk/drivers/mysql-connector-java-5.1.5-bin.jar"/>
</libraries>
</driver>
</alias>
<alias name="mysql - modx with def driver">
<database url="jdbc:mysql://localhost:3306/modx"/>
<user name="root" password="gbpltw"/>
</alias>
</aliases>

View File

@@ -1,7 +0,0 @@
<drivers>
<driver class="org.gjt.mm.mysql.Driver">
<libraries>
<library url="/home/vladimir/programming/Java/Jailer/trunk/drivers/mysql-connector-java-5.1.5-bin.jar"/>
</libraries>
</driver>
</drivers>

BIN
config/database-lock.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
config/database-lock.xcf Normal file

Binary file not shown.

View File

@@ -1,3 +0,0 @@
#
#Sun Mar 02 09:36:41 MSK 2008
mysql=\#

BIN
config/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
config/jailer.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
config/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
config/subject.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

BIN
config/upsert.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
config/upsert.xcf Normal file

Binary file not shown.

View File

@@ -1 +1,2 @@
# Table A; Table B; First-insert; Cardinality; Join-condition; Name; Author
1 # Table A Table B First-insert Cardinality Join-condition Name Author
2

View File

@@ -0,0 +1,3 @@
# associations to be excluded from model-generation
# Table A (or name); Table B; first-insert; join-condition
1 # associations to be excluded from model-generation
2 # Table A (or name); Table B; first-insert; join-condition

View File

@@ -5,3 +5,4 @@ JL_ENTITY
JL_DEPENDENCY
JL_TMP
JL_DUAL
1 # tables to be excluded from DB introspection
5 JL_DEPENDENCY
6 JL_TMP
7 JL_DUAL
8

View File

@@ -1 +1,4 @@
#list of tables to be exported completely if in closure from subject
#list of tables to be exported completely if in closure from subject
# tablename
1 #list of tables to be exported completely if in closure from subject
2 # tablename
3
4

2
datamodel.def/table.csv Normal file
View File

@@ -0,0 +1,2 @@
# Name; Upsert; Primary key; ; Author
1 # Name Upsert Primary key Author

View File

@@ -1,3 +0,0 @@
# associations to be excluded from DB introspection
# Table A; Table B; first-insert; join-condition
1 # associations to be excluded from DB introspection
2 # Table A; Table B; first-insert; join-condition

View File

@@ -1,19 +0,0 @@
# Name; Upsert; Primary key; ; Author
columns_priv; N; Host CHAR(60); Db CHAR(64); User CHAR(16); Table_name CHAR(64); Column_name CHAR(64); ; MySQL-AB JDBC Driver; ;
db; N; Host CHAR(60); Db CHAR(64); User CHAR(16); ; MySQL-AB JDBC Driver; ;
func; N; name CHAR(64); ; MySQL-AB JDBC Driver; ;
help_category; N; help_category_id SMALLINT; ; MySQL-AB JDBC Driver; ;
help_keyword; N; help_keyword_id INTEGER; ; MySQL-AB JDBC Driver; ;
help_relation; N; help_keyword_id INTEGER; help_topic_id INTEGER; ; MySQL-AB JDBC Driver; ;
help_topic; N; help_topic_id INTEGER; ; MySQL-AB JDBC Driver; ;
host; N; Host CHAR(60); Db CHAR(64); ; MySQL-AB JDBC Driver; ;
proc; N; db CHAR(64); name CHAR(64); type CHAR(9); ; MySQL-AB JDBC Driver; ;
procs_priv; N; Host CHAR(60); Db CHAR(64); User CHAR(16); Routine_name CHAR(64); Routine_type CHAR(9); ; MySQL-AB JDBC Driver; ;
tables_priv; N; Host CHAR(60); Db CHAR(64); User CHAR(16); Table_name CHAR(64); ; MySQL-AB JDBC Driver; ;
time_zone; N; Time_zone_id INTEGER; ; MySQL-AB JDBC Driver; ;
time_zone_leap_second; N; Transition_time BIGINT; ; MySQL-AB JDBC Driver; ;
time_zone_name; N; Name CHAR(64); ; MySQL-AB JDBC Driver; ;
time_zone_transition; N; Time_zone_id INTEGER; Transition_time BIGINT; ; MySQL-AB JDBC Driver; ;
time_zone_transition_type; N; Time_zone_id INTEGER; Transition_type_id INTEGER; ; MySQL-AB JDBC Driver; ;
user; N; Host CHAR(60); User CHAR(16); ; MySQL-AB JDBC Driver; ;
user_info; N; User VARCHAR(16); ; MySQL-AB JDBC Driver; ;
1 # Name; Upsert; Primary key; ; Author
2 columns_priv; N; Host CHAR(60); Db CHAR(64); User CHAR(16); Table_name CHAR(64); Column_name CHAR(64); ; MySQL-AB JDBC Driver; ;
3 db; N; Host CHAR(60); Db CHAR(64); User CHAR(16); ; MySQL-AB JDBC Driver; ;
4 func; N; name CHAR(64); ; MySQL-AB JDBC Driver; ;
5 help_category; N; help_category_id SMALLINT; ; MySQL-AB JDBC Driver; ;
6 help_keyword; N; help_keyword_id INTEGER; ; MySQL-AB JDBC Driver; ;
7 help_relation; N; help_keyword_id INTEGER; help_topic_id INTEGER; ; MySQL-AB JDBC Driver; ;
8 help_topic; N; help_topic_id INTEGER; ; MySQL-AB JDBC Driver; ;
9 host; N; Host CHAR(60); Db CHAR(64); ; MySQL-AB JDBC Driver; ;
10 proc; N; db CHAR(64); name CHAR(64); type CHAR(9); ; MySQL-AB JDBC Driver; ;
11 procs_priv; N; Host CHAR(60); Db CHAR(64); User CHAR(16); Routine_name CHAR(64); Routine_type CHAR(9); ; MySQL-AB JDBC Driver; ;
12 tables_priv; N; Host CHAR(60); Db CHAR(64); User CHAR(16); Table_name CHAR(64); ; MySQL-AB JDBC Driver; ;
13 time_zone; N; Time_zone_id INTEGER; ; MySQL-AB JDBC Driver; ;
14 time_zone_leap_second; N; Transition_time BIGINT; ; MySQL-AB JDBC Driver; ;
15 time_zone_name; N; Name CHAR(64); ; MySQL-AB JDBC Driver; ;
16 time_zone_transition; N; Time_zone_id INTEGER; Transition_time BIGINT; ; MySQL-AB JDBC Driver; ;
17 time_zone_transition_type; N; Time_zone_id INTEGER; Transition_type_id INTEGER; ; MySQL-AB JDBC Driver; ;
18 user; N; Host CHAR(60); User CHAR(16); ; MySQL-AB JDBC Driver; ;
19 user_info; N; User VARCHAR(16); ; MySQL-AB JDBC Driver; ;

2
doc/Jailer.html Normal file
View File

@@ -0,0 +1,2 @@
<html><head><meta http-equiv="Refresh" content="0; URL=web/index.html">
</head><body></body></html>

View File

@@ -151,7 +151,7 @@ Make sure that the script runs successfully.<br>
style="font-family: monospace;">$db2 connect to wisser </span><span
style="font-family: monospace;">user scott </span><span
style="font-family: monospace;">using tiger<span
style="font-family: monospace;"><span style="font-style: italic;"></span></span></span><span
style="font-family: mon;"><span style="font-style: italic;"></span></span></span><span
style="font-family: monospace;"><span
style="font-style: italic; color: rgb(51, 51, 255);"></span></span><br>
<span style="font-family: monospace;">$db2 -tvf

View File

@@ -5,6 +5,7 @@
http-equiv="content-type">
<title>Open Jail. The Jailer Project Web Site.</title>
<link href="styles.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="favicon.ico" >
</head>
<body>
<h1>Open Jail <small><small style="font-style: italic;">The Jailer

View File

@@ -25,11 +25,13 @@
<tr>
<td colspan="2" rowspan="1"
style="background-color: rgb(202, 225, 235); vertical-align: top;"><span
style="font-family: monospace;">-- creates some test-tables and data<br>
style="font-family: monospace;"><br>
-- creates some test-tables and data<br>
<br>
-- DROP TABLE EMPLOYEE;<br>
-- DROP TABLE DEPARTMENT;<br>
-- DROP TABLE SALARYGRADE;<br>
--&nbsp; DROP TABLE EMPLOYEE;<br>
--&nbsp; DROP TABLE DEPARTMENT;<br>
--&nbsp; DROP TABLE SALARYGRADE;<br>
--&nbsp; DROP TABLE BONUS;<br>
<br>
CREATE TABLE EMPLOYEE(<br>
&nbsp;&nbsp;&nbsp; empno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER NOT NULL,<br>
@@ -37,7 +39,7 @@ CREATE TABLE EMPLOYEE(<br>
&nbsp;&nbsp;&nbsp; job&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
VARCHAR(9),<br>
&nbsp;&nbsp;&nbsp; boss&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER,<br>
&nbsp;&nbsp;&nbsp; hiredate&nbsp;&nbsp; DATE,<br>
&nbsp;&nbsp;&nbsp; hiredate&nbsp;&nbsp; varchar(12),<br>
&nbsp;&nbsp;&nbsp; salary&nbsp;&nbsp;&nbsp;&nbsp; DECIMAL(7, 2),<br>
&nbsp;&nbsp;&nbsp; comm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DECIMAL(7,
2),<br>
@@ -54,6 +56,17 @@ CREATE TABLE SALARYGRADE(<br>
&nbsp;&nbsp;&nbsp; grade&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER NOT NULL,<br>
&nbsp;&nbsp;&nbsp; losal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER NOT NULL,<br>
&nbsp;&nbsp;&nbsp; hisal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER NOT NULL<br>
);<br>
<br>
CREATE TABLE BONUS (<br>
&nbsp;&nbsp;&nbsp; ename&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VARCHAR(10) NOT
NULL,<br>
&nbsp;&nbsp;&nbsp; job&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
VARCHAR(9) NOT NULL,<br>
&nbsp;&nbsp;&nbsp; sal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
DECIMAL(7, 2),<br>
&nbsp;&nbsp;&nbsp; comm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DECIMAL(7,
2)<br>
);<br>
<br>
-- Primary Keys<br>
@@ -69,6 +82,10 @@ ALTER TABLE SALARYGRADE<br>
&nbsp; ADD CONSTRAINT salgrade_pk<br>
&nbsp; PRIMARY KEY (grade);<br>
<br>
ALTER TABLE BONUS<br>
&nbsp; ADD CONSTRAINT bonus_pk<br>
&nbsp; PRIMARY KEY (ename, job);<br>
&nbsp; <br>
-- EMPLOYEE to DEPARTMENT<br>
ALTER TABLE EMPLOYEE<br>
&nbsp; ADD CONSTRAINT department<br>
@@ -76,7 +93,7 @@ ALTER TABLE EMPLOYEE<br>
&nbsp; REFERENCES DEPARTMENT (deptno);<br>
<br>
-- EMPLOYEE to EMPLOYEE<br>
ALTER TABLE EMPLOYEE <br>
ALTER TABLE EMPLOYEE<br>
&nbsp; ADD CONSTRAINT boss<br>
&nbsp; FOREIGN KEY (boss)<br>
&nbsp; REFERENCES EMPLOYEE (empno);<br>
@@ -130,7 +147,7 @@ INSERT INTO SALARYGRADE VALUES (1,&nbsp; 700, 1200);<br>
INSERT INTO SALARYGRADE VALUES (2, 1201, 1400);<br>
INSERT INTO SALARYGRADE VALUES (3, 1401, 2000);<br>
INSERT INTO SALARYGRADE VALUES (4, 2001, 3000);<br>
INSERT INTO SALARYGRADE VALUES (5, 3001, 9999); <br>
INSERT INTO SALARYGRADE VALUES (5, 3001, 9999);<br>
<br>
</span></td>
</tr>

View File

@@ -0,0 +1,2 @@
<html><head><meta http-equiv="Refresh" content="0; URL=index.html">
</head><body></body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@@ -0,0 +1,106 @@
.spacer
{
HEIGHT:2px;
BACKGROUND-COLOR:#FFCC00;
}
.lmenu
{
BACKGROUND-COLOR:#FFCC00;
}
BODY
{
FONT-SIZE:13px;
COLOR:#000022;
FONT-FAMILY:Tahoma;
}
A.tlink:link
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:visited
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:hover
{
TEXT-DECORATION:underline;
}
A.llink:link
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:visited
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:hover
{
TEXT-DECORATION:underline;
}
.llinkA
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:14px;
}
.tlinkA
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:15px;
}
.content
{
padding-top:3px;
padding-left:10px;
margin-left:10px;
margin-right:2px;
}
.footer
{
padding-top:3px;
font-size:8px;
padding-left:20px;
margin-left:10px;
text-align:center;
border-top:1px solid #003399;
}
.bannerbackground
{
background-color:#FFFFFF;
}
.contentbackground
{
background-color:#FFFFFF;
}
.lmenucontainer
{
background-image:url(./vgradp.gif);
}
.nav1background
{
background-image:url(./bg1.JPG);
}
.slogan
{
color:#000055;
}
.content2background
{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

54
doc/web/architecture.htm Normal file
View File

@@ -0,0 +1,54 @@
<html><head><title>Open Jail. The Jailer Project Web Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="Data Export Tool">
<meta name="description" content="data export referential integrity java jdbc dbms">
<link rel="stylesheet" type="text/css" href="architecture-Dateien/styles.css"></head><body left-margin="0" top-margin="0">
<div align="left">
<table style="text-align: left; position: absolute; left: 0pt; top: 0pt;" border="0" cellpadding="0" cellspacing="0" height="407" width="100%">
<tbody><tr>
<td colspan="2" class="bannerbackground" height="33" width="100%"><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><img src="architecture-Dateien/logo.png" hspace="10"></td>
<td class="slogan">Data&nbsp;Export&nbsp;Tool</td><td style="text-align: right; width: 100%;"><a href="http://sourceforge.net/projects/jailer/"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=197260&amp;type=1" alt="SourceForge.net Logo" style="border: 0px solid ;"></a></td></tr></tbody></table>
<b><font color="#ffffff">&nbsp; </font></b></td></tr>
<tr>
<td colspan="2" class="nav1background" height="33" width="100%">&nbsp; <b><font color="#ffffff">
<a href="home.htm" target="_self" class="tlink">Home</a> &nbsp;&nbsp;&nbsp; <a href="tutorial.htm" target="_self" class="tlink">Tutorial</a> &nbsp;&nbsp;&nbsp;
<a href="documentation.htm" target="_self" class="tlinkA">Documentation</a> &nbsp;&nbsp;&nbsp; <a href="download.htm" target="_self" class="tlink">Download</a> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</font></b></td></tr>
<tr>
<td colspan="2" class="spacer" height="21" width="100%"></td></tr>
<tr>
<td class="lmenucontainer" height="100%" valign="top" width="14%">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td width="100%"></td></tr></tbody></table></center></div>
<ul>
<li><a href="architecture.htm" target="_self" class="llinkA">Architecture</a></li>
<li><a href="design.htm" target="_self" class="llink">Design</a></li>
<li><a href="file-formats.htm" target="_self" class="llink">File Formats</a></li>
<li><a href="terms.htm" target="_self" class="llink">Terms</a></li></ul>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr>
<td class="content2background"><img style="width: 160px; height: 1px;" alt="" src="architecture-Dateien/vgradp.gif"></td></tr></tbody></table><p>&nbsp;</p></td>
<td class="contentbackground" height="418" valign="top" width="86%">
<div align="right">
<table border="0" cellpadding="0" cellspacing="0" height="542" width="98%">
<tbody><tr>
<td class="contentbackground" height="21" width="100%"></td></tr>
<tr>
<td class="content" height="520" valign="top" width="100%"><p>&nbsp;</p><br><img alt="architecture" src="architecture-Dateien/arch.png"><br><br><br>
<ul>
<li class="level1">
<div class="li"><strong>Datamodel.</strong> Describes tables and associations.<strong></strong></div>
</li><li class="level1">
<div class="li"><strong>Restrictionmodel.</strong> Restricts associations to control the exportation.<br></div>
</li><li class="level1"><strong>Extractionmodel.</strong> Defines the subject and determines the restriction models. </li></ul></td></tr></tbody></table></div>
<p>&nbsp; </p></td></tr>
<tr>
<td height="12" valign="top" width="14%"></td>
<td></td></tr></tbody></table></div></body></html>

BIN
doc/web/bg1.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@@ -0,0 +1,106 @@
.spacer
{
HEIGHT:2px;
BACKGROUND-COLOR:#FFCC00;
}
.lmenu
{
BACKGROUND-COLOR:#FFCC00;
}
BODY
{
FONT-SIZE:13px;
COLOR:#000022;
FONT-FAMILY:Tahoma;
}
A.tlink:link
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:visited
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:hover
{
TEXT-DECORATION:underline;
}
A.llink:link
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:visited
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:hover
{
TEXT-DECORATION:underline;
}
.llinkA
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:14px;
}
.tlinkA
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:15px;
}
.content
{
padding-top:3px;
padding-left:10px;
margin-left:10px;
margin-right:2px;
}
.footer
{
padding-top:3px;
font-size:8px;
padding-left:20px;
margin-left:10px;
text-align:center;
border-top:1px solid #003399;
}
.bannerbackground
{
background-color:#FFFFFF;
}
.contentbackground
{
background-color:#FFFFFF;
}
.lmenucontainer
{
background-image:url(./vgradp.gif);
}
.nav1background
{
background-image:url(./bg1.JPG);
}
.slogan
{
color:#000055;
}
.content2background
{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

330
doc/web/cli-tutorial.htm Normal file
View File

@@ -0,0 +1,330 @@
<html><head><title>Open Jail. The Jailer Project Web Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="Data Export Tool">
<meta name="description" content="data export referential integrity java jdbc dbms">
<link rel="stylesheet" type="text/css" href="cli-tutorial-Dateien/styles.css"></head><body left-margin="0" top-margin="0">
<div align="left">
<table style="text-align: left; position: absolute; left: 0pt; top: 0pt;" border="0" cellpadding="0" cellspacing="0" height="407" width="100%">
<tbody><tr>
<td colspan="2" class="bannerbackground" height="33" width="100%"><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><img src="cli-tutorial-Dateien/logo.png" hspace="10"></td>
<td class="slogan">Data&nbsp;Export&nbsp;Tool</td><td style="text-align: right; width: 100%;"><a href="http://sourceforge.net/projects/jailer/"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=197260&amp;type=1" alt="SourceForge.net Logo" style="border: 0px solid ;"></a></td></tr></tbody></table>
<b><font color="#ffffff">&nbsp; </font></b></td></tr>
<tr>
<td colspan="2" class="nav1background" height="33" width="100%">&nbsp; <b><font color="#ffffff">
<a href="home.htm" target="_self" class="tlink">Home</a> &nbsp;&nbsp;&nbsp;
<a href="tutorial.htm" target="_self" class="tlinkA">Tutorial</a> &nbsp;&nbsp;&nbsp; <a href="documentation.htm" target="_self" class="tlink">Documentation</a> &nbsp;&nbsp;&nbsp; <a href="download.htm" target="_self" class="tlink">Download</a> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</font></b></td></tr>
<tr>
<td colspan="2" class="spacer" height="21" width="100%"></td></tr>
<tr>
<td class="lmenucontainer" height="100%" valign="top" width="14%">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td width="100%"></td></tr></tbody></table></center></div>
<ul>
<li><a href="exporting-data.htm" target="_self" class="llink">Exporting Data</a></li>
<li><a href="deleting-data.htm" target="_self" class="llink">Deleting Data</a></li>
<li><a href="exclude-del.htm" target="_self" class="llink">exclude-del</a></li>
<li><a href="export-all.htm" target="_self" class="llink">export-all</a></li>
<li><a href="cli-tutorial.htm" target="_self" class="llinkA">cli-tutorial</a></li></ul>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr>
<td class="content2background"><img style="width: 160px; height: 1px;" alt="" src="architecture-Dateien/vgradp.gif"></td></tr></tbody></table><p>&nbsp;</p></td>
<td class="contentbackground" height="418" valign="top" width="86%">
<div align="right">
<table border="0" cellpadding="0" cellspacing="0" height="542" width="98%">
<tbody><tr>
<td class="contentbackground" height="21" width="100%"></td></tr>
<tr>
<td class="content" height="520" valign="top" width="100%"><p>&nbsp;</p>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="top" width="100%">
<h2>Tutorial <small>(using Command Line Interface)</small><br></h2>
<h3>Prerequisites</h3>
<ul>
<li>Java JRE 1.5 or above (<a href="http://java.sun.com/javase/downloads/index.jsp"><img style="border: 0px solid ; width: 13px; height: 13px;" src="cli-tutorial-Dateien/arrow.gif" hspace="4">download</a>) </li><li>R-DBMS with JDBC-driver<br>
</li><li>jailer_1.0.zip </li></ul>
<h3><br></h3>
<h3>Step 1. Setup Jailer</h3>Unpack jailer.zip:<br><br>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(230, 255, 230);"><span style="font-family: monospace;">$unzip jailer_0.9.6.zip<br>$cd jailer<br style="font-family: monospace;"></span><span style="font-family: monospace;">$ll</span><br style="font-family: monospace;"><span style="font-family: monospace;">drwxr-xr-x&nbsp; 3 wisser users&nbsp; 136 2007-06-01 10:12 jailer.sh</span><br style="font-family: monospace;"><span style="font-family: monospace;">-rw-r--r--&nbsp; 1 wisser users 1175 2007-06-01 10:10 build.xml</span><br style="font-family: monospace;"><span style="font-family: monospace;">drwxr-xr-x&nbsp; 3 wisser users&nbsp; 136 2007-06-01 10:10 config</span><br style="font-family: monospace;"><span style="font-family: monospace;">drwxr-xr-x&nbsp; 3 wisser users&nbsp; 344 2007-06-01 10:10 datamodel</span><br style="font-family: monospace;"><span style="font-family: monospace;">drwxr-xr-x&nbsp; 3 wisser users&nbsp; 184 2007-06-01 10:10 example</span><br style="font-family: monospace;"><span style="font-family: monospace;">drwxr-xr-x&nbsp; 3 wisser users&nbsp; 160 2007-06-01 10:10 extractionmodel</span><br style="font-family: monospace;"><span style="font-family: monospace;">drwxr-xr-x&nbsp; 3 wisser users&nbsp; 272 2007-06-01 10:11 lib</span><br style="font-family: monospace;"><span style="font-family: monospace;">drwxr-xr-x&nbsp; 3 wisser users&nbsp; 112 2007-06-01 10:10 restrictionmodel</span><br style="font-family: monospace;"><span style="font-family: monospace;">drwxr-xr-x&nbsp; 4 wisser users&nbsp; 160 2007-06-01 10:10 script</span><br style="font-family: monospace;"><span style="font-family: monospace;">drwxr-xr-x&nbsp; 4 wisser users&nbsp;&nbsp; 96 2007-06-01 10:10 src</span><br></td></tr></tbody></table><br>Register the JDBC-Driver. Edit the file <span style="font-family: monospace;">jailer.sh</span> and put the JDBC-Driver into the class-path:<br><br>
<table style="background-color: rgb(51, 102, 255); text-align: left;" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; height: 24px; background-color: rgb(202, 225, 235);"><big><span style="font-family: monospace;"><span style="font-weight: bold;">jailer.sh</span></span><span style="font-family: monospace;"></span></big><br></td></tr></tbody></table>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(202, 225, 235);" colspan="2"><span style="font-family: monospace;">JDBCLIB=<span style="color: rgb(51, 51, 255); font-style: italic;">path to the JDBC-Driver-jar</span></span><br style="font-family: monospace;"><span style="font-family: monospace;">LIB=lib</span><br style="font-family: monospace;"><span style="font-family: monospace;">CP=.:out:out/jailer.jar</span><br style="font-family: monospace;"><br style="font-family: monospace;"><span style="font-family: monospace;"># JDBC-driver</span><br style="font-family: monospace;"><span style="font-family: monospace;">CP=$CP:$JDBCLIB/</span><span style="font-family: monospace;"><span style="color: rgb(51, 51, 255); font-style: italic;">JDBC-Driver-jar</span></span><br style="font-family: monospace;"><span style="font-family: monospace;"></span><br style="font-family: monospace;"><span style="font-family: monospace;"># configuration files in the config directory</span><br style="font-family: monospace;"><span style="font-family: monospace;">CP=$CP:config</span><br style="font-family: monospace;"><br style="font-family: monospace;"><span style="font-family: monospace;"># the libraries</span><br style="font-family: monospace;"><span style="font-family: monospace;">CP=$CP:$LIB/junit.jar</span><br style="font-family: monospace;"><span style="font-family: monospace;">CP=$CP:$LIB/commons-logging.jar</span><br style="font-family: monospace;"><span style="font-family: monospace;">CP=$CP:$LIB/log4j.jar</span><br style="font-family: monospace;"><span style="font-family: monospace;">CP=$CP:$LIB/args4j.jar</span><br style="font-family: monospace;"><span style="font-family: monospace;">CP=$CP:$LIB/spring.jar</span><br style="font-family: monospace;"><span style="font-family: monospace;">CP=$CP:$LIB/jailer.jar</span><br style="font-family: monospace;"><br style="font-family: monospace;"><span style="font-family: monospace;">java -cp $CP net.sf.jailer.Jailer $@</span><br></td></tr></tbody></table><br>
<h3>Step 2. Setup the Database</h3>Create a new schema and execute <a href="file:///C:/Users/ralf/Documents/Open%20Jail.%20The%20Jailer%20Project%20Web%20Site/local/user/bin/scott-tiger.sql.html"><img style="border: 0px solid ; width: 13px; height: 13px;" src="cli-tutorial-Dateien/arrow.gif" hspace="4"><big><span style="font-family: monospace;">script/scott-tiger.sql</span></big></a>. Make sure that the script runs successfully.<br><br>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(230, 255, 230);"><span style="font-family: monospace;">$db2 connect to wisser </span><span style="font-family: monospace;">user scott </span><span style="font-family: monospace;">using tiger<span style="font-family: mon;"><span style="font-style: italic;"></span></span></span><span style="font-family: monospace;"><span style="color: rgb(51, 51, 255); font-style: italic;"></span></span><br><span style="font-family: monospace;">$db2 -tvf script/scott-tiger.sql<br></span><span style="font-family: monospace;"></span></td></tr></tbody></table><br>
<h3>Step 3. Building the data model</h3>Jailer needs to know all the tables and all associations between them, so we must tell him. Tables are defined in <big><span style="font-family: monospace;">datamodel/table.csv</span><small>,</small></big><small></small>associations in <big><span style="font-family: monospace;">datamodel/association.csv</span>.</big><br><br>Fortunately most of the model definitions can be generated automatically from introspection of the relational database.<br><br>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(230, 255, 230);"><span style="font-family: monospace;">$ sh jailer.sh build-model com.ibm.db2.jcc.DB2Driver jdbc:db2://localhost:50001/wisser scott tiger<br>Jailer 0.9.5<br><br>Building data model.<br>See 'export.log' for more information.<br><br>$ cat export.log<br>2007-06-01
15:51:30,308 [main] INFO&nbsp;&nbsp; - find tables with
net.sf.jailer.modelbuilder.JDBCMetaDataBasedModelElementFinder@16fe0f4<br>2007-06-01 15:51:32,115 [main] INFO&nbsp;&nbsp; - file 'datamodel/model-builder-table.csv' written<br>2007-06-01
15:51:32,175 [main] INFO&nbsp;&nbsp; - find associations with
net.sf.jailer.modelbuilder.JDBCMetaDataBasedModelElementFinder@16fe0f4<br>2007-06-01 15:51:32,298 [main] INFO&nbsp;&nbsp; - find associations with DEPARTMENT<br>2007-06-01 15:51:32,323 [main] INFO&nbsp;&nbsp; - find associations with SALARYGRADE<br>2007-06-01 15:51:32,328 [main] INFO&nbsp;&nbsp; - find associations with EMPLOYEE<br>2007-06-01 15:51:32,369 [main] INFO&nbsp;&nbsp; - file 'datamodel/model-builder-association.csv' written<br></span><span style="font-family: monospace;"><span style="color: rgb(51, 51, 255); font-style: italic;"></span></span></td></tr></tbody></table><br><br>
<table>
<tbody>
<tr>
<td>Jailer finds the following tables and associations: </td>
<td style="vertical-align: top;"><small><a href="file:///C:/Users/ralf/workspace/jailer/doc/htdocs/JailerTutorial.html#footnote">2</a></small></td></tr></tbody></table><br>
<table style="background-color: rgb(51, 102, 255); text-align: left;" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; height: 24px; background-color: rgb(202, 225, 235);"><big><span style="font-family: monospace;"><span style="font-weight: bold;">datamodel/model-builder-table.csv</span></span><span style="font-family: monospace;"></span></big><br></td></tr></tbody></table>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(202, 225, 235);" colspan="2"><span style="font-family: monospace;"># Name;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; upsert; primary key;&nbsp;&nbsp;&nbsp; ; author<br>DEPARTMENT;&nbsp; N;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DEPTNO INTEGER; ;IBM DB2 JDBC Driver;<br>EMPLOYEE;&nbsp;&nbsp;&nbsp; N;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EMPNO INTEGER;&nbsp; ;IBM DB2 JDBC Driver;<br>SALARYGRADE; N;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GRADE INTEGER;LOSAL INTEGER;HISAL INTEGER;&nbsp;&nbsp; ;IBM DB2 JDBC Driver;<br></span><span style="font-family: monospace;"></span></td></tr></tbody></table><br>
<table style="background-color: rgb(51, 102, 255); text-align: left;" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; height: 24px; background-color: rgb(202, 225, 235);"><big><span style="font-family: monospace;"><span style="font-weight: bold;">datamodel/model-builder-association.csv</span></span><span style="font-family: monospace;"></span></big><br></td></tr></tbody></table>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(202, 225, 235);" colspan="2"><span style="font-family: monospace;"># Table A;&nbsp;&nbsp;&nbsp; Table B;&nbsp; first-insert; cardinality (opt); join-condition; name (opt); author<br>DEPARTMENT; EMPLOYEE; A; 1:n; A.DEPTNO=B.DEPTNO;&nbsp;&nbsp; ; IBM DB2 JDBC Driver;<br>EMPLOYEE;&nbsp;&nbsp; EMPLOYEE; A; 1:n; A.EMPNO=B.BOSS;&nbsp; &nbsp; &nbsp; ; IBM DB2 JDBC Driver;<br></span></td></tr></tbody></table><br><br>Copy the definitions into the files <big><span style="font-family: monospace;">datamodel/table.csv</span></big> and <big><span style="font-family: monospace;">datamodel/association.csv</span>.</big><br>One association is still missing: depending on his salary an employee is classified into a salary grade. <br>Add this definition manually.<br><br>
<table style="background-color: rgb(51, 102, 255); text-align: left;" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; height: 24px; background-color: rgb(202, 225, 235);"><big><span style="font-family: monospace;"><span style="font-weight: bold;">datamodel/association.csv</span></span><span style="font-family: monospace;"></span></big><br></td></tr></tbody></table>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(202, 225, 235);" colspan="2"><span style="font-family: monospace;"># Table A;&nbsp;&nbsp;&nbsp; Table B;&nbsp; first-insert; cardinality (opt); join-condition; name (opt); author<br>DEPARTMENT; EMPLOYEE; A; 1:n; A.DEPTNO=B.DEPTNO;&nbsp;&nbsp; ; IBM DB2 JDBC Driver;<br>EMPLOYEE;&nbsp;&nbsp; EMPLOYEE; A; 1:n; A.EMPNO=B.BOSS;&nbsp; &nbsp; &nbsp; ; IBM DB2 JDBC Driver;<br><span style="color: rgb(153, 0, 0);">EMPLOYEE;&nbsp;&nbsp; SALARYGRADE; ; n:1; A.SALARY BETWEEN B.LOSAL AND B.HISAL; ; Wisser</span><br></span></td></tr></tbody></table><br>Note that Jailer now knows more about the data model than the DBMS.<br><br>
<table>
<tbody>
<tr>
<td>
<h3>Step 4.&nbsp; Examine the data model</h3></td>
<td style="vertical-align: top;"><small><a href="file:///C:/Users/ralf/workspace/jailer/doc/htdocs/JailerTutorial.html#footnote">1</a></small></td></tr></tbody></table>Let's see what Jailer knows now about the model.<br><br>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(230, 255, 230);"><span style="font-family: monospace;">$ sh jailer.sh print-datamodel<br>DEPARTMENT (DEPTNO INTEGER NOT NULL)<br><br>&nbsp; has dependent:<br>&nbsp;&nbsp;&nbsp;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1:n on A.DEPTNO=B.DEPTNO<br><br>EMPLOYEE (EMPNO INTEGER NOT NULL)<br><br>&nbsp; depends on:<br>&nbsp;&nbsp;&nbsp;
DEPARTMENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
n:1 on B.DEPTNO=A.DEPTNO<br>&nbsp;&nbsp;&nbsp;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
n:1 on B.EMPNO=A.BOSS<br><br>&nbsp; has dependent:<br>&nbsp;&nbsp;&nbsp;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1:n on A.EMPNO=B.BOSS<br><br>&nbsp; is associated with:<br>&nbsp;&nbsp;&nbsp;
SALARYGRADE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
n:1 on A.SALARY BETWEEN B.LOSAL AND B.HISAL<br><br>SALARYGRADE (GRADE INTEGER NOT NULL, LOSAL INTEGER NOT NULL, HISAL INTEGER NOT NULL)<br><br>&nbsp; is associated with:<br>&nbsp;&nbsp;&nbsp;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1:n on B.SALARY BETWEEN A.LOSAL AND A.HISAL<br><br><br>tables in dependent-cycle: EMPLOYEE<br><br>excluding following tables from component-analysis:&nbsp; {&nbsp; }<br><br>1 components:<br>&nbsp;{ DEPARTMENT, EMPLOYEE, SALARYGRADE }<br></span></td></tr></tbody></table><br>Note
that each association is listed twice. While associations are
undirected, restrictions on them are directed. We will see later for
what restrictions are good for and how to define them.<br><br>
<h3>Step 5. Prepare the DB for exports</h3>Jailer uses some tables for
collecting entities inside the data base. The structure of these tables
depends on the data-model, so we have to create the tables after
building the data-model files. (You can easily re-create the tables
after any model-changes)<br><br>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(230, 255, 230);"><span style="font-family: monospace;">$ sh jailer.sh create-ddl &gt; <a href="file:///C:/Users/ralf/Documents/Open%20Jail.%20The%20Jailer%20Project%20Web%20Site/local/user/bin/jailer-ddl.sql.html"><img style="border: 0px solid ; width: 13px; height: 13px;" src="cli-tutorial-Dateien/arrow.gif" hspace="4">jailer-ddl.sql</a><br>$ db2 -tvf jailer-ddl.sql<br></span></td></tr></tbody></table>
<h3><br>Step 6. Export evil Scott (unrestricted)</h3>Now export the employee named Scott. To do that we need an <span style="font-style: italic;">extraction-model</span>. Create a file named <big><span style="font-family: monospace;">extractionmodel/scott.csv</span></big>.<br><br>
<table style="background-color: rgb(51, 102, 255); text-align: left;" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; height: 24px; background-color: rgb(202, 225, 235);"><big><span style="font-family: monospace;"><span style="font-weight: bold;">extractionmodel/scott.csv</span></span><span style="font-family: monospace;"></span></big><br></td></tr></tbody></table>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(202, 225, 235);" colspan="2"><span style="font-family: monospace;"># the employee named 'SCOTT' and all associated entities<br><br>#
subject;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
condition;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
limit;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; restrictions<br>EMPLOYEE;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
NAME='SCOTT';&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
;<br></span></td></tr></tbody></table><br><br>This extraction model
describes a set of entities containing (the) employee(s) named 'SCOTT',
entities associated with these employees, entities associated with
these entities and so forth.<br><br>Export this set:<br><br>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(230, 255, 230);"><span style="font-family: monospace;">$
sh jailer.sh export -e scott.sql extractionmodel/scott.csv
com.ibm.db2.jcc.DB2Driver jdbc:db2://localhost:50001/wisser scott tiger<br>Jailer 0.9.5<br><br>exporting 'extractionmodel/scott.csv' to 'scott.sql'<br>See 'export.log' for more information.<br>writing file 'scott.sql'...<br>file 'scott.sql' written.<br><br>$ cat export.log<br>2007-06-04 13:27:25,123 [main] INFO&nbsp;&nbsp; - exporting EMPLOYEE Where NAME='SCOTT'<br>...<br>2007-06-04
13:27:25,249 [main] INFO&nbsp;&nbsp; - export
statistic:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
22<br>2007-06-04 13:27:25,299 [main] INFO&nbsp;&nbsp; -
DEPARTMENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3<br>2007-06-04 13:27:25,299 [main] INFO&nbsp;&nbsp; -
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
14<br>2007-06-04 13:27:25,299 [main] INFO&nbsp;&nbsp; -
SALARYGRADE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
5<br>...<br></span></td></tr></tbody></table><br><br>A file <a href="file:///C:/Users/ralf/Documents/Open%20Jail.%20The%20Jailer%20Project%20Web%20Site/local/user/bin/scott.sql.html"><img style="border: 0px solid ; width: 13px; height: 13px;" src="cli-tutorial-Dateien/arrow.gif" hspace="4"><big><span style="font-family: monospace;">scott.sql</span></big></a> is created containing <big><span style="font-family: monospace;">Insert</span></big>-statements for Scott, for his evil boss, for the president and for scott's department and salary-grade.<br><br>But why are there also statements for all other employees? (Bad luck for innocent James!)<br><br>Let Jailer explain why:<br><br>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(230, 255, 230);"><span style="font-family: monospace;">$ sh jailer.sh export -e scott.sql <span style="color: rgb(204, 0, 0);">-explain </span>extractionmodel/scott.csv com.ibm.db2.jcc.DB2Driver jdbc:db2://localhost:50001/wisser scott tiger &gt; /dev/null<br>$ cat explain.log<br>EMPLOYEE(7788) --3--&gt; SALARYGRADE(4, 2001, 3000) --6--&gt; EMPLOYEE(7698) --1--&gt; DEPARTMENT(30).<br>EMPLOYEE(7788) --3--&gt; SALARYGRADE(4, 2001, 3000) --6--&gt; EMPLOYEE(7698) --2--&gt; EMPLOYEE(7521).<br>EMPLOYEE(7788)
--3--&gt; SALARYGRADE(4, 2001, 3000) --6--&gt; EMPLOYEE(7698) --2--&gt;
EMPLOYEE(7844) --3--&gt; SALARYGRADE(3, 1401, 2000).<br>EMPLOYEE(7788) --4--&gt; EMPLOYEE(7566) --4--&gt; EMPLOYEE(7839) --1--&gt; DEPARTMENT(10).<br>EMPLOYEE(7788) --4--&gt; EMPLOYEE(7566) --4--&gt; EMPLOYEE(7839) --3--&gt; SALARYGRADE(5, 3001, 9999).<br>EMPLOYEE(7788) --1--&gt; DEPARTMENT(20) --5--&gt; EMPLOYEE(7369).<br>EMPLOYEE(7788) --3--&gt; SALARYGRADE(4, 2001, 3000) --6--&gt; EMPLOYEE(7698) --2--&gt; EMPLOYEE(7654).<br><span style="color: rgb(204, 0, 0);">EMPLOYEE(7788) --2--&gt; EMPLOYEE(7876) --3--&gt; SALARYGRADE(1, 700, 1200) --6--&gt; EMPLOYEE(7900).</span><br style="color: rgb(204, 0, 0);">EMPLOYEE(7788)
--3--&gt; SALARYGRADE(4, 2001, 3000) --6--&gt; EMPLOYEE(7782) --2--&gt;
EMPLOYEE(7934) --3--&gt; SALARYGRADE(2, 1201, 1400).<br>EMPLOYEE(7788) --3--&gt; SALARYGRADE(4, 2001, 3000) --6--&gt; EMPLOYEE(7698) --2--&gt; EMPLOYEE(7499).<br>EMPLOYEE(7788) --1--&gt; DEPARTMENT(20) --5--&gt; EMPLOYEE(7902).<br><br>#&nbsp;&nbsp;&nbsp;
1
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-&gt;
DEPARTMENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
n:1 on B.DEPTNO=A.DEPTNO<br>#&nbsp;&nbsp;&nbsp; 2
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-&gt;
EMPLOYEE(SUBORDINATES)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1:n on A.EMPNO=B.BOSS<br>#&nbsp;&nbsp;&nbsp; 3
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-&gt;
SALARYGRADE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
n:1 on A.SALARY BETWEEN B.LOSAL AND B.HISAL<br>#&nbsp;&nbsp;&nbsp; 4
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-&gt; EMPLOYEE(inverse-SUBORDINATES) n:1 on B.EMPNO=A.BOSS<br>#&nbsp;&nbsp;&nbsp;
5
DEPARTMENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-&gt;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1:n on A.DEPTNO=B.DEPTNO<br>#&nbsp;&nbsp;&nbsp; 6
SALARYGRADE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-&gt;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1:n on B.SALARY BETWEEN A.LOSAL AND A.HISAL<br></span></td></tr></tbody></table><br>Adams is Scotts subordinate and James and Adams are both classified in the same salary-grade.<br><br>
<h3>Step 7. Export evil Scott (restricted)</h3>If we export an employee
we must export his boss and department too! Otherwise the set of
exported entities would not be consistent (due to the foreign key
constraints). No constraint prevents us from excluding the salary-grade
from export, but we should'nt do that becauses the resulting set would
also be inconsistent.<br><br>To exclude subordinates, 'same
department'-members and 'same salary-grade'-employees, we must restrict
some associations. To do so, define a <span style="font-style: italic;">restriction-model:</span><br><br>
<table style="background-color: rgb(51, 102, 255); text-align: left;" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; height: 24px; background-color: rgb(202, 225, 235);"><big><span style="font-family: monospace;"><span style="font-weight: bold;">restrictionmodel/no-subordinates.csv</span></span><span style="font-family: monospace;"></span></big><br></td></tr></tbody></table>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(202, 225, 235);" colspan="2"><span style="font-family: monospace;"># from A (or association name); to B;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; restriction-condition<br>SUBORDINATE;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ignore<br>DEPARTMENT;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
EMPLOYEE;&nbsp;&nbsp; ignore<br>SALARYGRADE;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
EMPLOYEE;&nbsp;&nbsp; ignore<br></span></td></tr></tbody></table><br><br>The <span style="font-style: italic;">restriction-condition</span> is an extension of the associations join-condition (expressed in SQL-syntax) for one direction of an association. <br>"ignore" stands for an unsatisfiable condition.<br><br>Note
that the association between DEPARTMENT and EMPLOYEE is restricted in
that direction by designating the source and destination table. It's
obviously not possible to restrict reflexive associations the same way,
so we have to give the <span style="font-style: italic;">'subordinate of</span>'-association a name.<br><br>
<table style="background-color: rgb(51, 102, 255); text-align: left;" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; height: 24px; background-color: rgb(202, 225, 235);"><big><span style="font-family: monospace;"><span style="font-weight: bold;">datamodel/association.csv</span></span><span style="font-family: monospace;"></span></big><br></td></tr></tbody></table>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(202, 225, 235);" colspan="2"><span style="font-family: monospace;"># Table A;&nbsp;&nbsp;&nbsp; Table B;&nbsp; first-insert; cardinality (opt); join-condition; name (opt); author<br>DEPARTMENT; EMPLOYEE; A; 1:n; A.DEPTNO=B.DEPTNO;&nbsp;&nbsp; ; IBM DB2 JDBC Driver;<br>EMPLOYEE;&nbsp;&nbsp; EMPLOYEE; A; 1:n; A.EMPNO=B.BOSS; </span><span style="color: rgb(255, 0, 0); font-family: monospace;">SUBORDINATE</span><span style="font-family: monospace;">; IBM DB2 JDBC Driver;<br><span style="color: rgb(0, 0, 0);">EMPLOYEE;&nbsp;&nbsp; SALARYGRADE; ; n:1; A.SALARY BETWEEN B.LOSAL AND B.HISAL; ; Wisser</span><br></span></td></tr></tbody></table><br><br>You can examine the restrictions the same way you examined the data model:<br><br>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(230, 255, 230);"><span style="font-family: monospace;">$ sh jailer.sh print-datamodel <span style="color: rgb(204, 0, 0);">restrictionmodel/no-subordinates.csv</span><br>restricted by: [restrictionmodel/no-subordinates.csv]<br>DEPARTMENT (DEPTNO INTEGER NOT NULL)<br><br>&nbsp; ignored:<br>&nbsp;&nbsp;&nbsp;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1:n on A.DEPTNO=B.DEPTNO<br><br>EMPLOYEE (EMPNO INTEGER NOT NULL)<br><br>&nbsp; depends on:<br>&nbsp;&nbsp;&nbsp;
DEPARTMENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
n:1 on B.DEPTNO=A.DEPTNO<br>&nbsp;&nbsp;&nbsp; EMPLOYEE(inverse-SUBORDINATE)&nbsp; n:1 on B.EMPNO=A.BOSS<br><br>&nbsp; is associated with:<br>&nbsp;&nbsp;&nbsp;
SALARYGRADE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
n:1 on A.SALARY BETWEEN B.LOSAL AND B.HISAL<br><br>&nbsp; <span style="color: rgb(255, 0, 0);">ignored:</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp; EMPLOYEE(SUBORDINATE)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1:n on A.EMPNO=B.BOSS</span><br><br>SALARYGRADE (GRADE INTEGER NOT NULL, LOSAL INTEGER NOT NULL, HISAL INTEGER NOT NULL)<br><br>&nbsp; ignored:<br>&nbsp;&nbsp;&nbsp;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1:n on B.SALARY BETWEEN A.LOSAL AND A.HISAL<br><br><br>tables in dependent-cycle: EMPLOYEE<br><br>excluding following tables from component-analysis:&nbsp; { DEPARTMENT, SALARYGRADE }<br><br>1 components: <br>&nbsp;{ EMPLOYEE }<br></span></td></tr></tbody></table><br><br>A restriction-model is part of the extraction-model. Create a new extraction-model:<br><br>
<table style="background-color: rgb(51, 102, 255); text-align: left;" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; height: 24px; background-color: rgb(202, 225, 235);"><big><span style="font-family: monospace;"><span style="font-weight: bold;">extractionmodel/scott-without-subordinates.csv</span></span><span style="font-family: monospace;"></span></big><br></td></tr></tbody></table>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(202, 225, 235);" colspan="2"><span style="font-family: monospace;"># the employee named 'SCOTT' and all associated entities<br><br>#
subject;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
condition;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
limit;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; restrictions<br>EMPLOYEE;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
NAME='SCOTT';&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(255, 0, 0); font-family: monospace;">no-subordinates.csv</span></td></tr></tbody></table><br><br>and look what Jailer extracts now:<br><br>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(230, 255, 230);"><span style="font-family: monospace;">$ sh jailer.sh export -e scott.sql <span style="color: rgb(204, 0, 0);">extractionmodel/scott-without-subordinates.csv</span> com.ibm.db2.jcc.DB2Driver jdbc:db2://localhost:50001/wisser xbcsetup 1234 &gt; /dev/null<br>$ cat scott.sql<br></span><span style="font-family: monospace;">-- generated by Jailer at Mon Jun 04 15:08:15 CEST 2007 from wisser@u19<br>--<br>-- extraction model:&nbsp; EMPLOYEE where NAME='SCOTT' (extractionmodel/scott-without-subordinates.csv)<br>-- database URL:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jdbc:db2://localhost:50001/wisser<br>-- database user:&nbsp;&nbsp;&nbsp;&nbsp; scott<br>-- exported entities: 7<br>--&nbsp;&nbsp;&nbsp;&nbsp;
DEPARTMENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2<br>--&nbsp;&nbsp;&nbsp;&nbsp;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3<br>--&nbsp;&nbsp;&nbsp;&nbsp;
SALARYGRADE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2<br><br><br><br>Insert into SALARYGRADE(GRADE, LOSAL, HISAL) <br>&nbsp; values (4, 2001, 3000), <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (5, 3001, 9999);<br>Insert into DEPARTMENT(DEPTNO, NAME, LOCATION) <br>&nbsp; values (20, 'RESEARCH', 'DALLAS'), <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (10, 'ACCOUNTING', 'NEW YORK');<br>Insert into EMPLOYEE(EMPNO, NAME, JOB, BOSS, HIREDATE, SALARY, COMM, DEPTNO) <br>&nbsp; values (7839, 'KING', 'PRESIDENT', null, '1981-11-17', 5000.00, null, 10);<br>Insert into EMPLOYEE(EMPNO, NAME, JOB, BOSS, HIREDATE, SALARY, COMM, DEPTNO) <br>&nbsp; values (7566, 'JONES', 'MANAGER', 7839, '1981-04-02', 2975.00, null, 20);<br>Insert into EMPLOYEE(EMPNO, NAME, JOB, BOSS, HIREDATE, SALARY, COMM, DEPTNO) <br>&nbsp; values (7788, 'SCOTT', 'ANALYST', 7566, '1982-12-09', 3000.00, null, 20);<br></span></td></tr></tbody></table><br>Freedom for the innocent!<br><br>
<h3>Step 8. Delete Scott (unsuccessful)</h3>It is also possible to create DML-scripts for deletion of exported entities:<br><br>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(230, 255, 230);"><span style="font-family: monospace;">$ sh jailer.sh export -e scott.sql <span style="color: rgb(204, 0, 0);">-d delete-scott.sql</span>
extractionmodel/scott-without-subordinates.csv
com.ibm.db2.jcc.DB2Driver jdbc:db2://localhost:50001/wisser scott tiger
&gt; /dev/null<br>$ cat delete-scott.sql<br>-- generated by Jailer at Tue Jun 05 10:20:40 CEST 2007 from wisser@u19<br>--<br>-- extraction model:&nbsp; EMPLOYEE where NAME='SCOTT' (extractionmodel/scott-without-subordinates.csv)<br>-- database URL:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jdbc:db2://localhost:50001/wisser<br>-- database user:&nbsp;&nbsp;&nbsp;&nbsp; scott<br>-- exported entities: 7<br>--&nbsp;&nbsp;&nbsp;&nbsp;
DEPARTMENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2<br>--&nbsp;&nbsp;&nbsp;&nbsp;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3<br>--&nbsp;&nbsp;&nbsp;&nbsp;
SALARYGRADE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2<br>--<br>-- Tabu-tables:&nbsp; {&nbsp; }<br>--<br>-- entities to delete: 0<br><br></span><span style="font-family: monospace;"></span></td></tr></tbody></table><br>Jailer
has exported 7 entities but didn't delete anything! That's because
deleting Scott but not Scotts subordinate (who is not in the set
defined by the extraction-model!) would violate the integrity of the
data base.<br><br>
<h3>Step 9. Delete Scott</h3>
<p>In order to delete Scott, me must delete his subordinate too. To do so, relax the restriction on the <span style="font-style: italic;">SUBORDINATE</span>-association:</p>
<table style="background-color: rgb(51, 102, 255); text-align: left;" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; height: 24px; background-color: rgb(202, 225, 235);"><big><span style="font-family: monospace;"><span style="font-weight: bold;">restrictionmodel/no-subordinates.csv</span></span><span style="font-family: monospace;"></span></big><br></td></tr></tbody></table>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(202, 225, 235);" colspan="2"><span style="font-family: monospace;"># from A (or association name); to B;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; restriction-condition<br>SUBORDINATE;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(204, 0, 0);">A.NAME='SCOTT'</span><br>DEPARTMENT;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
EMPLOYEE;&nbsp;&nbsp; ignore<br>SALARYGRADE;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
EMPLOYEE;&nbsp;&nbsp; ignore<br></span></td></tr></tbody></table><br>and repeat the exportation:<br><br>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(230, 255, 230);"><span style="font-family: monospace;">$ sh jailer.sh export -e <a href="file:///C:/Users/ralf/Documents/Open%20Jail.%20The%20Jailer%20Project%20Web%20Site/local/user/bin/scott.sql.2.html"><img style="border: 0px solid ; width: 13px; height: 13px;" src="cli-tutorial-Dateien/arrow.gif" hspace="4">scott.sql</a>
<span style="color: rgb(0, 0, 0);">-d delete-scott.sql</span>
extractionmodel/scott-without-subordinates.csv
com.ibm.db2.jcc.DB2Driver jdbc:db2://localhost:50001/wisser scott tiger
&gt; /dev/null<br>$ cat delete-scott.sql<br>-- generated by Jailer at Tue Jun 05 10:50:03 CEST 2007 from wisser@u19<br>--<br>-- extraction model:&nbsp; EMPLOYEE where NAME='SCOTT' (extractionmodel/scott-without-subordinates.csv)<br>-- database URL:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jdbc:db2://localhost:50001/wisser<br>-- database user:&nbsp;&nbsp;&nbsp;&nbsp; scott<br>-- exported entities: 9<br>--&nbsp;&nbsp;&nbsp;&nbsp;
DEPARTMENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2<br>--&nbsp;&nbsp;&nbsp;&nbsp;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
4<br>--&nbsp;&nbsp;&nbsp;&nbsp;
SALARYGRADE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3<br>--<br>-- Tabu-tables:&nbsp; {&nbsp; }<br>--<br>-- entities to delete: 2<br>--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2 (-2)<br><br><br><br>Delete from EMPLOYEE Where EMPNO in (7876);<br>Delete from EMPLOYEE Where EMPNO in (7788);<br></span></td></tr></tbody></table><br>The file <big><span style="font-family: monospace;">delete-scott.sql</span></big> contains <big><span style="font-family: monospace;">Delete</span></big>-statements for Scott and Adams.<br>Note that <big><span style="font-family: monospace;">scott.sql</span></big> now contains <big><span style="font-family: monospace;">Insert</span></big>-statements for Adams and his salary-grade too.<br><br></td></tr></tbody></table><br>
<hr style="width: 100%; height: 1px;">
<a name="footnote"></a>1) Since 0.9.3 it is also possible to render the data model as HTML. Click<a href="file:///C:/Users/ralf/Documents/Open%20Jail.%20The%20Jailer%20Project%20Web%20Site/local/user/bin/index.html"><img style="border: 0px solid ; width: 13px; height: 13px;" src="cli-tutorial-Dateien/arrow.gif" hspace="4">here</a> to see how the tutorial's model would look like in HTML.<br>2) Since 2.0 all associations in <big><span style="font-family: monospace;"><font size="4">datamodel/model-builder-association.csv </font></span></big>have names.<big><span style="font-family: monospace;"></span></big><br></td></tr></tbody></table></div>
<p>&nbsp; </p></td></tr>
<tr>
<td height="12" valign="top" width="14%"></td>
<td></td></tr></tbody></table></div></body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -0,0 +1,106 @@
.spacer
{
HEIGHT:2px;
BACKGROUND-COLOR:#FFCC00;
}
.lmenu
{
BACKGROUND-COLOR:#FFCC00;
}
BODY
{
FONT-SIZE:13px;
COLOR:#000022;
FONT-FAMILY:Tahoma;
}
A.tlink:link
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:visited
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:hover
{
TEXT-DECORATION:underline;
}
A.llink:link
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:visited
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:hover
{
TEXT-DECORATION:underline;
}
.llinkA
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:14px;
}
.tlinkA
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:15px;
}
.content
{
padding-top:3px;
padding-left:10px;
margin-left:10px;
margin-right:2px;
}
.footer
{
padding-top:3px;
font-size:8px;
padding-left:20px;
margin-left:10px;
text-align:center;
border-top:1px solid #003399;
}
.bannerbackground
{
background-color:#FFFFFF;
}
.contentbackground
{
background-color:#FFFFFF;
}
.lmenucontainer
{
background-image:url(./vgradp.gif);
}
.nav1background
{
background-image:url(./bg1.JPG);
}
.slogan
{
color:#000055;
}
.content2background
{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

154
doc/web/deleting-data.htm Normal file
View File

@@ -0,0 +1,154 @@
<html><head><title>Open Jail. The Jailer Project Web Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="Data Export Tool">
<meta name="description" content="data export referential integrity java jdbc dbms">
<link rel="stylesheet" type="text/css" href="deleting-data-Dateien/styles.css"></head><body left-margin="0" top-margin="0">
<div align="left">
<table style="text-align: left; position: absolute; left: 0pt; top: 0pt;" border="0" cellpadding="0" cellspacing="0" height="407" width="100%">
<tbody><tr>
<td colspan="2" class="bannerbackground" height="33" width="100%"><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><img src="deleting-data-Dateien/logo.png" hspace="10"></td>
<td class="slogan">Data&nbsp;Export&nbsp;Tool</td><td style="text-align: right; width: 100%;"><a href="http://sourceforge.net/projects/jailer/"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=197260&amp;type=1" alt="SourceForge.net Logo" style="border: 0px solid ;"></a></td></tr></tbody></table>
<b><font color="#ffffff">&nbsp; </font></b></td></tr>
<tr>
<td colspan="2" class="nav1background" height="33" width="100%">&nbsp; <b><font color="#ffffff">
<a href="home.htm" target="_self" class="tlink">Home</a> &nbsp;&nbsp;&nbsp;
<a href="tutorial.htm" target="_self" class="tlinkA">Tutorial</a> &nbsp;&nbsp;&nbsp; <a href="documentation.htm" target="_self" class="tlink">Documentation</a> &nbsp;&nbsp;&nbsp; <a href="download.htm" target="_self" class="tlink">Download</a> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</font></b></td></tr>
<tr>
<td colspan="2" class="spacer" height="21" width="100%"></td></tr>
<tr>
<td class="lmenucontainer" height="100%" valign="top" width="14%">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td width="100%"></td></tr></tbody></table></center></div>
<ul>
<li><a href="exporting-data.htm" target="_self" class="llink">Exporting Data</a></li>
<li><a href="deleting-data.htm" target="_self" class="llinkA">Deleting Data</a></li>
<li><a href="exclude-del.htm" target="_self" class="llink">exclude-del</a></li>
<li><a href="export-all.htm" target="_self" class="llink">export-all</a></li>
<li><a href="cli-tutorial.htm" target="_self" class="llink">cli-tutorial</a></li></ul>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr>
<td class="content2background"><img style="width: 160px; height: 1px;" alt="" src="architecture-Dateien/vgradp.gif"></td></tr></tbody></table><p>&nbsp;</p></td>
<td class="contentbackground" height="418" valign="top" width="86%">
<div align="right">
<table border="0" cellpadding="0" cellspacing="0" height="542" width="98%">
<tbody><tr>
<td class="contentbackground" height="21" width="100%"></td></tr>
<tr>
<td class="content" height="520" valign="top" width="100%"><p>&nbsp;</p>
<h3>Step 1. Setup Jailer</h3>
<p>Unpack jailer_2.0.zip:<br><br>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(230, 255, 230);"><span style="font-family: monospace;">$unzip jailer_2.0.zip<br>$cd jailer_2.0<br style="font-family: monospace;"></span><span style="font-family: monospace;">$ll</span><br style="font-family: monospace;"><span style="font-family: monospace;">drwxr-xr-x&nbsp; 3 wisser users&nbsp;&nbsp;&nbsp;&nbsp; 72 2007-12-04 16:10 admin<br>-rw-r--r--&nbsp; 1 wisser users&nbsp;&nbsp; 1754 2007-12-04 16:09 build.xml<br>drwxr-xr-x&nbsp; 2 wisser users&nbsp;&nbsp;&nbsp; 176 2007-12-04 16:10 config<br>drwxr-xr-x&nbsp; 2 wisser users&nbsp;&nbsp;&nbsp; 320 2007-12-04 16:17 datamodel<br>drwxr-xr-x&nbsp; 3 wisser users&nbsp;&nbsp;&nbsp;&nbsp; 72 2007-12-04 16:09 doc<br>drwxr-xr-x&nbsp; 2 wisser users&nbsp;&nbsp;&nbsp;&nbsp; 80 2007-12-04 16:10 domainmodel<br>drwxr-xr-x&nbsp; 4 wisser users&nbsp;&nbsp;&nbsp;&nbsp; 96 2007-12-04 16:10 epilog<br>drwxr-xr-x&nbsp; 2 wisser users&nbsp;&nbsp;&nbsp; 128 2007-12-04 16:10 extractionmodel<br>-rw-r--r--&nbsp; 1 wisser users&nbsp;&nbsp;&nbsp; 381 2007-12-04 16:09 jailer.bat<br>-rw-r--r--&nbsp; 1 wisser users&nbsp;&nbsp;&nbsp; 411 2007-12-04 16:09 jailerGUI.bat<br>-rw-r--r--&nbsp; 1 wisser users&nbsp;&nbsp;&nbsp; 354 2007-12-04 16:09 jailerGUI.sh<br>-rw-r--r--&nbsp; 1 wisser users 258952 2007-12-04 16:09 jailer.jar<br>-rw-r--r--&nbsp; 1 wisser users&nbsp;&nbsp;&nbsp; 335 2007-12-04 16:09 jailer.sh<br>drwxr-xr-x&nbsp; 2 wisser users&nbsp;&nbsp;&nbsp; 216 2007-12-04 16:09 lib<br>-rw-r--r--&nbsp; 1 wisser users&nbsp; 10172 2007-12-04 16:09 license.txt<br>drwxr-xr-x&nbsp; 4 wisser users&nbsp;&nbsp;&nbsp;&nbsp; 96 2007-12-04 16:10 prolog<br>-rw-r--r--&nbsp; 1 wisser users&nbsp;&nbsp;&nbsp; 337 2007-12-04 16:09 README<br>-rw-r--r--&nbsp; 1 wisser users&nbsp;&nbsp;&nbsp; 710 2007-12-04 16:09 releasenotes.txt<br>drwxr-xr-x&nbsp; 2 wisser users&nbsp;&nbsp;&nbsp;&nbsp; 80 2007-12-04 16:10 render<br>drwxr-xr-x&nbsp; 2 wisser users&nbsp;&nbsp;&nbsp;&nbsp; 88 2007-12-04 16:10 restrictionmodel<br>drwxr-xr-x 10 wisser users&nbsp;&nbsp;&nbsp; 312 2007-12-04 16:10 script<br>drwxr-xr-x&nbsp; 3 wisser users&nbsp;&nbsp;&nbsp;&nbsp; 72 2007-12-04 16:10 src<br>drwxr-xr-x&nbsp; 2 wisser users&nbsp;&nbsp;&nbsp; 312 2007-12-04 16:10 template</span><span style="font-family: monospace;"></span><span style="font-family: monospace;"></span><br></td></tr></tbody></table></p>
<h3><br>Step 2. Setup the Database</h3>
<p>Create a new database schema and execute <a href="file:///C:/Users/ralf/Documents/Open%20Jail.%20The%20Jailer%20Project%20Web%20Site/local/user/bin/scott-tiger.sql.html"><img style="border: 0px solid ; width: 13px; height: 13px;" src="deleting-data-Dateien/arrow.gif" hspace="4"><big><span style="font-family: monospace;"><font size="4">script/scott-tiger.sql</font></span></big></a>. Make sure that the script runs successfully.<br><br>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(230, 255, 230);"><span style="font-family: monospace;">$db2 connect to wisser </span><span style="font-family: monospace;">user scott </span><span style="font-family: monospace;">using tiger<span style="font-family: mon;"><span style="font-style: italic;"></span></span></span><span style="font-family: monospace;"><span style="color: rgb(51, 51, 255); font-style: italic;"></span></span><br><span style="font-family: monospace;">$db2 -tvf script/scott-tiger.sql<br></span><span style="font-family: monospace;"></span></td></tr></tbody></table><br></p>
<h3>Step 3. Building the data model</h3>
<p><br>Start the GUI (<span style="font-family: monospace;">jailerGUI.bat</span> on windows platform) <table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(230, 255, 230);"><span style="font-family: monospace;">$ sh jailerGUI.sh</span><span style="font-family: monospace;"></span><br></td></tr></tbody></table><br><img style="width: 304px; height: 119px;" src="deleting-data-Dateien/screen1.png"><br><br><br>Jailer
needs to know all the tables and all associations between them, so we
must tell him. Fortunately most of the model definitions can be
generated automatically from introspection of the relational database.<br>Click on "Introspect DB":<br><br><img style="width: 529px; height: 258px;" src="deleting-data-Dateien/screen2.png"><br><br><br>Select the setting for your DBMS and enter the connection parameter, then click on "<big><span style="font-family: monospace;"><font size="4">Connect"</font></span></big>.<br>Jailer finds three tables and two associations:<br><br><img style="width: 756px; height: 254px;" src="deleting-data-Dateien/screen3.png"><br><br><br>One association is still missing: an employee is classified into a salary grade depending on his salary. <br>Add this definition manually (<big><span style="font-family: monospace;"><font size="4">Add-</font></span></big>Button under <big><span style="font-family: monospace;"><font size="4">Associations</font></span></big>):<br><br><img style="width: 484px; height: 217px;" src="deleting-data-Dateien/screen4.png"><br><br>Note that Jailer now knows more about the data model than the DBMS.<br><br><br>
<table>
<tbody>
<tr>
<td>
<h3>Step 4.&nbsp; Examine the data model</h3></td>
<td style="vertical-align: top;"><small><a href="file:///C:/Users/ralf/workspace/jailer/doc/htdocs/JailerGuiTutorial.html#footnote">1</a></small></td></tr></tbody></table>Let's see what Jailer knows now about the model. Select <span style="font-style: italic;">"Tools-&gt;Print Data Model":</span><br><br><img style="width: 592px; height: 516px;" src="deleting-data-Dateien/screen5.png"><br><br>Note
that each association is listed twice. While associations are
undirected, restrictions on them are directed. We will see later for
what restrictions are good for and how to define them.<br></p>
<h3><br>Step 5. Export evil Scott (unrestricted)</h3>
<p>Now lets try to export the employee named Scott. To do that we need an <span style="font-style: italic;">extraction-model</span>.<br>Select <big><span style="font-family: monospace;"><font size="4">EMPLOYEE</font></span></big> as table to extract from and type <span style="font-family: monospace;">NAME</span><big><span style="font-family: monospace;"><font size="4">='SCOTT'</font></span></big> into the <span style="font-style: italic;">Where</span>-field:<br><br><img style="width: 739px; height: 322px;" src="deleting-data-Dateien/screen8.png"><br><br>This
extraction model describes a set of entities containing (the)
employee(s) named 'SCOTT', entities associated with these employees,
entities associated with these entities and so forth.<br><br>Export this set (<span style="font-style: italic;">Tools-&gt;Export Data</span>). Jailer first asks for a file name for the new model, call it <big><span style="font-family: monospace;"><font size="4">scott.csv</font></span></big>. Then the <span style="font-style: italic;">Data Export </span>dialog appears:<br><br><img style="width: 558px; height: 180px;" src="deleting-data-Dateien/screen7.png"><br><br>Type <big><span style="font-family: monospace;"><font size="4">scott.sql</font></span></big> into the first field. This defines the name of the export file to be generated. Click on <span style="font-style: italic;">Export Data</span>:<br><br><img style="width: 783px; height: 481px;" src="deleting-data-Dateien/screen9.png"><br><br><br>Jailer generates a file <a href="file:///C:/Users/ralf/Documents/Open%20Jail.%20The%20Jailer%20Project%20Web%20Site/local/user/bin/scott.sql.html"><img style="border: 0px solid ; width: 13px; height: 13px;" src="deleting-data-Dateien/arrow.gif" hspace="4"><big><span style="font-family: monospace;"><font size="4">scott.sql</font></span></big></a> containing <big><span style="font-family: monospace;"><font size="4">Insert</font></span></big>-statements for Scott, for his evil boss, for the president and for scott's department and salary-grade.<br><br>But why are there also statements for all other employees?<br><br>Let Jailer explain why:<br><br><img style="width: 558px; height: 180px;" src="deleting-data-Dateien/screen10.png"><br><br><img style="width: 716px; height: 238px;" src="deleting-data-Dateien/screen11.png"><br><br>Open the <span style="font-family: monospace;">Explain.log</span>:<br><br><img style="width: 806px; height: 327px;" src="deleting-data-Dateien/screen12.png"><br><br>Scotts is Adams boss and James and Adams are both classified in the same salary-grade.<br><br></p>
<h3>Step 6. Export evil Scott (restricted)</h3>
<p>If we export an employee we must export his boss and department too!
Otherwise the set of exported entities would not be consistent (due to
the foreign key constraints). No constraint prevents us from excluding
the salary-grade from export, but we should'nt do that becauses the
resulting set would also be inconsistent.<br><br>To exclude
subordinates, 'same department'-members and 'same
salary-grade'-employees, we must restrict some associations. To do so,
define some <span style="font-style: italic;">restrictions:</span><br><br><img style="width: 950px; height: 322px;" src="deleting-data-Dateien/screen13.png"><br><br><img style="width: 950px; height: 322px;" src="deleting-data-Dateien/screen14.png"><br><br><img style="width: 950px; height: 322px;" src="deleting-data-Dateien/screen15.png"><br><br><br>The <span style="font-style: italic;">restriction-condition</span> is an extension of the associations join-condition (expressed in SQL-syntax) for one direction of an association. "<span style="font-style: italic;">ignore</span>" or "<span style="font-style: italic;">false</span>" stands for an unsatisfiable condition.<br><br>You can examine the restrictions the same way you examined the data model by using <span style="font-style: italic;">"Tools-&gt;Print Data Model":</span><br><br><img style="width: 596px; height: 534px;" src="deleting-data-Dateien/screen16.png"><br><br><br><span style="font-style: italic;"></span>Use "<span style="font-style: italic;">Tools-&gt;Export Data</span>" again and look what Jailer extracts now:<br><br>
<table style="background-color: rgb(51, 102, 255); text-align: left;" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; height: 24px; background-color: rgb(202, 225, 235);"><big><span style="font-family: monospace;"><span style="font-weight: bold;"><span style="font-family: monospace;">scott.sql </span></span></span><span style="font-family: monospace;"></span></big><br></td></tr></tbody></table>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(202, 225, 235);" colspan="2"><span style="font-family: monospace;">-- generated by Jailer at Wed Dec 05 18:49:03 CET 2007 from wisser@desktop<br>--<br>-- extraction model:&nbsp; EMPLOYEE where NAME='SCOTT' (extractionmodel/scott.csv)<br>-- database URL:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jdbc:db2://localhost/wisser<br>-- database user:&nbsp;&nbsp;&nbsp;&nbsp; scott<br>-- exported entities: 7<br>--&nbsp;&nbsp;&nbsp;&nbsp;
DEPARTMENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2<br>--&nbsp;&nbsp;&nbsp;&nbsp;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3<br>--&nbsp;&nbsp;&nbsp;&nbsp;
SALARYGRADE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2<br><br><br><br>Insert into DEPARTMENT(DEPTNO, NAME, LOCATION) values (20, 'RESEARCH', 'DALLAS'), (10, 'ACCOUNTING', 'NEW YORK');<br>Insert into SALARYGRADE(GRADE, LOSAL, HISAL) values (4, 2001, 3000), (5, 3001, 9999);<br>Insert
into EMPLOYEE(EMPNO, NAME, JOB, BOSS, HIREDATE, SALARY, COMM, DEPTNO)
values (7839, 'KING', 'PRESIDENT', null, '1981-11-17', 5000.00, null,
10);<br>Insert into EMPLOYEE(EMPNO, NAME, JOB, BOSS, HIREDATE, SALARY,
COMM, DEPTNO) values (7566, 'JONES', 'MANAGER', 7839, '1981-04-02',
2975.00, null, 20);<br>Insert into EMPLOYEE(EMPNO, NAME, JOB, BOSS,
HIREDATE, SALARY, COMM, DEPTNO) values (7788, 'SCOTT', 'ANALYST', 7566,
'1982-12-09', 3000.00, null, 20);<br></span></td></tr></tbody></table><br>Freedom for the innocent!<br><br></p>
<h3>Step 7. Delete Scott (unsuccessful)</h3>
<p>It is also possible to create DML-scripts for deletion of exported entities:<br><br><img style="width: 558px; height: 180px;" src="deleting-data-Dateien/screen17.png"><br><br>
<table style="background-color: rgb(51, 102, 255); text-align: left;" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; height: 24px; background-color: rgb(202, 225, 235);"><big><span style="font-family: monospace;"><span style="font-weight: bold;"><span style="font-family: monospace;">delete-scott.sql </span></span></span><span style="font-family: monospace;"></span></big><br></td></tr></tbody></table>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(202, 225, 235);" colspan="2"><span style="font-family: monospace;"></span><span style="color: rgb(255, 0, 0); font-family: monospace;"></span><span style="font-family: monospace;">-- generated by Jailer at Wed Dec 05 19:17:47 CET 2007 from wisser@desktop<br>--<br>-- extraction model:&nbsp; EMPLOYEE where NAME='SCOTT' (extractionmodel/scott.csv)<br>-- database URL:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jdbc:db2://localhost/wisser<br>-- database user:&nbsp;&nbsp;&nbsp;&nbsp; scott<br>-- exported entities: 7<br>--&nbsp;&nbsp;&nbsp;&nbsp;
DEPARTMENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2<br>--&nbsp;&nbsp;&nbsp;&nbsp;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3<br>--&nbsp;&nbsp;&nbsp;&nbsp;
SALARYGRADE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2<br>--<br>-- Tabu-tables:&nbsp; {&nbsp; }<br>--<br>-- entities to delete: 0<br></span></td></tr></tbody></table><br>Jailer
has exported 7 entities but didn't delete anything! That's because
deleting Scott but not Scotts subordinate (who is not in the set
defined by the extraction-model!) would violate the integrity of the
data base.<br><br></p>
<h3>Step 8. Delete Scott</h3>
<p>In order to delete Scott, me must delete his subordinate too. To do so, relax the restriction on the <span style="font-style: italic;">inverse-BOSS</span>-association:</p>
<p><img style="width: 939px; height: 323px;" src="deleting-data-Dateien/screen18.png"><br><br><br>and <span style="font-style: italic;">"Export Data"</span> again:<br><br>
<table style="background-color: rgb(51, 102, 255); text-align: left;" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; height: 24px; background-color: rgb(202, 225, 235);"><big><span style="font-family: monospace;"><span style="font-weight: bold;"><span style="font-family: monospace;">delete-scott.sql </span></span></span><span style="font-family: monospace;"></span></big><br></td></tr></tbody></table>
<table style="width: 100%; text-align: left;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; background-color: rgb(202, 225, 235);" colspan="2"><span style="font-family: monospace;"></span><span style="color: rgb(255, 0, 0); font-family: monospace;"></span><span style="font-family: monospace;">-- generated by Jailer at Wed Dec 05 19:23:48 CET 2007 from wisser@desktop<br>--<br>-- extraction model:&nbsp; EMPLOYEE where NAME='SCOTT' (extractionmodel/scott.csv)<br>-- database URL:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jdbc:db2://localhost/wisser<br>-- database user:&nbsp;&nbsp;&nbsp;&nbsp; scott<br>-- exported entities: 9<br>--&nbsp;&nbsp;&nbsp;&nbsp;
DEPARTMENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2<br>--&nbsp;&nbsp;&nbsp;&nbsp;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
4<br>--&nbsp;&nbsp;&nbsp;&nbsp;
SALARYGRADE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3<br>--<br>-- Tabu-tables:&nbsp; {&nbsp; }<br>--<br>-- entities to delete: 2<br>--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
EMPLOYEE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2 (-2)<br><br><br><br>Delete from EMPLOYEE Where EMPNO in (7876);<br>Delete from EMPLOYEE Where EMPNO in (7788);<br></span></td></tr></tbody></table><br>The file <big><span style="font-family: monospace;"><font size="4">delete-scott.sql</font></span></big> contains <big><span style="font-family: monospace;"><font size="4">Delete</font></span></big>-statements for Scott and Adams.<br>Note that <big><span style="font-family: monospace;"><font size="4">scott.sql</font></span></big> now contains <big><span style="font-family: monospace;"><font size="4">Insert</font></span></big>-statements for Adams and his salary-grade too.<br><br><br></p>
<hr style="width: 100%; height: 1px;">
<p><a name="footnote"></a>1) Since 0.9.3 it is also possible to render the data model as HTML. Click<a href="file:///C:/Users/ralf/Documents/Open%20Jail.%20The%20Jailer%20Project%20Web%20Site/local/user/bin/index.html"><img style="border: 0px solid ; width: 13px; height: 13px;" src="deleting-data-Dateien/arrow.gif" hspace="4">here</a> to see how the tutorial's model would look like in HTML.<br><br><br><br><br><br><br><br><br></p></td></tr></tbody></table></div>
<p>&nbsp; </p></td></tr>
<tr>
<td height="12" valign="top" width="14%"></td>
<td></td></tr></tbody></table></div></body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@@ -0,0 +1,106 @@
.spacer
{
HEIGHT:2px;
BACKGROUND-COLOR:#FFCC00;
}
.lmenu
{
BACKGROUND-COLOR:#FFCC00;
}
BODY
{
FONT-SIZE:13px;
COLOR:#000022;
FONT-FAMILY:Tahoma;
}
A.tlink:link
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:visited
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:hover
{
TEXT-DECORATION:underline;
}
A.llink:link
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:visited
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:hover
{
TEXT-DECORATION:underline;
}
.llinkA
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:14px;
}
.tlinkA
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:15px;
}
.content
{
padding-top:3px;
padding-left:10px;
margin-left:10px;
margin-right:2px;
}
.footer
{
padding-top:3px;
font-size:8px;
padding-left:20px;
margin-left:10px;
text-align:center;
border-top:1px solid #003399;
}
.bannerbackground
{
background-color:#FFFFFF;
}
.contentbackground
{
background-color:#FFFFFF;
}
.lmenucontainer
{
background-image:url(./vgradp.gif);
}
.nav1background
{
background-image:url(./bg1.JPG);
}
.slogan
{
color:#000055;
}
.content2background
{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

134
doc/web/design.htm Normal file
View File

@@ -0,0 +1,134 @@
<html><head><title>Open Jail. The Jailer Project Web Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="Data Export Tool">
<meta name="description" content="data export referential integrity java jdbc dbms">
<link rel="stylesheet" type="text/css" href="design-Dateien/styles.css"></head><body left-margin="0" top-margin="0">
<div align="left">
<table style="text-align: left; position: absolute; left: 0pt; top: 0pt;" border="0" cellpadding="0" cellspacing="0" height="407" width="100%">
<tbody><tr>
<td colspan="2" class="bannerbackground" height="33" width="100%"><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><img src="design-Dateien/logo.png" hspace="10"></td>
<td class="slogan">Data&nbsp;Export&nbsp;Tool</td><td style="text-align: right; width: 100%;"><a href="http://sourceforge.net/projects/jailer/"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=197260&amp;type=1" alt="SourceForge.net Logo" style="border: 0px solid ;"></a></td></tr></tbody></table>
<b><font color="#ffffff">&nbsp; </font></b></td></tr>
<tr>
<td colspan="2" class="nav1background" height="33" width="100%">&nbsp; <b><font color="#ffffff">
<a href="home.htm" target="_self" class="tlink">Home</a> &nbsp;&nbsp;&nbsp; <a href="tutorial.htm" target="_self" class="tlink">Tutorial</a> &nbsp;&nbsp;&nbsp;
<a href="documentation.htm" target="_self" class="tlinkA">Documentation</a> &nbsp;&nbsp;&nbsp; <a href="download.htm" target="_self" class="tlink">Download</a> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</font></b></td></tr>
<tr>
<td colspan="2" class="spacer" height="21" width="100%"></td></tr>
<tr>
<td class="lmenucontainer" height="100%" valign="top" width="14%">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td width="100%"></td></tr></tbody></table></center></div>
<ul>
<li><a href="architecture.htm" target="_self" class="llink">Architecture</a></li>
<li><a href="design.htm" target="_self" class="llinkA">Design</a></li>
<li><a href="file-formats.htm" target="_self" class="llink">File Formats</a></li>
<li><a href="terms.htm" target="_self" class="llink">Terms</a></li></ul>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr>
<td class="content2background"><img style="width: 160px; height: 1px;" alt="" src="architecture-Dateien/vgradp.gif"></td></tr></tbody></table><p>&nbsp;</p></td>
<td class="contentbackground" height="418" valign="top" width="86%">
<div align="right">
<table border="0" cellpadding="0" cellspacing="0" height="542" width="98%">
<tbody><tr>
<td class="contentbackground" height="21" width="100%"></td></tr>
<tr>
<td class="content" height="520" valign="top" width="100%"><h3><a name="modell_des_entitaetsgraphen">The Entity Graph</a></h3>
<div class="level3">
<p>During exportation a graph of entities will be produced inside the database. For this three tables are required: </p>
<ul>
<li class="level1">
<div class="li"><strong>EntityGraph</strong> the graph<br></div>
</li><li class="level1">
<div class="li"><strong>Entity</strong> entity in the graph<br></div>
</li><li class="level1">
<div class="li"><strong>Dependency</strong> dependencies between entities</div></li></ul>
<p>For each entity in the graph the primary-key <em></em>and the type<em></em><span style="font-style: italic;"></span>(as table name) ist stored. The <em>birthday</em> of an entity is the day of the insertion into the graph. </p></div>
<h3><a name="berechnung_des_transitiven_abschlusses">Finding the transitive closure</a></h3>
<div class="level3">
<p>The graph will be constructed day after day (step-by-step) starting at day 1: </p>
<ul>
<li class="level1">
<div class="li">at day 1 all subject entities are inserted into the graph<br></div>
</li><li class="level1">at day <big style="font-style: italic;"><span style="font-family: monospace;"><font size="4">n</font></span></big> all entities referenced by one of the entities born at day <big style="font-style: italic; font-family: monospace;"><font size="4">n-1</font></big> are inserted into the graph. Dependencies between entities are stored.<br></li></ul>
<p>The <em>progression set</em> of a day is the set of all tables from
which entities are inserted at that day. The progession set of day 1 is
the subject set. The process stops if the progression set of a day is
empty.<br></p></div>
<h4><a name="algorithmus">Algorithm</a></h4>
<div class="level4">
<ol>
<li class="level1">
<div class="li">insert <big><span style="font-style: italic; font-family: monospace;"><font size="4">subject</font></span></big> into graph<br></div>
</li><li class="level2">
<div class="li"><em><font size="4"><big><span style="font-family: monospace;">progression-set := subject</span></big><br></font></em></div>
</li><li class="level2">
<div class="li">while <big><em style="font-family: monospace;"><font size="4">progression-set != {}</font></em></big></div>
<ol>
<li class="level5" style="font-family: monospace;">
<div class="li"><big><em><font size="4">progression-of-today := {}</font></em></big></div>
</li><li class="level5">
<div class="li">for all restricted associations <em>A between tables T<small><font size="2">1</font></small> and T<small><font size="2">2</font></small></em><span style="font-style: italic;">, if</span><em> T<small><font size="2">1</font></small></em> oder <em>T<small><font size="2">2</font></small></em> in <em>progression-set:</em></div>
<ol>
<li class="level10">
<div class="li">if <em>T<small><font size="2">2</font></small></em>
<span style="font-style: italic;">(T<small><font size="2">1</font></small>) </span>depends on <em>T<small><font size="2">1 <big>(T<small>2</small>)</big></font></small></em>: add dependencies from <em>T<small><font size="2">2</font></small></em>(T<small><font size="2">1</font></small>)-entities born yesterday to the entities they are associated with according to <span style="font-style: italic;">A</span></div>
</li><li class="level10">
<div class="li">insert all entities of <em>T<small><font size="2">1</font></small> (T<small><font size="2">2</font></small>)</em>, which are associated according to <span style="font-style: italic;">A</span> with an entity of <span style="font-style: italic;">T<small><font size="2">2</font></small> (T<small><font size="2">1</font></small>)</span> born yesterday</div>
</li><li class="level10">
<div class="li">if at least one entity of T<small><font size="2">1</font></small> (T<small><font size="2">2</font></small>) is inserted then <big><em style="font-family: monospace;"><font size="4">progression-of-today := progression-of-today + {&nbsp;</font></em><span style="font-family: monospace;"><font size="4"> T</font><small>1</small><font size="4"> (T</font><small>2</small><font size="4">)</font></span><em style="font-family: monospace;"><font size="4"> }</font></em></big></div></li></ol>
</li><li class="level5" style="font-family: monospace;">
<div class="li"><big><em><font size="4">progression-set := progression-of-today</font></em></big></div></li></ol></li></ol></div>
<h4><a name="beispiel"><font size="4"></font></a></h4>
<h4><a name="beispiel"><font size="4"></font></a></h4>
<div class="level4">
<p><br><font size="4"><big>Example</big><br></font></p>
<p>Subject = <em>{ A<small><font size="2">1</font></small></em>, <em>A<small><font size="2">2</font></small></em> } </p>
<p><a href="http://intra.acoreus.de/dokuwiki/lib/exe/detail.php?id=projekte%3Aphase_1_datenextraktion&amp;cache=cache&amp;media=development:documentation:example.png"><img style="border: 0px solid ; width: 753px; height: 455px;" alt="desing" src="design-Dateien/example.png"></a><br><br><a class="media" title="development:documentation:example.png" href="http://intra.acoreus.de/dokuwiki/lib/exe/detail.php?id=projekte%3Aphase_1_datenextraktion&amp;cache=cache&amp;media=development:documentation:example.png"></a></p>
<table class="inline" border="1" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td style="background-color: rgb(153, 255, 255);"><strong>day</strong></td>
<td style="background-color: rgb(153, 255, 255);"><strong>progression set</strong></td>
<td style="background-color: rgb(153, 255, 255);"><strong>entities</strong></td>
<td style="background-color: rgb(153, 255, 255);"><strong>dependencies</strong></td></tr>
<tr>
<td>1</td>
<td>A</td>
<td>A1, A2</td>
<td><br></td></tr>
<tr>
<td>2</td>
<td>B, C</td>
<td>+ B1, B2, C3, C4</td>
<td>A2?C3, A2?C4</td></tr>
<tr>
<td>3</td>
<td>B, C</td>
<td>+ C1, C2, B3, B5</td>
<td>+ B1?C1, B1?C2</td></tr>
<tr>
<td>4</td>
<td>B</td>
<td>+ B6</td>
<td><em>no change</em></td></tr>
<tr>
<td>5</td>
<td><br></td>
<td><em>no change</em><em></em></td>
<td><em>no change</em></td></tr></tbody></table></div>
<h4><br></h4>
<h4><a name="sql-anweisungen">SQL-Statements</a></h4>
<p>Line 1, insert subject<br><span style="font-family: monospace;"><br>INSERT INTO Entity(PK, birthday, type)</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp; SELECT &lt;subject&gt;.PK, 1, '&lt;subject&gt;' </span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp; FROM &lt;subject&gt;</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp;&nbsp;&nbsp; WHERE (&lt;condition&gt; AND 103</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NOT EXISTS (SELECT * FROM Entity WHERE &lt;subject&gt;.PK=Entity.PK)</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp;&nbsp;&nbsp; [fetch first &lt;limit&gt; rows only]</span><br style="font-family: monospace;"><br><br>Line 3.2.1, adding dependencies<br><br><span style="font-family: monospace;">INSERT INTO Dependency(from_PK, to_PK)</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp; SELECT &lt;T2&gt;.PK, &lt;T1&gt;.PK</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp; FROM Entity E1, Entity E2,</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;T2&gt; JOIN &lt;T1&gt; ON &lt;join-condition&gt;</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp; WHERE E1.type='&lt;T1&gt;' AND E2.type='&lt;T2&gt;'</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AND E1.PK=&lt;T1&gt;.PK</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AND E2.PK=&lt;T2&gt;.PK<br><br><br></span>Line 3.2.2, adding referenced entities<br><br><span style="font-family: monospace;">INSERT INTO Entity(PK, birthday, type)</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp; SELECT DISTINCT &lt;T2&gt;.PK, &lt;today&gt;, '&lt;T2&gt;'</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp; FROM &lt;T1&gt; JOIN &lt;T2&gt; ON &lt;join-condition&gt;,</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Entity</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp; WHERE &lt;T1&gt;.PK=Entity.PK AND Entity.birthday = &lt;yesterday&gt;</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AND NOT EXISTS</span><br style="font-family: monospace;"><span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (SELECT * FROM Entity WHERE &lt;T2&gt;.PK=Entity.PK)</span><br style="font-family: monospace;"><br></p></td></tr></tbody></table></div>
<p>&nbsp; </p></td></tr>
<tr>
<td height="12" valign="top" width="14%"></td>
<td></td></tr></tbody></table></div></body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@@ -0,0 +1,106 @@
.spacer
{
HEIGHT:2px;
BACKGROUND-COLOR:#FFCC00;
}
.lmenu
{
BACKGROUND-COLOR:#FFCC00;
}
BODY
{
FONT-SIZE:13px;
COLOR:#000022;
FONT-FAMILY:Tahoma;
}
A.tlink:link
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:visited
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:hover
{
TEXT-DECORATION:underline;
}
A.llink:link
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:visited
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:hover
{
TEXT-DECORATION:underline;
}
.llinkA
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:14px;
}
.tlinkA
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:15px;
}
.content
{
padding-top:3px;
padding-left:10px;
margin-left:10px;
margin-right:2px;
}
.footer
{
padding-top:3px;
font-size:8px;
padding-left:20px;
margin-left:10px;
text-align:center;
border-top:1px solid #003399;
}
.bannerbackground
{
background-color:#FFFFFF;
}
.contentbackground
{
background-color:#FFFFFF;
}
.lmenucontainer
{
background-image:url(./vgradp.gif);
}
.nav1background
{
background-image:url(./bg1.JPG);
}
.slogan
{
color:#000055;
}
.content2background
{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

49
doc/web/documentation.htm Normal file
View File

@@ -0,0 +1,49 @@
<html><head><title>Open Jail. The Jailer Project Web Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="Data Export Tool">
<meta name="description" content="data export referential integrity java jdbc dbms">
<link rel="stylesheet" type="text/css" href="documentation-Dateien/styles.css"></head><body left-margin="0" top-margin="0">
<div align="left">
<table style="text-align: left; position: absolute; left: 0pt; top: 0pt;" border="0" cellpadding="0" cellspacing="0" height="407" width="100%">
<tbody><tr>
<td colspan="2" class="bannerbackground" height="33" width="100%"><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><img src="documentation-Dateien/logo.png" hspace="10"></td>
<td class="slogan">Data&nbsp;Export&nbsp;Tool</td><td style="text-align: right; width: 100%;"><a href="http://sourceforge.net/projects/jailer/"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=197260&amp;type=1" alt="SourceForge.net Logo" style="border: 0px solid ;"></a></td></tr></tbody></table>
<b><font color="#ffffff">&nbsp; </font></b></td></tr>
<tr>
<td colspan="2" class="nav1background" height="33" width="100%">&nbsp; <b><font color="#ffffff">
<a href="home.htm" target="_self" class="tlink">Home</a> &nbsp;&nbsp;&nbsp; <a href="tutorial.htm" target="_self" class="tlink">Tutorial</a> &nbsp;&nbsp;&nbsp;
<a href="documentation.htm" target="_self" class="tlinkA">Documentation</a> &nbsp;&nbsp;&nbsp; <a href="download.htm" target="_self" class="tlink">Download</a> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</font></b></td></tr>
<tr>
<td colspan="2" class="spacer" height="21" width="100%"></td></tr>
<tr>
<td class="lmenucontainer" height="100%" valign="top" width="14%">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td width="100%"></td></tr></tbody></table></center></div>
<ul>
<li><a href="architecture.htm" target="_self" class="llink">Architecture</a></li>
<li><a href="design.htm" target="_self" class="llink">Design</a></li>
<li><a href="file-formats.htm" target="_self" class="llink">File Formats</a></li>
<li><a href="terms.htm" target="_self" class="llink">Terms</a></li></ul>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr>
<td class="content2background"><img style="width: 160px; height: 1px;" alt="" src="architecture-Dateien/vgradp.gif"></td></tr></tbody></table><p>&nbsp;</p></td>
<td class="contentbackground" height="418" valign="top" width="86%">
<div align="right">
<table border="0" cellpadding="0" cellspacing="0" height="542" width="98%">
<tbody><tr>
<td class="contentbackground" height="21" width="100%"></td></tr>
<tr>
<td class="content" height="520" valign="top" width="100%">
<p>&nbsp;</p></td></tr></tbody></table></div>
<p>&nbsp; </p></td></tr>
<tr>
<td height="12" valign="top" width="14%"></td>
<td></td></tr></tbody></table></div></body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@@ -0,0 +1,106 @@
.spacer
{
HEIGHT:2px;
BACKGROUND-COLOR:#FFCC00;
}
.lmenu
{
BACKGROUND-COLOR:#FFCC00;
}
BODY
{
FONT-SIZE:13px;
COLOR:#000022;
FONT-FAMILY:Tahoma;
}
A.tlink:link
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:visited
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:hover
{
TEXT-DECORATION:underline;
}
A.llink:link
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:visited
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:hover
{
TEXT-DECORATION:underline;
}
.llinkA
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:14px;
}
.tlinkA
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:15px;
}
.content
{
padding-top:3px;
padding-left:10px;
margin-left:10px;
margin-right:2px;
}
.footer
{
padding-top:3px;
font-size:8px;
padding-left:20px;
margin-left:10px;
text-align:center;
border-top:1px solid #003399;
}
.bannerbackground
{
background-color:#FFFFFF;
}
.contentbackground
{
background-color:#FFFFFF;
}
.lmenucontainer
{
background-image:url(./vgradp.gif);
}
.nav1background
{
background-image:url(./bg1.JPG);
}
.slogan
{
color:#000055;
}
.content2background
{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

46
doc/web/download-2.htm Normal file
View File

@@ -0,0 +1,46 @@
<html><head><title>Open Jail. The Jailer Project Web Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="Data Export Tool">
<meta name="description" content="data export referential integrity java jdbc dbms">
<link rel="stylesheet" type="text/css" href="download-2-Dateien/styles.css"></head><body left-margin="0" top-margin="0">
<div align="left">
<table style="text-align: left; position: absolute; left: 0pt; top: 0pt;" border="0" cellpadding="0" cellspacing="0" height="407" width="100%">
<tbody><tr>
<td colspan="2" class="bannerbackground" height="33" width="100%"><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><img src="download-2-Dateien/logo.png" hspace="10"></td>
<td class="slogan">Data&nbsp;Export&nbsp;Tool</td><td style="text-align: right; width: 100%;"><a href="http://sourceforge.net/projects/jailer/"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=197260&amp;type=1" alt="SourceForge.net Logo" style="border: 0px solid ;"></a></td></tr></tbody></table>
<b><font color="#ffffff">&nbsp; </font></b></td></tr>
<tr>
<td colspan="2" class="nav1background" height="33" width="100%">&nbsp; <b><font color="#ffffff">
<a href="home.htm" target="_self" class="tlinkA">Home</a> &nbsp;&nbsp;&nbsp; <a href="tutorial.htm" target="_self" class="tlink">Tutorial</a> &nbsp;&nbsp;&nbsp; <a href="documentation.htm" target="_self" class="tlink">Documentation</a> &nbsp;&nbsp;&nbsp; <a href="download.htm" target="_self" class="tlink">Download</a> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</font></b></td></tr>
<tr>
<td colspan="2" class="spacer" height="21" width="100%"></td></tr>
<tr>
<td class="lmenucontainer" height="100%" valign="top" width="14%">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td width="100%"></td></tr></tbody></table></center></div>
<ul>
<li><a href="installation-2.htm" target="_self" class="llink">Installation</a></li>
<li><a href="download-2.htm" target="_self" class="llinkA">Download</a></li></ul>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr>
<td class="content2background"><img style="width: 160px; height: 1px;" alt="" src="architecture-Dateien/vgradp.gif"></td></tr></tbody></table><p>&nbsp;</p></td>
<td class="contentbackground" height="418" valign="top" width="86%">
<div align="right">
<table border="0" cellpadding="0" cellspacing="0" height="542" width="98%">
<tbody><tr>
<td class="contentbackground" height="21" width="100%"></td></tr>
<tr>
<td class="content" height="520" valign="top" width="100%">
<p>&nbsp;</p></td></tr></tbody></table></div>
<p>&nbsp; </p></td></tr>
<tr>
<td height="12" valign="top" width="14%"></td>
<td></td></tr></tbody></table></div></body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@@ -0,0 +1,106 @@
.spacer
{
HEIGHT:2px;
BACKGROUND-COLOR:#FFCC00;
}
.lmenu
{
BACKGROUND-COLOR:#FFCC00;
}
BODY
{
FONT-SIZE:13px;
COLOR:#000022;
FONT-FAMILY:Tahoma;
}
A.tlink:link
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:visited
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:hover
{
TEXT-DECORATION:underline;
}
A.llink:link
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:visited
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:hover
{
TEXT-DECORATION:underline;
}
.llinkA
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:14px;
}
.tlinkA
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:15px;
}
.content
{
padding-top:3px;
padding-left:10px;
margin-left:10px;
margin-right:2px;
}
.footer
{
padding-top:3px;
font-size:8px;
padding-left:20px;
margin-left:10px;
text-align:center;
border-top:1px solid #003399;
}
.bannerbackground
{
background-color:#FFFFFF;
}
.contentbackground
{
background-color:#FFFFFF;
}
.lmenucontainer
{
background-image:url(./vgradp.gif);
}
.nav1background
{
background-image:url(./bg1.JPG);
}
.slogan
{
color:#000055;
}
.content2background
{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

45
doc/web/download.htm Normal file
View File

@@ -0,0 +1,45 @@
<html><head><title>Open Jail. The Jailer Project Web Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="Data Export Tool">
<meta name="description" content="data export referential integrity java jdbc dbms">
<link rel="stylesheet" type="text/css" href="download-Dateien/styles.css"></head><body left-margin="0" top-margin="0">
<div align="left">
<table style="text-align: left; position: absolute; left: 0pt; top: 0pt;" border="0" cellpadding="0" cellspacing="0" height="407" width="100%">
<tbody><tr>
<td colspan="2" class="bannerbackground" height="33" width="100%"><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><img src="download-Dateien/logo.png" hspace="10"></td>
<td class="slogan">Data&nbsp;Export&nbsp;Tool</td><td style="text-align: right; width: 100%;"><a href="http://sourceforge.net/projects/jailer/"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=197260&amp;type=1" alt="SourceForge.net Logo" style="border: 0px solid ;"></a></td></tr></tbody></table>
<b><font color="#ffffff">&nbsp; </font></b></td></tr>
<tr>
<td colspan="2" class="nav1background" height="33" width="100%">&nbsp; <b><font color="#ffffff">
<a href="home.htm" target="_self" class="tlink">Home</a> &nbsp;&nbsp;&nbsp; <a href="tutorial.htm" target="_self" class="tlink">Tutorial</a> &nbsp;&nbsp;&nbsp; <a href="documentation.htm" target="_self" class="tlink">Documentation</a> &nbsp;&nbsp;&nbsp;
<a href="download.htm" target="_self" class="tlinkA">Download</a> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</font></b></td></tr>
<tr>
<td colspan="2" class="spacer" height="21" width="100%"></td></tr>
<tr>
<td class="lmenucontainer" height="100%" valign="top" width="14%">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td width="100%"></td></tr></tbody></table></center></div>
<ul></ul>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr>
<td class="content2background"><img style="width: 160px; height: 1px;" alt="" src="architecture-Dateien/vgradp.gif"></td></tr></tbody></table><p>&nbsp;</p></td>
<td class="contentbackground" height="418" valign="top" width="86%">
<div align="right">
<table border="0" cellpadding="0" cellspacing="0" height="542" width="98%">
<tbody><tr>
<td class="contentbackground" height="21" width="100%"></td></tr>
<tr>
<td class="content" height="520" valign="top" width="100%">
<p>&nbsp;</p></td></tr></tbody></table></div>
<p>&nbsp; </p></td></tr>
<tr>
<td height="12" valign="top" width="14%"></td>
<td></td></tr></tbody></table></div></body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@@ -0,0 +1,106 @@
.spacer
{
HEIGHT:2px;
BACKGROUND-COLOR:#FFCC00;
}
.lmenu
{
BACKGROUND-COLOR:#FFCC00;
}
BODY
{
FONT-SIZE:13px;
COLOR:#000022;
FONT-FAMILY:Tahoma;
}
A.tlink:link
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:visited
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:hover
{
TEXT-DECORATION:underline;
}
A.llink:link
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:visited
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:hover
{
TEXT-DECORATION:underline;
}
.llinkA
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:14px;
}
.tlinkA
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:15px;
}
.content
{
padding-top:3px;
padding-left:10px;
margin-left:10px;
margin-right:2px;
}
.footer
{
padding-top:3px;
font-size:8px;
padding-left:20px;
margin-left:10px;
text-align:center;
border-top:1px solid #003399;
}
.bannerbackground
{
background-color:#FFFFFF;
}
.contentbackground
{
background-color:#FFFFFF;
}
.lmenucontainer
{
background-image:url(./vgradp.gif);
}
.nav1background
{
background-image:url(./bg1.JPG);
}
.slogan
{
color:#000055;
}
.content2background
{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

50
doc/web/exclude-del.htm Normal file
View File

@@ -0,0 +1,50 @@
<html><head><title>Open Jail. The Jailer Project Web Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="Data Export Tool">
<meta name="description" content="data export referential integrity java jdbc dbms">
<link rel="stylesheet" type="text/css" href="exclude-del-Dateien/styles.css"></head><body left-margin="0" top-margin="0">
<div align="left">
<table style="text-align: left; position: absolute; left: 0pt; top: 0pt;" border="0" cellpadding="0" cellspacing="0" height="407" width="100%">
<tbody><tr>
<td colspan="2" class="bannerbackground" height="33" width="100%"><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><img src="exclude-del-Dateien/logo.png" hspace="10"></td>
<td class="slogan">Data&nbsp;Export&nbsp;Tool</td><td style="text-align: right; width: 100%;"><a href="http://sourceforge.net/projects/jailer/"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=197260&amp;type=1" alt="SourceForge.net Logo" style="border: 0px solid ;"></a></td></tr></tbody></table>
<b><font color="#ffffff">&nbsp; </font></b></td></tr>
<tr>
<td colspan="2" class="nav1background" height="33" width="100%">&nbsp; <b><font color="#ffffff">
<a href="home.htm" target="_self" class="tlink">Home</a> &nbsp;&nbsp;&nbsp;
<a href="tutorial.htm" target="_self" class="tlinkA">Tutorial</a> &nbsp;&nbsp;&nbsp; <a href="documentation.htm" target="_self" class="tlink">Documentation</a> &nbsp;&nbsp;&nbsp; <a href="download.htm" target="_self" class="tlink">Download</a> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</font></b></td></tr>
<tr>
<td colspan="2" class="spacer" height="21" width="100%"></td></tr>
<tr>
<td class="lmenucontainer" height="100%" valign="top" width="14%">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td width="100%"></td></tr></tbody></table></center></div>
<ul>
<li><a href="exporting-data.htm" target="_self" class="llink">Exporting Data</a></li>
<li><a href="deleting-data.htm" target="_self" class="llink">Deleting Data</a></li>
<li><a href="exclude-del.htm" target="_self" class="llinkA">exclude-del</a></li>
<li><a href="export-all.htm" target="_self" class="llink">export-all</a></li>
<li><a href="cli-tutorial.htm" target="_self" class="llink">cli-tutorial</a></li></ul>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr>
<td class="content2background"><img style="width: 160px; height: 1px;" alt="" src="architecture-Dateien/vgradp.gif"></td></tr></tbody></table><p>&nbsp;</p></td>
<td class="contentbackground" height="418" valign="top" width="86%">
<div align="right">
<table border="0" cellpadding="0" cellspacing="0" height="542" width="98%">
<tbody><tr>
<td class="contentbackground" height="21" width="100%"></td></tr>
<tr>
<td class="content" height="520" valign="top" width="100%">
<p>&nbsp;</p></td></tr></tbody></table></div>
<p>&nbsp; </p></td></tr>
<tr>
<td height="12" valign="top" width="14%"></td>
<td></td></tr></tbody></table></div></body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@@ -0,0 +1,106 @@
.spacer
{
HEIGHT:2px;
BACKGROUND-COLOR:#FFCC00;
}
.lmenu
{
BACKGROUND-COLOR:#FFCC00;
}
BODY
{
FONT-SIZE:13px;
COLOR:#000022;
FONT-FAMILY:Tahoma;
}
A.tlink:link
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:visited
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:14px;
}
A.tlink:hover
{
TEXT-DECORATION:underline;
}
A.llink:link
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:visited
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:normal;
FONT-SIZE:13px;
}
A.llink:hover
{
TEXT-DECORATION:underline;
}
.llinkA
{
COLOR:#003399;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:14px;
}
.tlinkA
{
COLOR:#000044;
TEXT-DECORATION:none;
FONT-WEIGHT:bold;
FONT-SIZE:15px;
}
.content
{
padding-top:3px;
padding-left:10px;
margin-left:10px;
margin-right:2px;
}
.footer
{
padding-top:3px;
font-size:8px;
padding-left:20px;
margin-left:10px;
text-align:center;
border-top:1px solid #003399;
}
.bannerbackground
{
background-color:#FFFFFF;
}
.contentbackground
{
background-color:#FFFFFF;
}
.lmenucontainer
{
background-image:url(./vgradp.gif);
}
.nav1background
{
background-image:url(./bg1.JPG);
}
.slogan
{
color:#000055;
}
.content2background
{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

50
doc/web/export-all.htm Normal file
View File

@@ -0,0 +1,50 @@
<html><head><title>Open Jail. The Jailer Project Web Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="Data Export Tool">
<meta name="description" content="data export referential integrity java jdbc dbms">
<link rel="stylesheet" type="text/css" href="export-all-Dateien/styles.css"></head><body left-margin="0" top-margin="0">
<div align="left">
<table style="text-align: left; position: absolute; left: 0pt; top: 0pt;" border="0" cellpadding="0" cellspacing="0" height="407" width="100%">
<tbody><tr>
<td colspan="2" class="bannerbackground" height="33" width="100%"><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><img src="export-all-Dateien/logo.png" hspace="10"></td>
<td class="slogan">Data&nbsp;Export&nbsp;Tool</td><td style="text-align: right; width: 100%;"><a href="http://sourceforge.net/projects/jailer/"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=197260&amp;type=1" alt="SourceForge.net Logo" style="border: 0px solid ;"></a></td></tr></tbody></table>
<b><font color="#ffffff">&nbsp; </font></b></td></tr>
<tr>
<td colspan="2" class="nav1background" height="33" width="100%">&nbsp; <b><font color="#ffffff">
<a href="home.htm" target="_self" class="tlink">Home</a> &nbsp;&nbsp;&nbsp;
<a href="tutorial.htm" target="_self" class="tlinkA">Tutorial</a> &nbsp;&nbsp;&nbsp; <a href="documentation.htm" target="_self" class="tlink">Documentation</a> &nbsp;&nbsp;&nbsp; <a href="download.htm" target="_self" class="tlink">Download</a> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</font></b></td></tr>
<tr>
<td colspan="2" class="spacer" height="21" width="100%"></td></tr>
<tr>
<td class="lmenucontainer" height="100%" valign="top" width="14%">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td width="100%"></td></tr></tbody></table></center></div>
<ul>
<li><a href="exporting-data.htm" target="_self" class="llink">Exporting Data</a></li>
<li><a href="deleting-data.htm" target="_self" class="llink">Deleting Data</a></li>
<li><a href="exclude-del.htm" target="_self" class="llink">exclude-del</a></li>
<li><a href="export-all.htm" target="_self" class="llinkA">export-all</a></li>
<li><a href="cli-tutorial.htm" target="_self" class="llink">cli-tutorial</a></li></ul>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr>
<td class="content2background"><img style="width: 160px; height: 1px;" alt="" src="architecture-Dateien/vgradp.gif"></td></tr></tbody></table><p>&nbsp;</p></td>
<td class="contentbackground" height="418" valign="top" width="86%">
<div align="right">
<table border="0" cellpadding="0" cellspacing="0" height="542" width="98%">
<tbody><tr>
<td class="contentbackground" height="21" width="100%"></td></tr>
<tr>
<td class="content" height="520" valign="top" width="100%">
<p>&nbsp;</p></td></tr></tbody></table></div>
<p>&nbsp; </p></td></tr>
<tr>
<td height="12" valign="top" width="14%"></td>
<td></td></tr></tbody></table></div></body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Some files were not shown because too many files have changed in this diff Show More