();
-
- Student student1 = new Student(5, "Aruna", "D.C", "MD", "12345");
- Student student2 = new Student(1, "Yuri", "Novi", "MI", "54321");
- Student student3 = new Student(4, "Jyothy", "Rochester", "MI", "56789");
- Student student4 = new Student(3, "Kal", "Troy", "MI", "98765");
-
- students.add(student1);
- students.add(student2);
- students.add(student3);
- students.add(student4);
-
- StudentPrinter printer = new StudentPrinter();
- printer.print(students);
-
-
- }
-
-}
diff --git a/CoreJava_Feb2015/src/com/training/java/core/date/DateDemo1.java b/CoreJava_Feb2015/src/com/training/java/core/date/DateDemo1.java
deleted file mode 100644
index a1a6ee5..0000000
--- a/CoreJava_Feb2015/src/com/training/java/core/date/DateDemo1.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package com.training.java.core.date;
-
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-public class DateDemo1 {
-
- public static void main(String[] args) throws ParseException {
-
- Date now = new Date();
-
- SimpleDateFormat sdf = new SimpleDateFormat("MM-dd-yyyy/HH-mm-ss a");
- String nowInString = sdf.format(now);
-
- //Date jan1st = sdf.parse("01-01-2015");
-
- //System.out.println(jan1st);
-
- //System.out.println(now);
- System.out.println(nowInString);
- }
-
-}
diff --git a/CoreJava_Feb2015/src/com/training/java/core/date/DateDemo2.java b/CoreJava_Feb2015/src/com/training/java/core/date/DateDemo2.java
deleted file mode 100644
index ff682f1..0000000
--- a/CoreJava_Feb2015/src/com/training/java/core/date/DateDemo2.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.training.java.core.date;
-
-import java.util.Calendar;
-import java.util.Date;
-import java.util.GregorianCalendar;
-
-public class DateDemo2 {
-
- public static void main(String[] args) {
-
- Calendar now = new GregorianCalendar();
-
- int year = now.get(Calendar.YEAR);
- int month = now.get(Calendar.MONTH);
- int minutes = now.get(Calendar.MINUTE);
-
- System.out.println("hours = " + minutes);
- System.out.println("minutes = " + minutes);
-
- System.out.println("year = " + year);
- System.out.println("month = " + month);
-
- Date nowDate = now.getTime();
-
- System.out.println("Date = " + nowDate);
- }
-
-}
diff --git a/CoreJava_Feb2015/src/com/training/java/core/date/DateDemo3.java b/CoreJava_Feb2015/src/com/training/java/core/date/DateDemo3.java
deleted file mode 100644
index 70077dc..0000000
--- a/CoreJava_Feb2015/src/com/training/java/core/date/DateDemo3.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.training.java.core.date;
-
-import java.util.Calendar;
-import java.util.GregorianCalendar;
-
-public class DateDemo3 {
-
- public static void main(String[] args) {
-
- Calendar jan1_2015 = new GregorianCalendar(2015, 0, 1);
- Calendar jan14_2015 = new GregorianCalendar(2015, 0, 14);
-
- //jan1_2015.add(Calendar.MONTH, 1);
-
- System.out.println("date1 = " + jan1_2015.getTime());
- System.out.println("date2 = " + jan14_2015.getTime());
-
- long date1Millis = jan1_2015.getTimeInMillis();
- long date2Millis = jan14_2015.getTimeInMillis();
-
- long differenceInMillis = date2Millis - date1Millis;
- long diffInSec = differenceInMillis/1000;
- long diffInMin = diffInSec/60;
- long diffInHours = diffInMin/60;
- long diffInDays = diffInHours/24;
-
- System.out.println("Diff in days = " + diffInDays);
-
-
- System.out.println(jan1_2015.before(jan14_2015));
-
- }
-
-}
diff --git a/CoreJava_Feb2015/src/com/training/java/core/date/DateUtil.java b/CoreJava_Feb2015/src/com/training/java/core/date/DateUtil.java
deleted file mode 100644
index 85060f7..0000000
--- a/CoreJava_Feb2015/src/com/training/java/core/date/DateUtil.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.training.java.core.date;
-
-import java.util.Calendar;
-
-public class DateUtil {
-
- public long getDiffInDays(Calendar date1, Calendar date2)
- {
- long date1Millis = date1.getTimeInMillis();
- long date2Millis = date2.getTimeInMillis();
-
- long differenceInMillis = date2Millis - date1Millis;
- long diffInSec = differenceInMillis/1000;
- long diffInMin = diffInSec/60;
- long diffInHours = diffInMin/60;
- long diffInDays = diffInHours/24;
-
- return diffInDays;
- }
-
-}
diff --git a/CoreJava_Feb2015/src/com/training/java/core/stringbuffer/StringBufferDemo.java b/CoreJava_Feb2015/src/com/training/java/core/stringbuffer/StringBufferDemo.java
deleted file mode 100644
index 579992a..0000000
--- a/CoreJava_Feb2015/src/com/training/java/core/stringbuffer/StringBufferDemo.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.training.java.core.stringbuffer;
-
-public class StringBufferDemo {
-
- public static void main(String[] args) {
-
- StringBuffer name = new StringBuffer();
-
- name.append("abc");
- name.append("def");
- name.append("ghi");
-
- System.out.println(name);
-
- }
-
-}
diff --git a/CoreJava_Feb2015/src/com/training/java/core/stringbuffer/StringDemo.java b/CoreJava_Feb2015/src/com/training/java/core/stringbuffer/StringDemo.java
deleted file mode 100644
index 2c68bcd..0000000
--- a/CoreJava_Feb2015/src/com/training/java/core/stringbuffer/StringDemo.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package com.training.java.core.stringbuffer;
-
-public class StringDemo {
-
- public static void main(String[] args) {
-
- String s = "abc";
-
- System.out.println("s = " + s);
-
- s = s.replace('a', 'z');
-
- System.out.println("s = " + s);
- }
-
-}
diff --git a/CoreJava_Feb2015/src/com/training/java/core/stringbuffer/StringDemo2.java b/CoreJava_Feb2015/src/com/training/java/core/stringbuffer/StringDemo2.java
deleted file mode 100644
index eeca4c2..0000000
--- a/CoreJava_Feb2015/src/com/training/java/core/stringbuffer/StringDemo2.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package com.training.java.core.stringbuffer;
-
-public class StringDemo2 {
-
- public static void main(String[] args) {
-
- String name = new String();
-
- name = name.concat("abc");
- name = name.concat("def");
- name = name.concat("ghi");
-
- System.out.println(name);
- }
-
-}
diff --git a/CoreJava_Feb2015/src/com/training/java/core/stringbuffer/StringQuestion.java b/CoreJava_Feb2015/src/com/training/java/core/stringbuffer/StringQuestion.java
deleted file mode 100644
index cf55f66..0000000
--- a/CoreJava_Feb2015/src/com/training/java/core/stringbuffer/StringQuestion.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.training.java.core.stringbuffer;
-
-public class StringQuestion {
-
- public static void main(String[] args) {
-
- //Given a sentence of words separated by spaces, reverse the words.
- //Example1 : "World is beautiful" should return "beautiful is World"
- //Example2 : "Pen is mightier than sword" should return "sword than mightier is Pen"
-
- //Get the arraof words separated by space
-
- String str = "Pen is mightier than sword";
-
- String[] words = str.split(" ");
- System.out.println(words.length);
-
- int length = words.length;
-
- StringBuffer reversedString = new StringBuffer();
- for(int i = length-1; i>=0; i--)
- {
- reversedString.append(words[i]);
-
- if(i != 0)
- {
- reversedString.append(" ");
- }
- }
-
- System.out.println(reversedString.toString());
- }
-
-}
diff --git a/CoreJava_Jan2014/.classpath b/CoreJava_Jan2014/.classpath
deleted file mode 100644
index 91ee9a5..0000000
--- a/CoreJava_Jan2014/.classpath
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/CoreJava_Jan2014/.project b/CoreJava_Jan2014/.project
deleted file mode 100644
index bc2ad78..0000000
--- a/CoreJava_Jan2014/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- CoreJava_Jan2014
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
-
-
diff --git a/CoreJava_Jan2014/.settings/org.eclipse.jdt.core.prefs b/CoreJava_Jan2014/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 838bd9d..0000000
--- a/CoreJava_Jan2014/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,11 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/CoreJava_Jan2014/src/ArrayDemo.java b/CoreJava_Jan2014/src/ArrayDemo.java
deleted file mode 100644
index 5251bcd..0000000
--- a/CoreJava_Jan2014/src/ArrayDemo.java
+++ /dev/null
@@ -1,32 +0,0 @@
-public class ArrayDemo {
-
- public static void main(String[] args) {
-
- // Declared and created
- int[] ages = new int[10];
-
- // Assign some values
- ages[0] = 23;
- ages[1] = 34;
- ages[2] = 51;
- ages[3] = 65;
-
- // Reading the values from an array
- System.out.println("Size of the array = " + ages.length);
- System.out.println("1st value " + ages[0]);
- System.out.println("3rd value " + ages[2]);
- System.out.println("Last value " + ages[9]);
-
- // Read all the values of an array
- for (int i = 0; i < ages.length; i++) {
- System.out.println("Value at index " + i + " is " + ages[i]);
- }
-
- // for each loop
- for (int age : ages) {
- System.out.println("Age = " + age);
- }
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/ArrayDemo2.java b/CoreJava_Jan2014/src/ArrayDemo2.java
deleted file mode 100644
index 58a1f88..0000000
--- a/CoreJava_Jan2014/src/ArrayDemo2.java
+++ /dev/null
@@ -1,31 +0,0 @@
-
-public class ArrayDemo2 {
-
- public static void main(String[] args) {
-
- Car[] cars = new Car[3];
-
- Car car1 = new Car();
- car1.make = "Ford";
- car1.model = "Mustang";
-
- Car car2 = new Car();
- car2.make = "Chevy";
- car2.model = "Corvette";
-
- Car car3 = new Car();
- car3.make = "Chrysler";
- car3.model = "Town & Country";
-
- cars[0] = car1;
- cars[1] = car2;
- cars[2] = car3;
-
- for (Car c : cars) {
- System.out.println("Make of car = " + c.make);
- System.out.println("Model of car = " + c.model);
- }
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/ArrayDemo3.java b/CoreJava_Jan2014/src/ArrayDemo3.java
deleted file mode 100644
index 400a417..0000000
--- a/CoreJava_Jan2014/src/ArrayDemo3.java
+++ /dev/null
@@ -1,22 +0,0 @@
-public class ArrayDemo3 {
-
- public static void main(String[] arguments) {
-
- // Create and assign values to an array at the same time
- String[] names = { "Henry", "Jaya", "Manisha", "Mira" };
-
- System.out.println("5th name = " + names[3]);
-
- // for loop
- for (int i = 0; i < names.length; i++) {
- String name = names[i];
- System.out.println("Name = " + name);
- }
-
- // for each loop
- for (String name : names) {
- System.out.println("Name = " + name);
- }
- }
-
-}
diff --git a/CoreJava_Jan2014/src/CalculatorDemo.java b/CoreJava_Jan2014/src/CalculatorDemo.java
deleted file mode 100644
index 975d6c5..0000000
--- a/CoreJava_Jan2014/src/CalculatorDemo.java
+++ /dev/null
@@ -1,26 +0,0 @@
-public class CalculatorDemo {
-
- public static void main(String[] args) {
-
- // 2 + 3
-
- String operand1 = args[0];
- String operaor = args[1];
- String operand2 = args[2];
-
- System.out.println("operand1 = " + operand1);
- System.out.println("operaor = " + operaor);
- System.out.println("operand2 = " + operand2);
-
- int op1 = Integer.parseInt(operand1);
- int op2 = Integer.parseInt(operand2);
-
- if (operaor.equals("+")) {
- System.out.println("Result = " + (op1 + op2));
- } else if (operaor.equals("-")) {
- System.out.println("Result = " + (op1 - op2));
- }
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/Car.java b/CoreJava_Jan2014/src/Car.java
deleted file mode 100644
index be8936d..0000000
--- a/CoreJava_Jan2014/src/Car.java
+++ /dev/null
@@ -1,33 +0,0 @@
-public class Car {
-
- String make;
- String model;
- int year;
- int maximumSpeed;
- int currentSpeed;
- String color;
- boolean hasStarted;
-
- void start() {
- System.out.println("I am starting the car");
- hasStarted = true;
-
- currentSpeed = 0;
- }
-
- void stop() {
- System.out.println("Stopping the car");
- hasStarted = false;
- currentSpeed = 0;
- }
-
- void changeColor(String newColor) {
- color = newColor;
- }
-
- int accelerate(int howMuch) {
- currentSpeed = currentSpeed + howMuch;
- return currentSpeed;
- }
-
-}
diff --git a/CoreJava_Jan2014/src/ConcatenationDemo.java b/CoreJava_Jan2014/src/ConcatenationDemo.java
deleted file mode 100644
index 1566390..0000000
--- a/CoreJava_Jan2014/src/ConcatenationDemo.java
+++ /dev/null
@@ -1,20 +0,0 @@
-public class ConcatenationDemo {
-
- public static void main(String[] args) {
-
- String oneString = "1";
- String twoString = "2";
-
- int one = Integer.parseInt(oneString);
- int two = Integer.parseInt(twoString);
-
- String speed1 = "123.56";
- String speed2 = "75.87";
-
- System.out.println(one + two);
- System.out.println(Double.parseDouble(speed1)
- + Double.parseDouble(speed2));
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/DoWhileDemo1.java b/CoreJava_Jan2014/src/DoWhileDemo1.java
deleted file mode 100644
index 14f2b20..0000000
--- a/CoreJava_Jan2014/src/DoWhileDemo1.java
+++ /dev/null
@@ -1,17 +0,0 @@
-public class DoWhileDemo1 {
-
- public static void main(String[] args) {
-
- int i = 11;
-
- do {
-
- System.out.println("i = " + i);
-
- i++;
-
- } while (i < 11);
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/Driver.java b/CoreJava_Jan2014/src/Driver.java
deleted file mode 100644
index 931fd45..0000000
--- a/CoreJava_Jan2014/src/Driver.java
+++ /dev/null
@@ -1,27 +0,0 @@
-public class Driver {
-
- public static void main(String[] args) {
-
- Car volt = new Car();
-
- volt.changeColor("Black");
- System.out.println("Color now is " + volt.color);
-
- volt.start();
-
- volt.changeColor("Blue");
-
- System.out.println("Current speed = " + volt.currentSpeed);
- volt.accelerate(20);
- volt.accelerate(30);
- volt.accelerate(60);
-
- System.out.println("Color now is " + volt.color);
- System.out.println("Current speed = " + volt.currentSpeed);
-
- volt.stop();
-
- System.out.println("Current speed = " + volt.currentSpeed);
- }
-
-}
diff --git a/CoreJava_Jan2014/src/ForLoopDemo1.java b/CoreJava_Jan2014/src/ForLoopDemo1.java
deleted file mode 100644
index ae73ce8..0000000
--- a/CoreJava_Jan2014/src/ForLoopDemo1.java
+++ /dev/null
@@ -1,16 +0,0 @@
-public class ForLoopDemo1 {
-
- public static void main(String[] args) {
-
- for (int i = 1; i < 11; i++) {
-
- if (i == 5) {
- break;
- }
-
- System.out.println("Counter = " + i);
- }
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/HelloWorld.java b/CoreJava_Jan2014/src/HelloWorld.java
deleted file mode 100644
index ee8e7e5..0000000
--- a/CoreJava_Jan2014/src/HelloWorld.java
+++ /dev/null
@@ -1,10 +0,0 @@
-public class HelloWorld {
-
- public static void main(String[] args) {
-
- System.out.println("Hello students, how are you doing?");
- System.out.println("3 times 2 = " + 3 * 2);
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/HelloWorldWithArgument.java b/CoreJava_Jan2014/src/HelloWorldWithArgument.java
deleted file mode 100644
index fabfdb3..0000000
--- a/CoreJava_Jan2014/src/HelloWorldWithArgument.java
+++ /dev/null
@@ -1,16 +0,0 @@
-public class HelloWorldWithArgument {
-
- public static void main(String[] args) {
-
- System.out.println("Array length = " + args.length);
- String name = args[0];
- String secondName = args[1];
- String thirdName = args[2];
-
- System.out.println("Hello " + name);
- System.out.println("Hello " + secondName);
- System.out.println("Hello " + thirdName);
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/IfElseExample.java b/CoreJava_Jan2014/src/IfElseExample.java
deleted file mode 100644
index 3ff2d86..0000000
--- a/CoreJava_Jan2014/src/IfElseExample.java
+++ /dev/null
@@ -1,9 +0,0 @@
-public class IfElseExample {
-
- public static void main(String[] args) {
-
- int age = 40;
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/MedicareEligibilityCalculator.java b/CoreJava_Jan2014/src/MedicareEligibilityCalculator.java
deleted file mode 100644
index 4859eb9..0000000
--- a/CoreJava_Jan2014/src/MedicareEligibilityCalculator.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- *
- *
- *
- * @author Venkata
- *
- */
-public class MedicareEligibilityCalculator {
-
- /**
- * if age is 65 or above, he is eligible irrespective of state and sex if
- * he/she has preexisting condition, he is eligible if age more than 45 and
- * state is Texas or Hawai, he is eligible..
- *
- * @param age
- * @param hasPreExistingCondition
- * @param state
- * @return
- */
- public boolean isEligible(int age, boolean hasPreExistingCondition,
- String state) {
- // If age is above 65, he/she is eligible for medicare because..
- if (age >= 65) {
- return true;
- } else if (hasPreExistingCondition) {
- return true;
- } else if ((age > 45) && (state.equals("TX") || state.equals("HI"))) {
- return true;
- } else {
- return false;
- }
- }
-
-}
diff --git a/CoreJava_Jan2014/src/MedicareEligibilityCalculatorDemo.java b/CoreJava_Jan2014/src/MedicareEligibilityCalculatorDemo.java
deleted file mode 100644
index f9d58aa..0000000
--- a/CoreJava_Jan2014/src/MedicareEligibilityCalculatorDemo.java
+++ /dev/null
@@ -1,22 +0,0 @@
-public class MedicareEligibilityCalculatorDemo {
-
- public static void main(String[] args) {
-
- MedicareEligibilityCalculator calculator = new MedicareEligibilityCalculator();
-
- boolean isEligibleFor25MaleInMI = calculator.isEligible(25, true, "MI");
- System.out
- .println("Am I eligible with 25 with pre existing in Michigan "
- + isEligibleFor25MaleInMI);
-
- boolean isEligibleFor45InTX = calculator.isEligible(45, false, "TX");
- System.out.println("Am I eligible with 45 with no pre existing in TX "
- + isEligibleFor45InTX);
-
- boolean isEligibleFor65InHI = calculator.isEligible(65, false, "HI");
- System.out.println("Am I eligible with 65 with no pre existing in HI "
- + isEligibleFor65InHI);
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/MonthDescriber.java b/CoreJava_Jan2014/src/MonthDescriber.java
deleted file mode 100644
index 0b22d83..0000000
--- a/CoreJava_Jan2014/src/MonthDescriber.java
+++ /dev/null
@@ -1,30 +0,0 @@
-public class MonthDescriber {
-
- String describe(int numberOfMonth, String country) {
- String monthDescription = "Outside of USA..sorry, I can't calculate..";
-
- if (country.equals("USA")) {
- switch (numberOfMonth) {
-
- case 1:
- monthDescription = "January";
- break;
-
- case 2:
- monthDescription = "February";
- break;
-
- case 3:
- monthDescription = "March";
- break;
-
- default:
- monthDescription = "invalid month provided";
- break;
- }
- }
-
- return monthDescription;
- }
-
-}
diff --git a/CoreJava_Jan2014/src/MonthDescriberDemo.java b/CoreJava_Jan2014/src/MonthDescriberDemo.java
deleted file mode 100644
index 2db48a3..0000000
--- a/CoreJava_Jan2014/src/MonthDescriberDemo.java
+++ /dev/null
@@ -1,13 +0,0 @@
-public class MonthDescriberDemo {
-
- public static void main(String[] args) {
-
- MonthDescriber describer = new MonthDescriber();
-
- String description = describer.describe(13, "INDIA");
-
- System.out.println("Description = " + description);
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/PostfixOperatorDemo.java b/CoreJava_Jan2014/src/PostfixOperatorDemo.java
deleted file mode 100644
index 2073dc8..0000000
--- a/CoreJava_Jan2014/src/PostfixOperatorDemo.java
+++ /dev/null
@@ -1,12 +0,0 @@
-public class PostfixOperatorDemo {
-
- public static void main(String[] args) {
-
- int i = 1;
-
- System.out.println("i = " + i--);
- System.out.println("i = " + i);
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/Test.java b/CoreJava_Jan2014/src/Test.java
deleted file mode 100644
index 928becc..0000000
--- a/CoreJava_Jan2014/src/Test.java
+++ /dev/null
@@ -1,15 +0,0 @@
-public class Test {
-
- public static void main(String[] args) {
-
- int age = 6;
- do {
- System.out.println("Age = " + age++);
- } while (age < 10);
-
- String name = (age == 6) ? "Venkat" : "Hari";
- System.out.println("Name = " + name);
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/WhileLoopDemo1.java b/CoreJava_Jan2014/src/WhileLoopDemo1.java
deleted file mode 100644
index 83ee573..0000000
--- a/CoreJava_Jan2014/src/WhileLoopDemo1.java
+++ /dev/null
@@ -1,17 +0,0 @@
-public class WhileLoopDemo1 {
-
- public static void main(String[] args) {
-
- int i = 11;
-
- while (i < 11) {
- System.out.println("i = " + i);
-
- i++;
- }
-
- System.out.println("After while loop");
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/google/docs/excel/admin/Customer.java b/CoreJava_Jan2014/src/com/google/docs/excel/admin/Customer.java
deleted file mode 100644
index fe0403b..0000000
--- a/CoreJava_Jan2014/src/com/google/docs/excel/admin/Customer.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.google.docs.excel.admin;
-
-import inheritance.Car;
-
-public class Customer {
-
- public static void main(String[] args) {
- Car car = new Car();
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/google/docs/excel/admin/PoliceCar.java b/CoreJava_Jan2014/src/com/google/docs/excel/admin/PoliceCar.java
deleted file mode 100644
index 556847d..0000000
--- a/CoreJava_Jan2014/src/com/google/docs/excel/admin/PoliceCar.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.google.docs.excel.admin;
-
-import inheritance.Car;
-
-public class PoliceCar extends Car {
-
- protected void changeColor(String newColor) {
- System.out.println("This is overridden method behavior in PoliceCar..");
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/google/docs/excel/admin/PoliceCarDemo.java b/CoreJava_Jan2014/src/com/google/docs/excel/admin/PoliceCarDemo.java
deleted file mode 100644
index b4498b8..0000000
--- a/CoreJava_Jan2014/src/com/google/docs/excel/admin/PoliceCarDemo.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.google.docs.excel.admin;
-
-public class PoliceCarDemo {
-
- public static void main(String[] args) {
-
- PoliceCar pc = new PoliceCar();
- pc.changeColor("Red");
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/google/docs/word/admin/Customer.java b/CoreJava_Jan2014/src/com/google/docs/word/admin/Customer.java
deleted file mode 100644
index f468ed9..0000000
--- a/CoreJava_Jan2014/src/com/google/docs/word/admin/Customer.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.google.docs.word.admin;
-
-public class Customer {
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/abstraction/Car.java b/CoreJava_Jan2014/src/com/training/java/core/abstraction/Car.java
deleted file mode 100644
index 58eb8c6..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/abstraction/Car.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package com.training.java.core.abstraction;
-
-public abstract class Car {
-
- private String make;
- private String model;
- private int year;
- public final int maximumSpeed = 140;
- private int currentSpeed;
- private String color;
- private boolean started;
-
- public Car() {
- }
-
- Car(String make, String model, int year) {
- this.model = model;
- this.make = make;
- this.year = year;
- }
-
- Car(String make, String model, int year, String color) {
- this.model = model;
- this.make = make;
- this.year = year;
- this.color = color;
- }
-
- void start() {
- System.out.println("I am starting the car");
- started = true;
-
- currentSpeed = 0;
- }
-
- void stop() {
- System.out.println("Stopping the car");
- started = false;
- currentSpeed = 0;
- }
-
- protected void changeColor(String newColor) {
- color = newColor;
- }
-
- public abstract int accelerate(int howMuch);
-
- // ************
-
- public String getMake() {
- return make;
- }
-
- public String getModel() {
- return model;
- }
-
- public int getYear() {
- return year;
- }
-
- public int getMaximumSpeed() {
- return maximumSpeed;
- }
-
- public int getCurrentSpeed() {
- return currentSpeed;
- }
-
- public void setCurrentSpeed(int currentSpeed) {
- this.currentSpeed = currentSpeed;
- }
-
- public String getColor() {
- return color;
- }
-
- public void setColor(String color) {
- this.color = color;
- }
-
- public boolean isStarted() {
- return started;
- }
-
- public void setStarted(boolean started) {
- this.started = started;
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/abstraction/Driver.java b/CoreJava_Jan2014/src/com/training/java/core/abstraction/Driver.java
deleted file mode 100644
index 928214e..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/abstraction/Driver.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.training.java.core.abstraction;
-
-public class Driver {
-
- private Car car;
-
- public Driver(Car car)
- {
- this.car = car;
- }
-
- public void drive()
- {
- car.start();
- car.accelerate(50);
-
- System.out.println("Current speed = " + car.getCurrentSpeed());
-
- car.stop();
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/abstraction/DriverDemo.java b/CoreJava_Jan2014/src/com/training/java/core/abstraction/DriverDemo.java
deleted file mode 100644
index 531877b..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/abstraction/DriverDemo.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.training.java.core.abstraction;
-
-public class DriverDemo {
-
- public static void main(String[] args) {
-
- Car raceCar = new RaceCar();
-
- Driver driver = new Driver(raceCar);
- driver.drive();
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/abstraction/PoliceCar.java b/CoreJava_Jan2014/src/com/training/java/core/abstraction/PoliceCar.java
deleted file mode 100644
index b7f3849..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/abstraction/PoliceCar.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.training.java.core.abstraction;
-
-public class PoliceCar extends Car {
-
- void start() {
- System.out.println("I am starting my PoliceCar...I am different!!");
- }
-
- @Override
- public int accelerate(int howMuch) {
-
- int wishfulCurrentSpeed = getCurrentSpeed() + howMuch;
-
- if (wishfulCurrentSpeed > getMaximumSpeed()) {
- setCurrentSpeed(getMaximumSpeed());
- } else {
- setCurrentSpeed(wishfulCurrentSpeed);
- }
-
- return getCurrentSpeed();
- }
-
- public void chase() {
- System.out.println("Policecar is chasing...");
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/abstraction/RaceCar.java b/CoreJava_Jan2014/src/com/training/java/core/abstraction/RaceCar.java
deleted file mode 100644
index 93f5130..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/abstraction/RaceCar.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package com.training.java.core.abstraction;
-
-public class RaceCar extends Car {
-
- private boolean nitro;
-
- public RaceCar() {
- super();
- }
-
- RaceCar(int year, String make, String model, boolean nitro) {
- super(make, model, year);
-
- this.nitro = nitro;
- }
-
- void race() {
- System.out.println("I am racing");
- accelerate(getMaximumSpeed());
-
- }
-
- @Override
- void start() {
- System.out.println("I am starting my RaceCar...rumm..!!");
- }
-
- @Override
- public int accelerate(int howMuch) {
-
- int wishfulCurrentSpeed = getCurrentSpeed() + howMuch + 50;
-
- if (wishfulCurrentSpeed > getMaximumSpeed()) {
- setCurrentSpeed(getMaximumSpeed());
- } else {
- setCurrentSpeed(wishfulCurrentSpeed);
- }
-
- return getCurrentSpeed();
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/finalexample/Bus.java b/CoreJava_Jan2014/src/com/training/java/core/finalexample/Bus.java
deleted file mode 100644
index bc48a56..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/finalexample/Bus.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package com.training.java.core.finalexample;
-
-public class Bus implements Vehicle {
-
- private int currentSpeed;
-
- @Override
- public void start() {
-
- System.out.println("Bus is starting");
-
- }
-
- @Override
- public int accelerate(int howMuch) {
- currentSpeed += howMuch;
-
- return currentSpeed;
- }
-
- @Override
- public void stop() {
- System.out.println("Bus is stopping");
- }
-
- @Override
- public int getCurrentSpeed() {
- return currentSpeed;
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/finalexample/Driver.java b/CoreJava_Jan2014/src/com/training/java/core/finalexample/Driver.java
deleted file mode 100644
index 969ce13..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/finalexample/Driver.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.training.java.core.finalexample;
-
-public class Driver {
-
- private Vehicle vehicle;
-
- public Driver(Vehicle car)
- {
- this.vehicle = car;
- }
-
- public void drive()
- {
- vehicle.start();
- vehicle.accelerate(50);
-
- System.out.println("Current speed = " + vehicle.getCurrentSpeed());
-
- vehicle.stop();
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/finalexample/InterfaceDemo.java b/CoreJava_Jan2014/src/com/training/java/core/finalexample/InterfaceDemo.java
deleted file mode 100644
index aec2096..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/finalexample/InterfaceDemo.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.training.java.core.finalexample;
-
-public class InterfaceDemo {
-
- public static void main(String[] args) {
-
- Vehicle v = new Truck();
-
- Driver driver = new Driver(v);
- driver.drive();
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/finalexample/Truck.java b/CoreJava_Jan2014/src/com/training/java/core/finalexample/Truck.java
deleted file mode 100644
index 4f7a4c6..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/finalexample/Truck.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package com.training.java.core.finalexample;
-
-public class Truck implements Vehicle {
-
- private int currentSpeed;
-
- @Override
- public void start() {
- System.out.println("My truck is starting..");
-
- }
-
- @Override
- public int accelerate(int howMuch) {
- currentSpeed = currentSpeed + howMuch;
-
- return currentSpeed;
- }
-
- @Override
- public void stop() {
- System.out.println("My truck is stopping..");
- }
-
- @Override
- public int getCurrentSpeed() {
- return currentSpeed;
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/finalexample/Vehicle.java b/CoreJava_Jan2014/src/com/training/java/core/finalexample/Vehicle.java
deleted file mode 100644
index 511abe6..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/finalexample/Vehicle.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.training.java.core.finalexample;
-
-public interface Vehicle {
-
- void start();
- int accelerate(int howMuch);
- void stop();
-
- int getCurrentSpeed();
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/immutability/Car.java b/CoreJava_Jan2014/src/com/training/java/core/immutability/Car.java
deleted file mode 100644
index 4990ac5..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/immutability/Car.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.training.java.core.immutability;
-
-public class Car {
-
- private String make = "Ford";
- private String model = "Focus";
- private int year = 2014;
-
- public Car(String make, String model, int year) {
- super();
- this.make = make;
- this.model = model;
- this.year = year;
- }
-
- public String getMake() {
- return make;
- }
-
- public String getModel() {
- return model;
- }
-
- public int getYear() {
- return year;
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/immutability/ImmutabilityDemo.java b/CoreJava_Jan2014/src/com/training/java/core/immutability/ImmutabilityDemo.java
deleted file mode 100644
index 0cd9a58..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/immutability/ImmutabilityDemo.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.training.java.core.immutability;
-
-public class ImmutabilityDemo {
-
- public static void main(String[] args) {
-
- Car focus = new Car("Ford", "Focus", 2014);
- Car accord = new Car("Honda", "Accord", 2014);
- Car volt = new Car("Chevy", "Volt", 2014);
- Car camry = new Car("Toyota", "Camry", 2014);
-
- focus.getMake();
- focus.getModel();
- focus.getYear();
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/overriding/Car.java b/CoreJava_Jan2014/src/com/training/java/core/overriding/Car.java
deleted file mode 100644
index b43021d..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/overriding/Car.java
+++ /dev/null
@@ -1,102 +0,0 @@
-package com.training.java.core.overriding;
-
-public class Car {
-
- private String make;
- private String model;
- private int year;
- private int maximumSpeed = 140;
- private int currentSpeed;
- private String color;
- private boolean started;
-
- public Car() {
-
- }
-
- Car(String make, String model, int year) {
- this.model = model;
- this.make = make;
- this.year = year;
- }
-
- Car(String make, String model, int year, String color) {
- this.model = model;
- this.make = make;
- this.year = year;
- this.color = color;
- }
-
- void start() {
- System.out.println("I am starting the car");
- started = true;
-
- currentSpeed = 0;
- }
-
- void stop() {
- System.out.println("Stopping the car");
- started = false;
- currentSpeed = 0;
- }
-
- protected void changeColor(String newColor) {
- color = newColor;
- }
-
- int accelerate(int howMuch) {
-
- int wishfulCurrentSpeed = currentSpeed + howMuch;
-
- if (wishfulCurrentSpeed > maximumSpeed) {
- currentSpeed = maximumSpeed;
- } else {
- currentSpeed = wishfulCurrentSpeed;
- }
-
- return currentSpeed;
- }
-
- // ************
-
- public String getMake() {
- return make;
- }
-
- public String getModel() {
- return model;
- }
-
- public int getYear() {
- return year;
- }
-
- public int getMaximumSpeed() {
- return maximumSpeed;
- }
-
- public int getCurrentSpeed() {
- return currentSpeed;
- }
-
- public void setCurrentSpeed(int currentSpeed) {
- this.currentSpeed = currentSpeed;
- }
-
- public String getColor() {
- return color;
- }
-
- public void setColor(String color) {
- this.color = color;
- }
-
- public boolean isStarted() {
- return started;
- }
-
- public void setStarted(boolean started) {
- this.started = started;
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/overriding/PoliceCar.java b/CoreJava_Jan2014/src/com/training/java/core/overriding/PoliceCar.java
deleted file mode 100644
index 2d76336..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/overriding/PoliceCar.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.training.java.core.overriding;
-
-/**
- * @author Venkata
- *
- */
-public class PoliceCar extends Car {
-
- /* (non-Javadoc)
- * @see com.training.java.core.overriding.Car#start()
- */
- @Override
- void start() {
-
- super.accelerate(20);
-
- System.out.println("I am starting my PoliceCar...I am different!!");
- }
-
- @Override
- int accelerate(int howMuch) {
- return 1;
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/overriding/PoliceCarDemo.java b/CoreJava_Jan2014/src/com/training/java/core/overriding/PoliceCarDemo.java
deleted file mode 100644
index 57ebbdf..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/overriding/PoliceCarDemo.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.training.java.core.overriding;
-
-public class PoliceCarDemo {
-
- public static void main(String[] args) {
-
- PoliceCar policeCar = new PoliceCar();
-
- policeCar.start();
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/polymorphysm/Car.java b/CoreJava_Jan2014/src/com/training/java/core/polymorphysm/Car.java
deleted file mode 100644
index f56aea0..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/polymorphysm/Car.java
+++ /dev/null
@@ -1,102 +0,0 @@
-package com.training.java.core.polymorphysm;
-
-public class Car {
-
- private String make;
- private String model;
- private int year;
- private final int maximumSpeed = 140;
- private int currentSpeed;
- private String color;
- private boolean started;
-
- public Car() {
-
- }
-
- Car(String make, String model, int year) {
- this.model = model;
- this.make = make;
- this.year = year;
- }
-
- Car(String make, String model, int year, String color) {
- this.model = model;
- this.make = make;
- this.year = year;
- this.color = color;
- }
-
- void start() {
- System.out.println("I am starting the car");
- started = true;
-
- currentSpeed = 0;
- }
-
- void stop() {
- System.out.println("Stopping the car");
- started = false;
- currentSpeed = 0;
- }
-
- protected void changeColor(String newColor) {
- color = newColor;
- }
-
- int accelerate(int howMuch) {
-
- int wishfulCurrentSpeed = currentSpeed + howMuch;
-
- if (wishfulCurrentSpeed > maximumSpeed) {
- currentSpeed = maximumSpeed;
- } else {
- currentSpeed = wishfulCurrentSpeed;
- }
-
- return currentSpeed;
- }
-
- // ************
-
- public String getMake() {
- return make;
- }
-
- public String getModel() {
- return model;
- }
-
- public int getYear() {
- return year;
- }
-
- public int getMaximumSpeed() {
- return maximumSpeed;
- }
-
- public int getCurrentSpeed() {
- return currentSpeed;
- }
-
- public void setCurrentSpeed(int currentSpeed) {
- this.currentSpeed = currentSpeed;
- }
-
- public String getColor() {
- return color;
- }
-
- public void setColor(String color) {
- this.color = color;
- }
-
- public boolean isStarted() {
- return started;
- }
-
- public void setStarted(boolean started) {
- this.started = started;
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/polymorphysm/PoliceCar.java b/CoreJava_Jan2014/src/com/training/java/core/polymorphysm/PoliceCar.java
deleted file mode 100644
index 997a35d..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/polymorphysm/PoliceCar.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package com.training.java.core.polymorphysm;
-
-public class PoliceCar extends Car {
-
- void start() {
- System.out.println("I am starting my PoliceCar...I am different!!");
- }
-
- @Override
- int accelerate(int howMuch) {
-
- return super.accelerate(getMaximumSpeed());
- }
-
- public void chase() {
- System.out.println("Policecar is chasing...");
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/polymorphysm/PolymorphismDemo.java b/CoreJava_Jan2014/src/com/training/java/core/polymorphysm/PolymorphismDemo.java
deleted file mode 100644
index 69b9867..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/polymorphysm/PolymorphismDemo.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.training.java.core.polymorphysm;
-
-public class PolymorphismDemo {
-
- public static void main(String[] args) {
-
- PoliceCar policeCar = new PoliceCar();
- RaceCar raceCar = new RaceCar();
-
- execute(policeCar);
- execute(raceCar);
-
- }
-
- public static void execute(Car car) {
- car.start();
- car.accelerate(30);
-
- System.out.println("Current speed = " + car.getCurrentSpeed());
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/polymorphysm/RaceCar.java b/CoreJava_Jan2014/src/com/training/java/core/polymorphysm/RaceCar.java
deleted file mode 100644
index 0448654..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/polymorphysm/RaceCar.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package com.training.java.core.polymorphysm;
-
-public class RaceCar extends Car {
-
- private boolean nitro;
-
- public RaceCar() {
- super();
- }
-
- RaceCar(int year, String make, String model, boolean nitro) {
- super(make, model, year);
-
- this.nitro = nitro;
- }
-
- void race() {
- System.out.println("I am racing");
- accelerate(getMaximumSpeed());
-
- }
-
- void start() {
- System.out.println("I am starting my RaceCar...rumm..!!");
- }
-
- int accelerate(int howMuch) {
-
- return super.accelerate(howMuch + 50);
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/string/StringBufferDemo.java b/CoreJava_Jan2014/src/com/training/java/core/string/StringBufferDemo.java
deleted file mode 100644
index 7e69337..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/string/StringBufferDemo.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.training.java.core.string;
-
-public class StringBufferDemo {
-
- public static void main(String[] args) {
-
- StringBuffer sb = new StringBuffer("JavaTraining");
-
- for(int i=0; i<100; i++)
- {
- sb.append(" By Venkat Hari");
- System.out.println("str = " + sb.toString());
- }
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/string/StringDemo.java b/CoreJava_Jan2014/src/com/training/java/core/string/StringDemo.java
deleted file mode 100644
index 3418eda..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/string/StringDemo.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package com.training.java.core.string;
-
-/**
- * This class demonstrates how String is an immutable object. For example,
- *
- * every single time you call concat method, you are creating a brand new object.
- *
- *
- * @author Venkata
- *
- */
-public class StringDemo {
-
- /**
- *
- *
- * @param args
- */
- public static void main(String[] args) {
-
- //String str = new String("JavaTraining");
- String str = "JavaTraining";
-
- for(int i=0; i<100; i++)
- {
- str = str.concat(" By Venkat Hari");
- System.out.println("str = " + str);
- }
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/threading/Thread2.java b/CoreJava_Jan2014/src/com/training/java/core/threading/Thread2.java
deleted file mode 100644
index 0991833..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/threading/Thread2.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.training.java.core.threading;
-
-public class Thread2 extends Thread {
-
- @Override
- public void run() {
-
- for(int i=0; i<1000; i++)
- {
- System.out.println("In.." + Thread.currentThread().getName() + "i = " + i);
- }
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/threading/Thread2Runnable.java b/CoreJava_Jan2014/src/com/training/java/core/threading/Thread2Runnable.java
deleted file mode 100644
index 9413bf3..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/threading/Thread2Runnable.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.training.java.core.threading;
-
-public class Thread2Runnable implements Runnable {
-
- @Override
- public void run() {
-
- for (int i = 0; i < 1000; i++) {
- System.out.println("In.." + Thread.currentThread().getName()
- + "i = " + i);
- }
- }
-
-}
diff --git a/CoreJava_Jan2014/src/com/training/java/core/threading/ThreadDemo.java b/CoreJava_Jan2014/src/com/training/java/core/threading/ThreadDemo.java
deleted file mode 100644
index 729c01e..0000000
--- a/CoreJava_Jan2014/src/com/training/java/core/threading/ThreadDemo.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.training.java.core.threading;
-
-public class ThreadDemo {
-
- public static void main(String[] args) throws InterruptedException {
-
- System.out.println("In.." + Thread.currentThread().getName());
-
- new Thread(new Thread2Runnable()).start();
-
- System.out.println("Before main thread sleeps");
- Thread.sleep(1000);
- System.out.println("After main thread sleeps");
-
- for(int j=0; j<1000; j++)
- {
- System.out.println("In.." + Thread.currentThread().getName() + "j = " + j);
- }
- }
-
-}
diff --git a/CoreJava_Jan2014/src/constructor/Car.java b/CoreJava_Jan2014/src/constructor/Car.java
deleted file mode 100644
index 005af44..0000000
--- a/CoreJava_Jan2014/src/constructor/Car.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package constructor;
-
-public class Car {
-
- String make;
- String model;
- int year;
- int maximumSpeed;
- int currentSpeed;
- String color;
- boolean hasStarted;
-
- Car() {
-
- }
-
- Car(String newMake, String newModel) {
- make = newMake;
- model = newModel;
- }
-
- Car(String newMake) {
- make = newMake;
- }
-
- Car(String newModel, String newMake, int year) {
-
- }
-
- void start() {
- System.out.println("I am starting the car");
- hasStarted = true;
-
- currentSpeed = 0;
- }
-
- void stop() {
- System.out.println("Stopping the car");
- hasStarted = false;
- currentSpeed = 0;
- }
-
- void changeColor(String newColor) {
- color = newColor;
- }
-
- int accelerate(int howMuch) {
- currentSpeed = currentSpeed + howMuch;
- return currentSpeed;
- }
-
-}
diff --git a/CoreJava_Jan2014/src/constructor/CarDemo.java b/CoreJava_Jan2014/src/constructor/CarDemo.java
deleted file mode 100644
index fa75724..0000000
--- a/CoreJava_Jan2014/src/constructor/CarDemo.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package constructor;
-
-public class CarDemo {
-
- public static void main(String[] args) {
-
- // Car focus = new Car("Ford", "Focus");
-
- Car focus = new Car("Ford", "Focus");
-
- System.out.println("Make of the car = " + focus.make);
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/encapsulation/Car.java b/CoreJava_Jan2014/src/encapsulation/Car.java
deleted file mode 100644
index beda8b4..0000000
--- a/CoreJava_Jan2014/src/encapsulation/Car.java
+++ /dev/null
@@ -1,102 +0,0 @@
-package encapsulation;
-
-public class Car {
-
- private String make;
- private String model;
- private int year;
- private int maximumSpeed = 140;
- private int currentSpeed;
- private String color;
- private boolean started;
-
- Car(String make, String model, int year) {
- this.model = model;
- this.make = make;
- this.year = year;
- }
-
- Car(String make, String model, int year, String color) {
- this.model = model;
- this.make = make;
- this.year = year;
- this.color = color;
- }
-
- void start() {
- System.out.println("I am starting the car");
- started = true;
-
- currentSpeed = 0;
- }
-
- void stop() {
- System.out.println("Stopping the car");
- started = false;
- currentSpeed = 0;
- }
-
- void changeColor(String newColor) {
- color = newColor;
- }
-
- int accelerate(int howMuch) {
-
- int wishfulCurrentSpeed = currentSpeed + howMuch;
-
- if (wishfulCurrentSpeed > maximumSpeed) {
- currentSpeed = maximumSpeed;
- } else {
- currentSpeed = wishfulCurrentSpeed;
- }
-
- return currentSpeed;
- }
-
- // ************
-
- public String getMake() {
- return make;
- }
-
- public String getModel() {
- return model;
- }
-
- public int getYear() {
- return year;
- }
-
- public int getMaximumSpeed() {
- return maximumSpeed;
- }
-
- public void setMaximumSpeed(int maximumSpeed) {
- this.maximumSpeed = maximumSpeed;
- }
-
- public int getCurrentSpeed() {
- return currentSpeed;
- }
-
- public void setCurrentSpeed(int currentSpeed) {
- this.currentSpeed = currentSpeed;
- }
-
- public String getColor() {
- return color;
- }
-
- public void setColor(String color) {
- this.color = color;
- }
-
- public boolean isStarted() {
- return started;
- }
-
- public void setStarted(boolean started) {
- this.started = started;
- }
-
-}
diff --git a/CoreJava_Jan2014/src/encapsulation/CarDemo.java b/CoreJava_Jan2014/src/encapsulation/CarDemo.java
deleted file mode 100644
index 75c899f..0000000
--- a/CoreJava_Jan2014/src/encapsulation/CarDemo.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package encapsulation;
-
-public class CarDemo {
-
- public static void main(String[] args) {
-
- // Car focus = new Car("Ford", "Focus");
-
- Car focus = new Car("Ford", "Focus", 2013, "black");
-
- focus.setColor("red");
-
- focus.accelerate(45734756);
-
- System.out.println("Make of the car = " + focus.getMake());
- System.out.println("current speed = " + focus.getCurrentSpeed());
- System.out.println("Color of the car = " + focus.getColor());
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/inheritance/Car.java b/CoreJava_Jan2014/src/inheritance/Car.java
deleted file mode 100644
index 349cd96..0000000
--- a/CoreJava_Jan2014/src/inheritance/Car.java
+++ /dev/null
@@ -1,101 +0,0 @@
-package inheritance;
-
-public class Car {
-
- private String make;
- private String model;
- private int year;
- private int maximumSpeed = 140;
- private int currentSpeed;
- private String color;
- private boolean started;
-
- public Car() {
-
- }
-
- Car(String make, String model, int year) {
- this.model = model;
- this.make = make;
- this.year = year;
- }
-
- Car(String make, String model, int year, String color) {
- this.model = model;
- this.make = make;
- this.year = year;
- this.color = color;
- }
-
- void start() {
- System.out.println("I am starting the car");
- started = true;
-
- currentSpeed = 0;
- }
-
- void stop() {
- System.out.println("Stopping the car");
- started = false;
- currentSpeed = 0;
- }
-
- protected void changeColor(String newColor) {
- color = newColor;
- }
-
- int accelerate(int howMuch) {
-
- int wishfulCurrentSpeed = currentSpeed + howMuch;
-
- if (wishfulCurrentSpeed > maximumSpeed) {
- currentSpeed = maximumSpeed;
- } else {
- currentSpeed = wishfulCurrentSpeed;
- }
-
- return currentSpeed;
- }
-
- // ************
-
- public String getMake() {
- return make;
- }
-
- public String getModel() {
- return model;
- }
-
- public int getYear() {
- return year;
- }
-
- public int getMaximumSpeed() {
- return maximumSpeed;
- }
-
- public int getCurrentSpeed() {
- return currentSpeed;
- }
-
- public void setCurrentSpeed(int currentSpeed) {
- this.currentSpeed = currentSpeed;
- }
-
- public String getColor() {
- return color;
- }
-
- public void setColor(String color) {
- this.color = color;
- }
-
- public boolean isStarted() {
- return started;
- }
-
- public void setStarted(boolean started) {
- this.started = started;
- }
-}
diff --git a/CoreJava_Jan2014/src/inheritance/Driver.java b/CoreJava_Jan2014/src/inheritance/Driver.java
deleted file mode 100644
index 89e4beb..0000000
--- a/CoreJava_Jan2014/src/inheritance/Driver.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package inheritance;
-
-public class Driver {
-
- public static void main(String[] args) {
-
- Car car = new Car();
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/inheritance/RaceCar.java b/CoreJava_Jan2014/src/inheritance/RaceCar.java
deleted file mode 100644
index 57a1fa5..0000000
--- a/CoreJava_Jan2014/src/inheritance/RaceCar.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package inheritance;
-
-public class RaceCar extends Car {
-
- private boolean nitro;
-
- RaceCar(int year, String make, String model, boolean nitro) {
- super(make, model, year);
-
- this.nitro = nitro;
- }
-
- void race() {
- System.out.println("I am racing");
- accelerate(getMaximumSpeed());
-
- }
-
-}
diff --git a/CoreJava_Jan2014/src/inheritance/RaceCarDemo.java b/CoreJava_Jan2014/src/inheritance/RaceCarDemo.java
deleted file mode 100644
index 2849e8d..0000000
--- a/CoreJava_Jan2014/src/inheritance/RaceCarDemo.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package inheritance;
-
-import com.google.docs.excel.admin.Customer;
-
-public class RaceCarDemo {
-
- public static void main(String[] args) {
-
- RaceCar raceCar = new RaceCar(2011, "Ford", "Focus", false);
-
- raceCar.start();
- raceCar.race();
-
- int currentSpeed = raceCar.getCurrentSpeed();
- System.out.println("Current speed = " + currentSpeed);
-
- System.out.println(raceCar.toString());
-
- Customer customer = new Customer();
- }
-
-}
diff --git a/CoreJava_Venkat/.classpath b/CoreJava_Venkat/.classpath
deleted file mode 100644
index 91ee9a5..0000000
--- a/CoreJava_Venkat/.classpath
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/.project b/CoreJava_Venkat/.project
deleted file mode 100644
index 752d9a0..0000000
--- a/CoreJava_Venkat/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- CoreJava_Venkat
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
-
-
diff --git a/CoreJava_Venkat/.settings/org.eclipse.jdt.core.prefs b/CoreJava_Venkat/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 838bd9d..0000000
--- a/CoreJava_Venkat/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,11 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/CoreJava_Venkat/doc/allclasses-frame.html b/CoreJava_Venkat/doc/allclasses-frame.html
deleted file mode 100644
index e3877e1..0000000
--- a/CoreJava_Venkat/doc/allclasses-frame.html
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-All Classes
-
-
-
-
-All Classes
-
-
-
diff --git a/CoreJava_Venkat/doc/allclasses-noframe.html b/CoreJava_Venkat/doc/allclasses-noframe.html
deleted file mode 100644
index 7913dc0..0000000
--- a/CoreJava_Venkat/doc/allclasses-noframe.html
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-All Classes
-
-
-
-
-All Classes
-
-
-
diff --git a/CoreJava_Venkat/doc/com/suneetha/ArrayDemo.html b/CoreJava_Venkat/doc/com/suneetha/ArrayDemo.html
deleted file mode 100644
index 83a8b94..0000000
--- a/CoreJava_Venkat/doc/com/suneetha/ArrayDemo.html
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-ArrayDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.suneetha.ArrayDemo
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-ArrayDemo ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-static void
-main (java.lang.String[] args)
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-ArrayDemo
-public ArrayDemo()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/suneetha/CalculatorDemo.html b/CoreJava_Venkat/doc/com/suneetha/CalculatorDemo.html
deleted file mode 100644
index 42f42a1..0000000
--- a/CoreJava_Venkat/doc/com/suneetha/CalculatorDemo.html
+++ /dev/null
@@ -1,257 +0,0 @@
-
-
-
-
-
-CalculatorDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.suneetha.CalculatorDemo
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-CalculatorDemo ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-static void
-main (java.lang.String[] args)
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-CalculatorDemo
-public CalculatorDemo()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/suneetha/Car.html b/CoreJava_Venkat/doc/com/suneetha/Car.html
deleted file mode 100644
index da0ec8c..0000000
--- a/CoreJava_Venkat/doc/com/suneetha/Car.html
+++ /dev/null
@@ -1,228 +0,0 @@
-
-
-
-
-
-Car
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
-Detail:
-Field |
-Constr |
-Method
-
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-Car ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Detail:
-Field |
-Constr |
-Method
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/suneetha/CarDemo.html b/CoreJava_Venkat/doc/com/suneetha/CarDemo.html
deleted file mode 100644
index 73126c8..0000000
--- a/CoreJava_Venkat/doc/com/suneetha/CarDemo.html
+++ /dev/null
@@ -1,257 +0,0 @@
-
-
-
-
-
-CarDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-CarDemo ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-static void
-main (java.lang.String[] args)
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-CarDemo
-public CarDemo()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/suneetha/HelloWorld.html b/CoreJava_Venkat/doc/com/suneetha/HelloWorld.html
deleted file mode 100644
index 9fb8104..0000000
--- a/CoreJava_Venkat/doc/com/suneetha/HelloWorld.html
+++ /dev/null
@@ -1,257 +0,0 @@
-
-
-
-
-
-HelloWorld
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.suneetha.HelloWorld
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-HelloWorld ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-static void
-main (java.lang.String[] args)
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-HelloWorld
-public HelloWorld()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/suneetha/class-use/ArrayDemo.html b/CoreJava_Venkat/doc/com/suneetha/class-use/ArrayDemo.html
deleted file mode 100644
index 4b38ec7..0000000
--- a/CoreJava_Venkat/doc/com/suneetha/class-use/ArrayDemo.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.suneetha.ArrayDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.suneetha.ArrayDemo
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/suneetha/class-use/CalculatorDemo.html b/CoreJava_Venkat/doc/com/suneetha/class-use/CalculatorDemo.html
deleted file mode 100644
index 75ea17a..0000000
--- a/CoreJava_Venkat/doc/com/suneetha/class-use/CalculatorDemo.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.suneetha.CalculatorDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.suneetha.CalculatorDemo
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/suneetha/class-use/Car.html b/CoreJava_Venkat/doc/com/suneetha/class-use/Car.html
deleted file mode 100644
index 71cfb8b..0000000
--- a/CoreJava_Venkat/doc/com/suneetha/class-use/Car.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.suneetha.Car
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.suneetha.Car
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/suneetha/class-use/CarDemo.html b/CoreJava_Venkat/doc/com/suneetha/class-use/CarDemo.html
deleted file mode 100644
index 24d76aa..0000000
--- a/CoreJava_Venkat/doc/com/suneetha/class-use/CarDemo.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.suneetha.CarDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.suneetha.CarDemo
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/suneetha/class-use/HelloWorld.html b/CoreJava_Venkat/doc/com/suneetha/class-use/HelloWorld.html
deleted file mode 100644
index 6700f01..0000000
--- a/CoreJava_Venkat/doc/com/suneetha/class-use/HelloWorld.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.suneetha.HelloWorld
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.suneetha.HelloWorld
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/suneetha/package-frame.html b/CoreJava_Venkat/doc/com/suneetha/package-frame.html
deleted file mode 100644
index d067d9d..0000000
--- a/CoreJava_Venkat/doc/com/suneetha/package-frame.html
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-com.suneetha
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/suneetha/package-summary.html b/CoreJava_Venkat/doc/com/suneetha/package-summary.html
deleted file mode 100644
index 3c20a9a..0000000
--- a/CoreJava_Venkat/doc/com/suneetha/package-summary.html
+++ /dev/null
@@ -1,153 +0,0 @@
-
-
-
-
-
-com.suneetha
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/suneetha/package-tree.html b/CoreJava_Venkat/doc/com/suneetha/package-tree.html
deleted file mode 100644
index c171d68..0000000
--- a/CoreJava_Venkat/doc/com/suneetha/package-tree.html
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-
-
-com.suneetha Class Hierarchy
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/suneetha/package-use.html b/CoreJava_Venkat/doc/com/suneetha/package-use.html
deleted file mode 100644
index 429dcf0..0000000
--- a/CoreJava_Venkat/doc/com/suneetha/package-use.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Package com.suneetha
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.suneetha
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/abstraction/AbstractionDemo.html b/CoreJava_Venkat/doc/com/training/java/core/abstraction/AbstractionDemo.html
deleted file mode 100644
index c8e086b..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/abstraction/AbstractionDemo.html
+++ /dev/null
@@ -1,257 +0,0 @@
-
-
-
-
-
-AbstractionDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.abstraction.AbstractionDemo
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-static void
-main (java.lang.String[] args)
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-AbstractionDemo
-public AbstractionDemo()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/abstraction/Car.html b/CoreJava_Venkat/doc/com/training/java/core/abstraction/Car.html
deleted file mode 100644
index 7e3c5ff..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/abstraction/Car.html
+++ /dev/null
@@ -1,299 +0,0 @@
-
-
-
-
-
-Car
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.abstraction.Car
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-Car ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/abstraction/ItalianRaceCar.html b/CoreJava_Venkat/doc/com/training/java/core/abstraction/ItalianRaceCar.html
deleted file mode 100644
index 0493640..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/abstraction/ItalianRaceCar.html
+++ /dev/null
@@ -1,284 +0,0 @@
-
-
-
-
-
-ItalianRaceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-ItalianRaceCar ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-void
-accelerate (int increaseMiles)
-
-
-
-
-
-
-Methods inherited from class com.training.java.core.abstraction.RaceCar
-nitro
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-ItalianRaceCar
-public ItalianRaceCar()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/abstraction/PoliceCar.html b/CoreJava_Venkat/doc/com/training/java/core/abstraction/PoliceCar.html
deleted file mode 100644
index c011392..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/abstraction/PoliceCar.html
+++ /dev/null
@@ -1,298 +0,0 @@
-
-
-
-
-
-PoliceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-PoliceCar (java.lang.String color)
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-void
-accelerate (int increaseMiles)
-
-
-void
-chase ()
-
-
-void
-turnOnLights ()
-
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-chase
-public void chase()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/abstraction/RaceCar.html b/CoreJava_Venkat/doc/com/training/java/core/abstraction/RaceCar.html
deleted file mode 100644
index eba4faa..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/abstraction/RaceCar.html
+++ /dev/null
@@ -1,272 +0,0 @@
-
-
-
-
-
-RaceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-RaceCar ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-void
-nitro ()
-
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-RaceCar
-public RaceCar()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-nitro
-public void nitro()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/abstraction/class-use/AbstractionDemo.html b/CoreJava_Venkat/doc/com/training/java/core/abstraction/class-use/AbstractionDemo.html
deleted file mode 100644
index 7f496f5..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/abstraction/class-use/AbstractionDemo.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.abstraction.AbstractionDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.abstraction.AbstractionDemo
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/abstraction/class-use/Car.html b/CoreJava_Venkat/doc/com/training/java/core/abstraction/class-use/Car.html
deleted file mode 100644
index 324ed81..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/abstraction/class-use/Car.html
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.abstraction.Car
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/abstraction/class-use/ItalianRaceCar.html b/CoreJava_Venkat/doc/com/training/java/core/abstraction/class-use/ItalianRaceCar.html
deleted file mode 100644
index eacb17a..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/abstraction/class-use/ItalianRaceCar.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.abstraction.ItalianRaceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.abstraction.ItalianRaceCar
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/abstraction/class-use/PoliceCar.html b/CoreJava_Venkat/doc/com/training/java/core/abstraction/class-use/PoliceCar.html
deleted file mode 100644
index 57d9ae4..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/abstraction/class-use/PoliceCar.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.abstraction.PoliceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.abstraction.PoliceCar
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/abstraction/class-use/RaceCar.html b/CoreJava_Venkat/doc/com/training/java/core/abstraction/class-use/RaceCar.html
deleted file mode 100644
index b007802..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/abstraction/class-use/RaceCar.html
+++ /dev/null
@@ -1,155 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.abstraction.RaceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/abstraction/package-frame.html b/CoreJava_Venkat/doc/com/training/java/core/abstraction/package-frame.html
deleted file mode 100644
index 715fb2a..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/abstraction/package-frame.html
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-com.training.java.core.abstraction
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/abstraction/package-summary.html b/CoreJava_Venkat/doc/com/training/java/core/abstraction/package-summary.html
deleted file mode 100644
index f5d4022..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/abstraction/package-summary.html
+++ /dev/null
@@ -1,151 +0,0 @@
-
-
-
-
-
-com.training.java.core.abstraction
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/abstraction/package-tree.html b/CoreJava_Venkat/doc/com/training/java/core/abstraction/package-tree.html
deleted file mode 100644
index c5e4aa1..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/abstraction/package-tree.html
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-com.training.java.core.abstraction Class Hierarchy
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
Class Hierarchy
-
-java.lang.Object
-
-com.training.java.core.abstraction.AbstractionDemo
-com.training.java.core.abstraction.Car
-
-com.training.java.core.abstraction.PoliceCar
-com.training.java.core.abstraction.RaceCar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/abstraction/package-use.html b/CoreJava_Venkat/doc/com/training/java/core/abstraction/package-use.html
deleted file mode 100644
index eb067e0..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/abstraction/package-use.html
+++ /dev/null
@@ -1,151 +0,0 @@
-
-
-
-
-
-Uses of Package com.training.java.core.abstraction
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/doc/package-frame.html b/CoreJava_Venkat/doc/com/training/java/core/doc/package-frame.html
deleted file mode 100644
index 3b10c5c..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/doc/package-frame.html
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-com.training.java.core.doc
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/doc/package-summary.html b/CoreJava_Venkat/doc/com/training/java/core/doc/package-summary.html
deleted file mode 100644
index 1cdf4dd..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/doc/package-summary.html
+++ /dev/null
@@ -1,118 +0,0 @@
-
-
-
-
-
-com.training.java.core.doc
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/doc/package-tree.html b/CoreJava_Venkat/doc/com/training/java/core/doc/package-tree.html
deleted file mode 100644
index 139cf64..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/doc/package-tree.html
+++ /dev/null
@@ -1,118 +0,0 @@
-
-
-
-
-
-com.training.java.core.doc Class Hierarchy
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/doc/package-use.html b/CoreJava_Venkat/doc/com/training/java/core/doc/package-use.html
deleted file mode 100644
index dee95a8..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/doc/package-use.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Package com.training.java.core.doc
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.doc
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/inheritence/Car.html b/CoreJava_Venkat/doc/com/training/java/core/inheritence/Car.html
deleted file mode 100644
index d9eaeb4..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/inheritence/Car.html
+++ /dev/null
@@ -1,286 +0,0 @@
-
-
-
-
-
-Car
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.inheritence.Car
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-Car ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/inheritence/InheritenceDemo.html b/CoreJava_Venkat/doc/com/training/java/core/inheritence/InheritenceDemo.html
deleted file mode 100644
index 068ad67..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/inheritence/InheritenceDemo.html
+++ /dev/null
@@ -1,257 +0,0 @@
-
-
-
-
-
-InheritenceDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.inheritence.InheritenceDemo
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-static void
-main (java.lang.String[] args)
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-InheritenceDemo
-public InheritenceDemo()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/inheritence/PoliceCar.html b/CoreJava_Venkat/doc/com/training/java/core/inheritence/PoliceCar.html
deleted file mode 100644
index 3526104..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/inheritence/PoliceCar.html
+++ /dev/null
@@ -1,281 +0,0 @@
-
-
-
-
-
-PoliceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-PoliceCar (java.lang.String color)
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-void
-chase ()
-
-
-void
-turnOnLights ()
-
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-chase
-public void chase()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/inheritence/RaceCar.html b/CoreJava_Venkat/doc/com/training/java/core/inheritence/RaceCar.html
deleted file mode 100644
index 40e153b..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/inheritence/RaceCar.html
+++ /dev/null
@@ -1,268 +0,0 @@
-
-
-
-
-
-RaceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-RaceCar ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-void
-nitro ()
-
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-RaceCar
-public RaceCar()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-nitro
-public void nitro()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/inheritence/class-use/Car.html b/CoreJava_Venkat/doc/com/training/java/core/inheritence/class-use/Car.html
deleted file mode 100644
index 03965ab..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/inheritence/class-use/Car.html
+++ /dev/null
@@ -1,159 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.inheritence.Car
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/inheritence/class-use/InheritenceDemo.html b/CoreJava_Venkat/doc/com/training/java/core/inheritence/class-use/InheritenceDemo.html
deleted file mode 100644
index 2b2cfd8..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/inheritence/class-use/InheritenceDemo.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.inheritence.InheritenceDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.inheritence.InheritenceDemo
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/inheritence/class-use/PoliceCar.html b/CoreJava_Venkat/doc/com/training/java/core/inheritence/class-use/PoliceCar.html
deleted file mode 100644
index 6d5074d..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/inheritence/class-use/PoliceCar.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.inheritence.PoliceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.inheritence.PoliceCar
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/inheritence/class-use/RaceCar.html b/CoreJava_Venkat/doc/com/training/java/core/inheritence/class-use/RaceCar.html
deleted file mode 100644
index 5659b4a..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/inheritence/class-use/RaceCar.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.inheritence.RaceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.inheritence.RaceCar
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/inheritence/package-frame.html b/CoreJava_Venkat/doc/com/training/java/core/inheritence/package-frame.html
deleted file mode 100644
index 4253dc4..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/inheritence/package-frame.html
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-com.training.java.core.inheritence
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/inheritence/package-summary.html b/CoreJava_Venkat/doc/com/training/java/core/inheritence/package-summary.html
deleted file mode 100644
index 13c8312..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/inheritence/package-summary.html
+++ /dev/null
@@ -1,145 +0,0 @@
-
-
-
-
-
-com.training.java.core.inheritence
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/inheritence/package-tree.html b/CoreJava_Venkat/doc/com/training/java/core/inheritence/package-tree.html
deleted file mode 100644
index 457be9d..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/inheritence/package-tree.html
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-
-
-
-com.training.java.core.inheritence Class Hierarchy
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
Class Hierarchy
-
-java.lang.Object
-
-com.training.java.core.inheritence.Car
-
-com.training.java.core.inheritence.PoliceCar
-com.training.java.core.inheritence.RaceCar
-
-
-com.training.java.core.inheritence.InheritenceDemo
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/inheritence/package-use.html b/CoreJava_Venkat/doc/com/training/java/core/inheritence/package-use.html
deleted file mode 100644
index f7b0869..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/inheritence/package-use.html
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-
-
-
-Uses of Package com.training.java.core.inheritence
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/interfaces/Car.html b/CoreJava_Venkat/doc/com/training/java/core/interfaces/Car.html
deleted file mode 100644
index 4e21096..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/interfaces/Car.html
+++ /dev/null
@@ -1,249 +0,0 @@
-
-
-
-
-
-Car
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-Summary:
-Nested |
-Field |
-Constr |
-Method
-
-
-Detail:
-Field |
-Constr |
-Method
-
-
-
-
-
-
-
-
-
-
-
-
-
-All Known Implementing Classes:
-PoliceCar , RaceCar
-
-
-
-public interface Car
-
-
-
-
-
-
-
-
-
-
-
-Method Summary
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-start
-void start()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-printInformation
-void printInformation()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Summary:
-Nested |
-Field |
-Constr |
-Method
-
-
-Detail:
-Field |
-Constr |
-Method
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/interfaces/ConsolePrinter.html b/CoreJava_Venkat/doc/com/training/java/core/interfaces/ConsolePrinter.html
deleted file mode 100644
index cc6246e..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/interfaces/ConsolePrinter.html
+++ /dev/null
@@ -1,256 +0,0 @@
-
-
-
-
-
-ConsolePrinter
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.interfaces.ConsolePrinter
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-ConsolePrinter ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-void
-print (java.lang.String message)
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-ConsolePrinter
-public ConsolePrinter()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/interfaces/InterfaceDemo.html b/CoreJava_Venkat/doc/com/training/java/core/interfaces/InterfaceDemo.html
deleted file mode 100644
index f50b043..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/interfaces/InterfaceDemo.html
+++ /dev/null
@@ -1,257 +0,0 @@
-
-
-
-
-
-InterfaceDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.interfaces.InterfaceDemo
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-InterfaceDemo ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-static void
-main (java.lang.String[] args)
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-InterfaceDemo
-public InterfaceDemo()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/interfaces/PoliceCar.html b/CoreJava_Venkat/doc/com/training/java/core/interfaces/PoliceCar.html
deleted file mode 100644
index 469dcea..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/interfaces/PoliceCar.html
+++ /dev/null
@@ -1,316 +0,0 @@
-
-
-
-
-
-PoliceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.interfaces.PoliceCar
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-PoliceCar ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-PoliceCar
-public PoliceCar()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-start
-public void start()
-
-Specified by:
-start in interface Car
-
-
-
-
-
-
-
-
-stop
-public void stop()
-
-Specified by:
-stop in interface Car
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/interfaces/RaceCar.html b/CoreJava_Venkat/doc/com/training/java/core/interfaces/RaceCar.html
deleted file mode 100644
index 4e0efea..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/interfaces/RaceCar.html
+++ /dev/null
@@ -1,316 +0,0 @@
-
-
-
-
-
-RaceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.interfaces.RaceCar
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-RaceCar ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-RaceCar
-public RaceCar()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-start
-public void start()
-
-Specified by:
-start in interface Car
-
-
-
-
-
-
-
-
-stop
-public void stop()
-
-Specified by:
-stop in interface Car
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/interfaces/class-use/Car.html b/CoreJava_Venkat/doc/com/training/java/core/interfaces/class-use/Car.html
deleted file mode 100644
index 4f7f3b7..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/interfaces/class-use/Car.html
+++ /dev/null
@@ -1,159 +0,0 @@
-
-
-
-
-
-Uses of Interface com.training.java.core.interfaces.Car
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/interfaces/class-use/ConsolePrinter.html b/CoreJava_Venkat/doc/com/training/java/core/interfaces/class-use/ConsolePrinter.html
deleted file mode 100644
index 81e752a..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/interfaces/class-use/ConsolePrinter.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.interfaces.ConsolePrinter
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.interfaces.ConsolePrinter
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/interfaces/class-use/InterfaceDemo.html b/CoreJava_Venkat/doc/com/training/java/core/interfaces/class-use/InterfaceDemo.html
deleted file mode 100644
index 119ec5b..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/interfaces/class-use/InterfaceDemo.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.interfaces.InterfaceDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.interfaces.InterfaceDemo
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/interfaces/class-use/PoliceCar.html b/CoreJava_Venkat/doc/com/training/java/core/interfaces/class-use/PoliceCar.html
deleted file mode 100644
index d4bb68e..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/interfaces/class-use/PoliceCar.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.interfaces.PoliceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.interfaces.PoliceCar
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/interfaces/class-use/RaceCar.html b/CoreJava_Venkat/doc/com/training/java/core/interfaces/class-use/RaceCar.html
deleted file mode 100644
index d20235f..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/interfaces/class-use/RaceCar.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.interfaces.RaceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.interfaces.RaceCar
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/interfaces/package-frame.html b/CoreJava_Venkat/doc/com/training/java/core/interfaces/package-frame.html
deleted file mode 100644
index 585f208..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/interfaces/package-frame.html
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-com.training.java.core.interfaces
-
-
-
-
-
-
-
Interfaces
-
-
Classes
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/interfaces/package-summary.html b/CoreJava_Venkat/doc/com/training/java/core/interfaces/package-summary.html
deleted file mode 100644
index 46a73cd..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/interfaces/package-summary.html
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
-
-
-com.training.java.core.interfaces
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-Interface Summary
-
-Interface
-Description
-
-
-
-Car
-
-
-
-
-
-
-
-
-
-
Author:
- Hari
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/interfaces/package-tree.html b/CoreJava_Venkat/doc/com/training/java/core/interfaces/package-tree.html
deleted file mode 100644
index 5e3c5d1..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/interfaces/package-tree.html
+++ /dev/null
@@ -1,135 +0,0 @@
-
-
-
-
-
-com.training.java.core.interfaces Class Hierarchy
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
Class Hierarchy
-
-java.lang.Object
-
-com.training.java.core.interfaces.ConsolePrinter
-com.training.java.core.interfaces.InterfaceDemo
-com.training.java.core.interfaces.PoliceCar (implements com.training.java.core.interfaces.Car )
-com.training.java.core.interfaces.RaceCar (implements com.training.java.core.interfaces.Car )
-
-
-
-
Interface Hierarchy
-
-com.training.java.core.interfaces.Car
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/interfaces/package-use.html b/CoreJava_Venkat/doc/com/training/java/core/interfaces/package-use.html
deleted file mode 100644
index 7a4dac3..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/interfaces/package-use.html
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-
-
-
-Uses of Package com.training.java.core.interfaces
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/objects/Address.html b/CoreJava_Venkat/doc/com/training/java/core/objects/Address.html
deleted file mode 100644
index aede8ba..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/objects/Address.html
+++ /dev/null
@@ -1,236 +0,0 @@
-
-
-
-
-
-Address
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
-Detail:
-Field |
-Constr |
-Method
-
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.objects.Address
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-Address (java.lang.String street,
- java.lang.String city,
- java.lang.String state,
- java.lang.String zip,
- java.lang.String country)
-
-
-
-
-
-
-
-
-
-Method Summary
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-Address
-public Address(java.lang.String street,
- java.lang.String city,
- java.lang.String state,
- java.lang.String zip,
- java.lang.String country)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Detail:
-Field |
-Constr |
-Method
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/objects/ObjectsDemo.html b/CoreJava_Venkat/doc/com/training/java/core/objects/ObjectsDemo.html
deleted file mode 100644
index 4fb3fe1..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/objects/ObjectsDemo.html
+++ /dev/null
@@ -1,257 +0,0 @@
-
-
-
-
-
-ObjectsDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.objects.ObjectsDemo
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-ObjectsDemo ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-static void
-main (java.lang.String[] args)
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-ObjectsDemo
-public ObjectsDemo()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/objects/Person.html b/CoreJava_Venkat/doc/com/training/java/core/objects/Person.html
deleted file mode 100644
index e7443d3..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/objects/Person.html
+++ /dev/null
@@ -1,228 +0,0 @@
-
-
-
-
-
-Person
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
-Detail:
-Field |
-Constr |
-Method
-
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.objects.Person
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-Person ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-Person
-public Person()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Detail:
-Field |
-Constr |
-Method
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/objects/PhoneNumer.html b/CoreJava_Venkat/doc/com/training/java/core/objects/PhoneNumer.html
deleted file mode 100644
index bc1c1c4..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/objects/PhoneNumer.html
+++ /dev/null
@@ -1,228 +0,0 @@
-
-
-
-
-
-PhoneNumer
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
-Detail:
-Field |
-Constr |
-Method
-
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.objects.PhoneNumer
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-PhoneNumer ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-PhoneNumer
-public PhoneNumer()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Detail:
-Field |
-Constr |
-Method
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/objects/class-use/Address.html b/CoreJava_Venkat/doc/com/training/java/core/objects/class-use/Address.html
deleted file mode 100644
index cdb4411..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/objects/class-use/Address.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.objects.Address
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.objects.Address
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/objects/class-use/ObjectsDemo.html b/CoreJava_Venkat/doc/com/training/java/core/objects/class-use/ObjectsDemo.html
deleted file mode 100644
index 2ca69ff..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/objects/class-use/ObjectsDemo.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.objects.ObjectsDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.objects.ObjectsDemo
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/objects/class-use/Person.html b/CoreJava_Venkat/doc/com/training/java/core/objects/class-use/Person.html
deleted file mode 100644
index 6e66d77..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/objects/class-use/Person.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.objects.Person
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.objects.Person
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/objects/class-use/PhoneNumer.html b/CoreJava_Venkat/doc/com/training/java/core/objects/class-use/PhoneNumer.html
deleted file mode 100644
index ab4292e..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/objects/class-use/PhoneNumer.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.objects.PhoneNumer
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.objects.PhoneNumer
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/objects/package-frame.html b/CoreJava_Venkat/doc/com/training/java/core/objects/package-frame.html
deleted file mode 100644
index 53aa16a..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/objects/package-frame.html
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-com.training.java.core.objects
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/objects/package-summary.html b/CoreJava_Venkat/doc/com/training/java/core/objects/package-summary.html
deleted file mode 100644
index 24b2ef9..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/objects/package-summary.html
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-
-
-
-com.training.java.core.objects
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/objects/package-tree.html b/CoreJava_Venkat/doc/com/training/java/core/objects/package-tree.html
deleted file mode 100644
index 178114c..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/objects/package-tree.html
+++ /dev/null
@@ -1,130 +0,0 @@
-
-
-
-
-
-com.training.java.core.objects Class Hierarchy
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
Class Hierarchy
-
-java.lang.Object
-
-com.training.java.core.objects.Address
-com.training.java.core.objects.Person
-com.training.java.core.objects.PhoneNumer
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/objects/package-use.html b/CoreJava_Venkat/doc/com/training/java/core/objects/package-use.html
deleted file mode 100644
index 2f44635..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/objects/package-use.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Package com.training.java.core.objects
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.objects
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/overriding/Car.html b/CoreJava_Venkat/doc/com/training/java/core/overriding/Car.html
deleted file mode 100644
index 80c65cc..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/overriding/Car.html
+++ /dev/null
@@ -1,299 +0,0 @@
-
-
-
-
-
-Car
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.overriding.Car
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-Car ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/overriding/Driver.html b/CoreJava_Venkat/doc/com/training/java/core/overriding/Driver.html
deleted file mode 100644
index a381b16..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/overriding/Driver.html
+++ /dev/null
@@ -1,256 +0,0 @@
-
-
-
-
-
-Driver
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.overriding.Driver
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-Driver (Car car)
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-void
-drive ()
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-Driver
-public Driver(Car car)
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-drive
-public void drive()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/overriding/OverridingDemo.html b/CoreJava_Venkat/doc/com/training/java/core/overriding/OverridingDemo.html
deleted file mode 100644
index 3f7a55f..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/overriding/OverridingDemo.html
+++ /dev/null
@@ -1,257 +0,0 @@
-
-
-
-
-
-OverridingDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.overriding.OverridingDemo
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-OverridingDemo ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-static void
-main (java.lang.String[] args)
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-OverridingDemo
-public OverridingDemo()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/overriding/PoliceCar.html b/CoreJava_Venkat/doc/com/training/java/core/overriding/PoliceCar.html
deleted file mode 100644
index 7dde9aa..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/overriding/PoliceCar.html
+++ /dev/null
@@ -1,281 +0,0 @@
-
-
-
-
-
-PoliceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-PoliceCar (java.lang.String color)
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-void
-chase ()
-
-
-void
-turnOnLights ()
-
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-chase
-public void chase()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/overriding/RaceCar.html b/CoreJava_Venkat/doc/com/training/java/core/overriding/RaceCar.html
deleted file mode 100644
index 31be615..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/overriding/RaceCar.html
+++ /dev/null
@@ -1,285 +0,0 @@
-
-
-
-
-
-RaceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-RaceCar ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-void
-accelerate (int increaseMiles)
-
-
-void
-nitro ()
-
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-RaceCar
-public RaceCar()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-nitro
-public void nitro()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/overriding/class-use/Car.html b/CoreJava_Venkat/doc/com/training/java/core/overriding/class-use/Car.html
deleted file mode 100644
index cb1eb90..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/overriding/class-use/Car.html
+++ /dev/null
@@ -1,170 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.overriding.Car
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/overriding/class-use/Driver.html b/CoreJava_Venkat/doc/com/training/java/core/overriding/class-use/Driver.html
deleted file mode 100644
index b4c5a3e..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/overriding/class-use/Driver.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.overriding.Driver
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.overriding.Driver
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/overriding/class-use/OverridingDemo.html b/CoreJava_Venkat/doc/com/training/java/core/overriding/class-use/OverridingDemo.html
deleted file mode 100644
index 780da55..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/overriding/class-use/OverridingDemo.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.overriding.OverridingDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.overriding.OverridingDemo
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/overriding/class-use/PoliceCar.html b/CoreJava_Venkat/doc/com/training/java/core/overriding/class-use/PoliceCar.html
deleted file mode 100644
index a7116b8..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/overriding/class-use/PoliceCar.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.overriding.PoliceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.overriding.PoliceCar
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/overriding/class-use/RaceCar.html b/CoreJava_Venkat/doc/com/training/java/core/overriding/class-use/RaceCar.html
deleted file mode 100644
index 551d661..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/overriding/class-use/RaceCar.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.overriding.RaceCar
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.overriding.RaceCar
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/overriding/package-frame.html b/CoreJava_Venkat/doc/com/training/java/core/overriding/package-frame.html
deleted file mode 100644
index 03d164a..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/overriding/package-frame.html
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-com.training.java.core.overriding
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/overriding/package-summary.html b/CoreJava_Venkat/doc/com/training/java/core/overriding/package-summary.html
deleted file mode 100644
index 6d2a218..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/overriding/package-summary.html
+++ /dev/null
@@ -1,149 +0,0 @@
-
-
-
-
-
-com.training.java.core.overriding
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/overriding/package-tree.html b/CoreJava_Venkat/doc/com/training/java/core/overriding/package-tree.html
deleted file mode 100644
index e49f586..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/overriding/package-tree.html
+++ /dev/null
@@ -1,135 +0,0 @@
-
-
-
-
-
-com.training.java.core.overriding Class Hierarchy
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
Class Hierarchy
-
-java.lang.Object
-
-com.training.java.core.overriding.Car
-
-com.training.java.core.overriding.PoliceCar
-com.training.java.core.overriding.RaceCar
-
-
-com.training.java.core.overriding.Driver
-com.training.java.core.overriding.OverridingDemo
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/overriding/package-use.html b/CoreJava_Venkat/doc/com/training/java/core/overriding/package-use.html
deleted file mode 100644
index 4c46339..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/overriding/package-use.html
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-
-
-
-Uses of Package com.training.java.core.overriding
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/Car.html b/CoreJava_Venkat/doc/com/training/java/core/statickeyword/Car.html
deleted file mode 100644
index 138c254..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/Car.html
+++ /dev/null
@@ -1,230 +0,0 @@
-
-
-
-
-
-Car
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
-Detail:
-Field |
-Constr |
-Method
-
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.statickeyword.Car
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-Car (java.lang.String make,
- java.lang.String model)
-
-
-
-
-
-
-
-
-
-Method Summary
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Detail:
-Field |
-Constr |
-Method
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/NonStaticDemo.html b/CoreJava_Venkat/doc/com/training/java/core/statickeyword/NonStaticDemo.html
deleted file mode 100644
index e17f3cb..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/NonStaticDemo.html
+++ /dev/null
@@ -1,257 +0,0 @@
-
-
-
-
-
-NonStaticDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.statickeyword.NonStaticDemo
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-Constructors
-
-Constructor and Description
-
-
-NonStaticDemo ()
-
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-static void
-main (java.lang.String[] args)
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-NonStaticDemo
-public NonStaticDemo()
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/class-use/Car.html b/CoreJava_Venkat/doc/com/training/java/core/statickeyword/class-use/Car.html
deleted file mode 100644
index cc9091f..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/class-use/Car.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.statickeyword.Car
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.statickeyword.Car
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/class-use/NonStaticDemo.html b/CoreJava_Venkat/doc/com/training/java/core/statickeyword/class-use/NonStaticDemo.html
deleted file mode 100644
index 5254cea..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/class-use/NonStaticDemo.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.statickeyword.NonStaticDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.statickeyword.NonStaticDemo
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/package-frame.html b/CoreJava_Venkat/doc/com/training/java/core/statickeyword/package-frame.html
deleted file mode 100644
index e9cc17c..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/package-frame.html
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-com.training.java.core.statickeyword
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/package-summary.html b/CoreJava_Venkat/doc/com/training/java/core/statickeyword/package-summary.html
deleted file mode 100644
index e903a57..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/package-summary.html
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-
-
-
-com.training.java.core.statickeyword
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
Package com.training.java.core.statickeyword Description
-
This package has all the classes related to static keyword.
-
Author:
- Hari
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/package-tree.html b/CoreJava_Venkat/doc/com/training/java/core/statickeyword/package-tree.html
deleted file mode 100644
index ca873af..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/package-tree.html
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-com.training.java.core.statickeyword Class Hierarchy
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
Class Hierarchy
-
-java.lang.Object
-
-com.training.java.core.statickeyword.Car
-com.training.java.core.statickeyword.NonStaticDemo
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/package-use.html b/CoreJava_Venkat/doc/com/training/java/core/statickeyword/package-use.html
deleted file mode 100644
index 9677623..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/statickeyword/package-use.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Package com.training.java.core.statickeyword
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.statickeyword
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/string/StringStringBufferDemo.html b/CoreJava_Venkat/doc/com/training/java/core/string/StringStringBufferDemo.html
deleted file mode 100644
index 054c094..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/string/StringStringBufferDemo.html
+++ /dev/null
@@ -1,257 +0,0 @@
-
-
-
-
-
-StringStringBufferDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-Prev Class
-Next Class
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-java.lang.Object
-
-
-com.training.java.core.string.StringStringBufferDemo
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Summary
-
-
-
-
-
-
-
-
-Method Summary
-
-Methods
-
-Modifier and Type
-Method and Description
-
-
-static void
-main (java.lang.String[] args)
-
-
-
-
-
-
-Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Constructor Detail
-
-
-
-
-
-
-
-
-
-
-
-Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Prev Class
-Next Class
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/string/class-use/StringStringBufferDemo.html b/CoreJava_Venkat/doc/com/training/java/core/string/class-use/StringStringBufferDemo.html
deleted file mode 100644
index 719e43d..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/string/class-use/StringStringBufferDemo.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Class com.training.java.core.string.StringStringBufferDemo
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.string.StringStringBufferDemo
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/string/package-frame.html b/CoreJava_Venkat/doc/com/training/java/core/string/package-frame.html
deleted file mode 100644
index 0369e1b..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/string/package-frame.html
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-com.training.java.core.string
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/string/package-summary.html b/CoreJava_Venkat/doc/com/training/java/core/string/package-summary.html
deleted file mode 100644
index 7ebc03a..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/string/package-summary.html
+++ /dev/null
@@ -1,135 +0,0 @@
-
-
-
-
-
-com.training.java.core.string
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/string/package-tree.html b/CoreJava_Venkat/doc/com/training/java/core/string/package-tree.html
deleted file mode 100644
index f703dce..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/string/package-tree.html
+++ /dev/null
@@ -1,128 +0,0 @@
-
-
-
-
-
-com.training.java.core.string Class Hierarchy
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/com/training/java/core/string/package-use.html b/CoreJava_Venkat/doc/com/training/java/core/string/package-use.html
deleted file mode 100644
index 87eaf63..0000000
--- a/CoreJava_Venkat/doc/com/training/java/core/string/package-use.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Uses of Package com.training.java.core.string
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-No usage of com.training.java.core.string
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/constant-values.html b/CoreJava_Venkat/doc/constant-values.html
deleted file mode 100644
index a463b05..0000000
--- a/CoreJava_Venkat/doc/constant-values.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Constant Field Values
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/deprecated-list.html b/CoreJava_Venkat/doc/deprecated-list.html
deleted file mode 100644
index 3faedb9..0000000
--- a/CoreJava_Venkat/doc/deprecated-list.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-Deprecated List
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/help-doc.html b/CoreJava_Venkat/doc/help-doc.html
deleted file mode 100644
index 5cd2f46..0000000
--- a/CoreJava_Venkat/doc/help-doc.html
+++ /dev/null
@@ -1,220 +0,0 @@
-
-
-
-
-
-API Help
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-Overview
-The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
-
-
-Package
-Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
-
-Interfaces (italic)
-Classes
-Enums
-Exceptions
-Errors
-Annotation Types
-
-
-
-Class/Interface
-Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
-
-Class inheritance diagram
-Direct Subclasses
-All Known Subinterfaces
-All Known Implementing Classes
-Class/interface declaration
-Class/interface description
-
-
-Nested Class Summary
-Field Summary
-Constructor Summary
-Method Summary
-
-
-Field Detail
-Constructor Detail
-Method Detail
-
-Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
-
-
-Annotation Type
-Each annotation type has its own separate page with the following sections:
-
-Annotation Type declaration
-Annotation Type description
-Required Element Summary
-Optional Element Summary
-Element Detail
-
-
-
-Enum
-Each enum has its own separate page with the following sections:
-
-Enum declaration
-Enum description
-Enum Constant Summary
-Enum Constant Detail
-
-
-
-Use
-Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
-
-
-Tree (Class Hierarchy)
-There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
-
-When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
-When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
-
-
-
-Deprecated API
-The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
-
-
-Index
-The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
-
-
-Prev/Next
-These links take you to the next or previous class, interface, package, or related page.
-
-
-Frames/No Frames
-These links show and hide the HTML frames. All pages are available with or without frames.
-
-
-All Classes
-The All Classes link shows all classes and interfaces except non-static nested types.
-
-
-Serialized Form
-Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
-
-
-Constant Field Values
-The Constant Field Values page lists the static final fields and their values.
-
-
-
This help file applies to API documentation generated using the standard doclet.
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/index-files/index-1.html b/CoreJava_Venkat/doc/index-files/index-1.html
deleted file mode 100644
index 3a6284b..0000000
--- a/CoreJava_Venkat/doc/index-files/index-1.html
+++ /dev/null
@@ -1,156 +0,0 @@
-
-
-
-
-
-A-Index
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-A C D G H I M N O P R S T
-
-
-
A
-
-AbstractionDemo - Class in com.training.java.core.abstraction
-
-AbstractionDemo() - Constructor for class com.training.java.core.abstraction.AbstractionDemo
-
-accelerate(int) - Method in class com.training.java.core.abstraction.Car
-
-accelerate(int) - Method in class com.training.java.core.abstraction.ItalianRaceCar
-
-accelerate(int) - Method in class com.training.java.core.abstraction.PoliceCar
-
-accelerate(int) - Method in class com.training.java.core.inheritence.Car
-
-accelerate(int) - Method in interface com.training.java.core.interfaces.Car
-
-accelerate(int) - Method in class com.training.java.core.interfaces.PoliceCar
-
-accelerate(int) - Method in class com.training.java.core.interfaces.RaceCar
-
-accelerate(int) - Method in class com.training.java.core.overriding.Car
-
-accelerate(int) - Method in class com.training.java.core.overriding.RaceCar
-
-Address - Class in com.training.java.core.objects
-
-Address(String, String, String, String, String) - Constructor for class com.training.java.core.objects.Address
-
-applyBrakes(int) - Method in class com.training.java.core.abstraction.Car
-
-applyBrakes(int) - Method in class com.training.java.core.inheritence.Car
-
-applyBrakes(int) - Method in class com.training.java.core.overriding.Car
-
-ArrayDemo - Class in com.suneetha
-
-This example shows how to use Arrays.
-
-ArrayDemo() - Constructor for class com.suneetha.ArrayDemo
-
-
-
A C D G H I M N O P R S T
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/index-files/index-10.html b/CoreJava_Venkat/doc/index-files/index-10.html
deleted file mode 100644
index 6216e08..0000000
--- a/CoreJava_Venkat/doc/index-files/index-10.html
+++ /dev/null
@@ -1,156 +0,0 @@
-
-
-
-
-
-P-Index
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-A C D G H I M N O P R S T
-
-
-
P
-
-Person - Class in com.training.java.core.objects
-
-Person() - Constructor for class com.training.java.core.objects.Person
-
-PhoneNumer - Class in com.training.java.core.objects
-
-PhoneNumer() - Constructor for class com.training.java.core.objects.PhoneNumer
-
-PoliceCar - Class in com.training.java.core.abstraction
-
-PoliceCar(String) - Constructor for class com.training.java.core.abstraction.PoliceCar
-
-PoliceCar - Class in com.training.java.core.inheritence
-
-PoliceCar(String) - Constructor for class com.training.java.core.inheritence.PoliceCar
-
-PoliceCar - Class in com.training.java.core.interfaces
-
-PoliceCar() - Constructor for class com.training.java.core.interfaces.PoliceCar
-
-PoliceCar - Class in com.training.java.core.overriding
-
-PoliceCar(String) - Constructor for class com.training.java.core.overriding.PoliceCar
-
-print(String) - Method in class com.training.java.core.interfaces.ConsolePrinter
-
-printInformation() - Method in class com.training.java.core.abstraction.Car
-
-printInformation() - Method in class com.training.java.core.inheritence.Car
-
-printInformation() - Method in interface com.training.java.core.interfaces.Car
-
-printInformation() - Method in class com.training.java.core.interfaces.PoliceCar
-
-printInformation() - Method in class com.training.java.core.interfaces.RaceCar
-
-printInformation() - Method in class com.training.java.core.overriding.Car
-
-
-
A C D G H I M N O P R S T
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/index-files/index-11.html b/CoreJava_Venkat/doc/index-files/index-11.html
deleted file mode 100644
index 733d280..0000000
--- a/CoreJava_Venkat/doc/index-files/index-11.html
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-
-
-
-R-Index
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-A C D G H I M N O P R S T
-
-
-
R
-
-RaceCar - Class in com.training.java.core.abstraction
-
-RaceCar() - Constructor for class com.training.java.core.abstraction.RaceCar
-
-RaceCar - Class in com.training.java.core.inheritence
-
-RaceCar() - Constructor for class com.training.java.core.inheritence.RaceCar
-
-RaceCar - Class in com.training.java.core.interfaces
-
-RaceCar() - Constructor for class com.training.java.core.interfaces.RaceCar
-
-RaceCar - Class in com.training.java.core.overriding
-
-RaceCar() - Constructor for class com.training.java.core.overriding.RaceCar
-
-
-
A C D G H I M N O P R S T
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/index-files/index-12.html b/CoreJava_Venkat/doc/index-files/index-12.html
deleted file mode 100644
index a2713be..0000000
--- a/CoreJava_Venkat/doc/index-files/index-12.html
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-
-
-
-S-Index
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-A C D G H I M N O P R S T
-
-
-
S
-
-start() - Method in interface com.training.java.core.interfaces.Car
-
-start() - Method in class com.training.java.core.interfaces.PoliceCar
-
-start() - Method in class com.training.java.core.interfaces.RaceCar
-
-stop() - Method in interface com.training.java.core.interfaces.Car
-
-stop() - Method in class com.training.java.core.interfaces.PoliceCar
-
-stop() - Method in class com.training.java.core.interfaces.RaceCar
-
-StringStringBufferDemo - Class in com.training.java.core.string
-
-StringStringBufferDemo() - Constructor for class com.training.java.core.string.StringStringBufferDemo
-
-
-
A C D G H I M N O P R S T
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/index-files/index-13.html b/CoreJava_Venkat/doc/index-files/index-13.html
deleted file mode 100644
index 3e8c7d4..0000000
--- a/CoreJava_Venkat/doc/index-files/index-13.html
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-
-
-
-T-Index
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-A C D G H I M N O P R S T
-
-
-
T
-
-turnOnLights() - Method in class com.training.java.core.abstraction.PoliceCar
-
-turnOnLights() - Method in class com.training.java.core.inheritence.PoliceCar
-
-turnOnLights() - Method in class com.training.java.core.overriding.PoliceCar
-
-
-
A C D G H I M N O P R S T
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/index-files/index-2.html b/CoreJava_Venkat/doc/index-files/index-2.html
deleted file mode 100644
index 5723ff0..0000000
--- a/CoreJava_Venkat/doc/index-files/index-2.html
+++ /dev/null
@@ -1,178 +0,0 @@
-
-
-
-
-
-C-Index
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-A C D G H I M N O P R S T
-
-
-
C
-
-CalculatorDemo - Class in com.suneetha
-
-CalculatorDemo() - Constructor for class com.suneetha.CalculatorDemo
-
-Car - Class in com.suneetha
-
-Car() - Constructor for class com.suneetha.Car
-
-Car - Class in com.training.java.core.abstraction
-
-Car() - Constructor for class com.training.java.core.abstraction.Car
-
-Car - Class in com.training.java.core.inheritence
-
-Car() - Constructor for class com.training.java.core.inheritence.Car
-
-Car - Interface in com.training.java.core.interfaces
-
-Car - Class in com.training.java.core.overriding
-
-Car() - Constructor for class com.training.java.core.overriding.Car
-
-Car - Class in com.training.java.core.statickeyword
-
-Car(String, String) - Constructor for class com.training.java.core.statickeyword.Car
-
-CarDemo - Class in com.suneetha
-
-CarDemo() - Constructor for class com.suneetha.CarDemo
-
-chase() - Method in class com.training.java.core.abstraction.PoliceCar
-
-chase() - Method in class com.training.java.core.inheritence.PoliceCar
-
-chase() - Method in class com.training.java.core.overriding.PoliceCar
-
-com.suneetha - package com.suneetha
-
-com.training.java.core.abstraction - package com.training.java.core.abstraction
-
-com.training.java.core.doc - package com.training.java.core.doc
-
-com.training.java.core.inheritence - package com.training.java.core.inheritence
-
-com.training.java.core.interfaces - package com.training.java.core.interfaces
-
-com.training.java.core.objects - package com.training.java.core.objects
-
-com.training.java.core.overriding - package com.training.java.core.overriding
-
-com.training.java.core.statickeyword - package com.training.java.core.statickeyword
-
-This package has all the classes related to static keyword.
-
-com.training.java.core.string - package com.training.java.core.string
-
-ConsolePrinter - Class in com.training.java.core.interfaces
-
-ConsolePrinter() - Constructor for class com.training.java.core.interfaces.ConsolePrinter
-
-
-
A C D G H I M N O P R S T
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/index-files/index-3.html b/CoreJava_Venkat/doc/index-files/index-3.html
deleted file mode 100644
index 6dc4ed7..0000000
--- a/CoreJava_Venkat/doc/index-files/index-3.html
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-
-
-
-D-Index
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-A C D G H I M N O P R S T
-
-
-
D
-
-drive() - Method in class com.training.java.core.overriding.Driver
-
-Driver - Class in com.training.java.core.overriding
-
-Driver(Car) - Constructor for class com.training.java.core.overriding.Driver
-
-
-
A C D G H I M N O P R S T
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/index-files/index-4.html b/CoreJava_Venkat/doc/index-files/index-4.html
deleted file mode 100644
index 2b5279b..0000000
--- a/CoreJava_Venkat/doc/index-files/index-4.html
+++ /dev/null
@@ -1,122 +0,0 @@
-
-
-
-
-
-G-Index
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-A C D G H I M N O P R S T
-
-
-
G
-
-getCurrentSpeed() - Method in class com.training.java.core.abstraction.Car
-
-getCurrentSpeed() - Method in class com.training.java.core.overriding.Car
-
-
-
A C D G H I M N O P R S T
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/index-files/index-5.html b/CoreJava_Venkat/doc/index-files/index-5.html
deleted file mode 100644
index 7e7beeb..0000000
--- a/CoreJava_Venkat/doc/index-files/index-5.html
+++ /dev/null
@@ -1,122 +0,0 @@
-
-
-
-
-
-H-Index
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-A C D G H I M N O P R S T
-
-
-
H
-
-HelloWorld - Class in com.suneetha
-
-HelloWorld() - Constructor for class com.suneetha.HelloWorld
-
-
-
A C D G H I M N O P R S T
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/index-files/index-6.html b/CoreJava_Venkat/doc/index-files/index-6.html
deleted file mode 100644
index 7bf4dd9..0000000
--- a/CoreJava_Venkat/doc/index-files/index-6.html
+++ /dev/null
@@ -1,130 +0,0 @@
-
-
-
-
-
-I-Index
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-A C D G H I M N O P R S T
-
-
-
I
-
-InheritenceDemo - Class in com.training.java.core.inheritence
-
-InheritenceDemo() - Constructor for class com.training.java.core.inheritence.InheritenceDemo
-
-InterfaceDemo - Class in com.training.java.core.interfaces
-
-InterfaceDemo() - Constructor for class com.training.java.core.interfaces.InterfaceDemo
-
-ItalianRaceCar - Class in com.training.java.core.abstraction
-
-ItalianRaceCar() - Constructor for class com.training.java.core.abstraction.ItalianRaceCar
-
-
-
A C D G H I M N O P R S T
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/index-files/index-7.html b/CoreJava_Venkat/doc/index-files/index-7.html
deleted file mode 100644
index 94b38aa..0000000
--- a/CoreJava_Venkat/doc/index-files/index-7.html
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-M-Index
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-A C D G H I M N O P R S T
-
-
-
M
-
-main(String[]) - Static method in class com.suneetha.ArrayDemo
-
-main(String[]) - Static method in class com.suneetha.CalculatorDemo
-
-main(String[]) - Static method in class com.suneetha.CarDemo
-
-main(String[]) - Static method in class com.suneetha.HelloWorld
-
-main(String[]) - Static method in class com.training.java.core.abstraction.AbstractionDemo
-
-main(String[]) - Static method in class com.training.java.core.inheritence.InheritenceDemo
-
-main(String[]) - Static method in class com.training.java.core.interfaces.InterfaceDemo
-
-main(String[]) - Static method in class com.training.java.core.overriding.OverridingDemo
-
-main(String[]) - Static method in class com.training.java.core.statickeyword.NonStaticDemo
-
-main(String[]) - Static method in class com.training.java.core.string.StringStringBufferDemo
-
-
-
A C D G H I M N O P R S T
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/index-files/index-8.html b/CoreJava_Venkat/doc/index-files/index-8.html
deleted file mode 100644
index d9a1089..0000000
--- a/CoreJava_Venkat/doc/index-files/index-8.html
+++ /dev/null
@@ -1,128 +0,0 @@
-
-
-
-
-
-N-Index
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-A C D G H I M N O P R S T
-
-
-
N
-
-nitro() - Method in class com.training.java.core.abstraction.RaceCar
-
-nitro() - Method in class com.training.java.core.inheritence.RaceCar
-
-nitro() - Method in class com.training.java.core.overriding.RaceCar
-
-NonStaticDemo - Class in com.training.java.core.statickeyword
-
-NonStaticDemo() - Constructor for class com.training.java.core.statickeyword.NonStaticDemo
-
-
-
A C D G H I M N O P R S T
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/index-files/index-9.html b/CoreJava_Venkat/doc/index-files/index-9.html
deleted file mode 100644
index f7f6c5d..0000000
--- a/CoreJava_Venkat/doc/index-files/index-9.html
+++ /dev/null
@@ -1,122 +0,0 @@
-
-
-
-
-
-O-Index
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-A C D G H I M N O P R S T
-
-
-
O
-
-OverridingDemo - Class in com.training.java.core.overriding
-
-OverridingDemo() - Constructor for class com.training.java.core.overriding.OverridingDemo
-
-
-
A C D G H I M N O P R S T
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/index.html b/CoreJava_Venkat/doc/index.html
deleted file mode 100644
index d700c15..0000000
--- a/CoreJava_Venkat/doc/index.html
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-Generated Documentation (Untitled)
-
-
-
-
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-Frame Alert
-This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version .
-
-
-
diff --git a/CoreJava_Venkat/doc/overview-frame.html b/CoreJava_Venkat/doc/overview-frame.html
deleted file mode 100644
index 9aa17da..0000000
--- a/CoreJava_Venkat/doc/overview-frame.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-Overview List
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/overview-summary.html b/CoreJava_Venkat/doc/overview-summary.html
deleted file mode 100644
index 087de70..0000000
--- a/CoreJava_Venkat/doc/overview-summary.html
+++ /dev/null
@@ -1,160 +0,0 @@
-
-
-
-
-
-Overview
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/overview-tree.html b/CoreJava_Venkat/doc/overview-tree.html
deleted file mode 100644
index 5262b8f..0000000
--- a/CoreJava_Venkat/doc/overview-tree.html
+++ /dev/null
@@ -1,180 +0,0 @@
-
-
-
-
-
-Class Hierarchy
-
-
-
-
-
-
-JavaScript is disabled on your browser.
-
-
-
-
-
-
-
-
Class Hierarchy
-
-
Interface Hierarchy
-
-com.training.java.core.interfaces.Car
-
-
-
-
-
-
-
-
diff --git a/CoreJava_Venkat/doc/package-list b/CoreJava_Venkat/doc/package-list
deleted file mode 100644
index 0fe3e3d..0000000
--- a/CoreJava_Venkat/doc/package-list
+++ /dev/null
@@ -1,9 +0,0 @@
-com.suneetha
-com.training.java.core.abstraction
-com.training.java.core.doc
-com.training.java.core.inheritence
-com.training.java.core.interfaces
-com.training.java.core.objects
-com.training.java.core.overriding
-com.training.java.core.statickeyword
-com.training.java.core.string
diff --git a/CoreJava_Venkat/doc/resources/background.gif b/CoreJava_Venkat/doc/resources/background.gif
deleted file mode 100644
index f471940..0000000
Binary files a/CoreJava_Venkat/doc/resources/background.gif and /dev/null differ
diff --git a/CoreJava_Venkat/doc/resources/tab.gif b/CoreJava_Venkat/doc/resources/tab.gif
deleted file mode 100644
index 1a73a83..0000000
Binary files a/CoreJava_Venkat/doc/resources/tab.gif and /dev/null differ
diff --git a/CoreJava_Venkat/doc/resources/titlebar.gif b/CoreJava_Venkat/doc/resources/titlebar.gif
deleted file mode 100644
index 17443b3..0000000
Binary files a/CoreJava_Venkat/doc/resources/titlebar.gif and /dev/null differ
diff --git a/CoreJava_Venkat/doc/resources/titlebar_end.gif b/CoreJava_Venkat/doc/resources/titlebar_end.gif
deleted file mode 100644
index 3ad78d4..0000000
Binary files a/CoreJava_Venkat/doc/resources/titlebar_end.gif and /dev/null differ
diff --git a/CoreJava_Venkat/doc/stylesheet.css b/CoreJava_Venkat/doc/stylesheet.css
deleted file mode 100644
index 0e0d70c..0000000
--- a/CoreJava_Venkat/doc/stylesheet.css
+++ /dev/null
@@ -1,474 +0,0 @@
-/* Javadoc style sheet */
-/*
-Overall document style
-*/
-body {
- background-color:#ffffff;
- color:#353833;
- font-family:Arial, Helvetica, sans-serif;
- font-size:76%;
- margin:0;
-}
-a:link, a:visited {
- text-decoration:none;
- color:#4c6b87;
-}
-a:hover, a:focus {
- text-decoration:none;
- color:#bb7a2a;
-}
-a:active {
- text-decoration:none;
- color:#4c6b87;
-}
-a[name] {
- color:#353833;
-}
-a[name]:hover {
- text-decoration:none;
- color:#353833;
-}
-pre {
- font-size:1.3em;
-}
-h1 {
- font-size:1.8em;
-}
-h2 {
- font-size:1.5em;
-}
-h3 {
- font-size:1.4em;
-}
-h4 {
- font-size:1.3em;
-}
-h5 {
- font-size:1.2em;
-}
-h6 {
- font-size:1.1em;
-}
-ul {
- list-style-type:disc;
-}
-code, tt {
- font-size:1.2em;
-}
-dt code {
- font-size:1.2em;
-}
-table tr td dt code {
- font-size:1.2em;
- vertical-align:top;
-}
-sup {
- font-size:.6em;
-}
-/*
-Document title and Copyright styles
-*/
-.clear {
- clear:both;
- height:0px;
- overflow:hidden;
-}
-.aboutLanguage {
- float:right;
- padding:0px 21px;
- font-size:.8em;
- z-index:200;
- margin-top:-7px;
-}
-.legalCopy {
- margin-left:.5em;
-}
-.bar a, .bar a:link, .bar a:visited, .bar a:active {
- color:#FFFFFF;
- text-decoration:none;
-}
-.bar a:hover, .bar a:focus {
- color:#bb7a2a;
-}
-.tab {
- background-color:#0066FF;
- background-image:url(resources/titlebar.gif);
- background-position:left top;
- background-repeat:no-repeat;
- color:#ffffff;
- padding:8px;
- width:5em;
- font-weight:bold;
-}
-/*
-Navigation bar styles
-*/
-.bar {
- background-image:url(resources/background.gif);
- background-repeat:repeat-x;
- color:#FFFFFF;
- padding:.8em .5em .4em .8em;
- height:auto;/*height:1.8em;*/
- font-size:1em;
- margin:0;
-}
-.topNav {
- background-image:url(resources/background.gif);
- background-repeat:repeat-x;
- color:#FFFFFF;
- float:left;
- padding:0;
- width:100%;
- clear:right;
- height:2.8em;
- padding-top:10px;
- overflow:hidden;
-}
-.bottomNav {
- margin-top:10px;
- background-image:url(resources/background.gif);
- background-repeat:repeat-x;
- color:#FFFFFF;
- float:left;
- padding:0;
- width:100%;
- clear:right;
- height:2.8em;
- padding-top:10px;
- overflow:hidden;
-}
-.subNav {
- background-color:#dee3e9;
- border-bottom:1px solid #9eadc0;
- float:left;
- width:100%;
- overflow:hidden;
-}
-.subNav div {
- clear:left;
- float:left;
- padding:0 0 5px 6px;
-}
-ul.navList, ul.subNavList {
- float:left;
- margin:0 25px 0 0;
- padding:0;
-}
-ul.navList li{
- list-style:none;
- float:left;
- padding:3px 6px;
-}
-ul.subNavList li{
- list-style:none;
- float:left;
- font-size:90%;
-}
-.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited {
- color:#FFFFFF;
- text-decoration:none;
-}
-.topNav a:hover, .bottomNav a:hover {
- text-decoration:none;
- color:#bb7a2a;
-}
-.navBarCell1Rev {
- background-image:url(resources/tab.gif);
- background-color:#a88834;
- color:#FFFFFF;
- margin: auto 5px;
- border:1px solid #c9aa44;
-}
-/*
-Page header and footer styles
-*/
-.header, .footer {
- clear:both;
- margin:0 20px;
- padding:5px 0 0 0;
-}
-.indexHeader {
- margin:10px;
- position:relative;
-}
-.indexHeader h1 {
- font-size:1.3em;
-}
-.title {
- color:#2c4557;
- margin:10px 0;
-}
-.subTitle {
- margin:5px 0 0 0;
-}
-.header ul {
- margin:0 0 25px 0;
- padding:0;
-}
-.footer ul {
- margin:20px 0 5px 0;
-}
-.header ul li, .footer ul li {
- list-style:none;
- font-size:1.2em;
-}
-/*
-Heading styles
-*/
-div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 {
- background-color:#dee3e9;
- border-top:1px solid #9eadc0;
- border-bottom:1px solid #9eadc0;
- margin:0 0 6px -8px;
- padding:2px 5px;
-}
-ul.blockList ul.blockList ul.blockList li.blockList h3 {
- background-color:#dee3e9;
- border-top:1px solid #9eadc0;
- border-bottom:1px solid #9eadc0;
- margin:0 0 6px -8px;
- padding:2px 5px;
-}
-ul.blockList ul.blockList li.blockList h3 {
- padding:0;
- margin:15px 0;
-}
-ul.blockList li.blockList h2 {
- padding:0px 0 20px 0;
-}
-/*
-Page layout container styles
-*/
-.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer {
- clear:both;
- padding:10px 20px;
- position:relative;
-}
-.indexContainer {
- margin:10px;
- position:relative;
- font-size:1.0em;
-}
-.indexContainer h2 {
- font-size:1.1em;
- padding:0 0 3px 0;
-}
-.indexContainer ul {
- margin:0;
- padding:0;
-}
-.indexContainer ul li {
- list-style:none;
-}
-.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt {
- font-size:1.1em;
- font-weight:bold;
- margin:10px 0 0 0;
- color:#4E4E4E;
-}
-.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd {
- margin:10px 0 10px 20px;
-}
-.serializedFormContainer dl.nameValue dt {
- margin-left:1px;
- font-size:1.1em;
- display:inline;
- font-weight:bold;
-}
-.serializedFormContainer dl.nameValue dd {
- margin:0 0 0 1px;
- font-size:1.1em;
- display:inline;
-}
-/*
-List styles
-*/
-ul.horizontal li {
- display:inline;
- font-size:0.9em;
-}
-ul.inheritance {
- margin:0;
- padding:0;
-}
-ul.inheritance li {
- display:inline;
- list-style:none;
-}
-ul.inheritance li ul.inheritance {
- margin-left:15px;
- padding-left:15px;
- padding-top:1px;
-}
-ul.blockList, ul.blockListLast {
- margin:10px 0 10px 0;
- padding:0;
-}
-ul.blockList li.blockList, ul.blockListLast li.blockList {
- list-style:none;
- margin-bottom:25px;
-}
-ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList {
- padding:0px 20px 5px 10px;
- border:1px solid #9eadc0;
- background-color:#f9f9f9;
-}
-ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList {
- padding:0 0 5px 8px;
- background-color:#ffffff;
- border:1px solid #9eadc0;
- border-top:none;
-}
-ul.blockList ul.blockList ul.blockList ul.blockList li.blockList {
- margin-left:0;
- padding-left:0;
- padding-bottom:15px;
- border:none;
- border-bottom:1px solid #9eadc0;
-}
-ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast {
- list-style:none;
- border-bottom:none;
- padding-bottom:0;
-}
-table tr td dl, table tr td dl dt, table tr td dl dd {
- margin-top:0;
- margin-bottom:1px;
-}
-/*
-Table styles
-*/
-.contentContainer table, .classUseContainer table, .constantValuesContainer table {
- border-bottom:1px solid #9eadc0;
- width:100%;
-}
-.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table {
- width:100%;
-}
-.contentContainer .description table, .contentContainer .details table {
- border-bottom:none;
-}
-.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{
- vertical-align:top;
- padding-right:20px;
-}
-.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast,
-.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast,
-.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne,
-.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne {
- padding-right:3px;
-}
-.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption {
- position:relative;
- text-align:left;
- background-repeat:no-repeat;
- color:#FFFFFF;
- font-weight:bold;
- clear:none;
- overflow:hidden;
- padding:0px;
- margin:0px;
-}
-caption a:link, caption a:hover, caption a:active, caption a:visited {
- color:#FFFFFF;
-}
-.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span {
- white-space:nowrap;
- padding-top:8px;
- padding-left:8px;
- display:block;
- float:left;
- background-image:url(resources/titlebar.gif);
- height:18px;
-}
-.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd {
- width:10px;
- background-image:url(resources/titlebar_end.gif);
- background-repeat:no-repeat;
- background-position:top right;
- position:relative;
- float:left;
-}
-ul.blockList ul.blockList li.blockList table {
- margin:0 0 12px 0px;
- width:100%;
-}
-.tableSubHeadingColor {
- background-color: #EEEEFF;
-}
-.altColor {
- background-color:#eeeeef;
-}
-.rowColor {
- background-color:#ffffff;
-}
-.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td {
- text-align:left;
- padding:3px 3px 3px 7px;
-}
-th.colFirst, th.colLast, th.colOne, .constantValuesContainer th {
- background:#dee3e9;
- border-top:1px solid #9eadc0;
- border-bottom:1px solid #9eadc0;
- text-align:left;
- padding:3px 3px 3px 7px;
-}
-td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover {
- font-weight:bold;
-}
-td.colFirst, th.colFirst {
- border-left:1px solid #9eadc0;
- white-space:nowrap;
-}
-td.colLast, th.colLast {
- border-right:1px solid #9eadc0;
-}
-td.colOne, th.colOne {
- border-right:1px solid #9eadc0;
- border-left:1px solid #9eadc0;
-}
-table.overviewSummary {
- padding:0px;
- margin-left:0px;
-}
-table.overviewSummary td.colFirst, table.overviewSummary th.colFirst,
-table.overviewSummary td.colOne, table.overviewSummary th.colOne {
- width:25%;
- vertical-align:middle;
-}
-table.packageSummary td.colFirst, table.overviewSummary th.colFirst {
- width:25%;
- vertical-align:middle;
-}
-/*
-Content styles
-*/
-.description pre {
- margin-top:0;
-}
-.deprecatedContent {
- margin:0;
- padding:10px 0;
-}
-.docSummary {
- padding:0;
-}
-/*
-Formatting effect styles
-*/
-.sourceLineNo {
- color:green;
- padding:0 30px 0 0;
-}
-h1.hidden {
- visibility:hidden;
- overflow:hidden;
- font-size:.9em;
-}
-.block {
- display:block;
- margin:3px 0 0 0;
-}
-.strong {
- font-weight:bold;
-}
diff --git a/CoreJava_Venkat/src/com/suneetha/ArrayDemo.java b/CoreJava_Venkat/src/com/suneetha/ArrayDemo.java
deleted file mode 100644
index a60fc46..0000000
--- a/CoreJava_Venkat/src/com/suneetha/ArrayDemo.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package com.suneetha;
-
-/**
- * This example shows how to use Arrays.
- *
- * @author Hari
- *
- */
-public class ArrayDemo {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- /*
- String[] students = new String[4];
-
- students[0] = "Vasu";
- students[1] = "Suneetha";
- students[2] = "Sirisha";
- students[3] = "Sekhar";
- */
-
-
- /*
- String[] students = {"Vasu", "Suneetha", "Sirisha", "Sekhar"};
-
- //Third student from Array
- String thirdStudent = students[2];
- System.out.println("Third student = " + thirdStudent);
- */
-
- String firstStudent = args[0];
- String secondStudent = args[1];
- String thirdStudent = args[2];
-
- System.out.println("First student = " + firstStudent);
- System.out.println("Second student = " + secondStudent);
- System.out.println("Third student = " + thirdStudent);
-
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/suneetha/Calculator.java b/CoreJava_Venkat/src/com/suneetha/Calculator.java
deleted file mode 100644
index 838b4e9..0000000
--- a/CoreJava_Venkat/src/com/suneetha/Calculator.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.suneetha;
-
-class Calculator {
-
- int add(int firstNumber, int secondNumber)
- {
- return firstNumber + secondNumber;
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/suneetha/CalculatorDemo.java b/CoreJava_Venkat/src/com/suneetha/CalculatorDemo.java
deleted file mode 100644
index 6d9be31..0000000
--- a/CoreJava_Venkat/src/com/suneetha/CalculatorDemo.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package com.suneetha;
-
-public class CalculatorDemo {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- Calculator calc = new Calculator();
-
- String firstNumber = args[0];
- String secondNumber = args[1];
-
- int fn = Integer.parseInt(firstNumber);
- int sn = Integer.parseInt(secondNumber);
-
- int result = calc.add(fn, sn);
-
- System.out.println("Result = " + result);
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/suneetha/Car.java b/CoreJava_Venkat/src/com/suneetha/Car.java
deleted file mode 100644
index a83e628..0000000
--- a/CoreJava_Venkat/src/com/suneetha/Car.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.suneetha;
-
-public class Car {
-
- //instance variables
- String color = "red";
- String vinNumber;
- int age;
- boolean isRaceCar;
-
- void start()
- {
- color = "blue";
-
- //method level variables or local variables
- String model = "Focus";
-
-
-
- System.out.println("Car started");
- System.out.println("And the color = " + color);
- }
-
-
-
-}
diff --git a/CoreJava_Venkat/src/com/suneetha/CarDemo.java b/CoreJava_Venkat/src/com/suneetha/CarDemo.java
deleted file mode 100644
index f41f159..0000000
--- a/CoreJava_Venkat/src/com/suneetha/CarDemo.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.suneetha;
-
-public class CarDemo {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- //Instantiation
- Car focus = new Car();
-
- focus.vinNumber = "12345";
-
- Car camry = new Car();
-
- focus.start();
- camry.start();
-
- System.out.println("Camry's vin number = " + camry.vinNumber);
- System.out.println("Camry's age = " + camry.age);
- System.out.println("Camry's isRaceCar = " + camry.isRaceCar);
-
- int age = 25;
-
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/suneetha/HelloWorld.java b/CoreJava_Venkat/src/com/suneetha/HelloWorld.java
deleted file mode 100644
index c5459c1..0000000
--- a/CoreJava_Venkat/src/com/suneetha/HelloWorld.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.suneetha;
-
-public class HelloWorld {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- System.out.println("Hello again!!");
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/suneetha/package-info.java b/CoreJava_Venkat/src/com/suneetha/package-info.java
deleted file mode 100644
index e919d88..0000000
--- a/CoreJava_Venkat/src/com/suneetha/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * This is a new package.
- */
-/**
- * @author Hari
- *
- */
-package com.suneetha;
\ No newline at end of file
diff --git a/CoreJava_Venkat/src/com/training/java/core/abstraction/AbstractionDemo.java b/CoreJava_Venkat/src/com/training/java/core/abstraction/AbstractionDemo.java
deleted file mode 100644
index 6a0dc71..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/abstraction/AbstractionDemo.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.training.java.core.abstraction;
-
-public class AbstractionDemo {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- Car car = new ItalianRaceCar();
-
- car.start();
- car.accelerate(20);
- car.printInformation();
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/abstraction/Car.java b/CoreJava_Venkat/src/com/training/java/core/abstraction/Car.java
deleted file mode 100644
index cee4a82..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/abstraction/Car.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package com.training.java.core.abstraction;
-
-public abstract class Car {
-
- int currentSpeed;
- boolean started;
- String color;
-
-
- protected void start()
- {
- System.out.println("Car is starting");
- started = true;
- }
-
- protected void stop()
- {
- System.out.println("Car is stopping");
- started = false;
- }
-
- public abstract void accelerate(int increaseMiles);
-
- public void applyBrakes(int decreaseMiles)
- {
- currentSpeed -= decreaseMiles;
- }
-
- public int getCurrentSpeed() {
- return currentSpeed;
- }
-
- public void printInformation()
- {
- System.out.println("The color is " + color);
- System.out.println("The started flag is " + started);
- System.out.println("Current speed = " + currentSpeed);
- }
-
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/abstraction/ItalianRaceCar.java b/CoreJava_Venkat/src/com/training/java/core/abstraction/ItalianRaceCar.java
deleted file mode 100644
index 802cbbd..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/abstraction/ItalianRaceCar.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.training.java.core.abstraction;
-
-public class ItalianRaceCar extends RaceCar {
-
- @Override
- public void accelerate(int increaseMiles) {
- currentSpeed = currentSpeed + (10*increaseMiles);
- }
-
-
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/abstraction/PoliceCar.java b/CoreJava_Venkat/src/com/training/java/core/abstraction/PoliceCar.java
deleted file mode 100644
index ae9cf89..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/abstraction/PoliceCar.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.training.java.core.abstraction;
-
-public class PoliceCar extends Car {
-
- public PoliceCar(String color)
- {
- super.color = color;
- }
-
- public void chase()
- {
- System.out.println("Police car is chasing..");
- }
-
- public void turnOnLights()
- {
- super.start();
- System.out.println("Turned on LED lights");
- super.stop();
- }
-
- @Override
- public void accelerate(int increaseMiles) {
- currentSpeed = currentSpeed + (2*increaseMiles);
- }
-
-
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/abstraction/RaceCar.java b/CoreJava_Venkat/src/com/training/java/core/abstraction/RaceCar.java
deleted file mode 100644
index 468310b..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/abstraction/RaceCar.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.training.java.core.abstraction;
-
-public abstract class RaceCar extends Car {
-
- public void nitro()
- {
- System.out.println("Nitro is on, I am zooming...");
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/abstraction/package-info.java b/CoreJava_Venkat/src/com/training/java/core/abstraction/package-info.java
deleted file mode 100644
index e86e58c..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/abstraction/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.core.abstraction;
\ No newline at end of file
diff --git a/CoreJava_Venkat/src/com/training/java/core/collections/ArrayListDemo.java b/CoreJava_Venkat/src/com/training/java/core/collections/ArrayListDemo.java
deleted file mode 100644
index f3aa5df..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/collections/ArrayListDemo.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.training.java.core.collections;
-
-import java.util.ArrayList;
-import java.util.List;
-
-public class ArrayListDemo {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- ImmutableBook book1 = new ImmutableBook("Head First Java", "Kathy Sierra", "1234");
- ImmutableBook book2 = new ImmutableBook("Spring in Action", "Craig Walls", "4321");
- ImmutableBook book3 = new ImmutableBook("Java persistance with Hibernate", "Gavin King", "9876");
- ImmutableBook book4 = new ImmutableBook("The pragmatic programmer", "Dave Thomas", "9876");
-
- List books = new ArrayList();
-
- books.add(book1);
- books.add(book2);
- books.add(book3);
- books.add(book4);
-
- for(ImmutableBook book : books)
- {
- System.out.println("Title = " + book.getTitle());
- System.out.println("Author = " + book.getAuthor());
- System.out.println("Isbn = " + book.getIsbn());
- }
-
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/collections/ArrayListDemo1.java b/CoreJava_Venkat/src/com/training/java/core/collections/ArrayListDemo1.java
deleted file mode 100644
index ce21e99..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/collections/ArrayListDemo1.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.training.java.core.collections;
-
-import java.util.ArrayList;
-import java.util.List;
-
-public class ArrayListDemo1 {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- List names = new ArrayList();
-
- names.add("Vasu");
- names.add("Vasu");
- names.add("Sirisha");
- names.add("Sirisha");
- names.add("Kranthi");
- names.add("Rajani");
- names.add("Rajani");
- names.add(null);
- names.add("Davuluri");
- names.add("Chaitra");
- names.add("Gayathri");
- names.add("Geetha");
- names.add("Irfaan");
- names.add("Irfaan");
- names.add("Sekhar");
- names.add("Sunitha");
- names.add(null);
- names.add("Sunitha");
-
- for(String name : names)
- {
- System.out.println("Name = " + name);
- }
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/collections/ArrayListDemo14.java b/CoreJava_Venkat/src/com/training/java/core/collections/ArrayListDemo14.java
deleted file mode 100644
index b444eab..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/collections/ArrayListDemo14.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package com.training.java.core.collections;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-public class ArrayListDemo14 {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- List books = new LinkedList();
-
- ImmutableBook book1 = new ImmutableBook("Head First Java", "Kathy Sierra", "1234");
- ImmutableBook book2 = new ImmutableBook("Spring in Action", "Craig Walls", "4321");
- ImmutableBook book3 = new ImmutableBook("Java persistance with Hibernate", "Gavin King", "9876");
- ImmutableBook book4 = new ImmutableBook("The pragmatic programmer", "Dave Thomas", "9876");
-
- books.add(book1);
- books.add(book2);
- books.add(book3);
- books.add(book4);
-
- //Lets read from the List
- Iterator ite = books.iterator();
-
- while(ite.hasNext())
- {
- ImmutableBook book = (ImmutableBook) ite.next();
-
- System.out.println("Title = " + book.getTitle());
- System.out.println("Author = " + book.getAuthor());
- System.out.println("Isbn = " + book.getIsbn());
- }
-
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/collections/Book.java b/CoreJava_Venkat/src/com/training/java/core/collections/Book.java
deleted file mode 100644
index 0d12aa6..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/collections/Book.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package com.training.java.core.collections;
-
-public class Book {
-
- private String title;
- private String author;
- private String isbn;
-
- public String getTitle() {
- return title;
- }
-
- public void setTitle(String title) {
- this.title = title;
- }
-
- public String getAuthor() {
- return author;
- }
-
- public void setAuthor(String author) {
- this.author = author;
- }
-
- public String getIsbn() {
- return isbn;
- }
-
- public void setIsbn(String isbn) {
- this.isbn = isbn;
- }
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/collections/ImmutableBook.java b/CoreJava_Venkat/src/com/training/java/core/collections/ImmutableBook.java
deleted file mode 100644
index c8961e2..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/collections/ImmutableBook.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.training.java.core.collections;
-
-public class ImmutableBook {
-
- private String title;
- private String author;
- private String isbn;
-
- public ImmutableBook(String title, String author, String isbn)
- {
- this.title = title;
- this.author = author;
- this.isbn = isbn;
- }
-
- public String getTitle() {
- return title;
- }
-
- public String getAuthor() {
- return author;
- }
-
- public String getIsbn() {
- return isbn;
- }
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/collections/package-info.java b/CoreJava_Venkat/src/com/training/java/core/collections/package-info.java
deleted file mode 100644
index 9bef661..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/collections/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.core.collections;
\ No newline at end of file
diff --git a/CoreJava_Venkat/src/com/training/java/core/doc/package-info.java b/CoreJava_Venkat/src/com/training/java/core/doc/package-info.java
deleted file mode 100644
index 2452018..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/doc/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * This is a new package.
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.core.doc;
\ No newline at end of file
diff --git a/CoreJava_Venkat/src/com/training/java/core/exceptions/ExceptionDemo1.java b/CoreJava_Venkat/src/com/training/java/core/exceptions/ExceptionDemo1.java
deleted file mode 100644
index 975cd68..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/exceptions/ExceptionDemo1.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.training.java.core.exceptions;
-
-public class ExceptionDemo1 {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- try
- {
- String firstName = args[0];
-
- String lastName = args[1];
-
- System.out.println("Hello " + firstName + " " + lastName);
- }
- catch(ArrayIndexOutOfBoundsException ex)
- {
- System.out.println("Looks like there are no elements in that array");
- }
-
-
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/exceptions/FileWriterDemo.java b/CoreJava_Venkat/src/com/training/java/core/exceptions/FileWriterDemo.java
deleted file mode 100644
index e3f3034..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/exceptions/FileWriterDemo.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.training.java.core.exceptions;
-
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.PrintWriter;
-
-public class FileWriterDemo {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- FileWriter fw = null;
- PrintWriter out = null;
- try {
- fw = new FileWriter("D:\\students.txt");
-
- out = new PrintWriter(fw);
-
- out.println("Chaitra");
- out.println("Davuluri");
- out.println("Gayathri");
-
- } catch (IOException e) {
- e.printStackTrace();
- }
- finally
- {
- if(out != null)
- {
- out.close();
- }
- }
-
- System.out.println("I am after catch block");
-
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/exceptions/FileWriterDemo2.java b/CoreJava_Venkat/src/com/training/java/core/exceptions/FileWriterDemo2.java
deleted file mode 100644
index 1181543..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/exceptions/FileWriterDemo2.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.training.java.core.exceptions;
-
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.PrintWriter;
-
-public class FileWriterDemo2 {
-
- /**
- * @param args
- */
- public static void main(String[] args) throws IOException {
-
- FileWriter fw = new FileWriter("D:\\students.txt");
-
- PrintWriter out = new PrintWriter(fw);
-
- out.println("Chaitra");
- out.println("Davuluri");
- out.println("Gayathri");
-
- out.close();
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/exceptions/package-info.java b/CoreJava_Venkat/src/com/training/java/core/exceptions/package-info.java
deleted file mode 100644
index e84bf97..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/exceptions/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.core.exceptions;
\ No newline at end of file
diff --git a/CoreJava_Venkat/src/com/training/java/core/inheritence/Car.java b/CoreJava_Venkat/src/com/training/java/core/inheritence/Car.java
deleted file mode 100644
index 11da328..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/inheritence/Car.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package com.training.java.core.inheritence;
-
-public class Car {
-
- int currentSpeed;
- boolean started;
- String color;
-
- protected void start()
- {
- System.out.println("Car is starting");
- started = true;
- }
-
- protected void stop()
- {
- System.out.println("Car is stopping");
- started = false;
- }
-
- public void accelerate(int increaseMiles)
- {
- currentSpeed += increaseMiles;
- }
-
- public void applyBrakes(int decreaseMiles)
- {
- currentSpeed -= decreaseMiles;
- }
-
- public void printInformation()
- {
- System.out.println("The color is " + color);
- System.out.println("The started flag is " + started);
- System.out.println("Current speed = " + currentSpeed);
- }
-
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/inheritence/InheritenceDemo.java b/CoreJava_Venkat/src/com/training/java/core/inheritence/InheritenceDemo.java
deleted file mode 100644
index 700e20c..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/inheritence/InheritenceDemo.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.training.java.core.inheritence;
-
-public class InheritenceDemo {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
-
- PoliceCar policeCar = new PoliceCar("Red");
-
- policeCar.start();
- policeCar.accelerate(20);
- policeCar.applyBrakes(10);
- policeCar.turnOnLights();
- policeCar.chase();
- policeCar.printInformation();
-
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/inheritence/PoliceCar.java b/CoreJava_Venkat/src/com/training/java/core/inheritence/PoliceCar.java
deleted file mode 100644
index d9b14f0..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/inheritence/PoliceCar.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.training.java.core.inheritence;
-
-public final class PoliceCar extends Car {
-
- public PoliceCar(String color)
- {
- super.color = color;
- }
-
- public void chase()
- {
- System.out.println("Police car is chasing..");
- }
-
- public void turnOnLights()
- {
- super.start();
- System.out.println("Turned on LED lights");
- super.stop();
- }
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/inheritence/RaceCar.java b/CoreJava_Venkat/src/com/training/java/core/inheritence/RaceCar.java
deleted file mode 100644
index 7d665df..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/inheritence/RaceCar.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.training.java.core.inheritence;
-
-public class RaceCar extends Car {
-
- public void nitro()
- {
- System.out.println("Nitro is on, I am zooming...");
- }
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/interfaces/Car.java b/CoreJava_Venkat/src/com/training/java/core/interfaces/Car.java
deleted file mode 100644
index d3c812d..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/interfaces/Car.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.training.java.core.interfaces;
-
-public interface Car {
-
- void start();
- void stop();
- void accelerate(int increaseMiles);
-
- void printInformation();
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/interfaces/ConsolePrinter.java b/CoreJava_Venkat/src/com/training/java/core/interfaces/ConsolePrinter.java
deleted file mode 100644
index d7192af..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/interfaces/ConsolePrinter.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.training.java.core.interfaces;
-
-public class ConsolePrinter {
-
- public void print(String message)
- {
- System.out.println(message);
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/interfaces/InterfaceDemo.java b/CoreJava_Venkat/src/com/training/java/core/interfaces/InterfaceDemo.java
deleted file mode 100644
index 14be583..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/interfaces/InterfaceDemo.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.training.java.core.interfaces;
-
-public class InterfaceDemo {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
- Car car = new RaceCar();
-
- car.start();
- car.accelerate(20);
- car.printInformation();
- car.stop();
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/interfaces/PoliceCar.java b/CoreJava_Venkat/src/com/training/java/core/interfaces/PoliceCar.java
deleted file mode 100644
index 2ad8d4a..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/interfaces/PoliceCar.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.training.java.core.interfaces;
-
-
-public class PoliceCar implements Car {
-
- private int currentSpeed;
-
- @Override
- public void start() {
- System.out.println("PoliceCar starting");
- }
-
- @Override
- public void stop() {
- System.out.println("PoliceCar stopping");
- }
-
- @Override
- public void accelerate(int increaseMiles) {
- currentSpeed = currentSpeed + (2*increaseMiles);
- }
-
- @Override
- public void printInformation() {
- new ConsolePrinter().print("Current speed = " + currentSpeed);
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/interfaces/RaceCar.java b/CoreJava_Venkat/src/com/training/java/core/interfaces/RaceCar.java
deleted file mode 100644
index 52eb04d..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/interfaces/RaceCar.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.training.java.core.interfaces;
-
-public class RaceCar implements Car {
-
- private int currentSpeed;
-
- @Override
- public void start() {
- System.out.println("RaceCar starting");
- }
-
- @Override
- public void stop() {
- System.out.println("RaceCar stopping");
- }
-
- @Override
- public void accelerate(int increaseMiles) {
- currentSpeed = currentSpeed + (4*increaseMiles);
- }
-
- @Override
- public void printInformation() {
- new ConsolePrinter().print("Current speed = " + currentSpeed);
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/interfaces/package-info.java b/CoreJava_Venkat/src/com/training/java/core/interfaces/package-info.java
deleted file mode 100644
index 741d68c..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/interfaces/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.core.interfaces;
\ No newline at end of file
diff --git a/CoreJava_Venkat/src/com/training/java/core/objects/Address.java b/CoreJava_Venkat/src/com/training/java/core/objects/Address.java
deleted file mode 100644
index ce683eb..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/objects/Address.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package com.training.java.core.objects;
-
-public class Address {
-
- String street;
- String city;
- String state;
- String zip;
- String country;
-
- public Address(String street, String city, String state, String zip,
- String country) {
- this.street = street;
- this.city = city;
- this.state = state;
- this.zip = zip;
- this.country = country;
- }
-
- String getStreet() {
- return street;
- }
-
- String getCity() {
- return city;
- }
-
- String getState() {
- return state;
- }
-
- String getZip() {
- return zip;
- }
-
- String getCountry() {
- return country;
- }
-
- @Override
- public String toString() {
-
- StringBuffer address = new StringBuffer();
-
- address.append(street);
- address.append("\n");
- address.append(city + " ");
- address.append(state + " ");
- address.append(zip);
-
- return address.toString();
-
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/objects/ObjectsDemo.java b/CoreJava_Venkat/src/com/training/java/core/objects/ObjectsDemo.java
deleted file mode 100644
index 57ce684..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/objects/ObjectsDemo.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package com.training.java.core.objects;
-
-public class ObjectsDemo {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- Address address = new Address("8652 Test Dr", "Troy", "MI", "48084", "USA");
-
- Person sirisha = new Person();
-
- sirisha.setFirstName("Sirisha");
- sirisha.setLastName("Last name");
- sirisha.setAddress(address);
-
- System.out.println("Sirisha = " + sirisha);
-
-
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/objects/Person.java b/CoreJava_Venkat/src/com/training/java/core/objects/Person.java
deleted file mode 100644
index b50c25e..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/objects/Person.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package com.training.java.core.objects;
-
-public class Person {
-
- String firstName;
- String lastName;
-
- Address address;
-
- int id;
- PhoneNumer phoneNumber;
-
- String email;
-
- String getFirstName() {
- return firstName;
- }
-
- void setFirstName(String firstName) {
- this.firstName = firstName;
- }
-
- String getLastName() {
- return lastName;
- }
-
- void setLastName(String lastName) {
- this.lastName = lastName;
- }
-
- Address getAddress() {
- return address;
- }
-
- void setAddress(Address address) {
- this.address = address;
- }
-
- int getId() {
- return id;
- }
-
- void setId(int id) {
- this.id = id;
- }
-
- PhoneNumer getPhoneNumber() {
- return phoneNumber;
- }
-
- void setPhoneNumber(PhoneNumer phoneNumber) {
- this.phoneNumber = phoneNumber;
- }
-
- String getEmail() {
- return email;
- }
-
- void setEmail(String email) {
- this.email = email;
- }
-
- @Override
- public String toString() {
-
- StringBuilder person = new StringBuilder();
-
- person.append(firstName);
- person.append(" ");
- person.append(lastName + "\n");
- person.append(address.toString());
-
- return person.toString();
-
- }
-
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/objects/PhoneNumer.java b/CoreJava_Venkat/src/com/training/java/core/objects/PhoneNumer.java
deleted file mode 100644
index 7e5715e..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/objects/PhoneNumer.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.training.java.core.objects;
-
-public class PhoneNumer {
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/overriding/Car.java b/CoreJava_Venkat/src/com/training/java/core/overriding/Car.java
deleted file mode 100644
index 0d5056d..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/overriding/Car.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package com.training.java.core.overriding;
-
-public class Car {
-
- int currentSpeed;
- boolean started;
- String color;
-
-
- protected void start()
- {
- System.out.println("Car is starting");
- started = true;
- }
-
- protected void stop()
- {
- System.out.println("Car is stopping");
- started = false;
- }
-
- public void accelerate(int increaseMiles)
- {
- currentSpeed += increaseMiles;
- }
-
- public void applyBrakes(int decreaseMiles)
- {
- currentSpeed -= decreaseMiles;
- }
-
- public int getCurrentSpeed() {
- return currentSpeed;
- }
-
- public void printInformation()
- {
- System.out.println("The color is " + color);
- System.out.println("The started flag is " + started);
- System.out.println("Current speed = " + currentSpeed);
- }
-
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/overriding/Driver.java b/CoreJava_Venkat/src/com/training/java/core/overriding/Driver.java
deleted file mode 100644
index 6c5be91..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/overriding/Driver.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.training.java.core.overriding;
-
-public class Driver {
-
- private Car car;
-
- public Driver(Car car)
- {
- this.car = car;
- }
-
- public void drive()
- {
- car.start();
- car.accelerate(20);
-
- System.out.println("Current speed = " + car.getCurrentSpeed());
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/overriding/OverridingDemo.java b/CoreJava_Venkat/src/com/training/java/core/overriding/OverridingDemo.java
deleted file mode 100644
index 7dbe460..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/overriding/OverridingDemo.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.training.java.core.overriding;
-
-public class OverridingDemo {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- Car car = new PoliceCar("Blue");
-
- Driver kalpana = new Driver(car);
- kalpana.drive();
-
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/overriding/PoliceCar.java b/CoreJava_Venkat/src/com/training/java/core/overriding/PoliceCar.java
deleted file mode 100644
index aef3b7d..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/overriding/PoliceCar.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.training.java.core.overriding;
-
-public class PoliceCar extends Car {
-
- public PoliceCar(String color)
- {
- super.color = color;
- }
-
- public void chase()
- {
- System.out.println("Police car is chasing..");
- }
-
- public void turnOnLights()
- {
- super.start();
- System.out.println("Turned on LED lights");
- super.stop();
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/overriding/RaceCar.java b/CoreJava_Venkat/src/com/training/java/core/overriding/RaceCar.java
deleted file mode 100644
index 7b9c333..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/overriding/RaceCar.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.training.java.core.overriding;
-
-public class RaceCar extends Car {
-
- public void nitro()
- {
- System.out.println("Nitro is on, I am zooming...");
- }
-
- @Override
- public void accelerate(int increaseMiles)
- {
- currentSpeed = currentSpeed + (4*increaseMiles);
- }
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/statickeyword/Car.java b/CoreJava_Venkat/src/com/training/java/core/statickeyword/Car.java
deleted file mode 100644
index 928b510..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/statickeyword/Car.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package com.training.java.core.statickeyword;
-
-public class Car {
-
- private String make;
- private String model;
- private int currentSpeed;
-
- private static int numberOfCarsCreated;
-
- public Car(String make, String model) {
- super();
- this.make = make;
- this.model = model;
-
- currentSpeed++;
- numberOfCarsCreated++;
-
- System.out.println("Current speed = " + currentSpeed);
- System.out.println("number of cars created = " + numberOfCarsCreated);
- }
-
- String getMake() {
- return make;
- }
-
- String getModel() {
- return model;
- }
-
- static int getNumberOfCarsCreated()
- {
- return numberOfCarsCreated;
- }
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/statickeyword/NonStaticDemo.java b/CoreJava_Venkat/src/com/training/java/core/statickeyword/NonStaticDemo.java
deleted file mode 100644
index dccf087..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/statickeyword/NonStaticDemo.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.training.java.core.statickeyword;
-
-/**
- *
- *
- * @author Hari
- *
- */
-public class NonStaticDemo {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- Car focus = new Car("Ford", "Focus");
- Car twoHundred = new Car("Chrysler", "200");
- Car malibu = new Car("Chevy", "Malibu");
- Car accord = new Car("Honda", "Accord");
-
- System.out.println("No of cars created.." + Car.getNumberOfCarsCreated());
-
- }
-
-}
-
diff --git a/CoreJava_Venkat/src/com/training/java/core/statickeyword/package-info.java b/CoreJava_Venkat/src/com/training/java/core/statickeyword/package-info.java
deleted file mode 100644
index 7480cbb..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/statickeyword/package-info.java
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- *
- */
-/**
- * This package has all the classes related to static keyword.
- *
- *
- * @author Hari
- *
- */
-package com.training.java.core.statickeyword;
\ No newline at end of file
diff --git a/CoreJava_Venkat/src/com/training/java/core/string/StringStringBufferDemo.java b/CoreJava_Venkat/src/com/training/java/core/string/StringStringBufferDemo.java
deleted file mode 100644
index 0f02c46..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/string/StringStringBufferDemo.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.training.java.core.string;
-
-public class StringStringBufferDemo {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- String name = "Gayathri ";
- name = name.trim();
-
- System.out.println("Name = -->" + name + "<--");
- //System.out.println("Trimmed Name = -->" + trimmedName + "<--");
-
- StringBuffer sbName = new StringBuffer("Chaitra");
- sbName.append(":Davuluri:");
- sbName.append(":Gayathri:");
-
- System.out.println("sbName = " + sbName);
-
- //String name = new String("Venkat");
-
-
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/string/package-info.java b/CoreJava_Venkat/src/com/training/java/core/string/package-info.java
deleted file mode 100644
index 36b8563..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/string/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.core.string;
\ No newline at end of file
diff --git a/CoreJava_Venkat/src/com/training/java/core/thread/ConsolePrinter.java b/CoreJava_Venkat/src/com/training/java/core/thread/ConsolePrinter.java
deleted file mode 100644
index 61a7a6c..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/thread/ConsolePrinter.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.training.java.core.thread;
-
-public class ConsolePrinter extends Thread {
-
- private String printerName;
- private String printerCompany;
-
- public void print() {
- new Thread(this).start();
-
- }
-
- @Override
- public void run() {
- for (int i = 0; i < 10000; i++) {
- System.out.println(Thread.currentThread().getName() + "<--> i = "
- + i);
- }
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/thread/ThreadDemo.java b/CoreJava_Venkat/src/com/training/java/core/thread/ThreadDemo.java
deleted file mode 100644
index 7300371..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/thread/ThreadDemo.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.training.java.core.thread;
-
-public class ThreadDemo {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- ConsolePrinter printer = new ConsolePrinter();
-
- System.out.println("1st print is going to start");
- printer.print();
- System.out.println("1st print is done");
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/core/thread/package-info.java b/CoreJava_Venkat/src/com/training/java/core/thread/package-info.java
deleted file mode 100644
index 85f00e2..0000000
--- a/CoreJava_Venkat/src/com/training/java/core/thread/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.core.thread;
\ No newline at end of file
diff --git a/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/DAOException.java b/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/DAOException.java
deleted file mode 100644
index bb9f8b4..0000000
--- a/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/DAOException.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.training.java.jdbc.teamdao.television;
-
-public class DAOException extends RuntimeException {
-
- public DAOException(String errorMessage)
- {
- super(errorMessage);
- }
- public DAOException(Throwable cause)
- {
- super(cause);
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/Television.java b/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/Television.java
deleted file mode 100644
index a938f90..0000000
--- a/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/Television.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package com.training.java.jdbc.teamdao.television;
-
-public class Television {
-
-
- private int tvId ;
- private String company;
- private String type;
- private boolean enable3d;
- private double price;
-
- public Television (int tvId, String company, String type,boolean enable3d, double price) {
- super();
- this.tvId = tvId;
- this.company = company;
- this.type = type;
- this.enable3d = enable3d;
- this.price = price;
- }
-
- int getTvId() {
- return tvId;
- }
- String getCompany() {
- return company;
- }
- String getType() {
- return type;
- }
- boolean isEnable3d() {
- return enable3d;
- }
- double getPrice() {
- return price;
- }
-}
diff --git a/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/TelevisionDAO.java b/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/TelevisionDAO.java
deleted file mode 100644
index 9fcb27b..0000000
--- a/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/TelevisionDAO.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.training.java.jdbc.teamdao.television;
-
-import java.util.List;
-
-public interface TelevisionDAO {
-
- List getAllTelevision() throws DAOException ;
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/TelevisionDAOImpl.java b/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/TelevisionDAOImpl.java
deleted file mode 100644
index d8dc794..0000000
--- a/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/TelevisionDAOImpl.java
+++ /dev/null
@@ -1,125 +0,0 @@
-package com.training.java.jdbc.teamdao.television;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-import java.util.ArrayList;
-import java.util.List;
-
-public class TelevisionDAOImpl implements TelevisionDAO{
- private String jdbcUrl;
- private String userName;
- private String password;
-
- public TelevisionDAOImpl(String jdbcurl, String username,String password)
- {
- this.jdbcUrl = jdbcurl;
- this.userName = username;
- this.password = password;
- }
-
- @Override
- public List getAllTelevision() throws DAOException {
- Connection connection=null;
- Statement statement=null;
- ResultSet resultSet=null;
- List tel = new ArrayList();
-
- try{
- connection=getConnection();
- statement = connection.createStatement();
- resultSet= statement.executeQuery("select * from television ");
-
- while (resultSet.next())
- {
- int id = resultSet.getInt("tv_id");
- String company =resultSet.getString("company");
- String type = resultSet.getString("type");
-
- String enable3DStr = resultSet.getString("enable_3d");
- String priceStr=resultSet.getString("price");
-
- double price=Double.parseDouble(priceStr);
- Television television=new Television(id, company, type, "Y".equals(enable3DStr), price);
- tel.add(television);
- }
-
- return tel;
- }
- catch(SQLException e )
- {
- throw new DAOException(e);
- }
- finally
- {
- closeResource(resultSet,statement,connection);
- }
- }
-
- private Connection getConnection() throws DAOException {
- try {
-
- Class.forName("oracle.jdbc.driver.OracleDriver");
-
- return DriverManager.getConnection(jdbcUrl, userName, password);
-
- } catch (ClassNotFoundException e) {
- //e.printStackTrace();
- throw new DAOException(e);
-
- }catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
-
-
- }
- private void closeResource(ResultSet resultSet, Statement statement, Connection connection)
-
- {
- if(resultSet!=null)
- {
- try
- {
- resultSet.close();
- }
- catch(SQLException e)
- {
- e.printStackTrace();
-
- }
-
-
- }
- if(statement!=null)
- {
- try
- {
- statement.close();
- }
- catch(SQLException e)
- {
- e.printStackTrace();
-
- }
-
-
- }
- if(connection!=null)
- {
- try
- {
- connection.close();
- }
- catch(SQLException e)
- {
- e.printStackTrace();
-
- }
-
-
- }
- }
-}
diff --git a/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/TelevisionDaoTest.java b/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/TelevisionDaoTest.java
deleted file mode 100644
index 829907b..0000000
--- a/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/TelevisionDaoTest.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.training.java.jdbc.teamdao.television;
-
-import java.util.List;
-
-import junit.framework.Assert;
-
-import org.junit.Test;
-
-public class TelevisionDaoTest {
- @Test
- public void testgetTelevision() throws DAOException{
- TelevisionDAO dao=new TelevisionDAOImpl("jdbc:oracle:thin:@localhost:1521:XE", "television", "password");
- List televisions=dao.getAllTelevision();
- Assert.assertNotNull(televisions);
-
- }
-
-}
diff --git a/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/package-info.java b/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/package-info.java
deleted file mode 100644
index 820ed8f..0000000
--- a/CoreJava_Venkat/src/com/training/java/jdbc/teamdao/television/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.jdbc.teamdao.television;
\ No newline at end of file
diff --git a/CurrentBatchStruts1/.classpath b/CurrentBatchStruts1/.classpath
deleted file mode 100644
index 1fb4891..0000000
--- a/CurrentBatchStruts1/.classpath
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts1/.project b/CurrentBatchStruts1/.project
deleted file mode 100644
index a81833b..0000000
--- a/CurrentBatchStruts1/.project
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- CurrentBatchStruts1
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/CurrentBatchStruts1/.settings/.jsdtscope b/CurrentBatchStruts1/.settings/.jsdtscope
deleted file mode 100644
index 887f573..0000000
--- a/CurrentBatchStruts1/.settings/.jsdtscope
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts1/.settings/org.eclipse.jdt.core.prefs b/CurrentBatchStruts1/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 11f6e46..0000000
--- a/CurrentBatchStruts1/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/CurrentBatchStruts1/.settings/org.eclipse.wst.common.component b/CurrentBatchStruts1/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index 02b2011..0000000
--- a/CurrentBatchStruts1/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts1/.settings/org.eclipse.wst.common.project.facet.core.xml b/CurrentBatchStruts1/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index 416c37e..0000000
--- a/CurrentBatchStruts1/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts1/.settings/org.eclipse.wst.jsdt.ui.superType.container b/CurrentBatchStruts1/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/CurrentBatchStruts1/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/CurrentBatchStruts1/.settings/org.eclipse.wst.jsdt.ui.superType.name b/CurrentBatchStruts1/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/CurrentBatchStruts1/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/CurrentBatchStruts1/WebContent/META-INF/MANIFEST.MF b/CurrentBatchStruts1/WebContent/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/CurrentBatchStruts1/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/antlr-2.7.2.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/antlr-2.7.2.jar
deleted file mode 100644
index 8850fc6..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/antlr-2.7.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/bsf-2.3.0.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/bsf-2.3.0.jar
deleted file mode 100644
index caa4dea..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/bsf-2.3.0.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-beanutils-1.8.0.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-beanutils-1.8.0.jar
deleted file mode 100644
index caf7ae3..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-beanutils-1.8.0.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-chain-1.2.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-chain-1.2.jar
deleted file mode 100644
index 20fa4c5..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-chain-1.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-digester-1.8.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-digester-1.8.jar
deleted file mode 100644
index 1110f0a..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-digester-1.8.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-fileupload-1.1.1.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-fileupload-1.1.1.jar
deleted file mode 100644
index fc5763d..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-fileupload-1.1.1.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-io-1.1.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-io-1.1.jar
deleted file mode 100644
index 624fc1a..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-io-1.1.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar
deleted file mode 100644
index b73a80f..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-validator-1.3.1.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-validator-1.3.1.jar
deleted file mode 100644
index 55b12b1..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/commons-validator-1.3.1.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/jstl-1.0.2.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/jstl-1.0.2.jar
deleted file mode 100644
index f832589..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/jstl-1.0.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/oro-2.0.8.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/oro-2.0.8.jar
deleted file mode 100644
index 23488d2..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/oro-2.0.8.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/standard-1.0.6.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/standard-1.0.6.jar
deleted file mode 100644
index c74dbad..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/standard-1.0.6.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-core-1.3.10.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-core-1.3.10.jar
deleted file mode 100644
index 81ef9b3..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-core-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-el-1.3.10.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-el-1.3.10.jar
deleted file mode 100644
index f2cc95a..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-el-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-extras-1.3.10.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-extras-1.3.10.jar
deleted file mode 100644
index e86653f..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-extras-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-faces-1.3.10.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-faces-1.3.10.jar
deleted file mode 100644
index 821fb56..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-faces-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-mailreader-dao-1.3.10.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-mailreader-dao-1.3.10.jar
deleted file mode 100644
index 8fe547d..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-mailreader-dao-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-scripting-1.3.10.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-scripting-1.3.10.jar
deleted file mode 100644
index 3c9b770..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-scripting-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-taglib-1.3.10.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-taglib-1.3.10.jar
deleted file mode 100644
index 1ec7a5b..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-taglib-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-tiles-1.3.10.jar b/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-tiles-1.3.10.jar
deleted file mode 100644
index e05cc95..0000000
Binary files a/CurrentBatchStruts1/WebContent/WEB-INF/lib/struts-tiles-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/struts-config.xml b/CurrentBatchStruts1/WebContent/WEB-INF/struts-config.xml
deleted file mode 100644
index 79a2d90..0000000
--- a/CurrentBatchStruts1/WebContent/WEB-INF/struts-config.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/views/HelloWorld.jsp b/CurrentBatchStruts1/WebContent/WEB-INF/views/HelloWorld.jsp
deleted file mode 100644
index 6d268ed..0000000
--- a/CurrentBatchStruts1/WebContent/WEB-INF/views/HelloWorld.jsp
+++ /dev/null
@@ -1,16 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-
-
-Insert title here
-
-
-
- I got the message from Action class..
-
- ${requestScope.Message}
-
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts1/WebContent/WEB-INF/web.xml b/CurrentBatchStruts1/WebContent/WEB-INF/web.xml
deleted file mode 100644
index 7ffad64..0000000
--- a/CurrentBatchStruts1/WebContent/WEB-INF/web.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
- CurrentBatchStruts1
-
- index.html
- index.htm
- index.jsp
- default.html
- default.htm
- default.jsp
-
-
- ActionServlet
- org.apache.struts.action.ActionServlet
-
- config
- /WEB-INF/struts-config.xml
-
-
-
- ActionServlet
- /
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts1/src/com/training/java/struts/HelloAction.java b/CurrentBatchStruts1/src/com/training/java/struts/HelloAction.java
deleted file mode 100644
index 0fac603..0000000
--- a/CurrentBatchStruts1/src/com/training/java/struts/HelloAction.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.training.java.struts;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-public class HelloAction extends Action {
-
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- request.setAttribute("Message", "How are you doing?");
-
- //TODO we should call our DAO or service class
-
- return mapping.findForward("hello");
- }
-
-
-
-}
diff --git a/CurrentBatchStruts1/src/com/training/java/struts/package-info.java b/CurrentBatchStruts1/src/com/training/java/struts/package-info.java
deleted file mode 100644
index fb60897..0000000
--- a/CurrentBatchStruts1/src/com/training/java/struts/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.struts;
\ No newline at end of file
diff --git a/CurrentBatchStruts2/.classpath b/CurrentBatchStruts2/.classpath
deleted file mode 100644
index c859448..0000000
--- a/CurrentBatchStruts2/.classpath
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts2/.project b/CurrentBatchStruts2/.project
deleted file mode 100644
index b649236..0000000
--- a/CurrentBatchStruts2/.project
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- CurrentBatchStruts2
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/CurrentBatchStruts2/.settings/.jsdtscope b/CurrentBatchStruts2/.settings/.jsdtscope
deleted file mode 100644
index 887f573..0000000
--- a/CurrentBatchStruts2/.settings/.jsdtscope
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts2/.settings/org.eclipse.jdt.core.prefs b/CurrentBatchStruts2/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 11f6e46..0000000
--- a/CurrentBatchStruts2/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/CurrentBatchStruts2/.settings/org.eclipse.wst.common.component b/CurrentBatchStruts2/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index 2da2c24..0000000
--- a/CurrentBatchStruts2/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts2/.settings/org.eclipse.wst.common.project.facet.core.xml b/CurrentBatchStruts2/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index 13db573..0000000
--- a/CurrentBatchStruts2/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts2/.settings/org.eclipse.wst.jsdt.ui.superType.container b/CurrentBatchStruts2/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/CurrentBatchStruts2/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/CurrentBatchStruts2/.settings/org.eclipse.wst.jsdt.ui.superType.name b/CurrentBatchStruts2/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/CurrentBatchStruts2/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/CurrentBatchStruts2/WebContent/META-INF/MANIFEST.MF b/CurrentBatchStruts2/WebContent/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/CurrentBatchStruts2/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/antlr-2.7.2.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/antlr-2.7.2.jar
deleted file mode 100644
index 8850fc6..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/antlr-2.7.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/bsf-2.3.0.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/bsf-2.3.0.jar
deleted file mode 100644
index caa4dea..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/bsf-2.3.0.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-beanutils-1.8.0.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-beanutils-1.8.0.jar
deleted file mode 100644
index caf7ae3..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-beanutils-1.8.0.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-chain-1.2.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-chain-1.2.jar
deleted file mode 100644
index 20fa4c5..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-chain-1.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-digester-1.8.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-digester-1.8.jar
deleted file mode 100644
index 1110f0a..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-digester-1.8.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-fileupload-1.1.1.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-fileupload-1.1.1.jar
deleted file mode 100644
index fc5763d..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-fileupload-1.1.1.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-io-1.1.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-io-1.1.jar
deleted file mode 100644
index 624fc1a..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-io-1.1.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar
deleted file mode 100644
index b73a80f..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-validator-1.3.1.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-validator-1.3.1.jar
deleted file mode 100644
index 55b12b1..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/commons-validator-1.3.1.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/jstl-1.0.2.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/jstl-1.0.2.jar
deleted file mode 100644
index f832589..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/jstl-1.0.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/jstl-api-1.2.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/jstl-api-1.2.jar
deleted file mode 100644
index 183ed63..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/jstl-api-1.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/jstl-impl-1.2.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/jstl-impl-1.2.jar
deleted file mode 100644
index 110ca51..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/jstl-impl-1.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/ojdbc6.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/ojdbc6.jar
deleted file mode 100644
index 01da074..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/ojdbc6.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/oro-2.0.8.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/oro-2.0.8.jar
deleted file mode 100644
index 23488d2..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/oro-2.0.8.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/standard-1.0.6.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/standard-1.0.6.jar
deleted file mode 100644
index c74dbad..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/standard-1.0.6.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-core-1.3.10.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-core-1.3.10.jar
deleted file mode 100644
index 81ef9b3..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-core-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-el-1.3.10.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-el-1.3.10.jar
deleted file mode 100644
index f2cc95a..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-el-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-extras-1.3.10.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-extras-1.3.10.jar
deleted file mode 100644
index e86653f..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-extras-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-faces-1.3.10.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-faces-1.3.10.jar
deleted file mode 100644
index 821fb56..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-faces-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-mailreader-dao-1.3.10.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-mailreader-dao-1.3.10.jar
deleted file mode 100644
index 8fe547d..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-mailreader-dao-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-scripting-1.3.10.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-scripting-1.3.10.jar
deleted file mode 100644
index 3c9b770..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-scripting-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-taglib-1.3.10.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-taglib-1.3.10.jar
deleted file mode 100644
index 1ec7a5b..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-taglib-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-tiles-1.3.10.jar b/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-tiles-1.3.10.jar
deleted file mode 100644
index e05cc95..0000000
Binary files a/CurrentBatchStruts2/WebContent/WEB-INF/lib/struts-tiles-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/struts-config.xml b/CurrentBatchStruts2/WebContent/WEB-INF/struts-config.xml
deleted file mode 100644
index 4aaecf4..0000000
--- a/CurrentBatchStruts2/WebContent/WEB-INF/struts-config.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/views/ListBooks.jsp b/CurrentBatchStruts2/WebContent/WEB-INF/views/ListBooks.jsp
deleted file mode 100644
index 7b7b098..0000000
--- a/CurrentBatchStruts2/WebContent/WEB-INF/views/ListBooks.jsp
+++ /dev/null
@@ -1,32 +0,0 @@
-<%@page import="com.training.java.struts.domain.Book"%>
-<%@page import="java.util.List"%>
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
-
-
-
-
-
-
-Insert title here
-
-
-
-
-
- Title
- Author
- ISBN
-
-
-
- ${aBook.title}
- ${aBook.author}
- ${aBook.isbn}
-
-
-
-
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts2/WebContent/WEB-INF/web.xml b/CurrentBatchStruts2/WebContent/WEB-INF/web.xml
deleted file mode 100644
index 9d7d2a8..0000000
--- a/CurrentBatchStruts2/WebContent/WEB-INF/web.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
- struts1
-
- index.html
- index.htm
- index.jsp
- default.html
- default.htm
- default.jsp
-
-
- ActionServlet
- org.apache.struts.action.ActionServlet
-
- config
- /WEB-INF/struts-config.xml
-
-
-
- ActionServlet
- /
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts2/src/com/training/java/struts/domain/Book.java b/CurrentBatchStruts2/src/com/training/java/struts/domain/Book.java
deleted file mode 100644
index b9fe0e3..0000000
--- a/CurrentBatchStruts2/src/com/training/java/struts/domain/Book.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package com.training.java.struts.domain;
-
-import java.io.Serializable;
-import java.util.Date;
-
-public class Book implements Serializable {
- private int id;
- private String title;
- private String author;
- private String isbn;
- private int pages;
- private Date publisherDate;
-
- public Book(int id, String title, String author, String isbn, int pages,
- Date publisherDate) {
- super();
- this.id = id;
- this.title = title;
- this.author = author;
- this.isbn = isbn;
- this.pages = pages;
- this.publisherDate = publisherDate;
- }
-
- public void init()
- {
-
- }
-
- public int getId() {
- return id;
- }
-
- public String getTitle() {
- return title;
- }
-
- public String getAuthor() {
- return author;
- }
-
- public String getIsbn() {
- return isbn;
- }
-
- public int getPages() {
- return pages;
- }
-
- public Date getPublisherDate() {
- return publisherDate;
- }
-
-}
diff --git a/CurrentBatchStruts2/src/com/training/java/struts/domain/BookDAO.java b/CurrentBatchStruts2/src/com/training/java/struts/domain/BookDAO.java
deleted file mode 100644
index 62031f4..0000000
--- a/CurrentBatchStruts2/src/com/training/java/struts/domain/BookDAO.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.training.java.struts.domain;
-
-import java.util.List;
-
-public interface BookDAO {
-
- List getAllBooks() throws DAOException;
- void addBook(Book book) throws DAOException;
- void updateBook(Book book) throws DAOException;
- void deleteBook(int bookId) throws DAOException;
- Book findByPrimaryKey(int bookId) throws DAOException;
-
-}
diff --git a/CurrentBatchStruts2/src/com/training/java/struts/domain/BookDAOJDBCImpl.java b/CurrentBatchStruts2/src/com/training/java/struts/domain/BookDAOJDBCImpl.java
deleted file mode 100644
index 4cf0cff..0000000
--- a/CurrentBatchStruts2/src/com/training/java/struts/domain/BookDAOJDBCImpl.java
+++ /dev/null
@@ -1,267 +0,0 @@
-package com.training.java.struts.domain;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-
-public class BookDAOJDBCImpl implements BookDAO {
-
- private String jdbcURL;
- private String username;
- private String password;
-
- public BookDAOJDBCImpl(String jdbcURL, String username, String password)
- {
- this.jdbcURL = jdbcURL;
- this.username = username;
- this.password = password;
- }
-
-
- @Override
- public List getAllBooks() throws DAOException {
-
- List books = new ArrayList();
-
- Connection connection = null;
- Statement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- statement = connection.createStatement();
- resultSet = statement.executeQuery("select * from book");
-
- while(resultSet.next())
- {
- int id = resultSet.getInt("book_id");
- String title = resultSet.getString("title");
- String author = resultSet.getString("author");
- int pages = resultSet.getInt("number_of_pages");
- String isbn = resultSet.getString("isbn");
- Date publisherDate = resultSet.getDate("pub_date");
-
- Book book = new Book(id, title, author, isbn, pages, publisherDate);
-
- books.add(book);
- }
- }
- catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
-
- return books;
- }
-
- @Override
- public void addBook(Book book) throws DAOException {
-
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- String author = book.getAuthor();
- String isbn = book.getIsbn();
- String title = book.getTitle();
- int pages = book.getPages();
- java.sql.Date publisherDate = new java.sql.Date(book.getPublisherDate().getTime());
-
- statement = connection.prepareStatement("insert into book values(book_id_seq.nextval, ?, ?, ?, ?, ?, ?)");
-
- statement.setString(1, title);
- statement.setString(2, author);
- statement.setInt(3, pages);
- statement.setString(4, isbn);
- statement.setDate(5, publisherDate);
- statement.setInt(6, 1);
-
- int numberOfRowsInserted = statement.executeUpdate();
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- @Override
- public void updateBook(Book book) throws DAOException {
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- int id = book.getId();
- String author = book.getAuthor();
- String isbn = book.getIsbn();
- String title = book.getTitle();
- int pages = book.getPages();
- java.sql.Date publisherDate = new java.sql.Date(book.getPublisherDate().getTime());
-
- statement = connection.prepareStatement("update book set title = ?, author = ?, number_of_pages = ?, isbn = ?, pub_date = ? where book_id = ?");
-
- statement.setString(1, title);
- statement.setString(2, author);
- statement.setInt(3, pages);
- statement.setString(4, isbn);
- statement.setDate(5, publisherDate);
-
- statement.setInt(6, id);
-
- int numberOfRowsUpdate = statement.executeUpdate();
-
- if(numberOfRowsUpdate != 1)
- {
- throw new DAOException("Update book failed!!");
- }
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- @Override
- public void deleteBook(int bookId) throws DAOException {
-
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
-
- statement = connection.prepareStatement("delete book where book_id = ?");
- statement.setInt(1, bookId);
-
- int numberOfRowsDeleted = statement.executeUpdate();
-
- if(numberOfRowsDeleted != 1)
- {
- throw new DAOException("Delete book failed!!");
- }
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- @Override
- public Book findByPrimaryKey(int bookId) throws DAOException {
-
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- statement = connection.prepareStatement("select * from book where book_id = ?");
-
- statement.setInt(1, bookId);
-
- resultSet = statement.executeQuery();
-
- if(resultSet.next())
- {
- int id = resultSet.getInt("book_id");
- String title = resultSet.getString("title");
- String author = resultSet.getString("author");
- int pages = resultSet.getInt("number_of_pages");
- String isbn = resultSet.getString("isbn");
- Date publisherDate = resultSet.getDate("pub_date");
-
- return new Book(id, title, author, isbn, pages, publisherDate);
- }
-
- throw new DAOException("Invalid book id provided!!");
- }
- catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- private Connection getConnection() throws DAOException
- {
- try {
- Class.forName("oracle.jdbc.driver.OracleDriver");
- return DriverManager.getConnection(jdbcURL, username, password);
- } catch (ClassNotFoundException ex) {
- throw new DAOException(ex);
- }
- catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
-
- }
-
- private void closeResources(ResultSet resultSet, Statement statement, Connection connection)
- {
- if(resultSet != null)
- {
- try {
- resultSet.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if(statement != null)
- {
- try {
- statement.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if(connection != null)
- {
- try {
- connection.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- }
-
-}
diff --git a/CurrentBatchStruts2/src/com/training/java/struts/domain/DAOException.java b/CurrentBatchStruts2/src/com/training/java/struts/domain/DAOException.java
deleted file mode 100644
index acb3f75..0000000
--- a/CurrentBatchStruts2/src/com/training/java/struts/domain/DAOException.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.training.java.struts.domain;
-
-
-public class DAOException extends Exception {
-
- public DAOException(String errorMessage)
- {
- super(errorMessage);
- }
-
- public DAOException(Throwable cause)
- {
- super(cause);
- }
-
- public DAOException(String errorMessage, Throwable cause) {
- super(errorMessage, cause);
-
- }
-}
diff --git a/CurrentBatchStruts2/src/com/training/java/struts/domain/package-info.java b/CurrentBatchStruts2/src/com/training/java/struts/domain/package-info.java
deleted file mode 100644
index 51a5e92..0000000
--- a/CurrentBatchStruts2/src/com/training/java/struts/domain/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.struts.domain;
\ No newline at end of file
diff --git a/CurrentBatchStruts2/src/com/training/java/struts/web/ListBooksAction.java b/CurrentBatchStruts2/src/com/training/java/struts/web/ListBooksAction.java
deleted file mode 100644
index d709734..0000000
--- a/CurrentBatchStruts2/src/com/training/java/struts/web/ListBooksAction.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.training.java.struts.web;
-
-import java.util.List;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-import com.training.java.struts.domain.Book;
-import com.training.java.struts.domain.BookDAO;
-import com.training.java.struts.domain.BookDAOJDBCImpl;
-import com.training.java.struts.domain.DAOException;
-
-public class ListBooksAction extends Action {
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- List books = null;
-
- try {
- books = dao.getAllBooks();
- } catch (DAOException e) {
- e.printStackTrace();
- }
-
- request.setAttribute("books", books);
-
- return mapping.findForward("ListBooks");
- }
-
-}
diff --git a/CurrentBatchStruts2/src/com/training/java/struts/web/package-info.java b/CurrentBatchStruts2/src/com/training/java/struts/web/package-info.java
deleted file mode 100644
index 341c1c2..0000000
--- a/CurrentBatchStruts2/src/com/training/java/struts/web/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.struts.web;
\ No newline at end of file
diff --git a/CurrentBatchStruts4/.classpath b/CurrentBatchStruts4/.classpath
deleted file mode 100644
index 07b2c3a..0000000
--- a/CurrentBatchStruts4/.classpath
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts4/.project b/CurrentBatchStruts4/.project
deleted file mode 100644
index 0843efc..0000000
--- a/CurrentBatchStruts4/.project
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- CurrentBatchStruts5
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/CurrentBatchStruts4/.settings/.jsdtscope b/CurrentBatchStruts4/.settings/.jsdtscope
deleted file mode 100644
index 887f573..0000000
--- a/CurrentBatchStruts4/.settings/.jsdtscope
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts4/.settings/org.eclipse.jdt.core.prefs b/CurrentBatchStruts4/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 11f6e46..0000000
--- a/CurrentBatchStruts4/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/CurrentBatchStruts4/.settings/org.eclipse.wst.common.component b/CurrentBatchStruts4/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index 6d54b1a..0000000
--- a/CurrentBatchStruts4/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts4/.settings/org.eclipse.wst.common.project.facet.core.xml b/CurrentBatchStruts4/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index 416c37e..0000000
--- a/CurrentBatchStruts4/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts4/.settings/org.eclipse.wst.jsdt.ui.superType.container b/CurrentBatchStruts4/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/CurrentBatchStruts4/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/CurrentBatchStruts4/.settings/org.eclipse.wst.jsdt.ui.superType.name b/CurrentBatchStruts4/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/CurrentBatchStruts4/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/CurrentBatchStruts4/WebContent/META-INF/MANIFEST.MF b/CurrentBatchStruts4/WebContent/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/CurrentBatchStruts4/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/antlr-2.7.2.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/antlr-2.7.2.jar
deleted file mode 100644
index 8850fc6..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/antlr-2.7.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/bsf-2.3.0.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/bsf-2.3.0.jar
deleted file mode 100644
index caa4dea..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/bsf-2.3.0.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-beanutils-1.8.0.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-beanutils-1.8.0.jar
deleted file mode 100644
index caf7ae3..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-beanutils-1.8.0.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-chain-1.2.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-chain-1.2.jar
deleted file mode 100644
index 20fa4c5..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-chain-1.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-digester-1.8.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-digester-1.8.jar
deleted file mode 100644
index 1110f0a..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-digester-1.8.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-fileupload-1.1.1.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-fileupload-1.1.1.jar
deleted file mode 100644
index fc5763d..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-fileupload-1.1.1.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-io-1.1.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-io-1.1.jar
deleted file mode 100644
index 624fc1a..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-io-1.1.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-lang-2.6.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-lang-2.6.jar
deleted file mode 100644
index 98467d3..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-lang-2.6.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar
deleted file mode 100644
index b73a80f..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-validator-1.3.1.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-validator-1.3.1.jar
deleted file mode 100644
index 55b12b1..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/commons-validator-1.3.1.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/jstl-1.0.2.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/jstl-1.0.2.jar
deleted file mode 100644
index f832589..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/jstl-1.0.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/jstl-api-1.2.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/jstl-api-1.2.jar
deleted file mode 100644
index 183ed63..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/jstl-api-1.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/jstl-impl-1.2.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/jstl-impl-1.2.jar
deleted file mode 100644
index 110ca51..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/jstl-impl-1.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/ojdbc6.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/ojdbc6.jar
deleted file mode 100644
index 01da074..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/ojdbc6.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/oro-2.0.8.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/oro-2.0.8.jar
deleted file mode 100644
index 23488d2..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/oro-2.0.8.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/standard-1.0.6.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/standard-1.0.6.jar
deleted file mode 100644
index c74dbad..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/standard-1.0.6.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-core-1.3.10.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-core-1.3.10.jar
deleted file mode 100644
index 81ef9b3..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-core-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-el-1.3.10.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-el-1.3.10.jar
deleted file mode 100644
index f2cc95a..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-el-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-extras-1.3.10.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-extras-1.3.10.jar
deleted file mode 100644
index e86653f..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-extras-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-faces-1.3.10.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-faces-1.3.10.jar
deleted file mode 100644
index 821fb56..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-faces-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-mailreader-dao-1.3.10.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-mailreader-dao-1.3.10.jar
deleted file mode 100644
index 8fe547d..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-mailreader-dao-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-scripting-1.3.10.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-scripting-1.3.10.jar
deleted file mode 100644
index 3c9b770..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-scripting-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-taglib-1.3.10.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-taglib-1.3.10.jar
deleted file mode 100644
index 1ec7a5b..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-taglib-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-tiles-1.3.10.jar b/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-tiles-1.3.10.jar
deleted file mode 100644
index e05cc95..0000000
Binary files a/CurrentBatchStruts4/WebContent/WEB-INF/lib/struts-tiles-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/struts-config.xml b/CurrentBatchStruts4/WebContent/WEB-INF/struts-config.xml
deleted file mode 100644
index b2e6101..0000000
--- a/CurrentBatchStruts4/WebContent/WEB-INF/struts-config.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/views/Acknowledgement.jsp b/CurrentBatchStruts4/WebContent/WEB-INF/views/Acknowledgement.jsp
deleted file mode 100644
index 94a47c4..0000000
--- a/CurrentBatchStruts4/WebContent/WEB-INF/views/Acknowledgement.jsp
+++ /dev/null
@@ -1,15 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-
-
-Insert title here
-
-
-
- Your details have been saved.
-
-
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/views/AddBook.jsp b/CurrentBatchStruts4/WebContent/WEB-INF/views/AddBook.jsp
deleted file mode 100644
index 1f09932..0000000
--- a/CurrentBatchStruts4/WebContent/WEB-INF/views/AddBook.jsp
+++ /dev/null
@@ -1,46 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
-<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
-
-
-
-
-Insert title here
-
-
-
-
-
-
-
-
-
- :
-
-
-
-
-
-
- :
-
-
-
-
-
- :
- :
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/views/Index.jsp b/CurrentBatchStruts4/WebContent/WEB-INF/views/Index.jsp
deleted file mode 100644
index b3dbbce..0000000
--- a/CurrentBatchStruts4/WebContent/WEB-INF/views/Index.jsp
+++ /dev/null
@@ -1,18 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-
-
-Insert title here
-
-
-
- Welcome to our Bookstore application!!
-
- If you want to add a book, please click here
- For list of existing books, please click here
-
-
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/views/ListBooks.jsp b/CurrentBatchStruts4/WebContent/WEB-INF/views/ListBooks.jsp
deleted file mode 100644
index 11f93d4..0000000
--- a/CurrentBatchStruts4/WebContent/WEB-INF/views/ListBooks.jsp
+++ /dev/null
@@ -1,38 +0,0 @@
-<%@page import="java.lang.reflect.Method"%>
-<%@page import="com.training.java.struts.domain.Book"%>
-<%@page import="java.util.List"%>
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
-
-
-
-
-
-
-Insert title here
-
-
-
-
-
- Title
- Author
- ISBN
- Update/Delete Link
-
-
-
- ${aBook.title}
- ${aBook.author}
- ${aBook.isbn}
-
- Update
- Delete
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts4/WebContent/WEB-INF/web.xml b/CurrentBatchStruts4/WebContent/WEB-INF/web.xml
deleted file mode 100644
index 9d7d2a8..0000000
--- a/CurrentBatchStruts4/WebContent/WEB-INF/web.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
- struts1
-
- index.html
- index.htm
- index.jsp
- default.html
- default.htm
- default.jsp
-
-
- ActionServlet
- org.apache.struts.action.ActionServlet
-
- config
- /WEB-INF/struts-config.xml
-
-
-
- ActionServlet
- /
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts4/src/BookStore.properties b/CurrentBatchStruts4/src/BookStore.properties
deleted file mode 100644
index dd33f5f..0000000
--- a/CurrentBatchStruts4/src/BookStore.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-display.title=Title
-display.author=Author
-display.pubDate=Pub. Date
-display.isbn=ISBN
-display.pages=No of Pages
-
-error.title.required=Title is mandatory
-error.isbn.required=ISBN is mandatory
-error.author.required=Author is mandatory
-
-errors.header=Validation Errors
-errors.prefix=
-errors.suffix=
-errors.footer=
-
-
-
-
-
-
diff --git a/CurrentBatchStruts4/src/BookStore_de.properties b/CurrentBatchStruts4/src/BookStore_de.properties
deleted file mode 100644
index 091ad60..0000000
--- a/CurrentBatchStruts4/src/BookStore_de.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-display.title=Titel
-display.author=Autor
-display.pubDate=Publisher Datum
-display.isbn=ISBN
-display.pages=No of Pages
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/domain/Book.java b/CurrentBatchStruts4/src/com/training/java/struts/domain/Book.java
deleted file mode 100644
index b9fe0e3..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/domain/Book.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package com.training.java.struts.domain;
-
-import java.io.Serializable;
-import java.util.Date;
-
-public class Book implements Serializable {
- private int id;
- private String title;
- private String author;
- private String isbn;
- private int pages;
- private Date publisherDate;
-
- public Book(int id, String title, String author, String isbn, int pages,
- Date publisherDate) {
- super();
- this.id = id;
- this.title = title;
- this.author = author;
- this.isbn = isbn;
- this.pages = pages;
- this.publisherDate = publisherDate;
- }
-
- public void init()
- {
-
- }
-
- public int getId() {
- return id;
- }
-
- public String getTitle() {
- return title;
- }
-
- public String getAuthor() {
- return author;
- }
-
- public String getIsbn() {
- return isbn;
- }
-
- public int getPages() {
- return pages;
- }
-
- public Date getPublisherDate() {
- return publisherDate;
- }
-
-}
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/domain/BookDAO.java b/CurrentBatchStruts4/src/com/training/java/struts/domain/BookDAO.java
deleted file mode 100644
index 62031f4..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/domain/BookDAO.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.training.java.struts.domain;
-
-import java.util.List;
-
-public interface BookDAO {
-
- List getAllBooks() throws DAOException;
- void addBook(Book book) throws DAOException;
- void updateBook(Book book) throws DAOException;
- void deleteBook(int bookId) throws DAOException;
- Book findByPrimaryKey(int bookId) throws DAOException;
-
-}
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/domain/BookDAOJDBCImpl.java b/CurrentBatchStruts4/src/com/training/java/struts/domain/BookDAOJDBCImpl.java
deleted file mode 100644
index 9c5d0ec..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/domain/BookDAOJDBCImpl.java
+++ /dev/null
@@ -1,267 +0,0 @@
-package com.training.java.struts.domain;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-
-class BookDAOJDBCImpl implements BookDAO {
-
- private String jdbcURL;
- private String username;
- private String password;
-
- public BookDAOJDBCImpl(String jdbcURL, String username, String password)
- {
- this.jdbcURL = jdbcURL;
- this.username = username;
- this.password = password;
- }
-
-
- @Override
- public List getAllBooks() throws DAOException {
-
- List books = new ArrayList();
-
- Connection connection = null;
- Statement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- statement = connection.createStatement();
- resultSet = statement.executeQuery("select * from book");
-
- while(resultSet.next())
- {
- int id = resultSet.getInt("book_id");
- String title = resultSet.getString("title");
- String author = resultSet.getString("author");
- int pages = resultSet.getInt("number_of_pages");
- String isbn = resultSet.getString("isbn");
- Date publisherDate = resultSet.getDate("pub_date");
-
- Book book = new Book(id, title, author, isbn, pages, publisherDate);
-
- books.add(book);
- }
- }
- catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
-
- return books;
- }
-
- @Override
- public void addBook(Book book) throws DAOException {
-
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- String author = book.getAuthor();
- String isbn = book.getIsbn();
- String title = book.getTitle();
- int pages = book.getPages();
- java.sql.Date publisherDate = new java.sql.Date(book.getPublisherDate().getTime());
-
- statement = connection.prepareStatement("insert into book values(book_id_seq.nextval, ?, ?, ?, ?, ?, ?)");
-
- statement.setString(1, title);
- statement.setString(2, author);
- statement.setInt(3, pages);
- statement.setString(4, isbn);
- statement.setDate(5, publisherDate);
- statement.setInt(6, 1);
-
- int numberOfRowsInserted = statement.executeUpdate();
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- @Override
- public void updateBook(Book book) throws DAOException {
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- int id = book.getId();
- String author = book.getAuthor();
- String isbn = book.getIsbn();
- String title = book.getTitle();
- int pages = book.getPages();
- java.sql.Date publisherDate = new java.sql.Date(book.getPublisherDate().getTime());
-
- statement = connection.prepareStatement("update book set title = ?, author = ?, number_of_pages = ?, isbn = ?, pub_date = ? where book_id = ?");
-
- statement.setString(1, title);
- statement.setString(2, author);
- statement.setInt(3, pages);
- statement.setString(4, isbn);
- statement.setDate(5, publisherDate);
-
- statement.setInt(6, id);
-
- int numberOfRowsUpdate = statement.executeUpdate();
-
- if(numberOfRowsUpdate != 1)
- {
- throw new DAOException("Update book failed!!");
- }
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- @Override
- public void deleteBook(int bookId) throws DAOException {
-
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
-
- statement = connection.prepareStatement("delete book where book_id = ?");
- statement.setInt(1, bookId);
-
- int numberOfRowsDeleted = statement.executeUpdate();
-
- if(numberOfRowsDeleted != 1)
- {
- throw new DAOException("Delete book failed!!");
- }
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- @Override
- public Book findByPrimaryKey(int bookId) throws DAOException {
-
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- statement = connection.prepareStatement("select * from book where book_id = ?");
-
- statement.setInt(1, bookId);
-
- resultSet = statement.executeQuery();
-
- if(resultSet.next())
- {
- int id = resultSet.getInt("book_id");
- String title = resultSet.getString("title");
- String author = resultSet.getString("author");
- int pages = resultSet.getInt("number_of_pages");
- String isbn = resultSet.getString("isbn");
- Date publisherDate = resultSet.getDate("pub_date");
-
- return new Book(id, title, author, isbn, pages, publisherDate);
- }
-
- throw new DAOException("Invalid book id provided!!");
- }
- catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- private Connection getConnection() throws DAOException
- {
- try {
- Class.forName("oracle.jdbc.driver.OracleDriver");
- return DriverManager.getConnection(jdbcURL, username, password);
- } catch (ClassNotFoundException ex) {
- throw new DAOException(ex);
- }
- catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
-
- }
-
- private void closeResources(ResultSet resultSet, Statement statement, Connection connection)
- {
- if(resultSet != null)
- {
- try {
- resultSet.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if(statement != null)
- {
- try {
- statement.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if(connection != null)
- {
- try {
- connection.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- }
-
-}
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/domain/BookService.java b/CurrentBatchStruts4/src/com/training/java/struts/domain/BookService.java
deleted file mode 100644
index c1f928c..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/domain/BookService.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.training.java.struts.domain;
-
-import java.util.List;
-
-public interface BookService {
-
- List getAllBooks() throws ServiceException;
-
- void addBook(Book book) throws ServiceException;
-
- Book getById(int id) throws ServiceException;
-
- void update(Book book) throws ServiceException;
-
- void delete(int id) throws ServiceException;
-
-}
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/domain/BookServiceImpl.java b/CurrentBatchStruts4/src/com/training/java/struts/domain/BookServiceImpl.java
deleted file mode 100644
index 40c6299..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/domain/BookServiceImpl.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package com.training.java.struts.domain;
-
-import java.util.List;
-
-public class BookServiceImpl implements BookService {
-
- @Override
- public List getAllBooks() throws ServiceException {
-
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- try {
- return dao.getAllBooks();
- } catch (DAOException ex) {
- ex.printStackTrace();
- throw new ServiceException(ex);
- }
- }
-
- @Override
- public void addBook(Book book) throws ServiceException {
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- try {
- dao.addBook(book);
- } catch (DAOException ex) {
- ex.printStackTrace();
- throw new ServiceException(ex);
- }
- }
-
- @Override
- public Book getById(int id) throws ServiceException {
-
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- try {
- return dao.findByPrimaryKey(id);
- } catch (DAOException ex) {
- ex.printStackTrace();
- throw new ServiceException(ex);
- }
-
- }
-
- @Override
- public void update(Book book) throws ServiceException {
-
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- try {
- dao.updateBook(book);
- } catch (DAOException ex) {
- ex.printStackTrace();
- throw new ServiceException(ex);
- }
- }
-
- @Override
- public void delete(int id) throws ServiceException {
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- try {
- dao.deleteBook(id);
- } catch (DAOException ex) {
- ex.printStackTrace();
- throw new ServiceException(ex);
- }
- }
-}
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/domain/DAOException.java b/CurrentBatchStruts4/src/com/training/java/struts/domain/DAOException.java
deleted file mode 100644
index acb3f75..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/domain/DAOException.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.training.java.struts.domain;
-
-
-public class DAOException extends Exception {
-
- public DAOException(String errorMessage)
- {
- super(errorMessage);
- }
-
- public DAOException(Throwable cause)
- {
- super(cause);
- }
-
- public DAOException(String errorMessage, Throwable cause) {
- super(errorMessage, cause);
-
- }
-}
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/domain/ServiceException.java b/CurrentBatchStruts4/src/com/training/java/struts/domain/ServiceException.java
deleted file mode 100644
index b1b34e9..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/domain/ServiceException.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.training.java.struts.domain;
-
-public class ServiceException extends Exception {
-
- public ServiceException(Throwable ex)
- {
- super(ex);
- }
-
- public ServiceException(String errorMessage)
- {
- super(errorMessage);
- }
-
-}
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/domain/package-info.java b/CurrentBatchStruts4/src/com/training/java/struts/domain/package-info.java
deleted file mode 100644
index 51a5e92..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/domain/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.struts.domain;
\ No newline at end of file
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/web/AddBooksAction.java b/CurrentBatchStruts4/src/com/training/java/struts/web/AddBooksAction.java
deleted file mode 100644
index 472eb1c..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/web/AddBooksAction.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.training.java.struts.web;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-public class AddBooksAction extends Action {
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- return mapping.findForward("AddBook");
- }
-
-}
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/web/BookForm.java b/CurrentBatchStruts4/src/com/training/java/struts/web/BookForm.java
deleted file mode 100644
index 92e4885..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/web/BookForm.java
+++ /dev/null
@@ -1,89 +0,0 @@
-package com.training.java.struts.web;
-
-import javax.servlet.http.HttpServletRequest;
-
-import org.apache.commons.lang.StringUtils;
-import org.apache.struts.action.ActionErrors;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionMapping;
-import org.apache.struts.action.ActionMessage;
-
-public class BookForm extends ActionForm {
-
- private String title;
- private String author;
- private String isbn;
- private int pages;
- private int id;
- private boolean updateFlag;
-
- public String getTitle() {
- return title;
- }
-
- public void setTitle(String title) {
- this.title = title;
- }
-
- public String getAuthor() {
- return author;
- }
-
- public void setAuthor(String author) {
- this.author = author;
- }
-
- public String getIsbn() {
- return isbn;
- }
-
- public void setIsbn(String isbn) {
- this.isbn = isbn;
- }
-
- public int getPages() {
- return pages;
- }
-
- public void setPages(int pages) {
- this.pages = pages;
- }
-
- public int getId() {
- return id;
- }
-
- public void setId(int id) {
- this.id = id;
- }
-
- public boolean isUpdateFlag() {
- return updateFlag;
- }
-
- public void setUpdateFlag(boolean updateFlag) {
- this.updateFlag = updateFlag;
- }
-
- @Override
- public ActionErrors validate(ActionMapping mapping,
- HttpServletRequest request) {
-
- ActionErrors errors = new ActionErrors();
-
- if (StringUtils.isBlank(this.title)) {
- errors.add("title.missing", new ActionMessage(
- "error.title.required"));
- }
- if (StringUtils.isBlank(this.author)) {
- errors.add("author.missing", new ActionMessage(
- "error.author.required"));
- }
- if (StringUtils.isBlank(this.isbn)) {
- errors.add("isbn.errors", new ActionMessage("error.isbn.required"));
- }
-
- return errors;
- }
-
-}
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/web/DeleteBookAction.java b/CurrentBatchStruts4/src/com/training/java/struts/web/DeleteBookAction.java
deleted file mode 100644
index 311d513..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/web/DeleteBookAction.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.training.java.struts.web;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-import com.training.java.struts.domain.BookService;
-import com.training.java.struts.domain.BookServiceImpl;
-
-public class DeleteBookAction extends Action {
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- String idStr = request.getParameter("id");
- int id = Integer.parseInt(idStr);
-
- BookService service = new BookServiceImpl();
- service.delete(id);
-
- return mapping.findForward("List");
- }
-}
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/web/HomeAction.java b/CurrentBatchStruts4/src/com/training/java/struts/web/HomeAction.java
deleted file mode 100644
index 2859bec..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/web/HomeAction.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.training.java.struts.web;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-public class HomeAction extends Action {
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- return mapping.findForward("Home");
- }
-
-}
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/web/ListBooksAction.java b/CurrentBatchStruts4/src/com/training/java/struts/web/ListBooksAction.java
deleted file mode 100644
index 7c5828a..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/web/ListBooksAction.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package com.training.java.struts.web;
-
-import java.util.List;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-import com.training.java.struts.domain.Book;
-import com.training.java.struts.domain.BookService;
-import com.training.java.struts.domain.BookServiceImpl;
-
-public class ListBooksAction extends Action {
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- BookService service = new BookServiceImpl();
- List books = service.getAllBooks();
-
- request.setAttribute("venkat", books);
-
- return mapping.findForward("ListBooks");
- }
-
-}
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/web/SaveBooksAction.java b/CurrentBatchStruts4/src/com/training/java/struts/web/SaveBooksAction.java
deleted file mode 100644
index ea15128..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/web/SaveBooksAction.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package com.training.java.struts.web;
-
-import java.util.Date;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-import com.training.java.struts.domain.Book;
-import com.training.java.struts.domain.BookService;
-import com.training.java.struts.domain.BookServiceImpl;
-
-public class SaveBooksAction extends Action {
-
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- BookForm bookForm = (BookForm) form;
-
- //Convert BookForm into Book object
- Book book = new Book(bookForm.getId(), bookForm.getTitle(), bookForm.getAuthor(), bookForm.getIsbn(), bookForm.getPages(), new Date());
-
- //Call BookService and save the details
- BookService service = new BookServiceImpl();
-
- if(bookForm.isUpdateFlag())
- {
- service.update(book);
- }
- else
- {
- service.addBook(book);
- }
-
- //Send acknowledgement
- return mapping.findForward("Acknowledgement");
-
- }
-
-}
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/web/UpdateBookAction.java b/CurrentBatchStruts4/src/com/training/java/struts/web/UpdateBookAction.java
deleted file mode 100644
index 2285581..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/web/UpdateBookAction.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package com.training.java.struts.web;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-import com.training.java.struts.domain.Book;
-import com.training.java.struts.domain.BookService;
-import com.training.java.struts.domain.BookServiceImpl;
-
-public class UpdateBookAction extends Action {
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- BookForm bookForm = (BookForm) form;
-
- BookService service = new BookServiceImpl();
- Book book = service.getById(bookForm.getId());
-
- bookForm.setAuthor(book.getAuthor());
- bookForm.setIsbn(book.getIsbn());
- bookForm.setPages(book.getPages());
- bookForm.setTitle(book.getTitle());
- bookForm.setUpdateFlag(true);
-
- return mapping.findForward("UpdateBook");
-
- }
-
-}
diff --git a/CurrentBatchStruts4/src/com/training/java/struts/web/package-info.java b/CurrentBatchStruts4/src/com/training/java/struts/web/package-info.java
deleted file mode 100644
index 341c1c2..0000000
--- a/CurrentBatchStruts4/src/com/training/java/struts/web/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.struts.web;
\ No newline at end of file
diff --git a/CurrentBatchStruts5/.classpath b/CurrentBatchStruts5/.classpath
deleted file mode 100644
index 07b2c3a..0000000
--- a/CurrentBatchStruts5/.classpath
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts5/.project b/CurrentBatchStruts5/.project
deleted file mode 100644
index 0843efc..0000000
--- a/CurrentBatchStruts5/.project
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- CurrentBatchStruts5
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/CurrentBatchStruts5/.settings/.jsdtscope b/CurrentBatchStruts5/.settings/.jsdtscope
deleted file mode 100644
index 887f573..0000000
--- a/CurrentBatchStruts5/.settings/.jsdtscope
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts5/.settings/org.eclipse.jdt.core.prefs b/CurrentBatchStruts5/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 11f6e46..0000000
--- a/CurrentBatchStruts5/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/CurrentBatchStruts5/.settings/org.eclipse.wst.common.component b/CurrentBatchStruts5/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index 6d54b1a..0000000
--- a/CurrentBatchStruts5/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts5/.settings/org.eclipse.wst.common.project.facet.core.xml b/CurrentBatchStruts5/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index 416c37e..0000000
--- a/CurrentBatchStruts5/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/CurrentBatchStruts5/.settings/org.eclipse.wst.jsdt.ui.superType.container b/CurrentBatchStruts5/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/CurrentBatchStruts5/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/CurrentBatchStruts5/.settings/org.eclipse.wst.jsdt.ui.superType.name b/CurrentBatchStruts5/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/CurrentBatchStruts5/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/CurrentBatchStruts5/WebContent/META-INF/MANIFEST.MF b/CurrentBatchStruts5/WebContent/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/CurrentBatchStruts5/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/antlr-2.7.2.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/antlr-2.7.2.jar
deleted file mode 100644
index 8850fc6..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/antlr-2.7.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/bsf-2.3.0.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/bsf-2.3.0.jar
deleted file mode 100644
index caa4dea..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/bsf-2.3.0.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-beanutils-1.8.0.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-beanutils-1.8.0.jar
deleted file mode 100644
index caf7ae3..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-beanutils-1.8.0.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-chain-1.2.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-chain-1.2.jar
deleted file mode 100644
index 20fa4c5..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-chain-1.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-digester-1.8.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-digester-1.8.jar
deleted file mode 100644
index 1110f0a..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-digester-1.8.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-fileupload-1.1.1.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-fileupload-1.1.1.jar
deleted file mode 100644
index fc5763d..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-fileupload-1.1.1.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-io-1.1.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-io-1.1.jar
deleted file mode 100644
index 624fc1a..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-io-1.1.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-lang-2.6.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-lang-2.6.jar
deleted file mode 100644
index 98467d3..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-lang-2.6.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar
deleted file mode 100644
index b73a80f..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-validator-1.3.1.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-validator-1.3.1.jar
deleted file mode 100644
index 55b12b1..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/commons-validator-1.3.1.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/jstl-1.0.2.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/jstl-1.0.2.jar
deleted file mode 100644
index f832589..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/jstl-1.0.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/jstl-api-1.2.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/jstl-api-1.2.jar
deleted file mode 100644
index 183ed63..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/jstl-api-1.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/jstl-impl-1.2.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/jstl-impl-1.2.jar
deleted file mode 100644
index 110ca51..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/jstl-impl-1.2.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/ojdbc6.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/ojdbc6.jar
deleted file mode 100644
index 01da074..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/ojdbc6.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/oro-2.0.8.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/oro-2.0.8.jar
deleted file mode 100644
index 23488d2..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/oro-2.0.8.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/standard-1.0.6.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/standard-1.0.6.jar
deleted file mode 100644
index c74dbad..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/standard-1.0.6.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-core-1.3.10.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-core-1.3.10.jar
deleted file mode 100644
index 81ef9b3..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-core-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-el-1.3.10.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-el-1.3.10.jar
deleted file mode 100644
index f2cc95a..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-el-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-extras-1.3.10.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-extras-1.3.10.jar
deleted file mode 100644
index e86653f..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-extras-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-faces-1.3.10.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-faces-1.3.10.jar
deleted file mode 100644
index 821fb56..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-faces-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-mailreader-dao-1.3.10.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-mailreader-dao-1.3.10.jar
deleted file mode 100644
index 8fe547d..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-mailreader-dao-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-scripting-1.3.10.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-scripting-1.3.10.jar
deleted file mode 100644
index 3c9b770..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-scripting-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-taglib-1.3.10.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-taglib-1.3.10.jar
deleted file mode 100644
index 1ec7a5b..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-taglib-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-tiles-1.3.10.jar b/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-tiles-1.3.10.jar
deleted file mode 100644
index e05cc95..0000000
Binary files a/CurrentBatchStruts5/WebContent/WEB-INF/lib/struts-tiles-1.3.10.jar and /dev/null differ
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/struts-config.xml b/CurrentBatchStruts5/WebContent/WEB-INF/struts-config.xml
deleted file mode 100644
index b2e6101..0000000
--- a/CurrentBatchStruts5/WebContent/WEB-INF/struts-config.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/views/Acknowledgement.jsp b/CurrentBatchStruts5/WebContent/WEB-INF/views/Acknowledgement.jsp
deleted file mode 100644
index 94a47c4..0000000
--- a/CurrentBatchStruts5/WebContent/WEB-INF/views/Acknowledgement.jsp
+++ /dev/null
@@ -1,15 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-
-
-Insert title here
-
-
-
- Your details have been saved.
-
-
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/views/AddBook.jsp b/CurrentBatchStruts5/WebContent/WEB-INF/views/AddBook.jsp
deleted file mode 100644
index 1f09932..0000000
--- a/CurrentBatchStruts5/WebContent/WEB-INF/views/AddBook.jsp
+++ /dev/null
@@ -1,46 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
-<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
-
-
-
-
-Insert title here
-
-
-
-
-
-
-
-
-
- :
-
-
-
-
-
-
- :
-
-
-
-
-
- :
- :
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/views/Index.jsp b/CurrentBatchStruts5/WebContent/WEB-INF/views/Index.jsp
deleted file mode 100644
index b3dbbce..0000000
--- a/CurrentBatchStruts5/WebContent/WEB-INF/views/Index.jsp
+++ /dev/null
@@ -1,18 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-
-
-Insert title here
-
-
-
- Welcome to our Bookstore application!!
-
- If you want to add a book, please click here
- For list of existing books, please click here
-
-
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/views/ListBooks.jsp b/CurrentBatchStruts5/WebContent/WEB-INF/views/ListBooks.jsp
deleted file mode 100644
index 11f93d4..0000000
--- a/CurrentBatchStruts5/WebContent/WEB-INF/views/ListBooks.jsp
+++ /dev/null
@@ -1,38 +0,0 @@
-<%@page import="java.lang.reflect.Method"%>
-<%@page import="com.training.java.struts.domain.Book"%>
-<%@page import="java.util.List"%>
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
-
-
-
-
-
-
-Insert title here
-
-
-
-
-
- Title
- Author
- ISBN
- Update/Delete Link
-
-
-
- ${aBook.title}
- ${aBook.author}
- ${aBook.isbn}
-
- Update
- Delete
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts5/WebContent/WEB-INF/web.xml b/CurrentBatchStruts5/WebContent/WEB-INF/web.xml
deleted file mode 100644
index 9d7d2a8..0000000
--- a/CurrentBatchStruts5/WebContent/WEB-INF/web.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
- struts1
-
- index.html
- index.htm
- index.jsp
- default.html
- default.htm
- default.jsp
-
-
- ActionServlet
- org.apache.struts.action.ActionServlet
-
- config
- /WEB-INF/struts-config.xml
-
-
-
- ActionServlet
- /
-
-
\ No newline at end of file
diff --git a/CurrentBatchStruts5/src/BookStore.properties b/CurrentBatchStruts5/src/BookStore.properties
deleted file mode 100644
index dd33f5f..0000000
--- a/CurrentBatchStruts5/src/BookStore.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-display.title=Title
-display.author=Author
-display.pubDate=Pub. Date
-display.isbn=ISBN
-display.pages=No of Pages
-
-error.title.required=Title is mandatory
-error.isbn.required=ISBN is mandatory
-error.author.required=Author is mandatory
-
-errors.header=Validation Errors
-errors.prefix=
-errors.suffix=
-errors.footer=
-
-
-
-
-
-
diff --git a/CurrentBatchStruts5/src/BookStore_de.properties b/CurrentBatchStruts5/src/BookStore_de.properties
deleted file mode 100644
index 091ad60..0000000
--- a/CurrentBatchStruts5/src/BookStore_de.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-display.title=Titel
-display.author=Autor
-display.pubDate=Publisher Datum
-display.isbn=ISBN
-display.pages=No of Pages
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/domain/Book.java b/CurrentBatchStruts5/src/com/training/java/struts/domain/Book.java
deleted file mode 100644
index b9fe0e3..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/domain/Book.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package com.training.java.struts.domain;
-
-import java.io.Serializable;
-import java.util.Date;
-
-public class Book implements Serializable {
- private int id;
- private String title;
- private String author;
- private String isbn;
- private int pages;
- private Date publisherDate;
-
- public Book(int id, String title, String author, String isbn, int pages,
- Date publisherDate) {
- super();
- this.id = id;
- this.title = title;
- this.author = author;
- this.isbn = isbn;
- this.pages = pages;
- this.publisherDate = publisherDate;
- }
-
- public void init()
- {
-
- }
-
- public int getId() {
- return id;
- }
-
- public String getTitle() {
- return title;
- }
-
- public String getAuthor() {
- return author;
- }
-
- public String getIsbn() {
- return isbn;
- }
-
- public int getPages() {
- return pages;
- }
-
- public Date getPublisherDate() {
- return publisherDate;
- }
-
-}
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/domain/BookDAO.java b/CurrentBatchStruts5/src/com/training/java/struts/domain/BookDAO.java
deleted file mode 100644
index 62031f4..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/domain/BookDAO.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.training.java.struts.domain;
-
-import java.util.List;
-
-public interface BookDAO {
-
- List getAllBooks() throws DAOException;
- void addBook(Book book) throws DAOException;
- void updateBook(Book book) throws DAOException;
- void deleteBook(int bookId) throws DAOException;
- Book findByPrimaryKey(int bookId) throws DAOException;
-
-}
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/domain/BookDAOJDBCImpl.java b/CurrentBatchStruts5/src/com/training/java/struts/domain/BookDAOJDBCImpl.java
deleted file mode 100644
index 9c5d0ec..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/domain/BookDAOJDBCImpl.java
+++ /dev/null
@@ -1,267 +0,0 @@
-package com.training.java.struts.domain;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-
-class BookDAOJDBCImpl implements BookDAO {
-
- private String jdbcURL;
- private String username;
- private String password;
-
- public BookDAOJDBCImpl(String jdbcURL, String username, String password)
- {
- this.jdbcURL = jdbcURL;
- this.username = username;
- this.password = password;
- }
-
-
- @Override
- public List getAllBooks() throws DAOException {
-
- List books = new ArrayList();
-
- Connection connection = null;
- Statement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- statement = connection.createStatement();
- resultSet = statement.executeQuery("select * from book");
-
- while(resultSet.next())
- {
- int id = resultSet.getInt("book_id");
- String title = resultSet.getString("title");
- String author = resultSet.getString("author");
- int pages = resultSet.getInt("number_of_pages");
- String isbn = resultSet.getString("isbn");
- Date publisherDate = resultSet.getDate("pub_date");
-
- Book book = new Book(id, title, author, isbn, pages, publisherDate);
-
- books.add(book);
- }
- }
- catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
-
- return books;
- }
-
- @Override
- public void addBook(Book book) throws DAOException {
-
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- String author = book.getAuthor();
- String isbn = book.getIsbn();
- String title = book.getTitle();
- int pages = book.getPages();
- java.sql.Date publisherDate = new java.sql.Date(book.getPublisherDate().getTime());
-
- statement = connection.prepareStatement("insert into book values(book_id_seq.nextval, ?, ?, ?, ?, ?, ?)");
-
- statement.setString(1, title);
- statement.setString(2, author);
- statement.setInt(3, pages);
- statement.setString(4, isbn);
- statement.setDate(5, publisherDate);
- statement.setInt(6, 1);
-
- int numberOfRowsInserted = statement.executeUpdate();
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- @Override
- public void updateBook(Book book) throws DAOException {
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- int id = book.getId();
- String author = book.getAuthor();
- String isbn = book.getIsbn();
- String title = book.getTitle();
- int pages = book.getPages();
- java.sql.Date publisherDate = new java.sql.Date(book.getPublisherDate().getTime());
-
- statement = connection.prepareStatement("update book set title = ?, author = ?, number_of_pages = ?, isbn = ?, pub_date = ? where book_id = ?");
-
- statement.setString(1, title);
- statement.setString(2, author);
- statement.setInt(3, pages);
- statement.setString(4, isbn);
- statement.setDate(5, publisherDate);
-
- statement.setInt(6, id);
-
- int numberOfRowsUpdate = statement.executeUpdate();
-
- if(numberOfRowsUpdate != 1)
- {
- throw new DAOException("Update book failed!!");
- }
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- @Override
- public void deleteBook(int bookId) throws DAOException {
-
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
-
- statement = connection.prepareStatement("delete book where book_id = ?");
- statement.setInt(1, bookId);
-
- int numberOfRowsDeleted = statement.executeUpdate();
-
- if(numberOfRowsDeleted != 1)
- {
- throw new DAOException("Delete book failed!!");
- }
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- @Override
- public Book findByPrimaryKey(int bookId) throws DAOException {
-
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- statement = connection.prepareStatement("select * from book where book_id = ?");
-
- statement.setInt(1, bookId);
-
- resultSet = statement.executeQuery();
-
- if(resultSet.next())
- {
- int id = resultSet.getInt("book_id");
- String title = resultSet.getString("title");
- String author = resultSet.getString("author");
- int pages = resultSet.getInt("number_of_pages");
- String isbn = resultSet.getString("isbn");
- Date publisherDate = resultSet.getDate("pub_date");
-
- return new Book(id, title, author, isbn, pages, publisherDate);
- }
-
- throw new DAOException("Invalid book id provided!!");
- }
- catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- private Connection getConnection() throws DAOException
- {
- try {
- Class.forName("oracle.jdbc.driver.OracleDriver");
- return DriverManager.getConnection(jdbcURL, username, password);
- } catch (ClassNotFoundException ex) {
- throw new DAOException(ex);
- }
- catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
-
- }
-
- private void closeResources(ResultSet resultSet, Statement statement, Connection connection)
- {
- if(resultSet != null)
- {
- try {
- resultSet.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if(statement != null)
- {
- try {
- statement.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if(connection != null)
- {
- try {
- connection.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- }
-
-}
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/domain/BookService.java b/CurrentBatchStruts5/src/com/training/java/struts/domain/BookService.java
deleted file mode 100644
index c1f928c..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/domain/BookService.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.training.java.struts.domain;
-
-import java.util.List;
-
-public interface BookService {
-
- List getAllBooks() throws ServiceException;
-
- void addBook(Book book) throws ServiceException;
-
- Book getById(int id) throws ServiceException;
-
- void update(Book book) throws ServiceException;
-
- void delete(int id) throws ServiceException;
-
-}
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/domain/BookServiceImpl.java b/CurrentBatchStruts5/src/com/training/java/struts/domain/BookServiceImpl.java
deleted file mode 100644
index 40c6299..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/domain/BookServiceImpl.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package com.training.java.struts.domain;
-
-import java.util.List;
-
-public class BookServiceImpl implements BookService {
-
- @Override
- public List getAllBooks() throws ServiceException {
-
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- try {
- return dao.getAllBooks();
- } catch (DAOException ex) {
- ex.printStackTrace();
- throw new ServiceException(ex);
- }
- }
-
- @Override
- public void addBook(Book book) throws ServiceException {
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- try {
- dao.addBook(book);
- } catch (DAOException ex) {
- ex.printStackTrace();
- throw new ServiceException(ex);
- }
- }
-
- @Override
- public Book getById(int id) throws ServiceException {
-
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- try {
- return dao.findByPrimaryKey(id);
- } catch (DAOException ex) {
- ex.printStackTrace();
- throw new ServiceException(ex);
- }
-
- }
-
- @Override
- public void update(Book book) throws ServiceException {
-
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- try {
- dao.updateBook(book);
- } catch (DAOException ex) {
- ex.printStackTrace();
- throw new ServiceException(ex);
- }
- }
-
- @Override
- public void delete(int id) throws ServiceException {
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- try {
- dao.deleteBook(id);
- } catch (DAOException ex) {
- ex.printStackTrace();
- throw new ServiceException(ex);
- }
- }
-}
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/domain/DAOException.java b/CurrentBatchStruts5/src/com/training/java/struts/domain/DAOException.java
deleted file mode 100644
index acb3f75..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/domain/DAOException.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.training.java.struts.domain;
-
-
-public class DAOException extends Exception {
-
- public DAOException(String errorMessage)
- {
- super(errorMessage);
- }
-
- public DAOException(Throwable cause)
- {
- super(cause);
- }
-
- public DAOException(String errorMessage, Throwable cause) {
- super(errorMessage, cause);
-
- }
-}
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/domain/ServiceException.java b/CurrentBatchStruts5/src/com/training/java/struts/domain/ServiceException.java
deleted file mode 100644
index b1b34e9..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/domain/ServiceException.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.training.java.struts.domain;
-
-public class ServiceException extends Exception {
-
- public ServiceException(Throwable ex)
- {
- super(ex);
- }
-
- public ServiceException(String errorMessage)
- {
- super(errorMessage);
- }
-
-}
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/domain/package-info.java b/CurrentBatchStruts5/src/com/training/java/struts/domain/package-info.java
deleted file mode 100644
index 51a5e92..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/domain/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.struts.domain;
\ No newline at end of file
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/web/AddBooksAction.java b/CurrentBatchStruts5/src/com/training/java/struts/web/AddBooksAction.java
deleted file mode 100644
index 472eb1c..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/web/AddBooksAction.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.training.java.struts.web;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-public class AddBooksAction extends Action {
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- return mapping.findForward("AddBook");
- }
-
-}
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/web/BookForm.java b/CurrentBatchStruts5/src/com/training/java/struts/web/BookForm.java
deleted file mode 100644
index 92e4885..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/web/BookForm.java
+++ /dev/null
@@ -1,89 +0,0 @@
-package com.training.java.struts.web;
-
-import javax.servlet.http.HttpServletRequest;
-
-import org.apache.commons.lang.StringUtils;
-import org.apache.struts.action.ActionErrors;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionMapping;
-import org.apache.struts.action.ActionMessage;
-
-public class BookForm extends ActionForm {
-
- private String title;
- private String author;
- private String isbn;
- private int pages;
- private int id;
- private boolean updateFlag;
-
- public String getTitle() {
- return title;
- }
-
- public void setTitle(String title) {
- this.title = title;
- }
-
- public String getAuthor() {
- return author;
- }
-
- public void setAuthor(String author) {
- this.author = author;
- }
-
- public String getIsbn() {
- return isbn;
- }
-
- public void setIsbn(String isbn) {
- this.isbn = isbn;
- }
-
- public int getPages() {
- return pages;
- }
-
- public void setPages(int pages) {
- this.pages = pages;
- }
-
- public int getId() {
- return id;
- }
-
- public void setId(int id) {
- this.id = id;
- }
-
- public boolean isUpdateFlag() {
- return updateFlag;
- }
-
- public void setUpdateFlag(boolean updateFlag) {
- this.updateFlag = updateFlag;
- }
-
- @Override
- public ActionErrors validate(ActionMapping mapping,
- HttpServletRequest request) {
-
- ActionErrors errors = new ActionErrors();
-
- if (StringUtils.isBlank(this.title)) {
- errors.add("title.missing", new ActionMessage(
- "error.title.required"));
- }
- if (StringUtils.isBlank(this.author)) {
- errors.add("author.missing", new ActionMessage(
- "error.author.required"));
- }
- if (StringUtils.isBlank(this.isbn)) {
- errors.add("isbn.errors", new ActionMessage("error.isbn.required"));
- }
-
- return errors;
- }
-
-}
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/web/DeleteBookAction.java b/CurrentBatchStruts5/src/com/training/java/struts/web/DeleteBookAction.java
deleted file mode 100644
index 311d513..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/web/DeleteBookAction.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.training.java.struts.web;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-import com.training.java.struts.domain.BookService;
-import com.training.java.struts.domain.BookServiceImpl;
-
-public class DeleteBookAction extends Action {
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- String idStr = request.getParameter("id");
- int id = Integer.parseInt(idStr);
-
- BookService service = new BookServiceImpl();
- service.delete(id);
-
- return mapping.findForward("List");
- }
-}
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/web/HomeAction.java b/CurrentBatchStruts5/src/com/training/java/struts/web/HomeAction.java
deleted file mode 100644
index 2859bec..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/web/HomeAction.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.training.java.struts.web;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-public class HomeAction extends Action {
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- return mapping.findForward("Home");
- }
-
-}
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/web/ListBooksAction.java b/CurrentBatchStruts5/src/com/training/java/struts/web/ListBooksAction.java
deleted file mode 100644
index 7c5828a..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/web/ListBooksAction.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package com.training.java.struts.web;
-
-import java.util.List;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-import com.training.java.struts.domain.Book;
-import com.training.java.struts.domain.BookService;
-import com.training.java.struts.domain.BookServiceImpl;
-
-public class ListBooksAction extends Action {
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- BookService service = new BookServiceImpl();
- List books = service.getAllBooks();
-
- request.setAttribute("venkat", books);
-
- return mapping.findForward("ListBooks");
- }
-
-}
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/web/SaveBooksAction.java b/CurrentBatchStruts5/src/com/training/java/struts/web/SaveBooksAction.java
deleted file mode 100644
index ea15128..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/web/SaveBooksAction.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package com.training.java.struts.web;
-
-import java.util.Date;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-import com.training.java.struts.domain.Book;
-import com.training.java.struts.domain.BookService;
-import com.training.java.struts.domain.BookServiceImpl;
-
-public class SaveBooksAction extends Action {
-
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- BookForm bookForm = (BookForm) form;
-
- //Convert BookForm into Book object
- Book book = new Book(bookForm.getId(), bookForm.getTitle(), bookForm.getAuthor(), bookForm.getIsbn(), bookForm.getPages(), new Date());
-
- //Call BookService and save the details
- BookService service = new BookServiceImpl();
-
- if(bookForm.isUpdateFlag())
- {
- service.update(book);
- }
- else
- {
- service.addBook(book);
- }
-
- //Send acknowledgement
- return mapping.findForward("Acknowledgement");
-
- }
-
-}
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/web/UpdateBookAction.java b/CurrentBatchStruts5/src/com/training/java/struts/web/UpdateBookAction.java
deleted file mode 100644
index 2285581..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/web/UpdateBookAction.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package com.training.java.struts.web;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-import com.training.java.struts.domain.Book;
-import com.training.java.struts.domain.BookService;
-import com.training.java.struts.domain.BookServiceImpl;
-
-public class UpdateBookAction extends Action {
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- BookForm bookForm = (BookForm) form;
-
- BookService service = new BookServiceImpl();
- Book book = service.getById(bookForm.getId());
-
- bookForm.setAuthor(book.getAuthor());
- bookForm.setIsbn(book.getIsbn());
- bookForm.setPages(book.getPages());
- bookForm.setTitle(book.getTitle());
- bookForm.setUpdateFlag(true);
-
- return mapping.findForward("UpdateBook");
-
- }
-
-}
diff --git a/CurrentBatchStruts5/src/com/training/java/struts/web/package-info.java b/CurrentBatchStruts5/src/com/training/java/struts/web/package-info.java
deleted file mode 100644
index 341c1c2..0000000
--- a/CurrentBatchStruts5/src/com/training/java/struts/web/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.struts.web;
\ No newline at end of file
diff --git a/FIT/.classpath b/FIT/.classpath
deleted file mode 100644
index cd72253..0000000
--- a/FIT/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/FIT/.project b/FIT/.project
deleted file mode 100644
index 27d0256..0000000
--- a/FIT/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- FIT
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
-
-
diff --git a/FIT/.settings/org.eclipse.jdt.core.prefs b/FIT/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 83c3ccd..0000000
--- a/FIT/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,12 +0,0 @@
-#Sat Jul 23 10:16:00 EDT 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/FIT/doc/readme.txt b/FIT/doc/readme.txt
deleted file mode 100644
index 03a15cf..0000000
--- a/FIT/doc/readme.txt
+++ /dev/null
@@ -1,8 +0,0 @@
---> FIT stands for Framework for Integration Testing which helps communicate between business users, testers and the developers
-
---> FIT expects the input information being in the HTML tables. Since designing an HTML table by hand can be tedious, draw a table in Micosoft Word and save it as .html file.
- Word automatically generates the HTML code for you. Keep this .html file in input folder. This table will have few examples of how the code should behave.
-
-Q : How to run this example?
-A : Go to command prompt and go to src folder of FIT projects (for example "cd C:\projects\FIT\src") and then type the following command
- java -classpath ..\lib\fit.jar;..\bin; fit.FileRunner input\payment.html output\results.html
\ No newline at end of file
diff --git a/FIT/lib/fit.jar b/FIT/lib/fit.jar
deleted file mode 100644
index 44e8564..0000000
Binary files a/FIT/lib/fit.jar and /dev/null differ
diff --git a/FIT/src/com/training/java/fit/PaymentFixture.java b/FIT/src/com/training/java/fit/PaymentFixture.java
deleted file mode 100644
index 191df01..0000000
--- a/FIT/src/com/training/java/fit/PaymentFixture.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.training.java.fit;
-
-import fit.ColumnFixture;
-
-public class PaymentFixture extends ColumnFixture {
-
- public double hourlyRate;
- public int hoursWorked;
-
- public double caculatePay()
- {
- return hourlyRate * hoursWorked;
- }
-
-}
diff --git a/FIT/src/input/payment.html b/FIT/src/input/payment.html
deleted file mode 100644
index fca671c..0000000
--- a/FIT/src/input/payment.html
+++ /dev/null
@@ -1,142 +0,0 @@
-
-
-
-
-
-
-
-
-com
-
-
-
-
-
-
-
-
-
-
-
- com.training.java.fit.PaymentFixture
-
-
-
-
- hourlyRate
-
-
- hoursWorked
-
-
- caculatePay()
-
-
-
-
- 20
-
-
- 40
-
-
- 800
-
-
-
-
- 30
-
-
- 40
-
-
- 1200
-
-
-
-
- 40
-
-
- 40
-
-
- 1600
-
-
-
-
-
-
-
-
-
-
-
diff --git a/FIT/src/output/results.html b/FIT/src/output/results.html
deleted file mode 100644
index 1553c21..0000000
--- a/FIT/src/output/results.html
+++ /dev/null
@@ -1,142 +0,0 @@
-
-
-
-
-
-
-
-
-com
-
-
-
-
-
-
-
-
-
-
-
- com.training.java.fit.PaymentFixture
-
-
-
-
- hourlyRate
-
-
- hoursWorked
-
-
- caculatePay()
-
-
-
-
- 20
-
-
- 40
-
-
- 800
-
-
-
-
- 30
-
-
- 40
-
-
- 1200
-
-
-
-
- 40
-
-
- 40
-
-
- 1600
-
-
-
-
-
-
-
-
-
-
-
diff --git a/HelloWorldApp/.classpath b/HelloWorldApp/.classpath
deleted file mode 100644
index 23a27a7..0000000
--- a/HelloWorldApp/.classpath
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/HelloWorldApp/.project b/HelloWorldApp/.project
deleted file mode 100644
index d8c6ef9..0000000
--- a/HelloWorldApp/.project
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- HelloWorldApp
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/HelloWorldApp/.settings/.jsdtscope b/HelloWorldApp/.settings/.jsdtscope
deleted file mode 100644
index 887f573..0000000
--- a/HelloWorldApp/.settings/.jsdtscope
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/HelloWorldApp/.settings/org.eclipse.jdt.core.prefs b/HelloWorldApp/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 11f6e46..0000000
--- a/HelloWorldApp/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/HelloWorldApp/.settings/org.eclipse.wst.common.component b/HelloWorldApp/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index 1628389..0000000
--- a/HelloWorldApp/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/HelloWorldApp/.settings/org.eclipse.wst.common.project.facet.core.xml b/HelloWorldApp/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index 69b9da3..0000000
--- a/HelloWorldApp/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/HelloWorldApp/.settings/org.eclipse.wst.jsdt.ui.superType.container b/HelloWorldApp/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/HelloWorldApp/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/HelloWorldApp/.settings/org.eclipse.wst.jsdt.ui.superType.name b/HelloWorldApp/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/HelloWorldApp/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/HelloWorldApp/WebContent/Intro.html b/HelloWorldApp/WebContent/Intro.html
deleted file mode 100644
index 260ed5b..0000000
--- a/HelloWorldApp/WebContent/Intro.html
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-Insert title here
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/HelloWorldApp/WebContent/META-INF/MANIFEST.MF b/HelloWorldApp/WebContent/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/HelloWorldApp/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/HelloWorldApp/WebContent/WEB-INF/web.xml b/HelloWorldApp/WebContent/WEB-INF/web.xml
deleted file mode 100644
index a8c3f59..0000000
--- a/HelloWorldApp/WebContent/WEB-INF/web.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
- HelloWorldApp
-
- index.html
-
-
-
-
- HelloWorldServlet
- HelloWorldServlet
- com.training.java.servlet.helloworld.HelloWorldServlet
-
-
-
- HelloWorldServlet
- /hello
-
-
-
\ No newline at end of file
diff --git a/HelloWorldApp/WebContent/index.html b/HelloWorldApp/WebContent/index.html
deleted file mode 100644
index 9264441..0000000
--- a/HelloWorldApp/WebContent/index.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-Insert title here
-
-
-
- Welcome to my web application
-
-
-
\ No newline at end of file
diff --git a/HelloWorldApp/readme.txt b/HelloWorldApp/readme.txt
deleted file mode 100644
index 4f96f2d..0000000
--- a/HelloWorldApp/readme.txt
+++ /dev/null
@@ -1 +0,0 @@
-1st Servlet example..
\ No newline at end of file
diff --git a/HelloWorldApp/src/com/training/java/servlet/helloworld/HelloWorldServlet.java b/HelloWorldApp/src/com/training/java/servlet/helloworld/HelloWorldServlet.java
deleted file mode 100644
index a40d491..0000000
--- a/HelloWorldApp/src/com/training/java/servlet/helloworld/HelloWorldServlet.java
+++ /dev/null
@@ -1,68 +0,0 @@
-package com.training.java.servlet.helloworld;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-/**
- * Servlet implementation class HelloWorldServlet
- */
-public class HelloWorldServlet extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
-
- System.out.println("doGet metod has been called");
-
- String firstName = request.getParameter("firstName");
- String lastName = request.getParameter("lastName");
- String city = request.getParameter("city");
-
- System.out.println("First name = " + firstName);
- System.out.println("lastName = " + lastName);
- System.out.println("city = " + city);
-
- PrintWriter out = response.getWriter();
-
- out.println("");
- out.println("");
- out.println("Hello " + firstName + " " + lastName + " ");
- out.println("");
- out.println("");
-
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
-
- System.out.println("doPost metod has been called");
-
- String firstName = request.getParameter("firstName");
- String lastName = request.getParameter("lastName");
- String city = request.getParameter("city");
-
- System.out.println("First name = " + firstName);
- System.out.println("lastName = " + lastName);
- System.out.println("city = " + city);
-
- PrintWriter out = response.getWriter();
-
- out.println("");
- out.println("");
- out.println("Hello " + firstName + " " + lastName + " ");
- out.println("");
- out.println("");
-
-
- }
-
-}
diff --git a/HelloWorldServlet/.classpath b/HelloWorldServlet/.classpath
deleted file mode 100644
index 700a9c5..0000000
--- a/HelloWorldServlet/.classpath
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/HelloWorldServlet/.project b/HelloWorldServlet/.project
deleted file mode 100644
index 5a13a03..0000000
--- a/HelloWorldServlet/.project
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- HelloWorldServlet
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/HelloWorldServlet/.settings/.jsdtscope b/HelloWorldServlet/.settings/.jsdtscope
deleted file mode 100644
index 887f573..0000000
--- a/HelloWorldServlet/.settings/.jsdtscope
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/HelloWorldServlet/.settings/org.eclipse.jdt.core.prefs b/HelloWorldServlet/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index b06a466..0000000
--- a/HelloWorldServlet/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Sun Feb 05 08:14:55 EST 2012
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/HelloWorldServlet/.settings/org.eclipse.wst.common.component b/HelloWorldServlet/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index 6c5e2c4..0000000
--- a/HelloWorldServlet/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/HelloWorldServlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/HelloWorldServlet/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index 0873c6e..0000000
--- a/HelloWorldServlet/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/HelloWorldServlet/.settings/org.eclipse.wst.jsdt.ui.superType.container b/HelloWorldServlet/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/HelloWorldServlet/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/HelloWorldServlet/.settings/org.eclipse.wst.jsdt.ui.superType.name b/HelloWorldServlet/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/HelloWorldServlet/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/HelloWorldServlet/WebContent/META-INF/MANIFEST.MF b/HelloWorldServlet/WebContent/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/HelloWorldServlet/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/HelloWorldServlet/WebContent/WEB-INF/web.xml b/HelloWorldServlet/WebContent/WEB-INF/web.xml
deleted file mode 100644
index 6c90d30..0000000
--- a/HelloWorldServlet/WebContent/WEB-INF/web.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
- HelloWorldServlet
-
- index.html
- index.htm
- index.jsp
- default.html
- default.htm
- default.jsp
-
-
- HelloWorldServlet
- com.training.java.servlet.HelloWorldServlet
-
-
- HelloWorldServlet
- /hello
-
-
-
- HelloWorld2
- HelloWorld2
- com.training.java.servlet.HelloWorld2
-
-
- HelloWorld2
- /hello2
-
-
-
- Registration
- Registration
- com.training.java.servlet.RegistrationServlet
-
-
- Registration
- /registration
-
-
\ No newline at end of file
diff --git a/HelloWorldServlet/WebContent/index.html b/HelloWorldServlet/WebContent/index.html
deleted file mode 100644
index d31d84c..0000000
--- a/HelloWorldServlet/WebContent/index.html
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-Insert title here
-
-
-
- Welcome to my first web application!
-
-
-
- Title
- Year
- Director
-
-
-
- Cars2
- 2011
- XYZ
-
-
-
-
-
\ No newline at end of file
diff --git a/HelloWorldServlet/WebContent/registration.html b/HelloWorldServlet/WebContent/registration.html
deleted file mode 100644
index 254161d..0000000
--- a/HelloWorldServlet/WebContent/registration.html
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-Insert title here
-
-
-
- Please enter your details and click on Submit
-
-
-
-
-
\ No newline at end of file
diff --git a/HelloWorldServlet/src/com/training/java/servlet/HelloWorld2.java b/HelloWorldServlet/src/com/training/java/servlet/HelloWorld2.java
deleted file mode 100644
index a5878de..0000000
--- a/HelloWorldServlet/src/com/training/java/servlet/HelloWorld2.java
+++ /dev/null
@@ -1,53 +0,0 @@
-package com.training.java.servlet;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.util.Date;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-/**
- * Servlet implementation class HelloWorld2
- */
-public class HelloWorld2 extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public HelloWorld2() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
- * response)
- */
- protected void doGet(HttpServletRequest request,
- HttpServletResponse response) throws ServletException, IOException {
-
- PrintWriter out = response.getWriter();
-
- out.print("");
- out.print("");
- out.print(" Welcome to my dynamic App, this is coming from Servlet2!");
- out.print(" Time on my end is " + new Date());
- out.print("");
- out.print("");
-
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse
- * response)
- */
- protected void doPost(HttpServletRequest request,
- HttpServletResponse response) throws ServletException, IOException {
- // TODO Auto-generated method stub
- }
-
-}
diff --git a/HelloWorldServlet/src/com/training/java/servlet/HelloWorldServlet.java b/HelloWorldServlet/src/com/training/java/servlet/HelloWorldServlet.java
deleted file mode 100644
index 5603332..0000000
--- a/HelloWorldServlet/src/com/training/java/servlet/HelloWorldServlet.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package com.training.java.servlet;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.util.Date;
-import java.util.Enumeration;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-public class HelloWorldServlet extends HttpServlet {
-
- @Override
- protected void doGet(HttpServletRequest req, HttpServletResponse resp)
- throws ServletException, IOException {
-
-
- Enumeration headers = req.getHeaderNames();
- while(headers.hasMoreElements())
- {
- String headerName = headers.nextElement();
- String headerValue = req.getHeader(headerName);
-
- System.out.println(headerName + " = " + headerValue);
- }
-
- String firstName = req.getParameter("fn");
- String lastName = req.getParameter("ln");
-
- PrintWriter out = resp.getWriter();
-
- out.print("");
- out.print("");
- out.print(" Welcome to my dynamic App " + lastName + ", " + firstName);
- out.print(" Time on my end is " + new Date());
- out.print("");
- out.print("");
- }
-
-}
diff --git a/HelloWorldServlet/src/com/training/java/servlet/RegistrationServlet.java b/HelloWorldServlet/src/com/training/java/servlet/RegistrationServlet.java
deleted file mode 100644
index 855f275..0000000
--- a/HelloWorldServlet/src/com/training/java/servlet/RegistrationServlet.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package com.training.java.servlet;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-/**
- * Servlet implementation class Registration
- */
-public class RegistrationServlet extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public RegistrationServlet() {
- super();
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
-
- String firstName = request.getParameter("firstName");
- String lastName = request.getParameter("lastName");
- String city = request.getParameter("city");
- String state = request.getParameter("state");
-
- System.out.println("I am in get method");
- System.out.println("first name = " + firstName);
- System.out.println("last name = " + lastName);
- System.out.println("city = " + city);
- System.out.println("state = " + state);
-
- //TODO This is where you will call data layer to save the details in database
-
- PrintWriter out = response.getWriter();
- out.print(" We received your details, thank you");
-
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
-
- doGet(request, response);
- }
-
-}
diff --git a/Hibernate/.classpath b/Hibernate/.classpath
deleted file mode 100644
index 930c3ed..0000000
--- a/Hibernate/.classpath
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Hibernate/.project b/Hibernate/.project
deleted file mode 100644
index cc3f711..0000000
--- a/Hibernate/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- Hibernate
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
-
-
diff --git a/Hibernate/.settings/org.eclipse.jdt.core.prefs b/Hibernate/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 2ad2171..0000000
--- a/Hibernate/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,12 +0,0 @@
-#Sat Jul 23 14:39:21 EDT 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/Hibernate/lib/antlr-2.7.6.jar b/Hibernate/lib/antlr-2.7.6.jar
deleted file mode 100644
index 3702b64..0000000
Binary files a/Hibernate/lib/antlr-2.7.6.jar and /dev/null differ
diff --git a/Hibernate/lib/commons-collections-3.1.jar b/Hibernate/lib/commons-collections-3.1.jar
deleted file mode 100644
index 41e230f..0000000
Binary files a/Hibernate/lib/commons-collections-3.1.jar and /dev/null differ
diff --git a/Hibernate/lib/dom4j-1.6.1.jar b/Hibernate/lib/dom4j-1.6.1.jar
deleted file mode 100644
index c8c4dbb..0000000
Binary files a/Hibernate/lib/dom4j-1.6.1.jar and /dev/null differ
diff --git a/Hibernate/lib/hibernate-jpa-2.0-api-1.0.1.Final.jar b/Hibernate/lib/hibernate-jpa-2.0-api-1.0.1.Final.jar
deleted file mode 100644
index 1e9f71b..0000000
Binary files a/Hibernate/lib/hibernate-jpa-2.0-api-1.0.1.Final.jar and /dev/null differ
diff --git a/Hibernate/lib/hibernate3.jar b/Hibernate/lib/hibernate3.jar
deleted file mode 100644
index 27894ef..0000000
Binary files a/Hibernate/lib/hibernate3.jar and /dev/null differ
diff --git a/Hibernate/lib/javassist-3.12.0.GA.jar b/Hibernate/lib/javassist-3.12.0.GA.jar
deleted file mode 100644
index 8f692f4..0000000
Binary files a/Hibernate/lib/javassist-3.12.0.GA.jar and /dev/null differ
diff --git a/Hibernate/lib/jta-1.1.jar b/Hibernate/lib/jta-1.1.jar
deleted file mode 100644
index 6d225b7..0000000
Binary files a/Hibernate/lib/jta-1.1.jar and /dev/null differ
diff --git a/Hibernate/lib/junit-4.8.2.jar b/Hibernate/lib/junit-4.8.2.jar
deleted file mode 100644
index 5b4bb84..0000000
Binary files a/Hibernate/lib/junit-4.8.2.jar and /dev/null differ
diff --git a/Hibernate/lib/mysql-connector-java-5.1.12-bin.jar b/Hibernate/lib/mysql-connector-java-5.1.12-bin.jar
deleted file mode 100644
index af5847e..0000000
Binary files a/Hibernate/lib/mysql-connector-java-5.1.12-bin.jar and /dev/null differ
diff --git a/Hibernate/lib/slf4j-api-1.6.1.jar b/Hibernate/lib/slf4j-api-1.6.1.jar
deleted file mode 100644
index f1f4fdd..0000000
Binary files a/Hibernate/lib/slf4j-api-1.6.1.jar and /dev/null differ
diff --git a/Hibernate/src/java/com/training/java/hibernate/Book.java b/Hibernate/src/java/com/training/java/hibernate/Book.java
deleted file mode 100644
index 863115c..0000000
--- a/Hibernate/src/java/com/training/java/hibernate/Book.java
+++ /dev/null
@@ -1,60 +0,0 @@
-package com.training.java.hibernate;
-
-import java.io.Serializable;
-
-public class Book implements Serializable {
- private Integer id;
- private String title;
- private String author;
- private String isbn;
- private Integer pages;
- private Integer publisherId;
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getTitle() {
- return title;
- }
-
- public void setTitle(String title) {
- this.title = title;
- }
-
- public String getAuthor() {
- return author;
- }
-
- public void setAuthor(String author) {
- this.author = author;
- }
-
- public String getIsbn() {
- return isbn;
- }
-
- public void setIsbn(String isbn) {
- this.isbn = isbn;
- }
-
- public Integer getPages() {
- return pages;
- }
-
- public void setPages(Integer pages) {
- this.pages = pages;
- }
-
- public Integer getPublisherId() {
- return publisherId;
- }
-
- public void setPublisherId(Integer publisherId) {
- this.publisherId = publisherId;
- }
-}
diff --git a/Hibernate/src/java/com/training/java/hibernate/BookDAO.java b/Hibernate/src/java/com/training/java/hibernate/BookDAO.java
deleted file mode 100644
index 6202b7e..0000000
--- a/Hibernate/src/java/com/training/java/hibernate/BookDAO.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.training.java.hibernate;
-
-import java.util.List;
-
-public interface BookDAO {
-
- public void create(Book aNewBook) throws DAOException;
- public List getAllBooks() throws DAOException;
- public Book findByPrimaryKey(Integer id) throws DAOException;
- public void update(Book bookToUpdate) throws DAOException;
- public void delete(int id) throws DAOException;
-}
diff --git a/Hibernate/src/java/com/training/java/hibernate/BookDAOHibernateImpl.java b/Hibernate/src/java/com/training/java/hibernate/BookDAOHibernateImpl.java
deleted file mode 100644
index 18bdab5..0000000
--- a/Hibernate/src/java/com/training/java/hibernate/BookDAOHibernateImpl.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package com.training.java.hibernate;
-
-import java.util.List;
-
-import org.hibernate.Session;
-import org.hibernate.SessionFactory;
-import org.hibernate.Transaction;
-import org.hibernate.cfg.Configuration;
-
-public class BookDAOHibernateImpl implements BookDAO {
-
- private SessionFactory sessionFactory;
-
- public BookDAOHibernateImpl() {
- // A SessionFactory is set up once for an application
- sessionFactory = new Configuration().configure() // configures settings from hibernate.cfg.xml
- .buildSessionFactory();
- }
-
- @Override
- public void create(Book aNewBook) throws DAOException {
- Session session = sessionFactory.openSession();
-
- Transaction transaction = session.getTransaction();
- transaction.begin();
-
- session.save(aNewBook);
-
- transaction.commit();
- }
-
- @Override
- public List getAllBooks() throws DAOException {
-
- Session session = sessionFactory.openSession();
-
- return (List) session.createCriteria(Book.class).list();
- }
-
- @Override
- public Book findByPrimaryKey(Integer id) throws DAOException {
-
- Session session = sessionFactory.openSession();
- return (Book) session.get(Book.class, id);
- }
-
- @Override
- public void update(Book bookToUpdate) throws DAOException {
- Session session = sessionFactory.openSession();
- Transaction transaction = session.getTransaction();
-
- transaction.begin();
- session.update(bookToUpdate);
- transaction.commit();
- }
-
- @Override
- public void delete(int id) throws DAOException {
- Session session = sessionFactory.openSession();
- Transaction transaction = session.getTransaction();
-
- Book bookToDelete = new Book();
- bookToDelete.setId(id);
-
- transaction.begin();
- session.delete(bookToDelete);
- transaction.commit();
- }
-
-}
diff --git a/Hibernate/src/java/com/training/java/hibernate/BookDAOTest.java b/Hibernate/src/java/com/training/java/hibernate/BookDAOTest.java
deleted file mode 100644
index fbef3b8..0000000
--- a/Hibernate/src/java/com/training/java/hibernate/BookDAOTest.java
+++ /dev/null
@@ -1,85 +0,0 @@
-package com.training.java.hibernate;
-
-
-import static org.junit.Assert.fail;
-
-import java.util.Iterator;
-import java.util.List;
-
-import org.junit.Test;
-
-public class BookDAOTest {
-
- public void getAllBooks()
- {
- BookDAO dao = new BookDAOHibernateImpl();
-
- try
- {
- List books = dao.getAllBooks();
- Iterator ite = books.iterator();
- while(ite.hasNext())
- {
- Book eachBook = ite.next();
- System.out.println("Book id = " + eachBook.getId());
- System.out.println("Book author = " + eachBook.getAuthor());
- System.out.println("Book title = " + eachBook.getTitle());
- System.out.println("Book ISBN = " + eachBook.getIsbn());
- System.out.println("Book pages = " + eachBook.getPages());
- System.out.println("Book publisher ID = " + eachBook.getPublisherId());
- }
-
- } catch (DAOException e)
- {
- e.printStackTrace();
- fail("Error occured while retrieving all books from database");
- }
- }
-
- public void findByPrimaryKey() throws DAOException
- {
- BookDAO dao = new BookDAOHibernateImpl();
-
- Book book = dao.findByPrimaryKey(2);
-
- System.out.println("Book id = " + book.getId());
- System.out.println("Book author = " + book.getAuthor());
- System.out.println("Book title = " + book.getTitle());
- System.out.println("Book ISBN = " + book.getIsbn());
- System.out.println("Book pages = " + book.getPages());
- System.out.println("Book publisher ID = " + book.getPublisherId());
- }
-
- public void create() throws DAOException
- {
- Book book = new Book();
-
- book.setAuthor("Venkat");
- book.setIsbn("999999");
- book.setPages(456);
- book.setPublisherId(10);
- book.setTitle("2 States");
-
- BookDAO dao = new BookDAOHibernateImpl();
-
- dao.create(book);
- }
-
-
- public void update() throws DAOException
- {
- BookDAO dao = new BookDAOHibernateImpl();
-
- Book existingBook = dao.findByPrimaryKey(2);
- existingBook.setTitle("3 States");
- dao.update(existingBook);
- }
-
- @Test
- public void delete() throws DAOException
- {
- BookDAO dao = new BookDAOHibernateImpl();
-
- dao.delete(1);
- }
-}
diff --git a/Hibernate/src/java/com/training/java/hibernate/DAOException.java b/Hibernate/src/java/com/training/java/hibernate/DAOException.java
deleted file mode 100644
index b326ca2..0000000
--- a/Hibernate/src/java/com/training/java/hibernate/DAOException.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.training.java.hibernate;
-
-public class DAOException extends Exception {
-
- public DAOException(Exception cause)
- {
- super(cause);
- }
-
- public DAOException(String message)
- {
- super(message);
- }
-
-}
diff --git a/Hibernate/src/resources/Book.hbm.xml b/Hibernate/src/resources/Book.hbm.xml
deleted file mode 100644
index 544fc75..0000000
--- a/Hibernate/src/resources/Book.hbm.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Hibernate/src/resources/hibernate.cfg.xml b/Hibernate/src/resources/hibernate.cfg.xml
deleted file mode 100644
index 081eb7c..0000000
--- a/Hibernate/src/resources/hibernate.cfg.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
-
-
- com.mysql.jdbc.Driver
- jdbc:mysql://localhost/training
- root
- password
-
-
- 1
-
-
- org.hibernate.dialect.MySQLDialect
-
-
- org.hibernate.cache.NoCacheProvider
-
-
- true
-
-
-
-
-
-
\ No newline at end of file
diff --git a/HibernateBasic/.classpath b/HibernateBasic/.classpath
deleted file mode 100644
index 96f09f1..0000000
--- a/HibernateBasic/.classpath
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/HibernateBasic/.project b/HibernateBasic/.project
deleted file mode 100644
index f8efe70..0000000
--- a/HibernateBasic/.project
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
- HibernateBasic
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.maven.ide.eclipse.maven2Builder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
- org.maven.ide.eclipse.maven2Nature
-
-
diff --git a/HibernateBasic/.settings/org.eclipse.jdt.core.prefs b/HibernateBasic/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 742b757..0000000
--- a/HibernateBasic/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Mon Oct 10 10:13:50 EDT 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
diff --git a/HibernateBasic/.settings/org.maven.ide.eclipse.prefs b/HibernateBasic/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644
index ee72d8b..0000000
--- a/HibernateBasic/.settings/org.maven.ide.eclipse.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Mon Oct 10 09:58:16 EDT 2011
-activeProfiles=
-eclipse.preferences.version=1
-fullBuildGoals=process-test-resources
-resolveWorkspaceProjects=true
-resourceFilterGoals=process-resources resources\:testResources
-skipCompilerPlugin=true
-version=1
diff --git a/HibernateBasic/pom.xml b/HibernateBasic/pom.xml
deleted file mode 100644
index ff8c642..0000000
--- a/HibernateBasic/pom.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-
- 4.0.0
- com.venkat
- HibernateBasic
- 1.0
-
-
-
- org.hibernate
- hibernate-core
- 3.6.0.Final
-
-
- org.hibernate
- hibernate-annotations
- 3.5.6-Final
-
-
- junit
- junit
- 4.10
-
-
- mysql
- mysql-connector-java
- 5.1.17
-
-
- javassist
- javassist
- 3.6.0.GA
-
-
-
\ No newline at end of file
diff --git a/HibernateBasic/src/main/java/com/training/java/hibernate/Book.java b/HibernateBasic/src/main/java/com/training/java/hibernate/Book.java
deleted file mode 100644
index f88a5e9..0000000
--- a/HibernateBasic/src/main/java/com/training/java/hibernate/Book.java
+++ /dev/null
@@ -1,86 +0,0 @@
-package com.training.java.hibernate;
-
-import java.io.Serializable;
-
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.FetchType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.ManyToOne;
-import javax.persistence.Table;
-
-@Entity
-@Table(name = "book")
-public class Book implements Serializable {
-
- @Id
- @Column(name = "id")
- private int id;
-
- @Column(name = "title")
- private String title;
-
- @Column(name = "author")
- private String author;
-
- @Column(name = "isbn")
- private String isbn;
-
- @Column(name = "pages")
- private int pages;
-
- @ManyToOne(cascade=CascadeType.ALL, fetch=FetchType.EAGER)
- @JoinColumn(name="publisher_id")
- private Publisher publisher;
-
- public int getId() {
- return id;
- }
-
- public void setId(int id) {
- this.id = id;
- }
-
- public String getTitle() {
- return title;
- }
-
- public void setTitle(String title) {
- this.title = title;
- }
-
- public String getAuthor() {
- return author;
- }
-
- public void setAuthor(String author) {
- this.author = author;
- }
-
- public String getIsbn() {
- return isbn;
- }
-
- public void setIsbn(String isbn) {
- this.isbn = isbn;
- }
-
- public int getPages() {
- return pages;
- }
-
- public void setPages(int pages) {
- this.pages = pages;
- }
-
- public Publisher getPublisher() {
- return publisher;
- }
-
- public void setPublisher(Publisher publisher) {
- this.publisher = publisher;
- }
-
-}
diff --git a/HibernateBasic/src/main/java/com/training/java/hibernate/BookDAO.java b/HibernateBasic/src/main/java/com/training/java/hibernate/BookDAO.java
deleted file mode 100644
index c17d70f..0000000
--- a/HibernateBasic/src/main/java/com/training/java/hibernate/BookDAO.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.training.java.hibernate;
-
-
-import java.util.List;
-
-public interface BookDAO {
-
- public void create(Book aNewBook) throws DAOException;
- public List getAllBooks() throws DAOException;
- public Book findByPrimaryKey(int id) throws DAOException;
- public void update(Book bookToUpdate) throws DAOException;
- public void delete(int id) throws DAOException;
-}
diff --git a/HibernateBasic/src/main/java/com/training/java/hibernate/BookDAOHibernateImpl.java b/HibernateBasic/src/main/java/com/training/java/hibernate/BookDAOHibernateImpl.java
deleted file mode 100644
index ca1cc69..0000000
--- a/HibernateBasic/src/main/java/com/training/java/hibernate/BookDAOHibernateImpl.java
+++ /dev/null
@@ -1,60 +0,0 @@
-package com.training.java.hibernate;
-
-import java.util.List;
-
-import org.hibernate.Session;
-
-public class BookDAOHibernateImpl implements BookDAO {
-
- @Override
- public void create(Book aNewBook) throws DAOException {
- Session session = HibernateUtil.getSessionFactory().getCurrentSession();
-
- session.getTransaction().begin();
- session.save(aNewBook);
- session.getTransaction().commit();
- }
-
- @Override
- public List getAllBooks() throws DAOException {
- Session session = HibernateUtil.getSessionFactory().getCurrentSession();
-
- session.getTransaction().begin();
- List books = session.createCriteria(Book.class).list();
- session.getTransaction().commit();
-
- return books;
- }
-
- @Override
- public Book findByPrimaryKey(int id) throws DAOException {
-
- Session session = HibernateUtil.getSessionFactory().getCurrentSession();
- session.getTransaction().begin();
- Book book = (Book) session.get(Book.class, id);
- session.getTransaction().commit();
-
- return book;
- }
-
- @Override
- public void update(Book bookToUpdate) throws DAOException {
- Session session = HibernateUtil.getSessionFactory().getCurrentSession();
- session.getTransaction().begin();
- session.update(bookToUpdate);
- session.getTransaction().commit();
- }
-
- @Override
- public void delete(int id) throws DAOException {
- Session session = HibernateUtil.getSessionFactory().getCurrentSession();
- session.getTransaction().begin();
-
- Book bookToDelete = new Book();
- bookToDelete.setId(id);
-
- session.delete(bookToDelete);
- session.getTransaction().commit();
- }
-
-}
diff --git a/HibernateBasic/src/main/java/com/training/java/hibernate/DAOException.java b/HibernateBasic/src/main/java/com/training/java/hibernate/DAOException.java
deleted file mode 100644
index b326ca2..0000000
--- a/HibernateBasic/src/main/java/com/training/java/hibernate/DAOException.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.training.java.hibernate;
-
-public class DAOException extends Exception {
-
- public DAOException(Exception cause)
- {
- super(cause);
- }
-
- public DAOException(String message)
- {
- super(message);
- }
-
-}
diff --git a/HibernateBasic/src/main/java/com/training/java/hibernate/HibernateUtil.java b/HibernateBasic/src/main/java/com/training/java/hibernate/HibernateUtil.java
deleted file mode 100644
index 5b057b2..0000000
--- a/HibernateBasic/src/main/java/com/training/java/hibernate/HibernateUtil.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.training.java.hibernate;
-
-import org.hibernate.SessionFactory;
-import org.hibernate.cfg.Configuration;
-
-public class HibernateUtil {
- private static final SessionFactory sessionFactory;
- static {
- try {
- sessionFactory = new Configuration().configure("hibernate.cfg.xml").buildSessionFactory();
- } catch (Throwable ex) {
- ex.printStackTrace();
- throw new ExceptionInInitializerError(ex);
- }
- }
-
- public static SessionFactory getSessionFactory() {
- return sessionFactory;
- }
-}
diff --git a/HibernateBasic/src/main/java/com/training/java/hibernate/Publisher.java b/HibernateBasic/src/main/java/com/training/java/hibernate/Publisher.java
deleted file mode 100644
index d3558eb..0000000
--- a/HibernateBasic/src/main/java/com/training/java/hibernate/Publisher.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package com.training.java.hibernate;
-
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Table;
-
-@Entity
-@Table(name = "publisher")
-public class Publisher {
- @Id
- @Column(name = "publisher_id")
- private int id;
-
- @Column(name = "name")
- private String name;
-
- public int getId() {
- return id;
- }
-
- public void setId(int id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-}
diff --git a/HibernateBasic/src/main/resources/hibernate.cfg.xml b/HibernateBasic/src/main/resources/hibernate.cfg.xml
deleted file mode 100644
index 5b42820..0000000
--- a/HibernateBasic/src/main/resources/hibernate.cfg.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
- com.mysql.jdbc.Driver
- jdbc:mysql://localhost/training
- root
- password
-
-
- 1
-
-
- org.hibernate.dialect.MySQLDialect
-
-
- org.hibernate.cache.NoCacheProvider
-
-
- true
- org.hibernate.context.ThreadLocalSessionContext
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/HibernateBasic/src/test/java/com/training/java/hibernate/BookDAOHibernateImplTest.java b/HibernateBasic/src/test/java/com/training/java/hibernate/BookDAOHibernateImplTest.java
deleted file mode 100644
index 9195dcb..0000000
--- a/HibernateBasic/src/test/java/com/training/java/hibernate/BookDAOHibernateImplTest.java
+++ /dev/null
@@ -1,75 +0,0 @@
-package com.training.java.hibernate;
-
-import java.util.List;
-
-import org.junit.Ignore;
-import org.junit.Test;
-
-public class BookDAOHibernateImplTest {
-
- @Test
- public void testList() throws Exception {
-
- BookDAO dao = new BookDAOHibernateImpl();
- List books = dao.getAllBooks();
-
- for(Book aBook : books)
- {
- System.out.println("dept name " + aBook.getPublisher().getName());
- }
-
-
- System.out.println("books size = " + books.size());
- }
-
- @Ignore
- public void testFindByPrimaryKey() throws Exception {
-
- BookDAO dao = new BookDAOHibernateImpl();
- Book book = dao.findByPrimaryKey(1);
-
- System.out.println("Title = " + book.getTitle());
- System.out.println("Author = " + book.getAuthor());
- System.out.println("ISBN = " + book.getIsbn());
- }
-
-
- @Test
- public void testAdd() throws Exception
- {
- BookDAO dao = new BookDAOHibernateImpl();
-
- Book newBook = new Book();
- newBook.setId(5);
- newBook.setAuthor("Gavin King");
- newBook.setIsbn("1234");
- newBook.setTitle("Hibernate ");
-
- Publisher pub = new Publisher();
- pub.setId(5);
- pub.setName("ABC");
-
- newBook.setPublisher(pub);
-
- dao.create(newBook);
- }
-
- @Ignore
- public void testUpdate() throws Exception
- {
- BookDAO dao = new BookDAOHibernateImpl();
- Book book = dao.findByPrimaryKey(1);
-
- book.setAuthor("Venkat");
-
- dao.update(book);
- }
-
- @Ignore
- public void testDelete() throws Exception
- {
- BookDAO dao = new BookDAOHibernateImpl();
- dao.delete(1);
- }
-
-}
diff --git a/JDBC/.classpath b/JDBC/.classpath
deleted file mode 100644
index a590442..0000000
--- a/JDBC/.classpath
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/JDBC/.project b/JDBC/.project
deleted file mode 100644
index 7736b9b..0000000
--- a/JDBC/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- JDBC
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
-
-
diff --git a/JDBC/.settings/org.eclipse.jdt.core.prefs b/JDBC/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 78a3928..0000000
--- a/JDBC/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,12 +0,0 @@
-#Mon Jun 27 17:06:08 EDT 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/JDBC/doc/Bookstore.sql b/JDBC/doc/Bookstore.sql
deleted file mode 100644
index abf5167..0000000
--- a/JDBC/doc/Bookstore.sql
+++ /dev/null
@@ -1,8 +0,0 @@
---Login as system and execute the following statements
-create user bookstore identified by password
-grant all privileges to bookstore
-
---Now, login as bookstore and execute the following
-
-create table book(book_id int primary key, title varchar2(30), author varchar2(30), number_of_pages int, isbn varchar2(10), pub_date date);
-
diff --git a/JDBC/doc/MySQL_Commands b/JDBC/doc/MySQL_Commands
deleted file mode 100644
index 3ff9a1f..0000000
--- a/JDBC/doc/MySQL_Commands
+++ /dev/null
@@ -1,108 +0,0 @@
---> How to login to MySQL in command prompt :
- mysql -p -u root
---> Create a database called "training"
- create database training;
---> How to know what database you are in :
- select database();
---> connect to a database :
- use training;
---> create a basic table book
- create table book(id int, title varchar(30), author varchar(30), isbn varchar(15), pages int);
---> If I want to see all the tables in this database?
- show tables;
---> If I want to see all the columns and its lengths, constraints..etc in a particular table
- describe book;
---> How to add not null constraint or primary key constraint after table is created?
- alter table modify ;
- alter table book modify id int primary key;
- alter table book modify isbn varchar(20) unique;
---> How to delete table?
- drop table book;
---> How to add primary key and not null while creating table?
- create table book(id int primary key, title varchar(30) not null, author varchar(30) not null, isbn varchar(15) not null, pages int not null default 100);
---> You can use describe command to see if table definition got reflected
- describe book;
---> How to insert some data..
- insert into book values(1, 'Head First Java', 'Cathy', '126657876', 345);
---> How to check whether it has been insered? How to retrieve the data from table?
- select * from book;
---> Lets insert more..one more way of inserting rows
- insert into book(id, title, author, isbn, pages) values(2, 'Spring in Action', 'Craig Wall', '665789754', 446);
---> Now, lets update a row and add missing information or change some other data
- update book set isbn='9999999' where id = 2;
---> Delete a row from a table..
- delete from book where id = 2;
---> Now, lets create another table called publisher
- create table publisher(id int primary key, name varchar(30) not null);
---> Now, lets add a new column to book table that joins book and publisher
- alter table book add publisher_id int not null;
---> Now, lets add foreign key constraint to book table..
- alter table constraint foreign key () references (foreign_column);
- alter table book add constraint fk_publisher foreign key (publisher_id) references publisher(id);
---> Now, try to insert into book table, it does NOT allow, because the corresponding publisher id has to match.
- -- The following statement will fail
- insert into book(id,title,author,isbn,pages) values(2, 'Spring in Action', 'Venkat','1234',440);
---> So, we need to insert into publisher table first
- insert into publisher values(1, 'Orielly');
- insert into publisher values(2, 'Manning');
---> Now, try to insert a book with appropriate publisher..It will work, no surprise :)
- insert into book(id,title,author,isbn,pages,publisher_id) values(2, 'Spring in Action', 'Venkat','1234',440,2);
---> Now, using join (inner join), get all the book and publisher details in one shot..Lets try..
- select b.title, b.author, b.isbn, p.name publisher
- from book b, publisher p
- where b.id = p.id;
---> We didn't get all publishers, only matching ones..How to get all the publishers, even if they don't have any books published?
- Lets use left outer join to achieve this
-
- select b.title, b.author, b.isbn, p.name publisher
- from publisher p left join book b
- on p.id = b.id;
-
---> We can achieve the same results using right outer join also, just switch the order of tables in the from or where clause..
- There are two basic forms of outer joins. The left outer join and the right outer join.
- The only difference between them is the order of the tables they are relating.
- In other words, a left outer join can be turned into a right outer join simply by reversing the order of the tables in the FROM or WHERE clause.
- As such, the two types of outer join can be used interchangeably, and the decision about which one is used is based purely on convenience.
-
- select b.title, b.author, b.isbn, p.name publisher
- from book b right join publisher p
- on p.id = b.id;
-
---> Lets insert more books..
- I would like to retrieve all the books from the publisher who published "Java Message Service" book..We use self joins to achieve this..
-
- select b2.title, b2.author, b2.publisher_id
- from book b1, book b2
- where b1.title = 'Java Message Service'
- and b2.publisher_id = b1.publisher_id;
-
- --If you need publisher name
- select b2.title, b2.author, b2.publisher_id, p.name publisher
- from book b1, book b2, publisher p
- where b1.title = 'Java Message Service'
- and b2.publisher_id = b1.publisher_id
- and b1.publisher_id = p.publisher_id
- and b2.publisher_id = p.publisher_id;
-
---> The same result could be achieved withsub queries..
-
- select *
- from book b
- where b.publisher_id = (select publisher_id
- from book
- where title = 'Java Message Service'
- );
- --Its equivalent to the following query..Subquery gets executed first and inserts there..
- select *
- from book b
- where b.publisher_id = 1;
-
-
-
-REFERENCES:
---> http://www.brainbell.com/tutorials/MySQL/Using_Different_Join_Types.htm
-
-
-
-
-
\ No newline at end of file
diff --git a/JDBC/doc/My_SQL_Installation.doc b/JDBC/doc/My_SQL_Installation.doc
deleted file mode 100644
index 6553f41..0000000
Binary files a/JDBC/doc/My_SQL_Installation.doc and /dev/null differ
diff --git a/JDBC/lib/junit-4.8.2.jar b/JDBC/lib/junit-4.8.2.jar
deleted file mode 100644
index 5b4bb84..0000000
Binary files a/JDBC/lib/junit-4.8.2.jar and /dev/null differ
diff --git a/JDBC/lib/mysql-connector-java-5.1.12-bin.jar b/JDBC/lib/mysql-connector-java-5.1.12-bin.jar
deleted file mode 100644
index af5847e..0000000
Binary files a/JDBC/lib/mysql-connector-java-5.1.12-bin.jar and /dev/null differ
diff --git a/JDBC/lib/ojdbc6.jar b/JDBC/lib/ojdbc6.jar
deleted file mode 100644
index 01da074..0000000
Binary files a/JDBC/lib/ojdbc6.jar and /dev/null differ
diff --git a/JDBC/src/com/training/java/jdbc/basic/BasicJDBCClient.java b/JDBC/src/com/training/java/jdbc/basic/BasicJDBCClient.java
deleted file mode 100644
index fcf2fe9..0000000
--- a/JDBC/src/com/training/java/jdbc/basic/BasicJDBCClient.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package com.training.java.jdbc.basic;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-public class BasicJDBCClient {
- /**
- * @param args
- */
- public static void main(String[] args) {
- Connection con = null;
- Statement stmt = null;
- ResultSet rs = null;
-
- try
- {
- //You do NOT have to load driver explicitly in JDK 1.6
- Class.forName("com.mysql.jdbc.Driver");
-
- con = DriverManager.getConnection("jdbc:mysql://localhost/training", "root", "password");
- stmt = con.createStatement();
- rs = stmt.executeQuery("select * from book");
-
- String author = null;
- while(rs.next())
- {
- author = rs.getString("author");
- System.out.println("author == " + author);
- }
- }
- catch (ClassNotFoundException e)
- {
- e.printStackTrace();
- }
- catch (SQLException e)
- {
- e.printStackTrace();
- }
- finally
- {
- try
- {
- if(rs != null)
- {
- rs.close();
- }
-
- if(stmt != null)
- {
- stmt.close();
- }
- if(con != null && !con.isClosed())
- {
- con.close();
- }
- }
- catch (SQLException e)
- {
- e.printStackTrace();
- }
- }
- }
-}
diff --git a/JDBC/src/com/training/java/jdbc/basic/BasicJDBCTest.java b/JDBC/src/com/training/java/jdbc/basic/BasicJDBCTest.java
deleted file mode 100644
index 6ed9dbc..0000000
--- a/JDBC/src/com/training/java/jdbc/basic/BasicJDBCTest.java
+++ /dev/null
@@ -1,88 +0,0 @@
-package com.training.java.jdbc.basic;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-import org.junit.Test;
-
-public class BasicJDBCTest {
-
- @Test
- public void testSelectStudents() throws ClassNotFoundException {
- Connection connection = null;
- Statement statement = null;
- ResultSet resultSet = null;
-
- try {
- connection = getConnection();
- statement = connection.createStatement();
- resultSet = statement.executeQuery("select * from students");
- while (resultSet.next()) {
- String firstName = resultSet.getString("first_name");
- String lastName = resultSet.getString("last_name");
- String city = resultSet.getString("city");
-
- System.out.println("firstName = " + firstName);
- System.out.println("lastName = " + lastName);
- System.out.println("city = " + city);
- }
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try {
- if (resultSet != null) {
- resultSet.close();
- }
- closeResources(statement, connection);
- } catch (SQLException ex) {
- ex.printStackTrace();
- }
- }
- }
-
- @Test
- public void testInsert() throws ClassNotFoundException {
-
- Connection connection = null;
- Statement statement = null;
-
- try {
- connection = getConnection();
- statement = connection.createStatement();
-
- int rowsAffected = statement
- .executeUpdate("insert into students values('Sasi', 'RajKumar', '248-248-2488', 'sasi@gmail.com', 20, 'Troy', 6)");
- if (rowsAffected != 1) {
- throw new SQLException("Your record was not inserted");
- }
-
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- closeResources(statement, connection);
- }
- }
-
- private void closeResources(Statement statement, Connection connection) {
- try {
- if (statement != null) {
- statement.close();
- }
- if (connection != null) {
- connection.close();
- }
- } catch (SQLException ex) {
- ex.printStackTrace();
- }
- }
-
- private Connection getConnection() throws SQLException,
- ClassNotFoundException {
- Class.forName("com.mysql.jdbc.Driver");
- return DriverManager.getConnection("jdbc:mysql://localhost/training",
- "root", "password");
- }
-}
diff --git a/JDBC/src/com/training/java/jdbc/basic/two/JDBCDemo.java b/JDBC/src/com/training/java/jdbc/basic/two/JDBCDemo.java
deleted file mode 100644
index 56cb040..0000000
--- a/JDBC/src/com/training/java/jdbc/basic/two/JDBCDemo.java
+++ /dev/null
@@ -1,88 +0,0 @@
-package com.training.java.jdbc.basic.two;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-public class JDBCDemo {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
-
- Connection connection = null;
- Statement statement = null;
- ResultSet resultSet = null;
-
-
- try {
- Class.forName("oracle.jdbc.driver.OracleDriver");
-
- connection = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
- statement = connection.createStatement();
- resultSet = statement.executeQuery("select * from book");
-
- while(resultSet.next())
- {
- int bookId = resultSet.getInt("book_id");
- String title = resultSet.getString("title");
- String author = resultSet.getString("author");
- int numberPages = resultSet.getInt("number_of_pages");
- String isbn = resultSet.getString("isbn");
-
- System.out.println("bookId = " + bookId);
- System.out.println("title = " + title);
- System.out.println("author = " + author);
- System.out.println("numberPages = " + numberPages);
- System.out.println("isbn = " + isbn);
-
- System.out.println("***************************");
- }
-
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- }
- finally
- {
- closeResources(connection, statement, resultSet);
- }
- }
-
- private static void closeResources(Connection connection,
- Statement statement, ResultSet resultSet) {
- if(resultSet != null)
- {
- try {
- resultSet.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if(statement != null)
- {
- try {
- statement.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if(connection != null)
- {
- try {
- connection.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- }
-
-}
diff --git a/JDBC/src/com/training/java/jdbc/basic/two/package-info.java b/JDBC/src/com/training/java/jdbc/basic/two/package-info.java
deleted file mode 100644
index 8943431..0000000
--- a/JDBC/src/com/training/java/jdbc/basic/two/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.jdbc.basic.two;
\ No newline at end of file
diff --git a/JDBC/src/com/training/java/jdbc/dao/Book.java b/JDBC/src/com/training/java/jdbc/dao/Book.java
deleted file mode 100644
index 63b6ed0..0000000
--- a/JDBC/src/com/training/java/jdbc/dao/Book.java
+++ /dev/null
@@ -1,60 +0,0 @@
-package com.training.java.jdbc.dao;
-
-import java.io.Serializable;
-
-public class Book implements Serializable {
- private int id;
- private String title;
- private String author;
- private String isbn;
- private int pages;
- private int publisherId;
-
- public int getId() {
- return id;
- }
-
- public void setId(int id) {
- this.id = id;
- }
-
- public String getTitle() {
- return title;
- }
-
- public void setTitle(String title) {
- this.title = title;
- }
-
- public String getAuthor() {
- return author;
- }
-
- public void setAuthor(String author) {
- this.author = author;
- }
-
- public String getIsbn() {
- return isbn;
- }
-
- public void setIsbn(String isbn) {
- this.isbn = isbn;
- }
-
- public int getPages() {
- return pages;
- }
-
- public void setPages(int pages) {
- this.pages = pages;
- }
-
- public int getPublisherId() {
- return publisherId;
- }
-
- public void setPublisherId(int publisherId) {
- this.publisherId = publisherId;
- }
-}
diff --git a/JDBC/src/com/training/java/jdbc/dao/BookClient.java b/JDBC/src/com/training/java/jdbc/dao/BookClient.java
deleted file mode 100644
index 2160c26..0000000
--- a/JDBC/src/com/training/java/jdbc/dao/BookClient.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.training.java.jdbc.dao;
-
-import static org.junit.Assert.fail;
-
-import java.util.List;
-
-public class BookClient
-{
-
- /**
- * @param args
- */
- public static void main(String[] args)
- {
- BookDAO dao = new BookDAOJDBCImpl("jdbc:mysql://localhost/training", "root", "password");
-
- try
- {
- List books = dao.getAllBooks();
-
- for(Book eachBook : books)
- {
- System.out.println("Book id = " + eachBook.getId());
- System.out.println("Book id = " + eachBook.getId());
- System.out.println("Book id = " + eachBook.getId());
- System.out.println("Book id = " + eachBook.getId());
- System.out.println("Book id = " + eachBook.getId());
- System.out.println("Book id = " + eachBook.getId());
- System.out.println("Book id = " + eachBook.getId());
- }
- } catch (DAOException e)
- {
- e.printStackTrace();
- fail("Error occured while retrieving all books from database");
- }
-
-
- }
-
-}
diff --git a/JDBC/src/com/training/java/jdbc/dao/BookDAO.java b/JDBC/src/com/training/java/jdbc/dao/BookDAO.java
deleted file mode 100644
index 06b935f..0000000
--- a/JDBC/src/com/training/java/jdbc/dao/BookDAO.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.training.java.jdbc.dao;
-
-import java.util.List;
-
-public interface BookDAO {
-
- void create(Book aNewBook) throws DAOException;
- List getAllBooks() throws DAOException;
- Book findByPrimaryKey(int id) throws DAOException;
- void update(Book bookToUpdate) throws DAOException;
- void delete(int id) throws DAOException;
-}
diff --git a/JDBC/src/com/training/java/jdbc/dao/BookDAOJDBCImpl.java b/JDBC/src/com/training/java/jdbc/dao/BookDAOJDBCImpl.java
deleted file mode 100644
index def87d9..0000000
--- a/JDBC/src/com/training/java/jdbc/dao/BookDAOJDBCImpl.java
+++ /dev/null
@@ -1,296 +0,0 @@
-package com.training.java.jdbc.dao;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-import java.util.ArrayList;
-import java.util.List;
-
-public class BookDAOJDBCImpl implements BookDAO {
- String dburl;
- String dbusername;
- String dbpassword;
-
- public BookDAOJDBCImpl(String dburl, String dbusername, String dbpassword) {
- this.dburl = dburl;
- this.dbusername = dbusername;
- this.dbpassword = dbpassword;
- }
-
- public void create(Book bookToAdd) throws DAOException {
- Connection con = null;
- PreparedStatement stmt = null;
- try {
- con = getConnection();
- stmt = con
- .prepareStatement("insert into book(id,title,author,isbn,pages,publisher_id) values(?, ?, ?,?,?, ?);");
-
- stmt.setInt(1, bookToAdd.getId());
- stmt.setString(2, bookToAdd.getTitle());
- stmt.setString(3, bookToAdd.getAuthor());
- stmt.setString(4, bookToAdd.getIsbn());
- stmt.setInt(5, bookToAdd.getPages());
- stmt.setInt(6, bookToAdd.getPublisherId());
-
- int numberOfRowsAffected = stmt.executeUpdate();
-
- if (numberOfRowsAffected != 1) {
- throw new DAOException(
- "Error occured while creating new book..");
- }
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- throw new DAOException(e);
- } catch (SQLException e) {
- e.printStackTrace();
- throw new DAOException(e);
- } finally {
- if (stmt != null) {
- try {
- stmt.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if (con != null) {
- try {
- con.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- }
- }
-
- public List getAllBooks() throws DAOException {
- List books = new ArrayList();
-
- Connection con = null;
- Statement stmt = null;
- ResultSet rs = null;
- try {
- con = getConnection();
- stmt = con.createStatement();
- rs = stmt.executeQuery("select * from book");
-
- Book aBook = null;
- while (rs.next()) {
- // Create a Book object
- aBook = new Book();
-
- // Retrieve all the book details from database for each record
- int id = rs.getInt("id");
- String title = rs.getString("title");
- String author = rs.getString("author");
- String isbn = rs.getString("isbn");
- int pages = rs.getInt("pages");
- int publisherId = rs.getInt("publisher_id");
-
- // Populate all the details into Book object
- aBook.setId(id);
- aBook.setTitle(title);
- aBook.setAuthor(author);
- aBook.setIsbn(isbn);
- aBook.setPages(pages);
- aBook.setPublisherId(publisherId);
-
- // Now, add each book to books List
- books.add(aBook);
- }
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- throw new DAOException(e);
- } catch (SQLException e) {
- e.printStackTrace();
- throw new DAOException(e);
- } finally {
- if (rs != null) {
- try {
- rs.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if (stmt != null) {
- try {
- stmt.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if (con != null) {
- try {
- con.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- }
-
- return books;
- }
-
- public void update(Book bookToUpdate) throws DAOException {
- Connection con = null;
- PreparedStatement stmt = null;
- try {
- con = getConnection();
- stmt = con.prepareStatement("update book set title = ?,"
- + "author = ?," + "isbn = ?," + "pages = ?,"
- + "publisher_id = ? where id = ?");
-
- stmt.setString(1, bookToUpdate.getTitle());
- stmt.setString(2, bookToUpdate.getAuthor());
- stmt.setString(3, bookToUpdate.getIsbn());
- stmt.setInt(4, bookToUpdate.getPages());
- stmt.setInt(5, bookToUpdate.getPublisherId());
- stmt.setInt(6, bookToUpdate.getId());
-
- int numberOfRowsAffected = stmt.executeUpdate();
-
- if (numberOfRowsAffected != 1) {
- throw new DAOException("Error occured while updating book..");
- }
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- throw new DAOException(e);
- } catch (SQLException e) {
- e.printStackTrace();
- throw new DAOException(e);
- } finally {
- if (stmt != null) {
- try {
- stmt.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if (con != null) {
- try {
- con.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- }
- }
-
- public Book findByPrimaryKey(int id) throws DAOException {
- Connection con = null;
- PreparedStatement stmt = null;
- ResultSet rs = null;
- try {
- con = getConnection();
- stmt = con.prepareStatement("select * from book where id = ?");
-
- stmt.setInt(1, id);
- rs = stmt.executeQuery();
-
- // Create a Book object
- Book aBook = null;
-
- while (rs.next()) {
- aBook = new Book();
- // Retrieve all the book details from database for each record
- String title = rs.getString("title");
- String author = rs.getString("author");
- String isbn = rs.getString("isbn");
- int pages = rs.getInt("pages");
- int publisherId = rs.getInt("publisher_id");
-
- // Populate all the details into Book object
- aBook.setId(id);
- aBook.setTitle(title);
- aBook.setAuthor(author);
- aBook.setIsbn(isbn);
- aBook.setPages(pages);
- aBook.setPublisherId(publisherId);
- }
-
- return aBook;
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- throw new DAOException(e);
- } catch (SQLException e) {
- e.printStackTrace();
- throw new DAOException(e);
- } finally {
- if (rs != null) {
- try {
- rs.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if (stmt != null) {
- try {
- stmt.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if (con != null) {
- try {
- con.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- }
- }
-
- public void delete(int id) throws DAOException {
- Connection con = null;
- PreparedStatement stmt = null;
- try {
- con = getConnection();
- stmt = con.prepareStatement("delete from book where id = ?");
-
- stmt.setInt(1, id);
- int numberOfRowsAffected = stmt.executeUpdate();
-
- if (numberOfRowsAffected != 1) {
- throw new DAOException("Error occured while updating book..");
- }
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- throw new DAOException(e);
- } catch (SQLException e) {
- e.printStackTrace();
- throw new DAOException(e);
- } finally {
- if (stmt != null) {
- try {
- stmt.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if (con != null) {
- try {
- con.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- }
- }
-
- private Connection getConnection() throws ClassNotFoundException,
- SQLException {
- Class.forName("com.mysql.jdbc.Driver");
- Connection con = DriverManager.getConnection(dburl, dbusername,
- dbpassword);
- return con;
- }
-}
diff --git a/JDBC/src/com/training/java/jdbc/dao/BookDAOTest.java b/JDBC/src/com/training/java/jdbc/dao/BookDAOTest.java
deleted file mode 100644
index c1ec354..0000000
--- a/JDBC/src/com/training/java/jdbc/dao/BookDAOTest.java
+++ /dev/null
@@ -1,101 +0,0 @@
-package com.training.java.jdbc.dao;
-
-import static org.junit.Assert.fail;
-
-import java.util.Iterator;
-import java.util.List;
-
-import org.junit.Test;
-
-public class BookDAOTest {
-
- @Test
- public void createShouldInsertABookInDB()
- {
- BookDAO dao = new BookDAOJDBCImpl("jdbc:mysql://localhost/training", "root", "password");
-
- //Create a book
- Book newBook = new Book();
- newBook.setId(10);
- newBook.setAuthor("Subash");
- newBook.setIsbn("1234567");
- newBook.setPages(344);
- newBook.setPublisherId(10);
- newBook.setTitle("Hyderabad Blues");
-
- //Insert this new book in database
- try {
- dao.create(newBook);
- } catch (DAOException e) {
- e.printStackTrace();
- fail("Error occured while creating new book");
- }
- }
-
- @Test
- public void getAllBooksMethodsMustReturnAtLeastOneBook()
- {
- BookDAO dao = new BookDAOJDBCImpl("jdbc:mysql://localhost/training", "root", "password");
-
- try
- {
- List books = dao.getAllBooks();
- Iterator ite = books.iterator();
- while(ite.hasNext())
- {
- Book eachBook = ite.next();
- System.out.println("Book id = " + eachBook.getId());
- System.out.println("Book id = " + eachBook.getId());
- System.out.println("Book id = " + eachBook.getId());
- System.out.println("Book id = " + eachBook.getId());
- System.out.println("Book id = " + eachBook.getId());
- System.out.println("Book id = " + eachBook.getId());
- System.out.println("Book id = " + eachBook.getId());
- }
-
-
-
- } catch (DAOException e)
- {
- e.printStackTrace();
- fail("Error occured while retrieving all books from database");
- }
- }
-
- @Test
- public void updateMethodShouldUpdateBookInDB()
- {
- BookDAO dao = new BookDAOJDBCImpl("jdbc:mysql://localhost/training", "root", "password");
-
- try
- {
- Book bookFromDB = dao.findByPrimaryKey(10);
-
- //Lets change the title now
- bookFromDB.setTitle("Detroit Blues");
-
- //Now, lets update this back to database
- dao.update(bookFromDB);
-
- } catch (DAOException e1)
- {
- e1.printStackTrace();
- fail("Error occured while updating book in database");
- }
- }
-
- @Test
- public void deleteMethodShouldDeleteBookFromDB()
- {
- BookDAO dao = new BookDAOJDBCImpl("jdbc:mysql://localhost/training", "root", "password");
-
- try
- {
- dao.delete(8);
- } catch (DAOException e1)
- {
- e1.printStackTrace();
- fail("Error occured while updating book in database");
- }
- }
-}
diff --git a/JDBC/src/com/training/java/jdbc/dao/DAOException.java b/JDBC/src/com/training/java/jdbc/dao/DAOException.java
deleted file mode 100644
index c2db127..0000000
--- a/JDBC/src/com/training/java/jdbc/dao/DAOException.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.training.java.jdbc.dao;
-
-public class DAOException extends Exception {
-
- public DAOException(Exception cause)
- {
- super(cause);
- }
-
- public DAOException(String message)
- {
- super(message);
- }
-
-}
diff --git a/JDBC/src/com/training/java/jdbc/dao/two/Book.java b/JDBC/src/com/training/java/jdbc/dao/two/Book.java
deleted file mode 100644
index 9052b7e..0000000
--- a/JDBC/src/com/training/java/jdbc/dao/two/Book.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package com.training.java.jdbc.dao.two;
-
-import java.io.Serializable;
-import java.util.Date;
-
-public class Book implements Serializable {
- private int id;
- private String title;
- private String author;
- private String isbn;
- private int pages;
- private Date publisherDate;
-
- public Book(int id, String title, String author, String isbn, int pages,
- Date publisherDate) {
- super();
- this.id = id;
- this.title = title;
- this.author = author;
- this.isbn = isbn;
- this.pages = pages;
- this.publisherDate = publisherDate;
- }
-
- int getId() {
- return id;
- }
-
- String getTitle() {
- return title;
- }
-
- String getAuthor() {
- return author;
- }
-
- String getIsbn() {
- return isbn;
- }
-
- int getPages() {
- return pages;
- }
-
- Date getPublisherDate() {
- return publisherDate;
- }
-
- void setAuthor(String author) {
- this.author = author;
- }
-
- void setPages(int pages) {
- this.pages = pages;
- }
-
-}
diff --git a/JDBC/src/com/training/java/jdbc/dao/two/BookDAO.java b/JDBC/src/com/training/java/jdbc/dao/two/BookDAO.java
deleted file mode 100644
index 970b7db..0000000
--- a/JDBC/src/com/training/java/jdbc/dao/two/BookDAO.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.training.java.jdbc.dao.two;
-
-import java.util.List;
-
-public interface BookDAO {
-
- List getAllBooks() throws DAOException;
- void addBook(Book book) throws DAOException;
- void updateBook(Book book) throws DAOException;
- void deleteBook(int bookId) throws DAOException;
- Book findByPrimaryKey(int bookId) throws DAOException;
-
-}
diff --git a/JDBC/src/com/training/java/jdbc/dao/two/BookDAOJDBCImpl.java b/JDBC/src/com/training/java/jdbc/dao/two/BookDAOJDBCImpl.java
deleted file mode 100644
index 7619584..0000000
--- a/JDBC/src/com/training/java/jdbc/dao/two/BookDAOJDBCImpl.java
+++ /dev/null
@@ -1,269 +0,0 @@
-package com.training.java.jdbc.dao.two;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-
-public class BookDAOJDBCImpl implements BookDAO {
-
- private String jdbcURL;
- private String username;
- private String password;
-
- public BookDAOJDBCImpl(String jdbcURL, String username, String password)
- {
- this.jdbcURL = jdbcURL;
- this.username = username;
- this.password = password;
- }
-
-
- @Override
- public List getAllBooks() throws DAOException {
-
- List books = new ArrayList();
-
- Connection connection = null;
- Statement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- statement = connection.createStatement();
- resultSet = statement.executeQuery("select * from book");
-
- while(resultSet.next())
- {
- int id = resultSet.getInt("book_id");
- String title = resultSet.getString("title");
- String author = resultSet.getString("author");
- int pages = resultSet.getInt("number_of_pages");
- String isbn = resultSet.getString("isbn");
- Date publisherDate = resultSet.getDate("pub_date");
-
- Book book = new Book(id, title, author, isbn, pages, publisherDate);
-
- books.add(book);
- }
- }
- catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
-
- return books;
- }
-
- @Override
- public void addBook(Book book) throws DAOException {
-
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- int id = book.getId();
- String author = book.getAuthor();
- String isbn = book.getIsbn();
- String title = book.getTitle();
- int pages = book.getPages();
- java.sql.Date publisherDate = new java.sql.Date(book.getPublisherDate().getTime());
-
- statement = connection.prepareStatement("insert into book values(?, ?, ?, ?, ?, ?, ?)");
-
- statement.setInt(1, id);
- statement.setString(2, title);
- statement.setString(3, author);
- statement.setInt(4, pages);
- statement.setString(5, isbn);
- statement.setDate(6, publisherDate);
- statement.setInt(7, 1);
-
- int numberOfRowsInserted = statement.executeUpdate();
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- @Override
- public void updateBook(Book book) throws DAOException {
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- int id = book.getId();
- String author = book.getAuthor();
- String isbn = book.getIsbn();
- String title = book.getTitle();
- int pages = book.getPages();
- java.sql.Date publisherDate = new java.sql.Date(book.getPublisherDate().getTime());
-
- statement = connection.prepareStatement("update book set title = ?, author = ?, number_of_pages = ?, isbn = ?, pub_date = ? where book_id = ?");
-
- statement.setString(1, title);
- statement.setString(2, author);
- statement.setInt(3, pages);
- statement.setString(4, isbn);
- statement.setDate(5, publisherDate);
-
- statement.setInt(6, id);
-
- int numberOfRowsUpdate = statement.executeUpdate();
-
- if(numberOfRowsUpdate != 1)
- {
- throw new DAOException("Update book failed!!");
- }
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- @Override
- public void deleteBook(int bookId) throws DAOException {
-
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
-
- statement = connection.prepareStatement("delete book where book_id = ?");
- statement.setInt(1, bookId);
-
- int numberOfRowsDeleted = statement.executeUpdate();
-
- if(numberOfRowsDeleted != 1)
- {
- throw new DAOException("Delete book failed!!");
- }
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- @Override
- public Book findByPrimaryKey(int bookId) throws DAOException {
-
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- statement = connection.prepareStatement("select * from book where book_id = ?");
-
- statement.setInt(1, bookId);
-
- resultSet = statement.executeQuery();
-
- if(resultSet.next())
- {
- int id = resultSet.getInt("book_id");
- String title = resultSet.getString("title");
- String author = resultSet.getString("author");
- int pages = resultSet.getInt("number_of_pages");
- String isbn = resultSet.getString("isbn");
- Date publisherDate = resultSet.getDate("pub_date");
-
- return new Book(id, title, author, isbn, pages, publisherDate);
- }
-
- throw new DAOException("Invalid book id provided!!");
- }
- catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- private Connection getConnection() throws DAOException
- {
- try {
- Class.forName("oracle.jdbc.driver.OracleDriver");
- return DriverManager.getConnection(jdbcURL, username, password);
- } catch (ClassNotFoundException ex) {
- throw new DAOException(ex);
- }
- catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
-
- }
-
- private void closeResources(ResultSet resultSet, Statement statement, Connection connection)
- {
- if(resultSet != null)
- {
- try {
- resultSet.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if(statement != null)
- {
- try {
- statement.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if(connection != null)
- {
- try {
- connection.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- }
-
-}
diff --git a/JDBC/src/com/training/java/jdbc/dao/two/BookDAOJDBCImplTest.java b/JDBC/src/com/training/java/jdbc/dao/two/BookDAOJDBCImplTest.java
deleted file mode 100644
index 5b6302c..0000000
--- a/JDBC/src/com/training/java/jdbc/dao/two/BookDAOJDBCImplTest.java
+++ /dev/null
@@ -1,95 +0,0 @@
-package com.training.java.jdbc.dao.two;
-
-import java.util.Date;
-import java.util.List;
-
-import junit.framework.TestCase;
-
-import org.junit.Assert;
-import org.junit.Test;
-
-public class BookDAOJDBCImplTest {
-
- @Test
- public void testGetAllBooks() throws Exception {
-
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- List books = dao.getAllBooks();
-
- Assert.assertNotNull(books);
- Assert.assertFalse(books.isEmpty());
-
- for(Book book : books)
- {
- System.out.println("Author = " + book.getAuthor());
- System.out.println("Title = " + book.getTitle());
- System.out.println("*************************");
- }
- }
-
- @Test
- public void testAddBook() throws DAOException {
-
- Book book = new Book(1, "Pragmattic Programmer", "Dave Thomas", "9876543", 230, new Date());
-
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- dao.addBook(book);
-
- //verify that this book is added
- List books = dao.getAllBooks();
-
- Assert.assertNotNull(books);
- Assert.assertFalse(books.isEmpty());
- }
-
- @Test
- public void testFindByPrimaryKey() throws DAOException
- {
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- Book book = dao.findByPrimaryKey(1);
-
- Assert.assertNotNull(book);
- Assert.assertEquals(1, book.getId());
- Assert.assertEquals("Dave Thomas", book.getAuthor());
- }
-
- @Test
- public void testUpdate() throws DAOException
- {
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- Book book = dao.findByPrimaryKey(2);
-
- book.setAuthor("Venkat");
-
- dao.updateBook(book);
-
- Book updatedBook = dao.findByPrimaryKey(2);
-
- Assert.assertNotNull(updatedBook);
- Assert.assertEquals("Venkat", updatedBook.getAuthor());
- }
-
- @Test
- public void testDelete()
- {
- BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
- try {
- dao.deleteBook(1);
- } catch (DAOException e) {
- TestCase.fail("Got DAOException while deleting");
- }
-
- try {
- dao.findByPrimaryKey(1);
- TestCase.fail("DAOException is expected here, but not thrown..So, delete must not be successful!!");
- } catch (DAOException e) {
- //expected
- }
- }
-
-}
diff --git a/JDBC/src/com/training/java/jdbc/dao/two/DAOException.java b/JDBC/src/com/training/java/jdbc/dao/two/DAOException.java
deleted file mode 100644
index 7e2de2e..0000000
--- a/JDBC/src/com/training/java/jdbc/dao/two/DAOException.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.training.java.jdbc.dao.two;
-
-
-public class DAOException extends Exception {
-
- public DAOException(String errorMessage)
- {
- super(errorMessage);
- }
-
- public DAOException(Throwable cause)
- {
- super(cause);
- }
-
- public DAOException(String errorMessage, Throwable cause) {
- super(errorMessage, cause);
-
- }
-}
diff --git a/JDBC/src/com/training/java/jdbc/dao/two/package-info.java b/JDBC/src/com/training/java/jdbc/dao/two/package-info.java
deleted file mode 100644
index ee89873..0000000
--- a/JDBC/src/com/training/java/jdbc/dao/two/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.jdbc.dao.two;
\ No newline at end of file
diff --git a/JDBC/src/com/training/java/jdbc/movie/Movie.java b/JDBC/src/com/training/java/jdbc/movie/Movie.java
deleted file mode 100644
index ff071ce..0000000
--- a/JDBC/src/com/training/java/jdbc/movie/Movie.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.training.java.jdbc.movie;
-
-import java.sql.Date;
-
-public class Movie
-{
- private int id;
- private String name;
- private String rating;
- private Date releaseDate;
- private String genre;
-
- public int getId()
- {
- return id;
- }
-
- public void setId(int id)
- {
- this.id = id;
- }
-
- public String getName()
- {
- return name;
- }
-
- public void setName(String name)
- {
- this.name = name;
- }
-
- public String getRating()
- {
- return rating;
- }
-
- public void setRating(String rating)
- {
- this.rating = rating;
- }
-
- public Date getReleaseDate()
- {
- return releaseDate;
- }
-
- public void setReleaseDate(Date releaseDate)
- {
- this.releaseDate = releaseDate;
- }
-
- public String getGenre()
- {
- return genre;
- }
-
- public void setGenre(String genre)
- {
- this.genre = genre;
- }
-}
diff --git a/JDBC/src/com/training/java/jdbc/movie/MovieDAO.java b/JDBC/src/com/training/java/jdbc/movie/MovieDAO.java
deleted file mode 100644
index 3be40b0..0000000
--- a/JDBC/src/com/training/java/jdbc/movie/MovieDAO.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.training.java.jdbc.movie;
-
-import java.util.List;
-
-public interface MovieDAO
-{
- void create(Movie movie);
- List getMovies();
-}
diff --git a/JDBC/src/com/training/java/jdbc/movie/MovieDAODemo.java b/JDBC/src/com/training/java/jdbc/movie/MovieDAODemo.java
deleted file mode 100644
index 39b251e..0000000
--- a/JDBC/src/com/training/java/jdbc/movie/MovieDAODemo.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.training.java.jdbc.movie;
-
-import java.util.List;
-
-public class MovieDAODemo
-{
- /**
- * @param args
- */
- public static void main(String[] args)
- {
- /*
- MovieDAO dao = new MovieDAOJDBCImpl("jdbc:mysql://localhost/training", "root", "password");
-
- Movie aMovie = new Movie();
- aMovie.setId(2);
- aMovie.setName("Speed2..CC");
- aMovie.setRating("PG-13");
- aMovie.setGenre("Thriller");
- aMovie.setReleaseDate(new Date(System.currentTimeMillis()));
-
- dao.create(aMovie);
- */
-
- MovieDAO dao = new MovieDAOJDBCImpl("jdbc:mysql://localhost/training", "root", "password");
-
- List movies = dao.getMovies();
- for(Movie aMovie : movies)
- {
- System.out.println("Name = " + aMovie.getName());
- System.out.println("Rating = " + aMovie.getRating());
- System.out.println("Genre = " + aMovie.getGenre());
- System.out.println("Release date = " + aMovie.getReleaseDate());
- System.out.println("id = " + aMovie.getId());
- }
- }
-
-}
diff --git a/JDBC/src/com/training/java/jdbc/movie/MovieDAOException.java b/JDBC/src/com/training/java/jdbc/movie/MovieDAOException.java
deleted file mode 100644
index 16cb73c..0000000
--- a/JDBC/src/com/training/java/jdbc/movie/MovieDAOException.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.training.java.jdbc.movie;
-
-public class MovieDAOException extends RuntimeException
-{
- MovieDAOException(String errorMessage)
- {
- super(errorMessage);
- }
-
-}
diff --git a/JDBC/src/com/training/java/jdbc/movie/MovieDAOJDBCImpl.java b/JDBC/src/com/training/java/jdbc/movie/MovieDAOJDBCImpl.java
deleted file mode 100644
index b4fbc7e..0000000
--- a/JDBC/src/com/training/java/jdbc/movie/MovieDAOJDBCImpl.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package com.training.java.jdbc.movie;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.List;
-
-public class MovieDAOJDBCImpl implements MovieDAO
-{
- private String dburl;
- private String dbuser;
- private String dbPassword;
-
- public MovieDAOJDBCImpl(String dburl, String dbuser, String dbPassWord)
- {
- this.dburl = dburl;
- this.dbuser = dbuser;
- this.dbPassword = dbPassWord;
- }
-
- @Override
- public void create(Movie movie)
- {
- try
- {
- Connection con = DriverManager.getConnection(dburl, dbuser,
- dbPassword);
- PreparedStatement stmt = con
- .prepareStatement("insert into movie(id, genre, rating, release_date, name) values(?,?,?,?,?)");
-
- stmt.setInt(1, movie.getId());
- stmt.setString(2, movie.getGenre());
- stmt.setString(3, movie.getRating());
- stmt.setDate(4, movie.getReleaseDate());
- stmt.setString(5, movie.getName());
-
- stmt.executeUpdate();
-
- } catch (SQLException e)
- {
- throw new MovieDAOException(e.getMessage());
- }
- }
-
- @Override
- public List getMovies()
- {
- List movies = new ArrayList();
-
- try
- {
- Connection con = DriverManager.getConnection(dburl, dbuser,
- dbPassword);
- PreparedStatement stmt = con
- .prepareStatement("select * from movie");
-
- ResultSet rs = stmt.executeQuery();
-
- while(rs.next())
- {
- Movie aMovie = new Movie();
-
- aMovie.setId(rs.getInt("id"));
- aMovie.setName(rs.getString("name"));
- aMovie.setRating(rs.getString("rating"));
- aMovie.setReleaseDate(rs.getDate("release_date"));
- aMovie.setGenre(rs.getString("genre"));
-
- movies.add(aMovie);
- }
- } catch (SQLException e)
- {
- e.printStackTrace();
- }
-
- return movies;
- }
-}
diff --git a/JDBC/src/com/training/java/jdbc/student/DAOException.java b/JDBC/src/com/training/java/jdbc/student/DAOException.java
deleted file mode 100644
index 1cabbe7..0000000
--- a/JDBC/src/com/training/java/jdbc/student/DAOException.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.training.java.jdbc.student;
-
-public class DAOException extends RuntimeException {
-
- public DAOException(Throwable ex)
- {
- super(ex);
- }
-
- public DAOException(String errorMessage, Throwable ex)
- {
- super(errorMessage, ex);
- }
-}
diff --git a/JDBC/src/com/training/java/jdbc/student/Student.java b/JDBC/src/com/training/java/jdbc/student/Student.java
deleted file mode 100644
index 374b5ec..0000000
--- a/JDBC/src/com/training/java/jdbc/student/Student.java
+++ /dev/null
@@ -1,83 +0,0 @@
-package com.training.java.jdbc.student;
-
-public class Student {
-
- private int id;
- private String firstName;
- private String lastName;
- private String phoneNumber;
- private String email;
- private int age;
- private String city;
-
- public int getId() {
- return id;
- }
-
- public void setId(int id) {
- this.id = id;
- }
-
- public String getFirstName() {
- return firstName;
- }
-
- public void setFirstName(String firstName) {
- this.firstName = firstName;
- }
-
- public String getLastName() {
- return lastName;
- }
-
- public void setLastName(String lastName) {
- this.lastName = lastName;
- }
-
- public String getPhoneNumber() {
- return phoneNumber;
- }
-
- public void setPhoneNumber(String phoneNumber) {
- this.phoneNumber = phoneNumber;
- }
-
- public String getEmail() {
- return email;
- }
-
- public void setEmail(String email) {
- this.email = email;
- }
-
- public int getAge() {
- return age;
- }
-
- public void setAge(int age) {
- this.age = age;
- }
-
- public String getCity() {
- return city;
- }
-
- public void setCity(String city) {
- this.city = city;
- }
-
- @Override
- public String toString() {
-
- StringBuilder str = new StringBuilder();
- str.append("id = " + id);
- str.append(" city = " + city);
- str.append(" age = " + age);
- str.append(" email = " + email);
- str.append(" firstName = " + firstName);
- str.append(" lastName = " + lastName);
-
- return str.toString();
- }
-
-}
diff --git a/JDBC/src/com/training/java/jdbc/student/StudentDAO.java b/JDBC/src/com/training/java/jdbc/student/StudentDAO.java
deleted file mode 100644
index ead1c85..0000000
--- a/JDBC/src/com/training/java/jdbc/student/StudentDAO.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.training.java.jdbc.student;
-
-import java.util.List;
-
-public interface StudentDAO {
-
- List getAllStudents();
- void create(Student student);
-
-}
diff --git a/JDBC/src/com/training/java/jdbc/student/StudentDAOJDBCImpl.java b/JDBC/src/com/training/java/jdbc/student/StudentDAOJDBCImpl.java
deleted file mode 100644
index 2ced06c..0000000
--- a/JDBC/src/com/training/java/jdbc/student/StudentDAOJDBCImpl.java
+++ /dev/null
@@ -1,119 +0,0 @@
-package com.training.java.jdbc.student;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-import java.util.ArrayList;
-import java.util.List;
-
-
-public class StudentDAOJDBCImpl implements StudentDAO {
-
- @Override
- public List getAllStudents() {
-
- Connection connection = null;
- Statement statement = null;
- ResultSet resultSet = null;
-
- try {
- connection = getConnection();
- statement = connection.createStatement();
- resultSet = statement.executeQuery("select * from students");
-
- List students = new ArrayList();
-
- while (resultSet.next()) {
- String firstName = resultSet.getString("first_name");
- String lastName = resultSet.getString("last_name");
- String city = resultSet.getString("city");
- int id = resultSet.getInt("id");
- int age = resultSet.getInt("age");
- String phoneNumber = resultSet.getString("phone_number");
- String email = resultSet.getString("email");
-
- Student student = new Student();
- student.setAge(age);
- student.setCity(city);
- student.setEmail(email);
- student.setFirstName(firstName);
- student.setId(id);
- student.setLastName(lastName);
- student.setPhoneNumber(phoneNumber);
-
- students.add(student);
- }
-
- return students;
- } catch (SQLException e) {
- e.printStackTrace();
- throw new DAOException(e);
- } finally {
- try {
- if (resultSet != null) {
- resultSet.close();
- }
- closeResources(statement, connection);
- } catch (SQLException ex) {
- ex.printStackTrace();
- }
- }
- }
-
- @Override
- public void create(Student student) {
-
- Connection connection = null;
- PreparedStatement statement = null;
-
- try {
- connection = getConnection();
-
- statement = connection.prepareStatement("insert into students values(?, ?, ?, ?, ?, ?, ?)");
-
- statement.setString(1, student.getFirstName());
- statement.setString(2, student.getLastName());
- statement.setString(3, student.getPhoneNumber());
- statement.setString(4, student.getEmail());
- statement.setInt(5, student.getAge());
- statement.setString(6, student.getCity());
- statement.setInt(7, student.getId());
-
- statement.execute();
- } catch (SQLException ex) {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(statement, connection);
- }
- }
-
- private void closeResources(Statement statement, Connection connection) {
- try {
- if (statement != null) {
- statement.close();
- }
- if (connection != null) {
- connection.close();
- }
- } catch (SQLException ex) {
- ex.printStackTrace();
- }
- }
-
- private Connection getConnection() throws SQLException{
- try {
- Class.forName("com.mysql.jdbc.Driver");
- } catch (ClassNotFoundException ex) {
- throw new DAOException(ex);
- }
- return DriverManager.getConnection("jdbc:mysql://localhost/training",
- "root", "password");
- }
-
-}
diff --git a/JDBC/src/com/training/java/jdbc/student/StudentDAOJDBCImplTest.java b/JDBC/src/com/training/java/jdbc/student/StudentDAOJDBCImplTest.java
deleted file mode 100644
index c6fa3d1..0000000
--- a/JDBC/src/com/training/java/jdbc/student/StudentDAOJDBCImplTest.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package com.training.java.jdbc.student;
-
-import java.util.List;
-
-import org.junit.Test;
-
-public class StudentDAOJDBCImplTest {
-
- @Test
- public void testGetAllStudents() {
-
- StudentDAO dao = new StudentDAOJDBCImpl();
- List students = dao.getAllStudents();
-
- for(Student current : students)
- {
- System.out.println(current);
- }
- }
-
- @Test
- public void testCreateStudent(){
- StudentDAO dao = new StudentDAOJDBCImpl();
-
- Student student = new Student();
- student.setAge(20);
- student.setCity("Sterling Heights");
- student.setEmail("priya@gmail.com");
- student.setFirstName("Priya");
- student.setId(7);
- student.setLastName("Patel");
- student.setPhoneNumber("248-238-9874");
-
- dao.create(student);
-
- //assert that your student is created
-
- //delete the student that you just created
- }
-
-}
diff --git a/JDBCFeb2015/.classpath b/JDBCFeb2015/.classpath
deleted file mode 100644
index d0ff9e0..0000000
--- a/JDBCFeb2015/.classpath
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/JDBCFeb2015/.project b/JDBCFeb2015/.project
deleted file mode 100644
index aee4c86..0000000
--- a/JDBCFeb2015/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- JDBCFeb2015
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
-
-
diff --git a/JDBCFeb2015/.settings/org.eclipse.jdt.core.prefs b/JDBCFeb2015/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 838bd9d..0000000
--- a/JDBCFeb2015/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,11 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/JDBCFeb2015/lib/hamcrest-core-1.3.jar b/JDBCFeb2015/lib/hamcrest-core-1.3.jar
deleted file mode 100644
index 9d5fe16..0000000
Binary files a/JDBCFeb2015/lib/hamcrest-core-1.3.jar and /dev/null differ
diff --git a/JDBCFeb2015/lib/junit-4.12.jar b/JDBCFeb2015/lib/junit-4.12.jar
deleted file mode 100644
index 3a7fc26..0000000
Binary files a/JDBCFeb2015/lib/junit-4.12.jar and /dev/null differ
diff --git a/JDBCFeb2015/lib/ojdbc6.jar b/JDBCFeb2015/lib/ojdbc6.jar
deleted file mode 100644
index 767eba7..0000000
Binary files a/JDBCFeb2015/lib/ojdbc6.jar and /dev/null differ
diff --git a/JDBCFeb2015/src/com/javavenkat/jdbc/JDBCDemo.java b/JDBCFeb2015/src/com/javavenkat/jdbc/JDBCDemo.java
deleted file mode 100644
index 404d089..0000000
--- a/JDBCFeb2015/src/com/javavenkat/jdbc/JDBCDemo.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package com.javavenkat.jdbc;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-public class JDBCDemo {
-
- public static void main(String[] args) {
-
- Connection con = null;
- Statement statement = null;
- ResultSet rs = null;
-
- try
- {
- con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "oms", "oms");
- statement = con.createStatement();
-
- rs = statement.executeQuery("select * from customer");
-
- while(rs.next())
- {
- int custId = rs.getInt("customer_id");
- String firstName = rs.getString("first_name");
- String lastName = rs.getString("last_name");
- String address = rs.getString("address");
- String city = rs.getString("city");
- String state = rs.getString("state");
- String zip = rs.getString("zip");
-
- System.out.println("First name = " + firstName);
- System.out.println("Address = " + address);
- System.out.println("Zip = " + zip);
- }
- } catch(SQLException ex) {
- ex.printStackTrace();
- } finally {
- try
- {
- rs.close();
- statement.close();
- con.close();
- } catch (SQLException ex){
-
- }
- }
-
- //establish the connection
- //get handle to Statement
- //execute the SQL statement/query
-
-
- }
-
-}
diff --git a/JDBCFeb2015/src/com/javavenkat/jdbc/JDBCDemoDelete.java b/JDBCFeb2015/src/com/javavenkat/jdbc/JDBCDemoDelete.java
deleted file mode 100644
index d89472a..0000000
--- a/JDBCFeb2015/src/com/javavenkat/jdbc/JDBCDemoDelete.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package com.javavenkat.jdbc;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-public class JDBCDemoDelete {
-
- public static void main(String[] args) {
-
- Connection con = null;
- Statement statement = null;
-
- try
- {
- con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "oms", "oms");
- statement = con.createStatement();
-
- int rowsDeleted = statement.executeUpdate("delete from customer where customer_id = 4");
-
- System.out.println("rowsDeleted = " + rowsDeleted);
- } catch(SQLException ex) {
- ex.printStackTrace();
- } finally {
- try
- {
- statement.close();
- con.close();
- } catch (SQLException ex){
-
- }
- }
- }
-
-}
diff --git a/JDBCFeb2015/src/com/javavenkat/jdbc/JDBCInsertDemo.java b/JDBCFeb2015/src/com/javavenkat/jdbc/JDBCInsertDemo.java
deleted file mode 100644
index ea4d3bb..0000000
--- a/JDBCFeb2015/src/com/javavenkat/jdbc/JDBCInsertDemo.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package com.javavenkat.jdbc;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-public class JDBCInsertDemo {
-
- public static void main(String[] args) {
-
- Connection con = null;
- Statement statement = null;
-
- try
- {
- con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "oms", "oms");
- statement = con.createStatement();
-
- StringBuilder sql = new StringBuilder();
-
- sql.append("insert into customer values (");
- sql.append("4,");
- sql.append("'Shovan',");
- sql.append("'SL',");
- sql.append("'321 Shovan Dr',");
- sql.append("'NYC',");
- sql.append("'NY',");
- sql.append("'88888')");
-
- System.out.println(sql.toString());
-
- int rowsInserted = statement.executeUpdate(sql.toString());
-
- System.out.println("rowsInserted = " + rowsInserted);
- } catch(SQLException ex) {
- ex.printStackTrace();
- } finally {
- try
- {
- statement.close();
- con.close();
- } catch (SQLException ex){
-
- }
- }
- }
-}
diff --git a/JDBCFeb2015/src/com/javavenkat/jdbc/JDBCUpdateDemo.java b/JDBCFeb2015/src/com/javavenkat/jdbc/JDBCUpdateDemo.java
deleted file mode 100644
index 9f80749..0000000
--- a/JDBCFeb2015/src/com/javavenkat/jdbc/JDBCUpdateDemo.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.javavenkat.jdbc;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-public class JDBCUpdateDemo {
-
- public static void main(String[] args) {
-
- Connection con = null;
- Statement statement = null;
-
- try
- {
- con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "oms", "oms");
- statement = con.createStatement();
-
- int rowsUpdated = statement.executeUpdate("update customer set first_name = 'Show' where customer_id = 4");
-
- System.out.println("rowsUpdated = " + rowsUpdated);
- } catch(SQLException ex) {
- ex.printStackTrace();
- } finally {
- try
- {
- statement.close();
- con.close();
- } catch (SQLException ex){
-
- }
- }
-
-
- }
-
-}
diff --git a/JDBCFeb2015/src/com/javavenkat/jdbc/dao/BaseDAO.java b/JDBCFeb2015/src/com/javavenkat/jdbc/dao/BaseDAO.java
deleted file mode 100644
index 7a7dc55..0000000
--- a/JDBCFeb2015/src/com/javavenkat/jdbc/dao/BaseDAO.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package com.javavenkat.jdbc.dao;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-public class BaseDAO {
-
- protected Connection getConnection() throws SQLException{
- return DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "oms", "oms");
- }
-
- protected void closeResources(ResultSet rs, Statement statement,
- Connection con) {
- try {
- if (rs != null) {
- rs.close();
- }
- if (statement != null) {
- statement.close();
- }
-
- if (con != null) {
- con.close();
- }
- } catch (SQLException ex) {
- //Nothing to be done, ignore it.
- }
- }
-
-}
diff --git a/JDBCFeb2015/src/com/javavenkat/jdbc/dao/Customer.java b/JDBCFeb2015/src/com/javavenkat/jdbc/dao/Customer.java
deleted file mode 100644
index b27e80b..0000000
--- a/JDBCFeb2015/src/com/javavenkat/jdbc/dao/Customer.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package com.javavenkat.jdbc.dao;
-
-public class Customer {
-
- private int id;
- private String firstName;
- private String lastName;
- private String address;
- private String city;
- private String state;
- private String zipCode;
-
- public Customer(int id, String firstName, String lastName, String address,
- String city, String state, String zipCode) {
- super();
- this.id = id;
- this.firstName = firstName;
- this.lastName = lastName;
- this.address = address;
- this.city = city;
- this.state = state;
- this.zipCode = zipCode;
- }
-
- public int getId() {
- return id;
- }
-
- public String getFirstName() {
- return firstName;
- }
-
- public String getLastName() {
- return lastName;
- }
-
- public String getAddress() {
- return address;
- }
-
- public String getCity() {
- return city;
- }
-
- public String getState() {
- return state;
- }
-
- public String getZipCode() {
- return zipCode;
- }
-}
diff --git a/JDBCFeb2015/src/com/javavenkat/jdbc/dao/CustomerDAO.java b/JDBCFeb2015/src/com/javavenkat/jdbc/dao/CustomerDAO.java
deleted file mode 100644
index e13e7a9..0000000
--- a/JDBCFeb2015/src/com/javavenkat/jdbc/dao/CustomerDAO.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.javavenkat.jdbc.dao;
-
-import java.util.List;
-
-public interface CustomerDAO {
-
- List getAllCustomers() throws DAOException;
- Customer findByPrimaryKey(int id) throws DAOException;
- void createCustomer(Customer customer) throws DAOException;
- void updateCustomer(Customer customer) throws DAOException;
- void deleteCustomer(int customerId) throws DAOException;
-
-}
diff --git a/JDBCFeb2015/src/com/javavenkat/jdbc/dao/CustomerDAOJDBCImpl.java b/JDBCFeb2015/src/com/javavenkat/jdbc/dao/CustomerDAOJDBCImpl.java
deleted file mode 100644
index 561f644..0000000
--- a/JDBCFeb2015/src/com/javavenkat/jdbc/dao/CustomerDAOJDBCImpl.java
+++ /dev/null
@@ -1,154 +0,0 @@
-package com.javavenkat.jdbc.dao;
-
-import java.sql.Connection;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-import java.util.ArrayList;
-import java.util.List;
-
-public class CustomerDAOJDBCImpl extends BaseDAO implements CustomerDAO {
-
- @Override
- public List getAllCustomers() throws DAOException {
-
- Connection con = null;
- Statement statement = null;
- ResultSet rs = null;
-
- List customers = new ArrayList();
-
- try
- {
- con = getConnection();
- statement = con.createStatement();
-
- rs = statement.executeQuery("select * from customer");
-
- while(rs.next())
- {
- int custId = rs.getInt("customer_id");
- String firstName = rs.getString("first_name");
- String lastName = rs.getString("last_name");
- String address = rs.getString("address");
- String city = rs.getString("city");
- String state = rs.getString("state");
- String zip = rs.getString("zip");
-
- Customer customer = new Customer(custId, firstName, lastName, address, city, state, zip);
- customers.add(customer);
- }
- } catch(SQLException ex) {
- ex.printStackTrace();
- throw new DAOException("Error occured while selecting", ex);
- } finally {
- closeResources(rs, statement, con);
- }
-
- return customers;
- }
-
- @Override
- public void createCustomer(Customer customer) throws DAOException {
-
- Connection con = null;
- PreparedStatement statement = null;
-
- try
- {
- con = getConnection();
-
- String sql = "insert into customer values (?,?,?,?,?,?,?)";
-
- statement = con.prepareStatement(sql);
-
- statement.setInt(1, customer.getId());
- statement.setString(2, customer.getFirstName());
- statement.setString(3, customer.getLastName());
- statement.setString(4, customer.getAddress());
- statement.setString(5, customer.getCity());
- statement.setString(6, customer.getState());
- statement.setString(7, customer.getZipCode());
-
- System.out.println(sql.toString());
-
- int rowsInserted = statement.executeUpdate();
-
- System.out.println("rowsInserted = " + rowsInserted);
- } catch(SQLException ex) {
- ex.printStackTrace();
- throw new DAOException("Error occured while creating the customer", ex);
- } finally {
- closeResources(null, statement, con);
- }
- }
-
- @Override
- public void updateCustomer(Customer customer) throws DAOException {
- Connection con = null;
- PreparedStatement statement = null;
-
- try
- {
- con = getConnection();
-
- String sql = "update customer " +
- "set first_name = ?, " +
- " last_name = ?, " +
- " address = ?, " +
- " city = ?, "+
- " state = ?, " +
- " zip = ? " +
- "where customer_id = ?";
-
- statement = con.prepareStatement(sql);
-
- statement.setString(1, customer.getFirstName());
- statement.setString(2, customer.getLastName());
- statement.setString(3, customer.getAddress());
- statement.setString(4, customer.getCity());
- statement.setString(5, customer.getState());
- statement.setString(6, customer.getZipCode());
- statement.setInt(7, customer.getId());
-
- int rowsUpdated = statement.executeUpdate();
-
- System.out.println("rowsUpdated = " + rowsUpdated);
- } catch(SQLException ex) {
- ex.printStackTrace();
- throw new DAOException("Error occured while updating", ex);
- } finally {
- closeResources(null, statement, con);
- }
- }
-
- @Override
- public void deleteCustomer(int customerId) throws DAOException {
- Connection con = null;
- PreparedStatement statement = null;
-
- try
- {
- con = getConnection();
- statement = con.prepareStatement("delete from customer where customer_id = ?");
-
- statement.setInt(1, customerId);
-
- int rowsDeleted = statement.executeUpdate();
-
- System.out.println("rowsDeleted = " + rowsDeleted);
- } catch(SQLException ex) {
- ex.printStackTrace();
- throw new DAOException("Error occured while deleting", ex);
- } finally {
- closeResources(null, statement, con);
- }
- }
-
- @Override
- public Customer findByPrimaryKey(int id) throws DAOException {
- // TODO Auto-generated method stub
- return null;
- }
-}
diff --git a/JDBCFeb2015/src/com/javavenkat/jdbc/dao/CustomerDAOJDBCImplDemo.java b/JDBCFeb2015/src/com/javavenkat/jdbc/dao/CustomerDAOJDBCImplDemo.java
deleted file mode 100644
index 32868a7..0000000
--- a/JDBCFeb2015/src/com/javavenkat/jdbc/dao/CustomerDAOJDBCImplDemo.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.javavenkat.jdbc.dao;
-
-import java.util.List;
-
-public class CustomerDAOJDBCImplDemo {
-
- public static void main(String[] args) throws DAOException {
-
- CustomerDAO dao = new CustomerDAOJDBCImpl();
-
- List customers = dao.getAllCustomers();
-
- for(Customer c : customers)
- {
- System.out.println("First name = " + c.getFirstName());
- }
-
- /*Customer customer = new Customer(6, "Jyothy", "JL", "123 Jyothy Blvd", "Dullas", "TX", "45123");
- dao.createCustomer(customer);*/
-
- /*Customer customer = new Customer(6, "Jyothy", "JL", "999 Plano Dr", "Plano", "TX", "98765");
- dao.updateCustomer(customer);*/
-
- dao.deleteCustomer(6);
-
- }
-
-}
diff --git a/JDBCFeb2015/src/com/javavenkat/jdbc/dao/CustomerDAOJDBCImplTest.java b/JDBCFeb2015/src/com/javavenkat/jdbc/dao/CustomerDAOJDBCImplTest.java
deleted file mode 100644
index 3838e95..0000000
--- a/JDBCFeb2015/src/com/javavenkat/jdbc/dao/CustomerDAOJDBCImplTest.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.javavenkat.jdbc.dao;
-
-import java.util.List;
-
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
-
-public class CustomerDAOJDBCImplTest {
-
- private CustomerDAO dao;
-
- @Before
- public void setup() {
- dao = new CustomerDAOJDBCImpl();
- }
-
- @Test
- public void testSelect() throws DAOException {
-
- List customers = dao.getAllCustomers();
-
- Assert.assertFalse(customers.isEmpty());
- Assert.assertTrue(customers.size() > 3);
- }
-}
diff --git a/JDBCFeb2015/src/com/javavenkat/jdbc/dao/DAOException.java b/JDBCFeb2015/src/com/javavenkat/jdbc/dao/DAOException.java
deleted file mode 100644
index 41cedd8..0000000
--- a/JDBCFeb2015/src/com/javavenkat/jdbc/dao/DAOException.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.javavenkat.jdbc.dao;
-
-public class DAOException extends Exception {
-
- public DAOException(String errorMessage, Throwable ex)
- {
- super(errorMessage, ex);
- }
-}
diff --git a/JDBCFeb2015/src/com/javavenkat/jdbc/preparedstatement/PreparedStatementDeleteDemo.java b/JDBCFeb2015/src/com/javavenkat/jdbc/preparedstatement/PreparedStatementDeleteDemo.java
deleted file mode 100644
index b119c15..0000000
--- a/JDBCFeb2015/src/com/javavenkat/jdbc/preparedstatement/PreparedStatementDeleteDemo.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.javavenkat.jdbc.preparedstatement;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.SQLException;
-
-public class PreparedStatementDeleteDemo {
-
- public static void main(String[] args) {
-
- Connection con = null;
- PreparedStatement statement = null;
-
- try
- {
- con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "oms", "oms");
- statement = con.prepareStatement("delete from customer where customer_id = ?");
-
- statement.setInt(1, 3);
-
- int rowsDeleted = statement.executeUpdate();
-
- System.out.println("rowsDeleted = " + rowsDeleted);
- } catch(SQLException ex) {
- ex.printStackTrace();
- } finally {
- try
- {
- statement.close();
- con.close();
- } catch (SQLException ex){
-
- }
- }
- }
-
-}
diff --git a/JDBCFeb2015/src/com/javavenkat/jdbc/preparedstatement/PreparedStatementInsertDemo.java b/JDBCFeb2015/src/com/javavenkat/jdbc/preparedstatement/PreparedStatementInsertDemo.java
deleted file mode 100644
index 65a4560..0000000
--- a/JDBCFeb2015/src/com/javavenkat/jdbc/preparedstatement/PreparedStatementInsertDemo.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package com.javavenkat.jdbc.preparedstatement;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.SQLException;
-
-public class PreparedStatementInsertDemo {
-
- public static void main(String[] args) {
- Connection con = null;
- PreparedStatement statement = null;
-
- try
- {
- con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "oms", "oms");
-
- String sql = "insert into customer values (?,?,?,?,?,?,?)";
-
- statement = con.prepareStatement(sql);
-
- statement.setInt(1, 6);
- statement.setString(2, "Sekhar");
- statement.setString(3, "SekharLastName");
- statement.setString(4, "999 Sekhar Dr");
- statement.setString(5, "Plano");
- statement.setString(6, "TX");
- statement.setString(7, "54321");
-
- System.out.println(sql.toString());
-
- int rowsInserted = statement.executeUpdate();
-
- System.out.println("rowsInserted = " + rowsInserted);
- } catch(SQLException ex) {
- ex.printStackTrace();
- } finally {
- try
- {
- statement.close();
- con.close();
- } catch (SQLException ex){
-
- }
- }
- }
-
-}
diff --git a/JDBCFeb2015/src/com/javavenkat/jdbc/preparedstatement/PreparedStatementUpdateDemo.java b/JDBCFeb2015/src/com/javavenkat/jdbc/preparedstatement/PreparedStatementUpdateDemo.java
deleted file mode 100644
index a6d5a48..0000000
--- a/JDBCFeb2015/src/com/javavenkat/jdbc/preparedstatement/PreparedStatementUpdateDemo.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package com.javavenkat.jdbc.preparedstatement;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.SQLException;
-
-public class PreparedStatementUpdateDemo {
-
- public static void main(String[] args) {
- Connection con = null;
- PreparedStatement statement = null;
-
- try
- {
- con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "oms", "oms");
-
- String sql = "update customer " +
- "set first_name = ?, " +
- " last_name = ? " +
- "where customer_id = ?";
-
- statement = con.prepareStatement(sql);
-
- statement.setString(1, "RealFirstName");
- statement.setString(2, "SekharName");
- statement.setInt(3, 6);
-
- int rowsUpdated = statement.executeUpdate();
-
- System.out.println("rowsUpdated = " + rowsUpdated);
- } catch(SQLException ex) {
- ex.printStackTrace();
- } finally {
- try
- {
- statement.close();
- con.close();
- } catch (SQLException ex){
-
- }
- }
- }
-
-}
diff --git a/JSP/.classpath b/JSP/.classpath
deleted file mode 100644
index 4a1837d..0000000
--- a/JSP/.classpath
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/JSP/.project b/JSP/.project
deleted file mode 100644
index 0aaf42b..0000000
--- a/JSP/.project
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- JSP
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/JSP/.settings/.jsdtscope b/JSP/.settings/.jsdtscope
deleted file mode 100644
index f40dd98..0000000
--- a/JSP/.settings/.jsdtscope
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/JSP/.settings/org.eclipse.jdt.core.prefs b/JSP/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 7e8a2f8..0000000
--- a/JSP/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Sat Sep 10 23:13:54 EDT 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/JSP/.settings/org.eclipse.wst.common.component b/JSP/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index 04ce023..0000000
--- a/JSP/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/JSP/.settings/org.eclipse.wst.common.project.facet.core.xml b/JSP/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index 3d1d1d9..0000000
--- a/JSP/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/JSP/.settings/org.eclipse.wst.jsdt.ui.superType.container b/JSP/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/JSP/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/JSP/.settings/org.eclipse.wst.jsdt.ui.superType.name b/JSP/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/JSP/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/JSP/WebContent/AddBook.jsp b/JSP/WebContent/AddBook.jsp
deleted file mode 100644
index 350b22c..0000000
--- a/JSP/WebContent/AddBook.jsp
+++ /dev/null
@@ -1,22 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-
-
-Insert title here
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/JSP/WebContent/AddMovie.jsp b/JSP/WebContent/AddMovie.jsp
deleted file mode 100644
index 19d8d59..0000000
--- a/JSP/WebContent/AddMovie.jsp
+++ /dev/null
@@ -1,27 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-
-
-Insert title here
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/JSP/WebContent/Footer.jsp b/JSP/WebContent/Footer.jsp
deleted file mode 100644
index 966fdcc..0000000
--- a/JSP/WebContent/Footer.jsp
+++ /dev/null
@@ -1,14 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-
-
-Insert title here
-
-
-
-Contact : info@appssolutions.com
-
-
-
\ No newline at end of file
diff --git a/JSP/WebContent/Header.jsp b/JSP/WebContent/Header.jsp
deleted file mode 100644
index facacf9..0000000
--- a/JSP/WebContent/Header.jsp
+++ /dev/null
@@ -1,14 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-
-
-Insert title here
-
-
-
-App Solutions, training division..
-
-
-
\ No newline at end of file
diff --git a/JSP/WebContent/ListMovies.jsp b/JSP/WebContent/ListMovies.jsp
deleted file mode 100644
index 2986c40..0000000
--- a/JSP/WebContent/ListMovies.jsp
+++ /dev/null
@@ -1,51 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-<%@page import="com.training.java.servlet.moviestore.domain.MovieDAO"%>
-<%@page
- import="com.training.java.servlet.moviestore.domain.MovieDAOJDBCImpl"%>
-<%@page import="java.util.List"%>
-<%@page import="com.training.java.servlet.moviestore.domain.Movie"%>
-
-
-Insert title here
-
-
-
-<%@include file="Header.jsp" %>
-
-
-
-
-
- Title
- Genre
- Release Date
- Rating
-
-
- <%
-MovieDAO dao = new MovieDAOJDBCImpl("jdbc:mysql://localhost/training",
- "root", "password");
-List movies = dao.getMovies();
-
-for(Movie aMovie : movies)
-{
-%>
-
-<%=aMovie.getName() %>
-<%=aMovie.getGenre() %>
-<%=aMovie.getReleaseDate() %>
-<%=aMovie.getRating() %>
-
-
-<% } %>
-
-
-
-
-<%@include file="Footer.jsp" %>
-
-
-
\ No newline at end of file
diff --git a/JSP/WebContent/META-INF/MANIFEST.MF b/JSP/WebContent/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/JSP/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/JSP/WebContent/SaveMovie.jsp b/JSP/WebContent/SaveMovie.jsp
deleted file mode 100644
index 511c289..0000000
--- a/JSP/WebContent/SaveMovie.jsp
+++ /dev/null
@@ -1,40 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-<%@page import="com.training.java.servlet.moviestore.domain.Movie"%>
-<%@page import="java.sql.Date"%>
-<%@page import="com.training.java.servlet.moviestore.domain.MovieDAO"%>
-<%@page import="com.training.java.servlet.moviestore.domain.MovieDAOJDBCImpl"%>
-
-
-
-Insert title here
-
-
-
-<%
- String id = request.getParameter("id");
- String name = request.getParameter("name");
- String genre = request.getParameter("genre");
- String rating = request.getParameter("rating");
-
- Movie newMovie = new Movie();
-
- newMovie.setId(Integer.parseInt(id));
- newMovie.setName(name);
- newMovie.setGenre(genre);
- newMovie.setRating(rating);
- newMovie.setReleaseDate(new Date(System.currentTimeMillis()));
-
- MovieDAO dao = new MovieDAOJDBCImpl("jdbc:mysql://localhost/training",
- "root", "password");
-
- dao.create(newMovie);
-%>
-
-Your details have been saved successfully..
-
-
-
-
\ No newline at end of file
diff --git a/JSP/WebContent/WEB-INF/lib/mysql-connector-java-5.1.12-bin.jar b/JSP/WebContent/WEB-INF/lib/mysql-connector-java-5.1.12-bin.jar
deleted file mode 100644
index af5847e..0000000
Binary files a/JSP/WebContent/WEB-INF/lib/mysql-connector-java-5.1.12-bin.jar and /dev/null differ
diff --git a/JSP/WebContent/WEB-INF/web.xml b/JSP/WebContent/WEB-INF/web.xml
deleted file mode 100644
index 6174761..0000000
--- a/JSP/WebContent/WEB-INF/web.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
- JSP
-
- index.html
- index.htm
- index.jsp
- default.html
- default.htm
- default.jsp
-
-
\ No newline at end of file
diff --git a/JSP/WebContent/index.html b/JSP/WebContent/index.html
deleted file mode 100644
index d99e6d8..0000000
--- a/JSP/WebContent/index.html
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-Movie store
-
-
-
-Welcome to my Movie store
-
-
-If you want to add a movie please click here
-To see the movies in our database, please click here
-
-
-
-
-
-
\ No newline at end of file
diff --git a/JSP/src/com/training/java/servlet/moviestore/domain/Movie.java b/JSP/src/com/training/java/servlet/moviestore/domain/Movie.java
deleted file mode 100644
index c2cf67c..0000000
--- a/JSP/src/com/training/java/servlet/moviestore/domain/Movie.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.training.java.servlet.moviestore.domain;
-
-import java.sql.Date;
-
-public class Movie
-{
- private int id;
- private String name;
- private String rating;
- private Date releaseDate;
- private String genre;
-
- public int getId()
- {
- return id;
- }
-
- public void setId(int id)
- {
- this.id = id;
- }
-
- public String getName()
- {
- return name;
- }
-
- public void setName(String name)
- {
- this.name = name;
- }
-
- public String getRating()
- {
- return rating;
- }
-
- public void setRating(String rating)
- {
- this.rating = rating;
- }
-
- public Date getReleaseDate()
- {
- return releaseDate;
- }
-
- public void setReleaseDate(Date releaseDate)
- {
- this.releaseDate = releaseDate;
- }
-
- public String getGenre()
- {
- return genre;
- }
-
- public void setGenre(String genre)
- {
- this.genre = genre;
- }
-}
diff --git a/JSP/src/com/training/java/servlet/moviestore/domain/MovieDAO.java b/JSP/src/com/training/java/servlet/moviestore/domain/MovieDAO.java
deleted file mode 100644
index 8a7aa8a..0000000
--- a/JSP/src/com/training/java/servlet/moviestore/domain/MovieDAO.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.training.java.servlet.moviestore.domain;
-
-import java.util.List;
-
-public interface MovieDAO
-{
- void create(Movie movie);
- List getMovies();
-}
diff --git a/JSP/src/com/training/java/servlet/moviestore/domain/MovieDAODemo.java b/JSP/src/com/training/java/servlet/moviestore/domain/MovieDAODemo.java
deleted file mode 100644
index 5bdb998..0000000
--- a/JSP/src/com/training/java/servlet/moviestore/domain/MovieDAODemo.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.training.java.servlet.moviestore.domain;
-
-import java.util.List;
-
-public class MovieDAODemo
-{
- /**
- * @param args
- */
- public static void main(String[] args)
- {
- /*
- MovieDAO dao = new MovieDAOJDBCImpl("jdbc:mysql://localhost/training", "root", "password");
-
- Movie aMovie = new Movie();
- aMovie.setId(2);
- aMovie.setName("Speed2..CC");
- aMovie.setRating("PG-13");
- aMovie.setGenre("Thriller");
- aMovie.setReleaseDate(new Date(System.currentTimeMillis()));
-
- dao.create(aMovie);
- */
-
- MovieDAO dao = new MovieDAOJDBCImpl("jdbc:mysql://localhost/training", "root", "password");
-
- List movies = dao.getMovies();
- for(Movie aMovie : movies)
- {
- System.out.println("Name = " + aMovie.getName());
- System.out.println("Rating = " + aMovie.getRating());
- System.out.println("Genre = " + aMovie.getGenre());
- System.out.println("Release date = " + aMovie.getReleaseDate());
- System.out.println("id = " + aMovie.getId());
- }
- }
-
-}
diff --git a/JSP/src/com/training/java/servlet/moviestore/domain/MovieDAOException.java b/JSP/src/com/training/java/servlet/moviestore/domain/MovieDAOException.java
deleted file mode 100644
index 3a6bc38..0000000
--- a/JSP/src/com/training/java/servlet/moviestore/domain/MovieDAOException.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.training.java.servlet.moviestore.domain;
-
-public class MovieDAOException extends RuntimeException
-{
- MovieDAOException(String errorMessage)
- {
- super(errorMessage);
- }
-
-}
diff --git a/JSP/src/com/training/java/servlet/moviestore/domain/MovieDAOJDBCImpl.java b/JSP/src/com/training/java/servlet/moviestore/domain/MovieDAOJDBCImpl.java
deleted file mode 100644
index c1ce09c..0000000
--- a/JSP/src/com/training/java/servlet/moviestore/domain/MovieDAOJDBCImpl.java
+++ /dev/null
@@ -1,87 +0,0 @@
-package com.training.java.servlet.moviestore.domain;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.List;
-
-public class MovieDAOJDBCImpl implements MovieDAO
-{
- private String dburl;
- private String dbuser;
- private String dbPassword;
-
- public MovieDAOJDBCImpl(String dburl, String dbuser, String dbPassWord)
- {
- this.dburl = dburl;
- this.dbuser = dbuser;
- this.dbPassword = dbPassWord;
- }
-
- @Override
- public void create(Movie movie)
- {
- try
- {
- Connection con = DriverManager.getConnection(dburl, dbuser,
- dbPassword);
- PreparedStatement stmt = con
- .prepareStatement("insert into movie(id, genre, rating, release_date, name) values(?,?,?,?,?)");
-
- stmt.setInt(1, movie.getId());
- stmt.setString(2, movie.getGenre());
- stmt.setString(3, movie.getRating());
- stmt.setDate(4, movie.getReleaseDate());
- stmt.setString(5, movie.getName());
-
- stmt.executeUpdate();
-
- } catch (SQLException e)
- {
- throw new MovieDAOException(e.getMessage());
- }
- }
-
- @Override
- public List getMovies()
- {
- List movies = new ArrayList();
-
- try
- {
- Class.forName("com.mysql.jdbc.Driver");
- Connection con = DriverManager.getConnection(dburl, dbuser,
- dbPassword);
- PreparedStatement stmt = con
- .prepareStatement("select * from movie");
-
- ResultSet rs = stmt.executeQuery();
-
- while(rs.next())
- {
- Movie aMovie = new Movie();
-
- aMovie.setId(rs.getInt("id"));
- aMovie.setName(rs.getString("name"));
- aMovie.setRating(rs.getString("rating"));
- aMovie.setReleaseDate(rs.getDate("release_date"));
- aMovie.setGenre(rs.getString("genre"));
-
- movies.add(aMovie);
- }
- }
- catch(ClassNotFoundException ex)
- {
- ex.printStackTrace();
- }
- catch (SQLException e)
- {
- e.printStackTrace();
- }
-
- return movies;
- }
-}
diff --git a/MovieStore/.classpath b/MovieStore/.classpath
deleted file mode 100644
index 76da5bc..0000000
--- a/MovieStore/.classpath
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/MovieStore/.project b/MovieStore/.project
deleted file mode 100644
index 06e0c53..0000000
--- a/MovieStore/.project
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- MovieStore
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/MovieStore/.settings/.jsdtscope b/MovieStore/.settings/.jsdtscope
deleted file mode 100644
index 887f573..0000000
--- a/MovieStore/.settings/.jsdtscope
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/MovieStore/.settings/org.eclipse.jdt.core.prefs b/MovieStore/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 11f6e46..0000000
--- a/MovieStore/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/MovieStore/.settings/org.eclipse.wst.common.component b/MovieStore/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index 6ecac6c..0000000
--- a/MovieStore/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/MovieStore/.settings/org.eclipse.wst.common.project.facet.core.xml b/MovieStore/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index b554271..0000000
--- a/MovieStore/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/MovieStore/.settings/org.eclipse.wst.jsdt.ui.superType.container b/MovieStore/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/MovieStore/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/MovieStore/.settings/org.eclipse.wst.jsdt.ui.superType.name b/MovieStore/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/MovieStore/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/MovieStore/WebContent/AddMovie.html b/MovieStore/WebContent/AddMovie.html
deleted file mode 100644
index 2408421..0000000
--- a/MovieStore/WebContent/AddMovie.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-Insert title here
-
-
-
-
-
\ No newline at end of file
diff --git a/MovieStore/WebContent/META-INF/MANIFEST.MF b/MovieStore/WebContent/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/MovieStore/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/MovieStore/WebContent/WEB-INF/lib/commons-lang-2.6.jar b/MovieStore/WebContent/WEB-INF/lib/commons-lang-2.6.jar
deleted file mode 100644
index 98467d3..0000000
Binary files a/MovieStore/WebContent/WEB-INF/lib/commons-lang-2.6.jar and /dev/null differ
diff --git a/MovieStore/WebContent/WEB-INF/lib/ojdbc6.jar b/MovieStore/WebContent/WEB-INF/lib/ojdbc6.jar
deleted file mode 100644
index 01da074..0000000
Binary files a/MovieStore/WebContent/WEB-INF/lib/ojdbc6.jar and /dev/null differ
diff --git a/MovieStore/WebContent/WEB-INF/web.xml b/MovieStore/WebContent/WEB-INF/web.xml
deleted file mode 100644
index 5d42e57..0000000
--- a/MovieStore/WebContent/WEB-INF/web.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
- MovieStore
-
- index.html
- index.htm
- index.jsp
- default.html
- default.htm
- default.jsp
-
-
-
- ListMoviesServlet
- ListMoviesServlet
- com.training.java.servlet.movie.web.ListMoviesServlet
-
- maxNoOfMovies
- 3
-
-
-
-
-
- ListMoviesServlet
- /lst
-
-
-
- AddServlet
- AddServlet
- com.training.java.servlet.movie.web.AddServlet
-
-
- AddServlet
- /add
-
-
- jdbcUrl
- jdbc:oracle:thin:@localhost:1521:XE
-
-
- userName
- moviestore
-
-
- password
- password
-
-
\ No newline at end of file
diff --git a/MovieStore/src/com/training/java/servlet/movie/domain/DAOException.java b/MovieStore/src/com/training/java/servlet/movie/domain/DAOException.java
deleted file mode 100644
index 28f7c06..0000000
--- a/MovieStore/src/com/training/java/servlet/movie/domain/DAOException.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.training.java.servlet.movie.domain;
-
-public class DAOException extends RuntimeException {
-
- public DAOException(String mess)
- {
- super(mess);
-
- }
- public DAOException(Throwable e)
- {
- super(e);
- }
-}
diff --git a/MovieStore/src/com/training/java/servlet/movie/domain/Movie.java b/MovieStore/src/com/training/java/servlet/movie/domain/Movie.java
deleted file mode 100644
index 348f0bd..0000000
--- a/MovieStore/src/com/training/java/servlet/movie/domain/Movie.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package com.training.java.servlet.movie.domain;
-
-import java.util.Date;
-
-public class Movie {
-
- private int movieId;
- private String title;
- private String type;
- private String director;
- private Date date;
-
-
- public Movie(int movieId, String title, String type, String director,
- Date date) {
- super();
- this.movieId = movieId;
- this.title = title;
- this.type = type;
- this.director = director;
- this.date = date;
- }
- public Date getDate() {
- return date;
- }
- public void setDate(Date date) {
- this.date = date;
- }
- public int getMovieId() {
- return movieId;
- }
- public String getTitle() {
- return title;
- }
- public String getType() {
- return type;
- }
- public String getDirector() {
- return director;
- }
-
-
-}
diff --git a/MovieStore/src/com/training/java/servlet/movie/domain/MovieDao.java b/MovieStore/src/com/training/java/servlet/movie/domain/MovieDao.java
deleted file mode 100644
index 20d7fe5..0000000
--- a/MovieStore/src/com/training/java/servlet/movie/domain/MovieDao.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.training.java.servlet.movie.domain;
-
-import java.util.List;
-
-public interface MovieDao {
-
- List getAllMovies();
- void addMovies(Movie m);
- Movie GetById(int movieId);
- void update(Movie movie);
- void delete(int movieid);
-
-}
diff --git a/MovieStore/src/com/training/java/servlet/movie/domain/MovieDaoImple.java b/MovieStore/src/com/training/java/servlet/movie/domain/MovieDaoImple.java
deleted file mode 100644
index c1c8a82..0000000
--- a/MovieStore/src/com/training/java/servlet/movie/domain/MovieDaoImple.java
+++ /dev/null
@@ -1,266 +0,0 @@
-package com.training.java.servlet.movie.domain;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-
-
-public class MovieDaoImple implements MovieDao{
-
- private String jdbcUrl;
- private String username;
- private String password;
-
-
-
- public MovieDaoImple(String jdbcUrl, String username, String password) {
- super();
- this.jdbcUrl = jdbcUrl;
- this.username = username;
- this.password = password;
- }
-
-
- public String getJdbcUrl() {
- return jdbcUrl;
- }
-
-
- public String getUsername() {
- return username;
- }
-
-
- public String getPassword() {
- return password;
- }
-
-
- @Override
- public List getAllMovies() {
- List< Movie> list=new ArrayList<>();
- Connection con=null;
- PreparedStatement ps=null;
- ResultSet rs=null;
-
- try
- {
- con=getConnection();
- ps=con.prepareStatement("select * from movie");
- rs=ps.executeQuery();
- while(rs.next())
- {
- String movieidStr=rs.getString("movieid");
- String title=rs.getString("title");
- String type=rs.getString("type");
- String director=rs.getString("director");
- Date date=rs.getDate("releaseDate");
- int movieId=Integer.parseInt(movieidStr);
-
- Movie movie=new Movie(movieId, title, type, director, date);
- list.add(movie);
- }
- return list;
- }catch(SQLException e)
- {
- throw new DAOException(e);
- }finally
- {
- closeResource(rs, ps, con);
- }
- }
-
-
- @Override
- public void addMovies(Movie m) {
-
- Connection con=null;
- ResultSet rs=null;
- PreparedStatement ps=null;
- //Movie movie=null;
- try
- {
- con=getConnection();
- ps=con.prepareStatement("insert into movie values(?,?,?,?,?)");
- int movieid=m.getMovieId();
- String title=m.getTitle();
- String type=m.getType();
- String director=m.getDirector();
- java.sql.Date date=new java.sql.Date(m.getDate().getTime());
-
- ps.setInt(1, movieid);
- ps.setString(2, title);
- ps.setString(3, director);
- ps.setString(4, type);
-
- ps.setDate(5, date);
-
- int rows= ps.executeUpdate();
- if(rows!=1)
- {
- throw new DAOException("Addition Failed");
- }
- }catch(SQLException e)
- {
- throw new DAOException(e);
- }
-
- }
-
-
- @Override
- public Movie GetById(int movieId) {
- Connection con=null;
- PreparedStatement ps=null;
- ResultSet rs=null;
-
- try
- {
- con=getConnection();
- ps=con.prepareStatement("select * from movie where movie_id=?");
- ps.setInt(1, movieId);
- rs=ps.executeQuery();
- Movie movie=null;
- if(rs.next())
- {
- String movieidStr=rs.getString("movie_id");
- String title=rs.getString("title");
- String type=rs.getString("type");
- String director=rs.getString("director");
- Date date=rs.getDate("date1");
- int movieId1=Integer.parseInt(movieidStr);
-
- movie=new Movie(movieId1, title, type, director, date);
- return movie;
-
- }
-
- throw new DAOException("Invalid Id ");
-
- }catch(SQLException e)
- {
- throw new DAOException(e);
- }finally
- {
- closeResource(rs, ps, con);
- }
- }
-
-
- @Override
- public void update(Movie movie) {
- Connection con=null;
- ResultSet rs=null;
- PreparedStatement ps=null;
- //Movie movie=null;
- try
- {
- con=getConnection();
- ps=con.prepareStatement("update movie set title=?, director=? where movie_id=?");
- int movieid=movie.getMovieId();
- String title=movie.getTitle();
- String type=movie.getType();
- String director=movie.getDirector();
- java.sql.Date date=new java.sql.Date(movie.getDate().getTime());
-
-
- ps.setString(1, title);
- ps.setString(2, director);
- ps.setInt(3, movieid);
-
- int rows= ps.executeUpdate();
- if(rows!=1)
- {
- throw new DAOException("Addition Failed");
- }
- }catch(SQLException e)
- {
- throw new DAOException(e);
- }
- finally
- {
- closeResource(rs, ps, con);
- }
-
- }
-
-
- @Override
- public void delete(int movieid) {
-
-
- Connection con=null;
- ResultSet rs=null;
- PreparedStatement ps=null;
- try
- {
- con=getConnection();
- ps=con.prepareStatement("delete from movie where movie_id=?");
- ps.setInt(1, movieid);
- int rows=ps.executeUpdate();
- if(rows!=1)
- {
- throw new DAOException("Delection Failed ");
- }
- }catch(SQLException e)
- {
- throw new DAOException(e);
- }
-
- }
- private Connection getConnection()
- {
- try
- {
- Class.forName("oracle.jdbc.driver.OracleDriver");
- return DriverManager.getConnection(jdbcUrl, username, password);
- }catch(ClassNotFoundException ex)
- {
- throw new DAOException(ex);
- }
- catch(SQLException e)
- {
- throw new DAOException(e);
- }
- }
- private void closeResource(ResultSet rs, PreparedStatement ps, Connection con)
- {
- if(rs!=null)
- {
- try
- {
- rs.close();
- }catch(SQLException e)
- {
- throw new DAOException(e);
- }
- }
- if(ps!=null)
- {
- try
- {
- ps.close();
- }catch(SQLException e)
- {
- throw new DAOException(e);
- }
- }
- if(con!=null)
- {
- try
- {
- con.close();
- }catch(SQLException e)
- {
- throw new DAOException(e);
- }
- }
- }
-
-
-}
diff --git a/MovieStore/src/com/training/java/servlet/movie/domain/package-info.java b/MovieStore/src/com/training/java/servlet/movie/domain/package-info.java
deleted file mode 100644
index 05b5580..0000000
--- a/MovieStore/src/com/training/java/servlet/movie/domain/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.servlet.movie.domain;
\ No newline at end of file
diff --git a/MovieStore/src/com/training/java/servlet/movie/web/AddServlet.java b/MovieStore/src/com/training/java/servlet/movie/web/AddServlet.java
deleted file mode 100644
index 6e561cc..0000000
--- a/MovieStore/src/com/training/java/servlet/movie/web/AddServlet.java
+++ /dev/null
@@ -1,71 +0,0 @@
-package com.training.java.servlet.movie.web;
-
-import java.io.IOException;
-import java.text.DateFormat;
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import com.training.java.servlet.movie.domain.Movie;
-import com.training.java.servlet.movie.domain.MovieDao;
-import com.training.java.servlet.movie.domain.MovieDaoImple;
-
-/**
- * Servlet implementation class AddServlet
- */
-public class AddServlet extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public AddServlet() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- String movieIdStr = request.getParameter("movieId");
- String title = request.getParameter("title");
- String director = request.getParameter("director");
- String type = request.getParameter("type");
- String releaseDatestr = request.getParameter("releaseDate");
- DateFormat format = new SimpleDateFormat("mmDDyyyy");
-
- Date releaseDate = null;
- try {
- releaseDate= format.parse(releaseDatestr);
- } catch (ParseException e) {
- e.printStackTrace();
- }
-
- int movieId = Integer.parseInt(movieIdStr);
-
- String jdbcUrl = getServletContext().getInitParameter("jdbcUrl");
- String userName = getServletContext().getInitParameter("userName");
- String password = getServletContext().getInitParameter("password");
-
-
- Movie movie = new Movie(movieId, title, type, director, releaseDate);
- MovieDao dao = new MovieDaoImple(jdbcUrl,userName,password);
- dao.addMovies(movie);
-
- response.sendRedirect("/MovieStore/lst");
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- doGet(request, response);
- }
-
-}
diff --git a/MovieStore/src/com/training/java/servlet/movie/web/ListMoviesServlet.java b/MovieStore/src/com/training/java/servlet/movie/web/ListMoviesServlet.java
deleted file mode 100644
index 750ba93..0000000
--- a/MovieStore/src/com/training/java/servlet/movie/web/ListMoviesServlet.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package com.training.java.servlet.movie.web;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.util.List;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import com.training.java.servlet.movie.domain.Movie;
-import com.training.java.servlet.movie.domain.MovieDao;
-import com.training.java.servlet.movie.domain.MovieDaoImple;
-
-/**
- * Servlet implementation class ListMoviesServlet
- */
-public class ListMoviesServlet extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public ListMoviesServlet() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- String jdbcUrl = getServletContext().getInitParameter("jdbcUrl");
- String userName = getServletContext().getInitParameter("userName");
- String password = getServletContext().getInitParameter("password");
-
- int maxMovies = Integer.parseInt((getServletConfig().getInitParameter("maxNoOfMovies")));
- MovieDao dao = new MovieDaoImple(jdbcUrl,userName,password);
-
- List movies= dao.getAllMovies();
-
- PrintWriter out = response.getWriter();
-
- out.println("");
-
- out.println("");
- out.println("");
-
- out.println("Title ");
- out.println("Director ");
- out.println("Type ");
- out.println("Release_Date ");
- out.println(" movies.size()){
-
- maxMovies = movies.size();
- }
-
- for(int i=0; i");
- out.println(""+movie.getTitle()+" ");
- out.println(""+movie.getDirector()+" ");
- out.println(""+movie.getType()+" ");
- out.println(""+movie.getDate()+" ");
- out.println("");
- }
- out.println("
");
- out.println("");
-
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- // TODO Auto-generated method stub
- }
-
-}
diff --git a/MovieStore/src/com/training/java/servlet/movie/web/package-info.java b/MovieStore/src/com/training/java/servlet/movie/web/package-info.java
deleted file mode 100644
index 89c0f95..0000000
--- a/MovieStore/src/com/training/java/servlet/movie/web/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.servlet.movie.web;
\ No newline at end of file
diff --git a/MovieStoreCoreJava/.classpath b/MovieStoreCoreJava/.classpath
deleted file mode 100644
index a7357b7..0000000
--- a/MovieStoreCoreJava/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/MovieStoreCoreJava/.project b/MovieStoreCoreJava/.project
deleted file mode 100644
index 4eb4db9..0000000
--- a/MovieStoreCoreJava/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- MovieStoreCoreJava
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
-
-
diff --git a/MovieStoreCoreJava/.settings/org.eclipse.jdt.core.prefs b/MovieStoreCoreJava/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 838bd9d..0000000
--- a/MovieStoreCoreJava/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,11 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/MovieStoreCoreJava/lib/junit-4.8.2.jar b/MovieStoreCoreJava/lib/junit-4.8.2.jar
deleted file mode 100644
index 5b4bb84..0000000
Binary files a/MovieStoreCoreJava/lib/junit-4.8.2.jar and /dev/null differ
diff --git a/MovieStoreCoreJava/src/com/training/corejava/movie/DateDemo.java b/MovieStoreCoreJava/src/com/training/corejava/movie/DateDemo.java
deleted file mode 100644
index fe2caec..0000000
--- a/MovieStoreCoreJava/src/com/training/corejava/movie/DateDemo.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.training.corejava.movie;
-
-import java.util.Calendar;
-import java.util.Date;
-
-public class DateDemo {
-
- public static void main(String[] args) {
-
- Date now = new Date();
-
- Calendar cal = Calendar.getInstance();
- cal.set(2014, Calendar.APRIL, 30);
-
- Date apr30 = cal.getTime();
-
- System.out.println(apr30.after(now));
-
- System.out.println("Now = " + now);
- }
-
-}
diff --git a/MovieStoreCoreJava/src/com/training/corejava/movie/IntegerDemo.java b/MovieStoreCoreJava/src/com/training/corejava/movie/IntegerDemo.java
deleted file mode 100644
index e8ffee4..0000000
--- a/MovieStoreCoreJava/src/com/training/corejava/movie/IntegerDemo.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.training.corejava.movie;
-
-public class IntegerDemo {
-
- public static void main(String[] args) {
-
- double percentage = 20;
- double percentageDouble = percentage/100;
-
- System.out.println("Percentage = " + percentageDouble);
-
- }
-
-}
diff --git a/MovieStoreCoreJava/src/com/training/corejava/movie/InvalidPromotionException.java b/MovieStoreCoreJava/src/com/training/corejava/movie/InvalidPromotionException.java
deleted file mode 100644
index 8f64ad6..0000000
--- a/MovieStoreCoreJava/src/com/training/corejava/movie/InvalidPromotionException.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.training.corejava.movie;
-
-public class InvalidPromotionException extends Exception {
-
- public InvalidPromotionException(String errorMessage)
- {
- super(errorMessage);
- }
-
-}
diff --git a/MovieStoreCoreJava/src/com/training/corejava/movie/InvoiceGenerator.java b/MovieStoreCoreJava/src/com/training/corejava/movie/InvoiceGenerator.java
deleted file mode 100644
index b6535f0..0000000
--- a/MovieStoreCoreJava/src/com/training/corejava/movie/InvoiceGenerator.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.training.corejava.movie;
-
-import java.util.List;
-
-public class InvoiceGenerator {
-
- public String generate(List rentals, Promotion promotion)
- {
- double price = new PriceCalculator().calculate(rentals, promotion);
-
- StringBuilder invoice = new StringBuilder();
-
- invoice.append("*****Invoice for the customer****");
-
- for(Rental rental : rentals)
- {
- invoice.append("You are renting " + rental.getMovie().getTitle() + " for " + rental.getNoOfDays());
- }
-
- invoice.append("Your bill is : " + price + " due upon receipt.");
-
- return invoice.toString();
- }
-
-}
diff --git a/MovieStoreCoreJava/src/com/training/corejava/movie/Movie.java b/MovieStoreCoreJava/src/com/training/corejava/movie/Movie.java
deleted file mode 100644
index e1ce8bd..0000000
--- a/MovieStoreCoreJava/src/com/training/corejava/movie/Movie.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.training.corejava.movie;
-
-public class Movie {
-
- private String title;
- private MovieType movieType;
-
- public Movie(String title,
- MovieType movieType) {
- super();
- this.title = title;
- this.movieType = movieType;
- }
-
-
- /**
- * @return the title
- */
- public String getTitle() {
- return title;
- }
-
- /**
- * @return the movieType
- */
- public MovieType getMovieType() {
- return movieType;
- }
-}
diff --git a/MovieStoreCoreJava/src/com/training/corejava/movie/MovieLibrary.java b/MovieStoreCoreJava/src/com/training/corejava/movie/MovieLibrary.java
deleted file mode 100644
index b3e975e..0000000
--- a/MovieStoreCoreJava/src/com/training/corejava/movie/MovieLibrary.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package com.training.corejava.movie;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-public class MovieLibrary {
-
- private static List movies;
-
- static {
- movies = new ArrayList<>();
-
- Movie lego1 = new Movie("Lego", MovieType.Blueray);
- Movie lego2 = new Movie("Lego", MovieType.Blueray);
- Movie lego3 = new Movie("Lego", MovieType.DVD);
-
- Movie frozen1 = new Movie("Frozen", MovieType.DVD);
- Movie frozen2 = new Movie("Frozen", MovieType.Blueray);
- Movie frozen3 = new Movie("Frozen", MovieType.Blueray);
-
- movies.add(lego1);
- movies.add(lego2);
- movies.add(lego3);
- movies.add(frozen1);
- movies.add(frozen2);
- movies.add(frozen3);
-
- }
-
- public boolean inStock(String title) {
-
- for (Movie movie : movies) {
-
- if (movie.getTitle().equalsIgnoreCase(title)) {
- return true;
- }
- }
-
- return false;
- }
-
- public void deleteMovie(String title, MovieType movieType) {
- Iterator ite = movies.iterator();
-
- while (ite.hasNext()) {
- Movie movie = ite.next();
-
- if (movie.getTitle().equalsIgnoreCase(title)
- && movie.getMovieType().equals(movieType)) {
- ite.remove();
- }
- }
- }
-
-}
diff --git a/MovieStoreCoreJava/src/com/training/corejava/movie/MovieLibraryTest.java b/MovieStoreCoreJava/src/com/training/corejava/movie/MovieLibraryTest.java
deleted file mode 100644
index 8de4486..0000000
--- a/MovieStoreCoreJava/src/com/training/corejava/movie/MovieLibraryTest.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package com.training.corejava.movie;
-
-import static org.junit.Assert.assertTrue;
-import junit.framework.Assert;
-
-import org.junit.Test;
-
-public class MovieLibraryTest {
-
- @Test
- public void testInStock() throws Exception {
-
-
- MovieLibrary library = new MovieLibrary();
-
- assertTrue(library.inStock("LEGo"));
-
- }
-
- @Test
- public void testDeleteMovie()
- {
- MovieLibrary library = new MovieLibrary();
-
- library.deleteMovie("Lego", MovieType.DVD);
- library.deleteMovie("Lego", MovieType.Blueray);
- library.deleteMovie("Lego", MovieType.Blueray);
-
- Assert.assertFalse(library.inStock("LEGo"));
- }
-}
diff --git a/MovieStoreCoreJava/src/com/training/corejava/movie/MovieStore.java b/MovieStoreCoreJava/src/com/training/corejava/movie/MovieStore.java
deleted file mode 100644
index 9f8c738..0000000
--- a/MovieStoreCoreJava/src/com/training/corejava/movie/MovieStore.java
+++ /dev/null
@@ -1,76 +0,0 @@
-package com.training.corejava.movie;
-
-import java.util.Scanner;
-
-public class MovieStore {
-
- public static void main(String[] args) {
-
- Scanner scanner = new Scanner(System.in);
- ShoppingCart cart = new ShoppingCart();
-
- System.out.println("Welcome to Blockbuster!!");
- System.out
- .println("Please enter your movie name,type (BlueRay/DVD) and number of days to rent in a comma separated way");
- System.out.println("Once you are done, type checkout and enter");
-
- while (scanner.hasNextLine()) {
- String line = scanner.nextLine();
-
- if(line.equalsIgnoreCase("checkout"))
- {
- break;
- }
-
- String[] tokens = line.split(",");
-
- if (tokens.length < 3) {
- System.out.println("Invalid input provided");
- } else {
- String movieTitle = tokens[0];
- String movieType = tokens[1];
- int numberOfDays = Integer.parseInt(tokens[2]);
-
- MovieLibrary library = new MovieLibrary();
- boolean inStock = library.inStock(movieTitle);
-
- if (!inStock) {
- System.out.println("Sorry, this movie is not available");
- } else {
- cart.add(movieTitle, movieType, numberOfDays);
- }
-
- }
-
- }
-
- System.out.println("Please enter your promotion code now..");
-
- while(scanner.hasNext())
- {
- String promotionCode = scanner.next();
- Promotion promotion = null;
-
- try {
- promotion = new Promotions().getPromotion(promotionCode);
- } catch (InvalidPromotionException e) {
- System.out.println("Sorry, but this promotion code is either not valid or expired.");
- System.exit(0);
- }
-
- InvoiceGenerator generator = new InvoiceGenerator();
-
- String invoice = generator.generate(cart.getRentals(), promotion);
-
- System.out.println("Please find below your invoice.");
- System.out.println(invoice);
-
- System.out.println("Have a good day!!");
- System.exit(0);
- }
-
- scanner.close();
-
- }
-
-}
diff --git a/MovieStoreCoreJava/src/com/training/corejava/movie/MovieType.java b/MovieStoreCoreJava/src/com/training/corejava/movie/MovieType.java
deleted file mode 100644
index 8b2ec11..0000000
--- a/MovieStoreCoreJava/src/com/training/corejava/movie/MovieType.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.training.corejava.movie;
-
-public enum MovieType {
-
- DVD, Blueray;
-
-}
-
-
diff --git a/MovieStoreCoreJava/src/com/training/corejava/movie/PriceCalculator.java b/MovieStoreCoreJava/src/com/training/corejava/movie/PriceCalculator.java
deleted file mode 100644
index 61325f6..0000000
--- a/MovieStoreCoreJava/src/com/training/corejava/movie/PriceCalculator.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package com.training.corejava.movie;
-
-import java.util.List;
-
-public class PriceCalculator {
-
- public static final double DVD_PERDAY_PRICE = 1.20;
- public static final double BLUERAY_PERDAY_PRICE = 1.50;
- public static final double TAX_PERCENTAGE = 6.0;
-
- public double calculate(List rentals, Promotion promotion) {
-
- double price = 0;
-
- for (Rental rental : rentals) {
- int numberOfDays = rental.getNoOfDays();
- MovieType movieType = rental.getMovie().getMovieType();
-
- double perDayPrice = getPerDayPrice(movieType);
-
- price = price + (perDayPrice * numberOfDays);
- }
-
- double discount = price * (promotion.getDiscountPercentage() / 100);
-
- double priceAfterDiscount = price - discount;
-
- double tax = priceAfterDiscount * (TAX_PERCENTAGE / 100);
-
- return priceAfterDiscount + tax;
- }
-
- private double getPerDayPrice(MovieType movieType) {
-
- if (movieType.equals(MovieType.DVD)) {
- return DVD_PERDAY_PRICE;
- } else {
- return BLUERAY_PERDAY_PRICE;
- }
- }
-
-}
diff --git a/MovieStoreCoreJava/src/com/training/corejava/movie/Promotion.java b/MovieStoreCoreJava/src/com/training/corejava/movie/Promotion.java
deleted file mode 100644
index 8f7dbc8..0000000
--- a/MovieStoreCoreJava/src/com/training/corejava/movie/Promotion.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package com.training.corejava.movie;
-
-import java.util.Date;
-
-public class Promotion {
-
- private String code;
- private Date expirationDate;
- private double discountPercentage;
-
-
- public Promotion(String code, Date expirationDate, int discountPercentage) {
- super();
- this.code = code;
- this.expirationDate = expirationDate;
- this.discountPercentage = discountPercentage;
- }
- /**
- * @return the code
- */
- public String getCode() {
- return code;
- }
- /**
- * @return the expirationDate
- */
- public Date getExpirationDate() {
- return expirationDate;
- }
- /**
- * @return the discountPercentage
- */
- public double getDiscountPercentage() {
- return discountPercentage;
- }
-
-
-
-
-
-}
diff --git a/MovieStoreCoreJava/src/com/training/corejava/movie/Promotions.java b/MovieStoreCoreJava/src/com/training/corejava/movie/Promotions.java
deleted file mode 100644
index afce006..0000000
--- a/MovieStoreCoreJava/src/com/training/corejava/movie/Promotions.java
+++ /dev/null
@@ -1,49 +0,0 @@
-package com.training.corejava.movie;
-
-import java.util.Calendar;
-import java.util.Date;
-import java.util.HashSet;
-import java.util.Set;
-
-public class Promotions {
-
- private static Set promotionSet;
- private static final Date today = new Date();
-
- static
- {
- promotionSet = new HashSet<>();
-
- Calendar apr30 = Calendar.getInstance();
- apr30.set(2014, Calendar.APRIL, 30);
-
- Calendar mar15 = Calendar.getInstance();
- mar15.set(2014, Calendar.MARCH, 15);
-
- Calendar jan10 = Calendar.getInstance();
- jan10.set(2014, Calendar.JANUARY, 10);
-
-
- Promotion promotion1 = new Promotion("20PR", apr30.getTime(), 20);
- Promotion promotion2 = new Promotion("25PR", mar15.getTime(), 25);
- Promotion promotion3 = new Promotion("30PR", jan10.getTime(), 30);
-
- promotionSet.add(promotion1);
- promotionSet.add(promotion2);
- promotionSet.add(promotion3);
-
- }
-
- public Promotion getPromotion(String promotionCode) throws InvalidPromotionException
- {
- for (Promotion pr : promotionSet) {
-
- if (promotionCode.equals(pr.getCode()) && pr.getExpirationDate().after(today)) {
- return pr;
- }
- }
-
- throw new InvalidPromotionException("Promotion code " + promotionCode + " is not valid or expired.");
- }
-
-}
diff --git a/MovieStoreCoreJava/src/com/training/corejava/movie/Rental.java b/MovieStoreCoreJava/src/com/training/corejava/movie/Rental.java
deleted file mode 100644
index 89a48a8..0000000
--- a/MovieStoreCoreJava/src/com/training/corejava/movie/Rental.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.training.corejava.movie;
-
-public class Rental {
-
- private Movie movie;
- private int noOfDays;
-
- public Rental(Movie movie, int noOfDays) {
- super();
- this.movie = movie;
- this.noOfDays = noOfDays;
- }
-
- /**
- * @return the movie
- */
- public Movie getMovie() {
- return movie;
- }
-
- /**
- * @return the noOfDays
- */
- public int getNoOfDays() {
- return noOfDays;
- }
-
-}
diff --git a/MovieStoreCoreJava/src/com/training/corejava/movie/ShoppingCart.java b/MovieStoreCoreJava/src/com/training/corejava/movie/ShoppingCart.java
deleted file mode 100644
index a46c252..0000000
--- a/MovieStoreCoreJava/src/com/training/corejava/movie/ShoppingCart.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.training.corejava.movie;
-
-import java.util.ArrayList;
-import java.util.List;
-
-public class ShoppingCart {
-
- private List rentals = new ArrayList();
-
- public void add(String title, String type, int numberOfDays) {
- MovieType movieType = MovieType.valueOf(type);
- Movie movie = new Movie(title, movieType);
-
- Rental rental = new Rental(movie, numberOfDays);
-
- rentals.add(rental);
- }
-
- /**
- * @return the rentals
- */
- public List getRentals() {
- return rentals;
- }
-}
diff --git a/NewJSP1/.classpath b/NewJSP1/.classpath
deleted file mode 100644
index f4917a2..0000000
--- a/NewJSP1/.classpath
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/NewJSP1/.project b/NewJSP1/.project
deleted file mode 100644
index 19ead90..0000000
--- a/NewJSP1/.project
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- NewJSP1
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/NewJSP1/.settings/.jsdtscope b/NewJSP1/.settings/.jsdtscope
deleted file mode 100644
index 887f573..0000000
--- a/NewJSP1/.settings/.jsdtscope
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/NewJSP1/.settings/org.eclipse.jdt.core.prefs b/NewJSP1/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 11f6e46..0000000
--- a/NewJSP1/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/NewJSP1/.settings/org.eclipse.wst.common.component b/NewJSP1/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index a86a105..0000000
--- a/NewJSP1/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/NewJSP1/.settings/org.eclipse.wst.common.project.facet.core.xml b/NewJSP1/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index acf76ca..0000000
--- a/NewJSP1/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/NewJSP1/.settings/org.eclipse.wst.jsdt.ui.superType.container b/NewJSP1/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/NewJSP1/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/NewJSP1/.settings/org.eclipse.wst.jsdt.ui.superType.name b/NewJSP1/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/NewJSP1/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/NewJSP1/WebContent/First.jsp b/NewJSP1/WebContent/First.jsp
deleted file mode 100644
index c4cefc1..0000000
--- a/NewJSP1/WebContent/First.jsp
+++ /dev/null
@@ -1,43 +0,0 @@
-<%@page import="java.io.PrintWriter"%>
-<%@page import="java.util.Date"%>
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-
-
-Insert title here
-
-
-
-Hi, this is my first JSP!!
-
-The date here on server is :
-
-<%= new Date()%>
-
-
-
-
-<%
-System.out.println("Hello");
-
-%>
-
-<%
- String fn = request.getParameter("firstName");
- String ln = request.getParameter("lastName");
-%>
-
-First name= : <%=fn %>
-Last name= : <%=ln %>
-
-
-<%
- out.println("How are you? ");
-%>
-
-
-
-
-
\ No newline at end of file
diff --git a/NewJSP1/WebContent/ListBooks.jsp b/NewJSP1/WebContent/ListBooks.jsp
deleted file mode 100644
index 643f081..0000000
--- a/NewJSP1/WebContent/ListBooks.jsp
+++ /dev/null
@@ -1,58 +0,0 @@
-<%@page import="com.training.java.servlet.domain.DAOException"%>
-<%@page import="com.training.java.servlet.domain.Book"%>
-<%@page import="java.util.List"%>
-<%@page import="com.training.java.servlet.domain.BookDAOJDBCImpl"%>
-<%@page import="com.training.java.servlet.domain.BookDAO"%>
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-
-
-Insert title here
-
-
-
-<%
-
-BookDAO dao = new BookDAOJDBCImpl("jdbc:oracle:thin:@localhost:1521:XE", "bookstore", "password");
-
-List books = null;
-
-try {
- books = dao.getAllBooks();
-} catch (DAOException e) {
- e.printStackTrace();
-}
-
-%>
-
-
-
- Title
- Author
- ISBN
-
-
-<%
-
-for(Book aBook : books)
-{
-
-%>
-
- <%= aBook.getTitle() %>
- <%= aBook.getAuthor() %>
- <%= aBook.getIsbn() %>
-
-
-<%
-}
-%>
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/NewJSP1/WebContent/META-INF/MANIFEST.MF b/NewJSP1/WebContent/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/NewJSP1/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/NewJSP1/WebContent/WEB-INF/lib/commons-lang-2.6.jar b/NewJSP1/WebContent/WEB-INF/lib/commons-lang-2.6.jar
deleted file mode 100644
index 98467d3..0000000
Binary files a/NewJSP1/WebContent/WEB-INF/lib/commons-lang-2.6.jar and /dev/null differ
diff --git a/NewJSP1/WebContent/WEB-INF/lib/ojdbc6.jar b/NewJSP1/WebContent/WEB-INF/lib/ojdbc6.jar
deleted file mode 100644
index 01da074..0000000
Binary files a/NewJSP1/WebContent/WEB-INF/lib/ojdbc6.jar and /dev/null differ
diff --git a/NewJSP1/WebContent/WEB-INF/web.xml b/NewJSP1/WebContent/WEB-INF/web.xml
deleted file mode 100644
index 842b459..0000000
--- a/NewJSP1/WebContent/WEB-INF/web.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
- NewJSP1
-
- index.html
- index.htm
- index.jsp
- default.html
- default.htm
- default.jsp
-
-
\ No newline at end of file
diff --git a/NewJSP1/src/com/training/java/servlet/domain/Book.java b/NewJSP1/src/com/training/java/servlet/domain/Book.java
deleted file mode 100644
index 1d30fe0..0000000
--- a/NewJSP1/src/com/training/java/servlet/domain/Book.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package com.training.java.servlet.domain;
-
-import java.io.Serializable;
-import java.util.Date;
-
-public class Book implements Serializable {
- private int id;
- private String title;
- private String author;
- private String isbn;
- private int pages;
- private Date publisherDate;
-
- public Book(int id, String title, String author, String isbn, int pages,
- Date publisherDate) {
- super();
- this.id = id;
- this.title = title;
- this.author = author;
- this.isbn = isbn;
- this.pages = pages;
- this.publisherDate = publisherDate;
- }
-
- public void init()
- {
-
- }
-
- public int getId() {
- return id;
- }
-
- public String getTitle() {
- return title;
- }
-
- public String getAuthor() {
- return author;
- }
-
- public String getIsbn() {
- return isbn;
- }
-
- public int getPages() {
- return pages;
- }
-
- public Date getPublisherDate() {
- return publisherDate;
- }
-
-}
diff --git a/NewJSP1/src/com/training/java/servlet/domain/BookDAO.java b/NewJSP1/src/com/training/java/servlet/domain/BookDAO.java
deleted file mode 100644
index 9827402..0000000
--- a/NewJSP1/src/com/training/java/servlet/domain/BookDAO.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.training.java.servlet.domain;
-
-import java.util.List;
-
-public interface BookDAO {
-
- List getAllBooks() throws DAOException;
- void addBook(Book book) throws DAOException;
- void updateBook(Book book) throws DAOException;
- void deleteBook(int bookId) throws DAOException;
- Book findByPrimaryKey(int bookId) throws DAOException;
-
-}
diff --git a/NewJSP1/src/com/training/java/servlet/domain/BookDAOJDBCImpl.java b/NewJSP1/src/com/training/java/servlet/domain/BookDAOJDBCImpl.java
deleted file mode 100644
index b4a20b4..0000000
--- a/NewJSP1/src/com/training/java/servlet/domain/BookDAOJDBCImpl.java
+++ /dev/null
@@ -1,267 +0,0 @@
-package com.training.java.servlet.domain;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-
-public class BookDAOJDBCImpl implements BookDAO {
-
- private String jdbcURL;
- private String username;
- private String password;
-
- public BookDAOJDBCImpl(String jdbcURL, String username, String password)
- {
- this.jdbcURL = jdbcURL;
- this.username = username;
- this.password = password;
- }
-
-
- @Override
- public List getAllBooks() throws DAOException {
-
- List books = new ArrayList();
-
- Connection connection = null;
- Statement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- statement = connection.createStatement();
- resultSet = statement.executeQuery("select * from book");
-
- while(resultSet.next())
- {
- int id = resultSet.getInt("book_id");
- String title = resultSet.getString("title");
- String author = resultSet.getString("author");
- int pages = resultSet.getInt("number_of_pages");
- String isbn = resultSet.getString("isbn");
- Date publisherDate = resultSet.getDate("pub_date");
-
- Book book = new Book(id, title, author, isbn, pages, publisherDate);
-
- books.add(book);
- }
- }
- catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
-
- return books;
- }
-
- @Override
- public void addBook(Book book) throws DAOException {
-
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- String author = book.getAuthor();
- String isbn = book.getIsbn();
- String title = book.getTitle();
- int pages = book.getPages();
- java.sql.Date publisherDate = new java.sql.Date(book.getPublisherDate().getTime());
-
- statement = connection.prepareStatement("insert into book values(book_id_seq.nextval, ?, ?, ?, ?, ?, ?)");
-
- statement.setString(1, title);
- statement.setString(2, author);
- statement.setInt(3, pages);
- statement.setString(4, isbn);
- statement.setDate(5, publisherDate);
- statement.setInt(6, 1);
-
- int numberOfRowsInserted = statement.executeUpdate();
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- @Override
- public void updateBook(Book book) throws DAOException {
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- int id = book.getId();
- String author = book.getAuthor();
- String isbn = book.getIsbn();
- String title = book.getTitle();
- int pages = book.getPages();
- java.sql.Date publisherDate = new java.sql.Date(book.getPublisherDate().getTime());
-
- statement = connection.prepareStatement("update book set title = ?, author = ?, number_of_pages = ?, isbn = ?, pub_date = ? where book_id = ?");
-
- statement.setString(1, title);
- statement.setString(2, author);
- statement.setInt(3, pages);
- statement.setString(4, isbn);
- statement.setDate(5, publisherDate);
-
- statement.setInt(6, id);
-
- int numberOfRowsUpdate = statement.executeUpdate();
-
- if(numberOfRowsUpdate != 1)
- {
- throw new DAOException("Update book failed!!");
- }
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- @Override
- public void deleteBook(int bookId) throws DAOException {
-
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
-
- statement = connection.prepareStatement("delete book where book_id = ?");
- statement.setInt(1, bookId);
-
- int numberOfRowsDeleted = statement.executeUpdate();
-
- if(numberOfRowsDeleted != 1)
- {
- throw new DAOException("Delete book failed!!");
- }
- }
- catch(SQLException ex)
- {
- ex.printStackTrace();
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- @Override
- public Book findByPrimaryKey(int bookId) throws DAOException {
-
- Connection connection = null;
- PreparedStatement statement = null;
- ResultSet resultSet = null;
-
- try
- {
- connection = getConnection();
- statement = connection.prepareStatement("select * from book where book_id = ?");
-
- statement.setInt(1, bookId);
-
- resultSet = statement.executeQuery();
-
- if(resultSet.next())
- {
- int id = resultSet.getInt("book_id");
- String title = resultSet.getString("title");
- String author = resultSet.getString("author");
- int pages = resultSet.getInt("number_of_pages");
- String isbn = resultSet.getString("isbn");
- Date publisherDate = resultSet.getDate("pub_date");
-
- return new Book(id, title, author, isbn, pages, publisherDate);
- }
-
- throw new DAOException("Invalid book id provided!!");
- }
- catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
- finally
- {
- closeResources(resultSet, statement, connection);
- }
- }
-
- private Connection getConnection() throws DAOException
- {
- try {
- Class.forName("oracle.jdbc.driver.OracleDriver");
- return DriverManager.getConnection(jdbcURL, username, password);
- } catch (ClassNotFoundException ex) {
- throw new DAOException(ex);
- }
- catch(SQLException ex)
- {
- throw new DAOException(ex);
- }
-
- }
-
- private void closeResources(ResultSet resultSet, Statement statement, Connection connection)
- {
- if(resultSet != null)
- {
- try {
- resultSet.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if(statement != null)
- {
- try {
- statement.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
-
- if(connection != null)
- {
- try {
- connection.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- }
-
-}
diff --git a/NewJSP1/src/com/training/java/servlet/domain/DAOException.java b/NewJSP1/src/com/training/java/servlet/domain/DAOException.java
deleted file mode 100644
index fb0fd0a..0000000
--- a/NewJSP1/src/com/training/java/servlet/domain/DAOException.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.training.java.servlet.domain;
-
-
-public class DAOException extends Exception {
-
- public DAOException(String errorMessage)
- {
- super(errorMessage);
- }
-
- public DAOException(Throwable cause)
- {
- super(cause);
- }
-
- public DAOException(String errorMessage, Throwable cause) {
- super(errorMessage, cause);
-
- }
-}
diff --git a/NewJSP1/src/com/training/java/servlet/domain/package-info.java b/NewJSP1/src/com/training/java/servlet/domain/package-info.java
deleted file mode 100644
index 05aa146..0000000
--- a/NewJSP1/src/com/training/java/servlet/domain/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- */
-/**
- * @author Hari
- *
- */
-package com.training.java.servlet.domain;
\ No newline at end of file
diff --git a/ProjectHome.md b/ProjectHome.md
new file mode 100644
index 0000000..d1831b8
--- /dev/null
+++ b/ProjectHome.md
@@ -0,0 +1 @@
+Venkat Hari's Java training goes here..Each topic is a separate Eclipse project
\ No newline at end of file
diff --git a/ReadMeFirst/.classpath b/ReadMeFirst/.classpath
deleted file mode 100644
index 07ca123..0000000
--- a/ReadMeFirst/.classpath
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/ReadMeFirst/.project b/ReadMeFirst/.project
deleted file mode 100644
index d6f9030..0000000
--- a/ReadMeFirst/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- ReadMeFirst
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
-
-
diff --git a/ReadMeFirst/.settings/org.eclipse.jdt.core.prefs b/ReadMeFirst/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index cf001e4..0000000
--- a/ReadMeFirst/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,12 +0,0 @@
-#Sat Jun 18 18:13:58 EDT 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/ReadMeFirst/documentation/Settingup_SVN b/ReadMeFirst/documentation/Settingup_SVN
deleted file mode 100644
index 3721168..0000000
--- a/ReadMeFirst/documentation/Settingup_SVN
+++ /dev/null
@@ -1,4 +0,0 @@
- How to setup Subversion (SVN) in your Eclipse?
-
---> You need an Eclipse plugin called Subclipse to get access to any Subversion repository.
---> If you want to install Subclipse plugin in your project, read the word document "Subclipse Installation.doc"
\ No newline at end of file
diff --git a/ReadMeFirst/documentation/Subclipse Installation.doc b/ReadMeFirst/documentation/Subclipse Installation.doc
deleted file mode 100644
index fbcc0d7..0000000
Binary files a/ReadMeFirst/documentation/Subclipse Installation.doc and /dev/null differ
diff --git a/Servlet4/.classpath b/Servlet4/.classpath
deleted file mode 100644
index 78413a7..0000000
--- a/Servlet4/.classpath
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Servlet4/.project b/Servlet4/.project
deleted file mode 100644
index 0a3982e..0000000
--- a/Servlet4/.project
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- Servlet4
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/Servlet4/.settings/.jsdtscope b/Servlet4/.settings/.jsdtscope
deleted file mode 100644
index 887f573..0000000
--- a/Servlet4/.settings/.jsdtscope
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Servlet4/.settings/org.eclipse.jdt.core.prefs b/Servlet4/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 0f0f84f..0000000
--- a/Servlet4/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Thu Feb 09 19:08:23 EST 2012
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/Servlet4/.settings/org.eclipse.wst.common.component b/Servlet4/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index 5ceb3c7..0000000
--- a/Servlet4/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/Servlet4/.settings/org.eclipse.wst.common.project.facet.core.xml b/Servlet4/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index d62d1e5..0000000
--- a/Servlet4/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/Servlet4/.settings/org.eclipse.wst.jsdt.ui.superType.container b/Servlet4/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/Servlet4/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/Servlet4/.settings/org.eclipse.wst.jsdt.ui.superType.name b/Servlet4/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/Servlet4/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/Servlet4/WebContent/META-INF/MANIFEST.MF b/Servlet4/WebContent/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/Servlet4/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/Servlet4/WebContent/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar b/Servlet4/WebContent/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar
deleted file mode 100644
index cdee6a1..0000000
Binary files a/Servlet4/WebContent/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar and /dev/null differ
diff --git a/Servlet4/WebContent/WEB-INF/web.xml b/Servlet4/WebContent/WEB-INF/web.xml
deleted file mode 100644
index 2816fb3..0000000
--- a/Servlet4/WebContent/WEB-INF/web.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
- Servlet4
-
- index.html
- index.htm
- index.jsp
- default.html
- default.htm
- default.jsp
-
-
-
- ListStudentServlet
- ListStudentServlet
- com.training.java.servlet4.web.ListStudentServlet
-
-
- ListStudentServlet
- /list
-
-
-
- ListStudentDisplayServlet
- ListStudentDisplayServlet
- com.training.java.servlet4.web.ListStudentDisplayServlet
-
-
- ListStudentDisplayServlet
- /listDisplay
-
-
\ No newline at end of file
diff --git a/Servlet4/lib/junit-4.8.2.jar b/Servlet4/lib/junit-4.8.2.jar
deleted file mode 100644
index 5b4bb84..0000000
Binary files a/Servlet4/lib/junit-4.8.2.jar and /dev/null differ
diff --git a/Servlet4/src/com/training/java/servlet4/domain/DAOException.java b/Servlet4/src/com/training/java/servlet4/domain/DAOException.java
deleted file mode 100644
index 65ceb1b..0000000
--- a/Servlet4/src/com/training/java/servlet4/domain/DAOException.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.training.java.servlet4.domain;
-
-public class DAOException extends RuntimeException {
-
- public DAOException(Throwable ex)
- {
- super(ex);
- }
-
- public DAOException(String errorMessage, Throwable ex)
- {
- super(errorMessage, ex);
- }
-}
diff --git a/Servlet4/src/com/training/java/servlet4/domain/Student.java b/Servlet4/src/com/training/java/servlet4/domain/Student.java
deleted file mode 100644
index 3b641b0..0000000
--- a/Servlet4/src/com/training/java/servlet4/domain/Student.java
+++ /dev/null
@@ -1,83 +0,0 @@
-package com.training.java.servlet4.domain;
-
-public class Student {
-
- private int id;
- private String firstName;
- private String lastName;
- private String phoneNumber;
- private String email;
- private int age;
- private String city;
-
- public int getId() {
- return id;
- }
-
- public void setId(int id) {
- this.id = id;
- }
-
- public String getFirstName() {
- return firstName;
- }
-
- public void setFirstName(String firstName) {
- this.firstName = firstName;
- }
-
- public String getLastName() {
- return lastName;
- }
-
- public void setLastName(String lastName) {
- this.lastName = lastName;
- }
-
- public String getPhoneNumber() {
- return phoneNumber;
- }
-
- public void setPhoneNumber(String phoneNumber) {
- this.phoneNumber = phoneNumber;
- }
-
- public String getEmail() {
- return email;
- }
-
- public void setEmail(String email) {
- this.email = email;
- }
-
- public int getAge() {
- return age;
- }
-
- public void setAge(int age) {
- this.age = age;
- }
-
- public String getCity() {
- return city;
- }
-
- public void setCity(String city) {
- this.city = city;
- }
-
- @Override
- public String toString() {
-
- StringBuilder str = new StringBuilder();
- str.append("id = " + id);
- str.append(" city = " + city);
- str.append(" age = " + age);
- str.append(" email = " + email);
- str.append(" firstName = " + firstName);
- str.append(" lastName = " + lastName);
-
- return str.toString();
- }
-
-}
diff --git a/Servlet4/src/com/training/java/servlet4/domain/StudentDAO.java b/Servlet4/src/com/training/java/servlet4/domain/StudentDAO.java
deleted file mode 100644
index 141da51..0000000
--- a/Servlet4/src/com/training/java/servlet4/domain/StudentDAO.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.training.java.servlet4.domain;
-
-import java.util.List;
-
-public interface StudentDAO {
-
- List getAllStudents();
- void create(Student student);
-
-}
diff --git a/Servlet4/src/com/training/java/servlet4/domain/StudentDAOJDBCImpl.java b/Servlet4/src/com/training/java/servlet4/domain/StudentDAOJDBCImpl.java
deleted file mode 100644
index 026f294..0000000
--- a/Servlet4/src/com/training/java/servlet4/domain/StudentDAOJDBCImpl.java
+++ /dev/null
@@ -1,129 +0,0 @@
-package com.training.java.servlet4.domain;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-import java.util.ArrayList;
-import java.util.List;
-
-public class StudentDAOJDBCImpl implements StudentDAO {
-
- private String driverClassName;
- private String jdbcURL;
- private String username;
- private String password;
-
- public StudentDAOJDBCImpl(String driverClassName, String jdbcURL,
- String username, String password) {
- this.driverClassName = driverClassName;
- this.jdbcURL = jdbcURL;
- this.username = username;
- this.password = password;
- }
-
- @Override
- public List getAllStudents() {
-
- Connection connection = null;
- Statement statement = null;
- ResultSet resultSet = null;
-
- try {
- connection = getConnection();
- statement = connection.createStatement();
- resultSet = statement.executeQuery("select * from students");
-
- List students = new ArrayList();
-
- while (resultSet.next()) {
- String firstName = resultSet.getString("first_name");
- String lastName = resultSet.getString("last_name");
- String city = resultSet.getString("city");
- int id = resultSet.getInt("id");
- int age = resultSet.getInt("age");
- String phoneNumber = resultSet.getString("phone_number");
- String email = resultSet.getString("email");
-
- Student student = new Student();
- student.setAge(age);
- student.setCity(city);
- student.setEmail(email);
- student.setFirstName(firstName);
- student.setId(id);
- student.setLastName(lastName);
- student.setPhoneNumber(phoneNumber);
-
- students.add(student);
- }
-
- return students;
- } catch (SQLException e) {
- e.printStackTrace();
- throw new DAOException(e);
- } finally {
- try {
- if (resultSet != null) {
- resultSet.close();
- }
- closeResources(statement, connection);
- } catch (SQLException ex) {
- ex.printStackTrace();
- }
- }
- }
-
- @Override
- public void create(Student student) {
-
- Connection connection = null;
- PreparedStatement statement = null;
-
- try {
- connection = getConnection();
-
- statement = connection
- .prepareStatement("insert into students values(?, ?, ?, ?, ?, ?, ?)");
-
- statement.setString(1, student.getFirstName());
- statement.setString(2, student.getLastName());
- statement.setString(3, student.getPhoneNumber());
- statement.setString(4, student.getEmail());
- statement.setInt(5, student.getAge());
- statement.setString(6, student.getCity());
- statement.setInt(7, student.getId());
-
- statement.execute();
- } catch (SQLException ex) {
- ex.printStackTrace();
- throw new DAOException(ex);
- } finally {
- closeResources(statement, connection);
- }
- }
-
- private void closeResources(Statement statement, Connection connection) {
- try {
- if (statement != null) {
- statement.close();
- }
- if (connection != null) {
- connection.close();
- }
- } catch (SQLException ex) {
- ex.printStackTrace();
- }
- }
-
- private Connection getConnection() throws SQLException {
- try {
- Class.forName(driverClassName);
- } catch (ClassNotFoundException ex) {
- throw new DAOException(ex);
- }
- return DriverManager.getConnection(jdbcURL, username, password);
- }
-
-}
diff --git a/Servlet4/src/com/training/java/servlet4/domain/StudentDAOJDBCImplTest.java b/Servlet4/src/com/training/java/servlet4/domain/StudentDAOJDBCImplTest.java
deleted file mode 100644
index 5a1f4e5..0000000
--- a/Servlet4/src/com/training/java/servlet4/domain/StudentDAOJDBCImplTest.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package com.training.java.servlet4.domain;
-
-import java.util.List;
-
-import org.junit.Ignore;
-import org.junit.Test;
-
-public class StudentDAOJDBCImplTest {
-
- @Test
- public void testGetAllStudents() {
-
- StudentDAO dao = new StudentDAOJDBCImpl("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/training", "root", "password");
- List students = dao.getAllStudents();
-
- for(Student current : students)
- {
- System.out.println(current);
- }
- }
-
- @Ignore
- public void testCreateStudent(){
- StudentDAO dao = new StudentDAOJDBCImpl("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/training", "root", "password");
-
- Student student = new Student();
- student.setAge(20);
- student.setCity("Sterling Heights");
- student.setEmail("priya@gmail.com");
- student.setFirstName("Priya");
- student.setId(7);
- student.setLastName("Patel");
- student.setPhoneNumber("248-238-9874");
-
- dao.create(student);
-
- //assert that your student is created
-
- //delete the student that you just created
- }
-
-}
diff --git a/Servlet4/src/com/training/java/servlet4/web/ListStudentDisplayServlet.java b/Servlet4/src/com/training/java/servlet4/web/ListStudentDisplayServlet.java
deleted file mode 100644
index 94ff14c..0000000
--- a/Servlet4/src/com/training/java/servlet4/web/ListStudentDisplayServlet.java
+++ /dev/null
@@ -1,67 +0,0 @@
-package com.training.java.servlet4.web;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.util.List;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import com.training.java.servlet4.domain.Student;
-
-/**
- * Servlet implementation class ListStudentDisplayServlet
- */
-public class ListStudentDisplayServlet extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public ListStudentDisplayServlet() {
- super();
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
-
- List students = (List) request.getAttribute("students");
-
- PrintWriter out = response.getWriter();
-
- out.print("");
- out.print("");
- out.print("");
- out.print("");
- out.print("First Name ");
- out.print("Last Name ");
- out.print("Phone Number ");
- out.print(" ");
-
- for(Student current : students)
- {
- out.print("");
- out.print("" + current.getFirstName() + " ");
- out.print("" + current.getLastName() + " ");
- out.print("" + current.getPhoneNumber() + " ");
- out.print(" ");
- }
-
- out.print("
");
- out.print("");
- out.print("");
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
-
- doGet(request, response);
- }
-
-}
diff --git a/Servlet4/src/com/training/java/servlet4/web/ListStudentServlet.java b/Servlet4/src/com/training/java/servlet4/web/ListStudentServlet.java
deleted file mode 100644
index fad7050..0000000
--- a/Servlet4/src/com/training/java/servlet4/web/ListStudentServlet.java
+++ /dev/null
@@ -1,60 +0,0 @@
-package com.training.java.servlet4.web;
-
-import java.io.IOException;
-import java.util.List;
-
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import com.training.java.servlet4.domain.Student;
-import com.training.java.servlet4.domain.StudentDAO;
-import com.training.java.servlet4.domain.StudentDAOJDBCImpl;
-
-/**
- * Servlet implementation class ListStudentServlet
- */
-public class ListStudentServlet extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public ListStudentServlet() {
- super();
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
-
- StudentDAO dao = new StudentDAOJDBCImpl("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/training", "root", "password");
- List students = dao.getAllStudents();
-
- request.setAttribute("students", students);
-
- response.sendRedirect("/Servlet4/listDisplay");
-
- /*
- StudentDAO dao = new StudentDAOJDBCImpl("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/training", "root", "password");
- List students = dao.getAllStudents();
-
- request.setAttribute("students", students);
-
- RequestDispatcher dispatcher = request.getRequestDispatcher("/listDisplay");
- dispatcher.forward(request, response);
- */
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
-
- doGet(request, response);
- }
-
-}
diff --git a/ServletBasic/.classpath b/ServletBasic/.classpath
deleted file mode 100644
index f9cdf28..0000000
--- a/ServletBasic/.classpath
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ServletBasic/.project b/ServletBasic/.project
deleted file mode 100644
index 704ed7d..0000000
--- a/ServletBasic/.project
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- ServletBasic
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/ServletBasic/.settings/.jsdtscope b/ServletBasic/.settings/.jsdtscope
deleted file mode 100644
index 887f573..0000000
--- a/ServletBasic/.settings/.jsdtscope
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ServletBasic/.settings/org.eclipse.jdt.core.prefs b/ServletBasic/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index c1c4bb6..0000000
--- a/ServletBasic/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Wed Jul 13 22:06:40 EDT 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/ServletBasic/.settings/org.eclipse.wst.common.component b/ServletBasic/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index 9b71b0c..0000000
--- a/ServletBasic/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/ServletBasic/.settings/org.eclipse.wst.common.project.facet.core.xml b/ServletBasic/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index ba495e0..0000000
--- a/ServletBasic/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/ServletBasic/.settings/org.eclipse.wst.jsdt.ui.superType.container b/ServletBasic/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/ServletBasic/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/ServletBasic/.settings/org.eclipse.wst.jsdt.ui.superType.name b/ServletBasic/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/ServletBasic/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/ServletBasic/WebContent/META-INF/MANIFEST.MF b/ServletBasic/WebContent/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/ServletBasic/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/ServletBasic/WebContent/WEB-INF/web.xml b/ServletBasic/WebContent/WEB-INF/web.xml
deleted file mode 100644
index 5cd22d1..0000000
--- a/ServletBasic/WebContent/WEB-INF/web.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
- ServletBasic
-
- index.html
-
-
-
- HelloWorldServlet
- HelloWorldServlet
- com.training.java.servlet.basic.HelloWorldServlet
-
-
- HelloWorldServlet
- /hello
-
-
-
- RegistrationServlet
- RegistrationServlet
- com.training.java.servlet.basic.RegistrationServlet
-
-
- RegistrationServlet
- /registration
-
-
\ No newline at end of file
diff --git a/ServletBasic/WebContent/index.html b/ServletBasic/WebContent/index.html
deleted file mode 100644
index 2a24e81..0000000
--- a/ServletBasic/WebContent/index.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-Insert title here
-
-
- Hi, this is my home page.
-
-
\ No newline at end of file
diff --git a/ServletBasic/WebContent/registration.html b/ServletBasic/WebContent/registration.html
deleted file mode 100644
index f8dd9dd..0000000
--- a/ServletBasic/WebContent/registration.html
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-Insert title here
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ServletBasic/src/com/training/java/servlet/basic/HelloWorldServlet.java b/ServletBasic/src/com/training/java/servlet/basic/HelloWorldServlet.java
deleted file mode 100644
index d4f0c9b..0000000
--- a/ServletBasic/src/com/training/java/servlet/basic/HelloWorldServlet.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package com.training.java.servlet.basic;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.util.Date;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-/**
- * Servlet implementation class HelloWorldServlet
- */
-public class HelloWorldServlet extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public HelloWorldServlet() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
-
- PrintWriter out = response.getWriter();
-
- out.println("");
- out.println("");
- out.println("Hello, welcome to my website.. ");
- out.println("The current date and time here is : " + new Date());
- out.println(" ");
-
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- // TODO Auto-generated method stub
- }
-
-}
diff --git a/ServletBasic/src/com/training/java/servlet/basic/RegistrationServlet.java b/ServletBasic/src/com/training/java/servlet/basic/RegistrationServlet.java
deleted file mode 100644
index fee9464..0000000
--- a/ServletBasic/src/com/training/java/servlet/basic/RegistrationServlet.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.training.java.servlet.basic;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-/**
- * Servlet implementation class RegistrationServlet
- */
-public class RegistrationServlet extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public RegistrationServlet() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
-
- String firstName = request.getParameter("fn");
- String lastName = request.getParameter("ln");
- String ssn = request.getParameter("ssn");
-
- PrintWriter out = response.getWriter();
-
- out.println("");
- out.println("This is the response from doGet() ");
- out.println("Thanks for your information, we will store them in our database..This is what we have got ");
- out.println("First Name = " + firstName + " ");
- out.println("Last Name = " + lastName + " ");
- out.println("SSN = " + ssn);
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- String firstName = request.getParameter("fn");
- String lastName = request.getParameter("ln");
- String ssn = request.getParameter("ssn");
-
- PrintWriter out = response.getWriter();
-
- out.println("");
- out.println("This is the response from doPost() ");
- out.println("Thanks for your information, we will store them in our database..This is what we have got ");
- out.println("First Name = " + firstName + " ");
- out.println("Last Name = " + lastName + " ");
- out.println("SSN = " + ssn);
- }
-
-}
diff --git a/ServletMovieStore/.classpath b/ServletMovieStore/.classpath
deleted file mode 100644
index 4a1837d..0000000
--- a/ServletMovieStore/.classpath
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ServletMovieStore/.project b/ServletMovieStore/.project
deleted file mode 100644
index 357ebfc..0000000
--- a/ServletMovieStore/.project
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- ServletMovieStore
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/ServletMovieStore/.settings/.jsdtscope b/ServletMovieStore/.settings/.jsdtscope
deleted file mode 100644
index f40dd98..0000000
--- a/ServletMovieStore/.settings/.jsdtscope
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ServletMovieStore/.settings/org.eclipse.jdt.core.prefs b/ServletMovieStore/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index d125e65..0000000
--- a/ServletMovieStore/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Sat Sep 10 11:07:20 EDT 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/ServletMovieStore/.settings/org.eclipse.wst.common.component b/ServletMovieStore/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index 2aa78f1..0000000
--- a/ServletMovieStore/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/ServletMovieStore/.settings/org.eclipse.wst.common.project.facet.core.xml b/ServletMovieStore/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index 3d1d1d9..0000000
--- a/ServletMovieStore/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/ServletMovieStore/.settings/org.eclipse.wst.jsdt.ui.superType.container b/ServletMovieStore/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/ServletMovieStore/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/ServletMovieStore/.settings/org.eclipse.wst.jsdt.ui.superType.name b/ServletMovieStore/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/ServletMovieStore/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/ServletMovieStore/WebContent/AddMovie.html b/ServletMovieStore/WebContent/AddMovie.html
deleted file mode 100644
index 5e4cee8..0000000
--- a/ServletMovieStore/WebContent/AddMovie.html
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-Insert title here
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ServletMovieStore/WebContent/META-INF/MANIFEST.MF b/ServletMovieStore/WebContent/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/ServletMovieStore/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/ServletMovieStore/WebContent/WEB-INF/lib/mysql-connector-java-5.1.12-bin.jar b/ServletMovieStore/WebContent/WEB-INF/lib/mysql-connector-java-5.1.12-bin.jar
deleted file mode 100644
index af5847e..0000000
Binary files a/ServletMovieStore/WebContent/WEB-INF/lib/mysql-connector-java-5.1.12-bin.jar and /dev/null differ
diff --git a/ServletMovieStore/WebContent/WEB-INF/web.xml b/ServletMovieStore/WebContent/WEB-INF/web.xml
deleted file mode 100644
index 5b99f8b..0000000
--- a/ServletMovieStore/WebContent/WEB-INF/web.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
- MovieStore
-
- index.html
-
-
-
- ListMovieServlet
- ListMovieServlet
- com.training.java.servlet.moviestore.web.ListMovieServlet
-
-
- ListMovieServlet
- /list
-
-
-
- AddMovieServlet
- AddMovieServlet
- com.training.java.servlet.moviestore.web.AddMovieServlet
-
-
- AddMovieServlet
- /add
-
-
\ No newline at end of file
diff --git a/ServletMovieStore/WebContent/index.html b/ServletMovieStore/WebContent/index.html
deleted file mode 100644
index afd3478..0000000
--- a/ServletMovieStore/WebContent/index.html
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-Movie store
-
-
-
-Welcome to my Movie store
-
-
-If you want to add a movie please click here
-To see the movies in our database, please click here
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ServletMovieStore/src/com/training/java/servlet/moviestore/domain/Movie.java b/ServletMovieStore/src/com/training/java/servlet/moviestore/domain/Movie.java
deleted file mode 100644
index c2cf67c..0000000
--- a/ServletMovieStore/src/com/training/java/servlet/moviestore/domain/Movie.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.training.java.servlet.moviestore.domain;
-
-import java.sql.Date;
-
-public class Movie
-{
- private int id;
- private String name;
- private String rating;
- private Date releaseDate;
- private String genre;
-
- public int getId()
- {
- return id;
- }
-
- public void setId(int id)
- {
- this.id = id;
- }
-
- public String getName()
- {
- return name;
- }
-
- public void setName(String name)
- {
- this.name = name;
- }
-
- public String getRating()
- {
- return rating;
- }
-
- public void setRating(String rating)
- {
- this.rating = rating;
- }
-
- public Date getReleaseDate()
- {
- return releaseDate;
- }
-
- public void setReleaseDate(Date releaseDate)
- {
- this.releaseDate = releaseDate;
- }
-
- public String getGenre()
- {
- return genre;
- }
-
- public void setGenre(String genre)
- {
- this.genre = genre;
- }
-}
diff --git a/ServletMovieStore/src/com/training/java/servlet/moviestore/domain/MovieDAO.java b/ServletMovieStore/src/com/training/java/servlet/moviestore/domain/MovieDAO.java
deleted file mode 100644
index 8a7aa8a..0000000
--- a/ServletMovieStore/src/com/training/java/servlet/moviestore/domain/MovieDAO.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.training.java.servlet.moviestore.domain;
-
-import java.util.List;
-
-public interface MovieDAO
-{
- void create(Movie movie);
- List getMovies();
-}
diff --git a/ServletMovieStore/src/com/training/java/servlet/moviestore/domain/MovieDAODemo.java b/ServletMovieStore/src/com/training/java/servlet/moviestore/domain/MovieDAODemo.java
deleted file mode 100644
index 5bdb998..0000000
--- a/ServletMovieStore/src/com/training/java/servlet/moviestore/domain/MovieDAODemo.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.training.java.servlet.moviestore.domain;
-
-import java.util.List;
-
-public class MovieDAODemo
-{
- /**
- * @param args
- */
- public static void main(String[] args)
- {
- /*
- MovieDAO dao = new MovieDAOJDBCImpl("jdbc:mysql://localhost/training", "root", "password");
-
- Movie aMovie = new Movie();
- aMovie.setId(2);
- aMovie.setName("Speed2..CC");
- aMovie.setRating("PG-13");
- aMovie.setGenre("Thriller");
- aMovie.setReleaseDate(new Date(System.currentTimeMillis()));
-
- dao.create(aMovie);
- */
-
- MovieDAO dao = new MovieDAOJDBCImpl("jdbc:mysql://localhost/training", "root", "password");
-
- List movies = dao.getMovies();
- for(Movie aMovie : movies)
- {
- System.out.println("Name = " + aMovie.getName());
- System.out.println("Rating = " + aMovie.getRating());
- System.out.println("Genre = " + aMovie.getGenre());
- System.out.println("Release date = " + aMovie.getReleaseDate());
- System.out.println("id = " + aMovie.getId());
- }
- }
-
-}
diff --git a/ServletMovieStore/src/com/training/java/servlet/moviestore/domain/MovieDAOException.java b/ServletMovieStore/src/com/training/java/servlet/moviestore/domain/MovieDAOException.java
deleted file mode 100644
index 3a6bc38..0000000
--- a/ServletMovieStore/src/com/training/java/servlet/moviestore/domain/MovieDAOException.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.training.java.servlet.moviestore.domain;
-
-public class MovieDAOException extends RuntimeException
-{
- MovieDAOException(String errorMessage)
- {
- super(errorMessage);
- }
-
-}
diff --git a/ServletMovieStore/src/com/training/java/servlet/moviestore/domain/MovieDAOJDBCImpl.java b/ServletMovieStore/src/com/training/java/servlet/moviestore/domain/MovieDAOJDBCImpl.java
deleted file mode 100644
index c1ce09c..0000000
--- a/ServletMovieStore/src/com/training/java/servlet/moviestore/domain/MovieDAOJDBCImpl.java
+++ /dev/null
@@ -1,87 +0,0 @@
-package com.training.java.servlet.moviestore.domain;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.List;
-
-public class MovieDAOJDBCImpl implements MovieDAO
-{
- private String dburl;
- private String dbuser;
- private String dbPassword;
-
- public MovieDAOJDBCImpl(String dburl, String dbuser, String dbPassWord)
- {
- this.dburl = dburl;
- this.dbuser = dbuser;
- this.dbPassword = dbPassWord;
- }
-
- @Override
- public void create(Movie movie)
- {
- try
- {
- Connection con = DriverManager.getConnection(dburl, dbuser,
- dbPassword);
- PreparedStatement stmt = con
- .prepareStatement("insert into movie(id, genre, rating, release_date, name) values(?,?,?,?,?)");
-
- stmt.setInt(1, movie.getId());
- stmt.setString(2, movie.getGenre());
- stmt.setString(3, movie.getRating());
- stmt.setDate(4, movie.getReleaseDate());
- stmt.setString(5, movie.getName());
-
- stmt.executeUpdate();
-
- } catch (SQLException e)
- {
- throw new MovieDAOException(e.getMessage());
- }
- }
-
- @Override
- public List getMovies()
- {
- List movies = new ArrayList();
-
- try
- {
- Class.forName("com.mysql.jdbc.Driver");
- Connection con = DriverManager.getConnection(dburl, dbuser,
- dbPassword);
- PreparedStatement stmt = con
- .prepareStatement("select * from movie");
-
- ResultSet rs = stmt.executeQuery();
-
- while(rs.next())
- {
- Movie aMovie = new Movie();
-
- aMovie.setId(rs.getInt("id"));
- aMovie.setName(rs.getString("name"));
- aMovie.setRating(rs.getString("rating"));
- aMovie.setReleaseDate(rs.getDate("release_date"));
- aMovie.setGenre(rs.getString("genre"));
-
- movies.add(aMovie);
- }
- }
- catch(ClassNotFoundException ex)
- {
- ex.printStackTrace();
- }
- catch (SQLException e)
- {
- e.printStackTrace();
- }
-
- return movies;
- }
-}
diff --git a/ServletMovieStore/src/com/training/java/servlet/moviestore/web/AddMovieServlet.java b/ServletMovieStore/src/com/training/java/servlet/moviestore/web/AddMovieServlet.java
deleted file mode 100644
index 49205f8..0000000
--- a/ServletMovieStore/src/com/training/java/servlet/moviestore/web/AddMovieServlet.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package com.training.java.servlet.moviestore.web;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.sql.Date;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import com.training.java.servlet.moviestore.domain.Movie;
-import com.training.java.servlet.moviestore.domain.MovieDAO;
-import com.training.java.servlet.moviestore.domain.MovieDAOJDBCImpl;
-
-/**
- * Servlet implementation class AddMovieServlet
- */
-public class AddMovieServlet extends HttpServlet
-{
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public AddMovieServlet()
- {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
- * response)
- */
- protected void doGet(HttpServletRequest request,
- HttpServletResponse response) throws ServletException, IOException
- {
- doPost(request, response);
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse
- * response)
- */
- protected void doPost(HttpServletRequest request,
- HttpServletResponse response) throws ServletException, IOException
- {
-
- String id = request.getParameter("id");
- String name = request.getParameter("name");
- String rating = request.getParameter("rating");
- String genre = request.getParameter("genre");
-
- Movie newMovie = new Movie();
-
- newMovie.setId(Integer.parseInt(id));
- newMovie.setName(name);
- newMovie.setGenre(genre);
- newMovie.setRating(rating);
- newMovie.setReleaseDate(new Date(System.currentTimeMillis()));
-
- MovieDAO dao = new MovieDAOJDBCImpl("jdbc:mysql://localhost/training",
- "root", "password");
-
- dao.create(newMovie);
-
- PrintWriter out = response.getWriter();
- out
- .println("your details have been saved successfully ");
-
- }
-
-}
diff --git a/ServletMovieStore/src/com/training/java/servlet/moviestore/web/ListMovieServlet.java b/ServletMovieStore/src/com/training/java/servlet/moviestore/web/ListMovieServlet.java
deleted file mode 100644
index b302a9b..0000000
--- a/ServletMovieStore/src/com/training/java/servlet/moviestore/web/ListMovieServlet.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package com.training.java.servlet.moviestore.web;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.util.List;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import com.training.java.servlet.moviestore.domain.Movie;
-import com.training.java.servlet.moviestore.domain.MovieDAO;
-import com.training.java.servlet.moviestore.domain.MovieDAOJDBCImpl;
-
-/**
- * Servlet implementation class ListMovieServlet
- */
-public class ListMovieServlet extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public ListMovieServlet() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
- * response)
- */
- protected void doGet(HttpServletRequest request,
- HttpServletResponse response) throws ServletException, IOException {
-
- try {
- MovieDAO dao = new MovieDAOJDBCImpl("jdbc:mysql://localhost/training",
- "root", "password");
- List movies = dao.getMovies();
-
- PrintWriter out = response.getWriter();
-
- out.println("");
- out.println("");
- out.println("These are all the movies we have in our database.. ");
- out.println("");
- out.println("Title ");
- out.println("Genre ");
- out.println("Release Date ");
- out.println("Rating ");
- out.println("");
-
- for (Movie aMovie : movies) {
- out.println("");
- out.println("" + aMovie.getName() + " ");
- out.println("" + aMovie.getGenre() + " ");
- out.println("" + aMovie.getReleaseDate() + " ");
- out.println("" + aMovie.getRating() + " ");
- out.println(" ");
- }
- out.println("
");
- out.println("");
- out.println("");
- } catch (Exception e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse
- * response)
- */
- protected void doPost(HttpServletRequest request,
- HttpServletResponse response) throws ServletException, IOException {
- // TODO Auto-generated method stub
- }
-
-}
diff --git a/ServletMovieStore/src/com/training/java/servlet/moviestore/web/SaveMovie.jsp b/ServletMovieStore/src/com/training/java/servlet/moviestore/web/SaveMovie.jsp
deleted file mode 100644
index e69de29..0000000
diff --git a/ServletMovieStoreAdvanced/.classpath b/ServletMovieStoreAdvanced/.classpath
deleted file mode 100644
index 4a1837d..0000000
--- a/ServletMovieStoreAdvanced/.classpath
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ServletMovieStoreAdvanced/.project b/ServletMovieStoreAdvanced/.project
deleted file mode 100644
index 439bf4e..0000000
--- a/ServletMovieStoreAdvanced/.project
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- ServletMovieStoreAdvanced
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/ServletMovieStoreAdvanced/.settings/.jsdtscope b/ServletMovieStoreAdvanced/.settings/.jsdtscope
deleted file mode 100644
index f40dd98..0000000
--- a/ServletMovieStoreAdvanced/.settings/.jsdtscope
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ServletMovieStoreAdvanced/.settings/org.eclipse.jdt.core.prefs b/ServletMovieStoreAdvanced/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 713520d..0000000
--- a/ServletMovieStoreAdvanced/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Sat Sep 17 11:15:38 EDT 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/ServletMovieStoreAdvanced/.settings/org.eclipse.wst.common.component b/ServletMovieStoreAdvanced/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index 1fb7dd0..0000000
--- a/ServletMovieStoreAdvanced/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/ServletMovieStoreAdvanced/.settings/org.eclipse.wst.common.project.facet.core.xml b/ServletMovieStoreAdvanced/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index 3d1d1d9..0000000
--- a/ServletMovieStoreAdvanced/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/ServletMovieStoreAdvanced/.settings/org.eclipse.wst.jsdt.ui.superType.container b/ServletMovieStoreAdvanced/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/ServletMovieStoreAdvanced/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/ServletMovieStoreAdvanced/.settings/org.eclipse.wst.jsdt.ui.superType.name b/ServletMovieStoreAdvanced/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/ServletMovieStoreAdvanced/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/ServletMovieStoreAdvanced/WebContent/AddMovie.html b/ServletMovieStoreAdvanced/WebContent/AddMovie.html
deleted file mode 100644
index a261045..0000000
--- a/ServletMovieStoreAdvanced/WebContent/AddMovie.html
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-Insert title here
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ServletMovieStoreAdvanced/WebContent/META-INF/MANIFEST.MF b/ServletMovieStoreAdvanced/WebContent/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/ServletMovieStoreAdvanced/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/ServletMovieStoreAdvanced/WebContent/SaveMovie.jsp b/ServletMovieStoreAdvanced/WebContent/SaveMovie.jsp
deleted file mode 100644
index 476d773..0000000
--- a/ServletMovieStoreAdvanced/WebContent/SaveMovie.jsp
+++ /dev/null
@@ -1,88 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-
-
-<%@page import="com.training.java.servlet.moviestore.domain.MovieDAO"%>
-<%@page
- import="com.training.java.servlet.moviestore.domain.MovieDAOJDBCImpl"%>
-<%@page import="com.training.java.servlet.moviestore.domain.Movie"%>
-<%@page import="java.util.List"%>
-<%@page import="java.util.ArrayList"%>
-
-
-Insert title here
-
-
-
-<%
- Movie newMovie = (Movie) request.getAttribute("VenkatsMovie");
-
- HttpSession mySession = request.getSession();
-
- //If user comes for the first time
- if (mySession.getAttribute("MovieCart") == null)
- {
- List movies = new ArrayList();
- movies.add(newMovie);
-
- session.setAttribute("MovieCart", movies);
- } else
- {
- List movies = (List) session
- .getAttribute("MovieCart");
-
- for (Movie aMovie : movies)
- {
- System.out.println("Movie title = " + aMovie.getName());
- }
-
- movies.add(newMovie);
-
- session.setAttribute("MovieCart", movies);
- }
-
- String checkout = request.getParameter("checkout");
-
- if (checkout != null && checkout.equalsIgnoreCase("Y"))
- {
- String jdbcURL = getServletContext()
- .getInitParameter("jdbcURL");
- String username = getServletContext().getInitParameter(
- "username");
- String password = getServletContext().getInitParameter(
- "password");
-
- List moviesFromSession = (List) session
- .getAttribute("MovieCart");
- MovieDAO dao = new MovieDAOJDBCImpl(jdbcURL, username, password);
-
- for (Movie aMovie : moviesFromSession)
- {
- dao.create(aMovie);
- }
-%>
-your details have been saved successfully in database
-<%
- } else
- {
- List movies = (List) session
- .getAttribute("MovieCart");
-%>
-
-your movies have been added to cart..You can do the following..
-Number of movies you added so far to your cart is :
-<%= movies.size()%>
-<%
- }
-%>
-
-Go back to Add Movie screenhere
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ServletMovieStoreAdvanced/WebContent/WEB-INF/lib/mysql-connector-java-5.1.12-bin.jar b/ServletMovieStoreAdvanced/WebContent/WEB-INF/lib/mysql-connector-java-5.1.12-bin.jar
deleted file mode 100644
index af5847e..0000000
Binary files a/ServletMovieStoreAdvanced/WebContent/WEB-INF/lib/mysql-connector-java-5.1.12-bin.jar and /dev/null differ
diff --git a/ServletMovieStoreAdvanced/WebContent/WEB-INF/web.xml b/ServletMovieStoreAdvanced/WebContent/WEB-INF/web.xml
deleted file mode 100644
index 036fe08..0000000
--- a/ServletMovieStoreAdvanced/WebContent/WEB-INF/web.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
- MovieStore
-
- index.html
-
-
-
- ListMovieServlet
- ListMovieServlet
- com.training.java.servlet.moviestore.web.ListMovieServlet
-
-
- numberOfMoviesToBeShown
- 100
-
-
-
- ListMovieServlet
- /list
-
-
-
- AddMovieServlet
- AddMovieServlet
- com.training.java.servlet.moviestore.web.AddMovieServlet
-
-
- AddMovieServlet
- /add
-
-
-
- jdbcURL
- jdbc:mysql://localhost/training
-
-
-
- username
- root
-
-
-
- password
- password
-
-
-
\ No newline at end of file
diff --git a/ServletMovieStoreAdvanced/WebContent/index.html b/ServletMovieStoreAdvanced/WebContent/index.html
deleted file mode 100644
index 6a02650..0000000
--- a/ServletMovieStoreAdvanced/WebContent/index.html
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-Movie store
-
-
-
-Welcome to my Movie store
-
-
-If you want to add a movie please click here
-To see the movies in our database, please click here
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/domain/Movie.java b/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/domain/Movie.java
deleted file mode 100644
index c2cf67c..0000000
--- a/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/domain/Movie.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.training.java.servlet.moviestore.domain;
-
-import java.sql.Date;
-
-public class Movie
-{
- private int id;
- private String name;
- private String rating;
- private Date releaseDate;
- private String genre;
-
- public int getId()
- {
- return id;
- }
-
- public void setId(int id)
- {
- this.id = id;
- }
-
- public String getName()
- {
- return name;
- }
-
- public void setName(String name)
- {
- this.name = name;
- }
-
- public String getRating()
- {
- return rating;
- }
-
- public void setRating(String rating)
- {
- this.rating = rating;
- }
-
- public Date getReleaseDate()
- {
- return releaseDate;
- }
-
- public void setReleaseDate(Date releaseDate)
- {
- this.releaseDate = releaseDate;
- }
-
- public String getGenre()
- {
- return genre;
- }
-
- public void setGenre(String genre)
- {
- this.genre = genre;
- }
-}
diff --git a/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/domain/MovieDAO.java b/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/domain/MovieDAO.java
deleted file mode 100644
index 8a7aa8a..0000000
--- a/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/domain/MovieDAO.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.training.java.servlet.moviestore.domain;
-
-import java.util.List;
-
-public interface MovieDAO
-{
- void create(Movie movie);
- List getMovies();
-}
diff --git a/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/domain/MovieDAODemo.java b/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/domain/MovieDAODemo.java
deleted file mode 100644
index 5bdb998..0000000
--- a/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/domain/MovieDAODemo.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.training.java.servlet.moviestore.domain;
-
-import java.util.List;
-
-public class MovieDAODemo
-{
- /**
- * @param args
- */
- public static void main(String[] args)
- {
- /*
- MovieDAO dao = new MovieDAOJDBCImpl("jdbc:mysql://localhost/training", "root", "password");
-
- Movie aMovie = new Movie();
- aMovie.setId(2);
- aMovie.setName("Speed2..CC");
- aMovie.setRating("PG-13");
- aMovie.setGenre("Thriller");
- aMovie.setReleaseDate(new Date(System.currentTimeMillis()));
-
- dao.create(aMovie);
- */
-
- MovieDAO dao = new MovieDAOJDBCImpl("jdbc:mysql://localhost/training", "root", "password");
-
- List movies = dao.getMovies();
- for(Movie aMovie : movies)
- {
- System.out.println("Name = " + aMovie.getName());
- System.out.println("Rating = " + aMovie.getRating());
- System.out.println("Genre = " + aMovie.getGenre());
- System.out.println("Release date = " + aMovie.getReleaseDate());
- System.out.println("id = " + aMovie.getId());
- }
- }
-
-}
diff --git a/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/domain/MovieDAOException.java b/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/domain/MovieDAOException.java
deleted file mode 100644
index 3a6bc38..0000000
--- a/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/domain/MovieDAOException.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.training.java.servlet.moviestore.domain;
-
-public class MovieDAOException extends RuntimeException
-{
- MovieDAOException(String errorMessage)
- {
- super(errorMessage);
- }
-
-}
diff --git a/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/domain/MovieDAOJDBCImpl.java b/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/domain/MovieDAOJDBCImpl.java
deleted file mode 100644
index b1a275d..0000000
--- a/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/domain/MovieDAOJDBCImpl.java
+++ /dev/null
@@ -1,93 +0,0 @@
-package com.training.java.servlet.moviestore.domain;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.List;
-
-public class MovieDAOJDBCImpl implements MovieDAO
-{
- private String dburl;
- private String dbuser;
- private String dbPassword;
-
- public MovieDAOJDBCImpl(String dburl, String dbuser, String dbPassWord)
- {
- this.dburl = dburl;
- this.dbuser = dbuser;
- this.dbPassword = dbPassWord;
- }
-
- @Override
- public void create(Movie movie)
- {
- try
- {
- Class.forName("com.mysql.jdbc.Driver");
- Connection con = DriverManager.getConnection(dburl, dbuser,
- dbPassword);
- PreparedStatement stmt = con
- .prepareStatement("insert into movie(id, genre, rating, release_date, name) values(?,?,?,?,?)");
-
- stmt.setInt(1, movie.getId());
- stmt.setString(2, movie.getGenre());
- stmt.setString(3, movie.getRating());
- stmt.setDate(4, movie.getReleaseDate());
- stmt.setString(5, movie.getName());
-
- stmt.executeUpdate();
-
- }
- catch(ClassNotFoundException e)
- {
- e.printStackTrace();
- }
- catch (SQLException e)
- {
- throw new MovieDAOException(e.getMessage());
- }
- }
-
- @Override
- public List getMovies()
- {
- List movies = new ArrayList();
-
- try
- {
- Class.forName("com.mysql.jdbc.Driver");
- Connection con = DriverManager.getConnection(dburl, dbuser,
- dbPassword);
- PreparedStatement stmt = con
- .prepareStatement("select * from movie");
-
- ResultSet rs = stmt.executeQuery();
-
- while(rs.next())
- {
- Movie aMovie = new Movie();
-
- aMovie.setId(rs.getInt("id"));
- aMovie.setName(rs.getString("name"));
- aMovie.setRating(rs.getString("rating"));
- aMovie.setReleaseDate(rs.getDate("release_date"));
- aMovie.setGenre(rs.getString("genre"));
-
- movies.add(aMovie);
- }
- }
- catch(ClassNotFoundException ex)
- {
- ex.printStackTrace();
- }
- catch (SQLException e)
- {
- e.printStackTrace();
- }
-
- return movies;
- }
-}
diff --git a/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/web/AddMovieServlet.java b/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/web/AddMovieServlet.java
deleted file mode 100644
index 74f825b..0000000
--- a/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/web/AddMovieServlet.java
+++ /dev/null
@@ -1,69 +0,0 @@
-package com.training.java.servlet.moviestore.web;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.sql.Date;
-
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import com.training.java.servlet.moviestore.domain.Movie;
-import com.training.java.servlet.moviestore.domain.MovieDAO;
-import com.training.java.servlet.moviestore.domain.MovieDAOJDBCImpl;
-
-/**
- * Servlet implementation class AddMovieServlet
- */
-public class AddMovieServlet extends HttpServlet
-{
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public AddMovieServlet()
- {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
- * response)
- */
- protected void doGet(HttpServletRequest request,
- HttpServletResponse response) throws ServletException, IOException
- {
- doPost(request, response);
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse
- * response)
- */
- protected void doPost(HttpServletRequest request,
- HttpServletResponse response) throws ServletException, IOException
- {
- String id = request.getParameter("id");
- String name = request.getParameter("name");
- String rating = request.getParameter("rating");
- String genre = request.getParameter("genre");
-
- Movie newMovie = new Movie();
-
- newMovie.setId(Integer.parseInt(id));
- newMovie.setName(name);
- newMovie.setGenre(genre);
- newMovie.setRating(rating);
- newMovie.setReleaseDate(new Date(System.currentTimeMillis()));
-
- request.setAttribute("VenkatsMovie", newMovie);
-
- RequestDispatcher rd = request.getRequestDispatcher("SaveMovie.jsp");
- rd.forward(request, response);
- }
-
-}
diff --git a/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/web/ListMovieServlet.java b/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/web/ListMovieServlet.java
deleted file mode 100644
index 772d9a7..0000000
--- a/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/web/ListMovieServlet.java
+++ /dev/null
@@ -1,99 +0,0 @@
-package com.training.java.servlet.moviestore.web;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.util.List;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import com.training.java.servlet.moviestore.domain.Movie;
-import com.training.java.servlet.moviestore.domain.MovieDAO;
-import com.training.java.servlet.moviestore.domain.MovieDAOJDBCImpl;
-
-/**
- * Servlet implementation class ListMovieServlet
- */
-public class ListMovieServlet extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public ListMovieServlet() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
- * response)
- */
- protected void doGet(HttpServletRequest request,
- HttpServletResponse response) throws ServletException, IOException {
-
- try {
-
- String jdbcURL = getServletContext().getInitParameter("jdbcURL");
- String username = getServletContext().getInitParameter("username");
- String password = getServletContext().getInitParameter("password");
-
- MovieDAO dao = new MovieDAOJDBCImpl(jdbcURL, username, password);
- List movies = dao.getMovies();
-
- PrintWriter out = response.getWriter();
-
- out.println("");
- out.println("");
- out.println("These are all the movies we have in our database.. ");
- out.println("");
- out.println("Title ");
- out.println("Genre ");
- out.println("Release Date ");
- out.println("Rating ");
- out.println("");
-
- String numberOfMoviesToBeShown = getServletConfig().getInitParameter("numberOfMoviesToBeShown");
- int maxNumberOfMovies = Integer.parseInt(numberOfMoviesToBeShown);
-
- System.out.println("maxNumberOfMovies from Servlet config = " + maxNumberOfMovies);
-
- if(movies.size() < maxNumberOfMovies)
- {
- maxNumberOfMovies = movies.size();
- }
-
- for(int i=0; i");
- out.println("" + aMovie.getName() + " ");
- out.println("" + aMovie.getGenre() + " ");
- out.println("" + aMovie.getReleaseDate() + " ");
- out.println("" + aMovie.getRating() + " ");
- out.println("");
- }
-
- out.println("
");
- out.println("");
- out.println("");
- } catch (Exception e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse
- * response)
- */
- protected void doPost(HttpServletRequest request,
- HttpServletResponse response) throws ServletException, IOException {
- // TODO Auto-generated method stub
- }
-
-}
diff --git a/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/web/SaveMovie.jsp b/ServletMovieStoreAdvanced/src/com/training/java/servlet/moviestore/web/SaveMovie.jsp
deleted file mode 100644
index e69de29..0000000
diff --git a/ServletStudents/.classpath b/ServletStudents/.classpath
deleted file mode 100644
index 3c8c5d8..0000000
--- a/ServletStudents/.classpath
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ServletStudents/.project b/ServletStudents/.project
deleted file mode 100644
index 39ee7bf..0000000
--- a/ServletStudents/.project
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- ServletStudents
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/ServletStudents/.settings/.jsdtscope b/ServletStudents/.settings/.jsdtscope
deleted file mode 100644
index 887f573..0000000
--- a/ServletStudents/.settings/.jsdtscope
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ServletStudents/.settings/org.eclipse.jdt.core.prefs b/ServletStudents/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 1b21ee9..0000000
--- a/ServletStudents/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Tue Feb 07 18:46:41 EST 2012
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/ServletStudents/.settings/org.eclipse.wst.common.component b/ServletStudents/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index b1c88d6..0000000
--- a/ServletStudents/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/ServletStudents/.settings/org.eclipse.wst.common.project.facet.core.xml b/ServletStudents/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index 0873c6e..0000000
--- a/ServletStudents/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/ServletStudents/.settings/org.eclipse.wst.jsdt.ui.superType.container b/ServletStudents/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/ServletStudents/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/ServletStudents/.settings/org.eclipse.wst.jsdt.ui.superType.name b/ServletStudents/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/ServletStudents/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/ServletStudents/WebContent/META-INF/MANIFEST.MF b/ServletStudents/WebContent/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/ServletStudents/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/ServletStudents/WebContent/WEB-INF/lib/junit-4.8.2.jar b/ServletStudents/WebContent/WEB-INF/lib/junit-4.8.2.jar
deleted file mode 100644
index 5b4bb84..0000000
Binary files a/ServletStudents/WebContent/WEB-INF/lib/junit-4.8.2.jar and /dev/null differ
diff --git a/ServletStudents/WebContent/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar b/ServletStudents/WebContent/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar
deleted file mode 100644
index cdee6a1..0000000
Binary files a/ServletStudents/WebContent/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar and /dev/null differ
diff --git a/ServletStudents/WebContent/WEB-INF/web.xml b/ServletStudents/WebContent/WEB-INF/web.xml
deleted file mode 100644
index 7f6ab28..0000000
--- a/ServletStudents/WebContent/WEB-INF/web.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
- ServletStudents
-
- index.html
- index.htm
- index.jsp
- default.html
- default.htm
- default.jsp
-
-
-
- driverClassName
- com.mysql.jdbc.Driver
-
-
- jdbcURL
- jdbc:mysql://localhost/training
-
-
- username
- root
-
-
- password
- password
-
-
-
- ListStudentsServlet
- ListStudentsServlet
- com.training.java.servlet.college.web.ListStudentsServlet
-
-
- maxResults
- 10
-
-
-
- ListStudentsServlet
- /list
-
-
-
- AddStudentServlet
- AddStudentServlet
- com.training.java.servlet.college.web.AddStudentServlet
-
-
- AddStudentServlet
- /add
-
-
\ No newline at end of file
diff --git a/ServletStudents/WebContent/index.html b/ServletStudents/WebContent/index.html
deleted file mode 100644
index c9d2d8b..0000000
--- a/ServletStudents/WebContent/index.html
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-Insert title here
-
-
-
-Welcome to College!
-
-For list of all students, please click here .
-
-To add a new student, please click here .
-
-Go to google, click here
-
-
-
\ No newline at end of file
diff --git a/ServletStudents/WebContent/newstudent.html b/ServletStudents/WebContent/newstudent.html
deleted file mode 100644
index 1e96b2a..0000000
--- a/ServletStudents/WebContent/newstudent.html
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-Insert title here
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ServletStudents/src/com/training/java/servlet/college/domain/DAOException.java b/ServletStudents/src/com/training/java/servlet/college/domain/DAOException.java
deleted file mode 100644
index 653baf1..0000000
--- a/ServletStudents/src/com/training/java/servlet/college/domain/DAOException.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.training.java.servlet.college.domain;
-
-public class DAOException extends RuntimeException {
-
- public DAOException(Throwable ex)
- {
- super(ex);
- }
-
- public DAOException(String errorMessage, Throwable ex)
- {
- super(errorMessage, ex);
- }
-}
diff --git a/ServletStudents/src/com/training/java/servlet/college/domain/Student.java b/ServletStudents/src/com/training/java/servlet/college/domain/Student.java
deleted file mode 100644
index 07ef2f8..0000000
--- a/ServletStudents/src/com/training/java/servlet/college/domain/Student.java
+++ /dev/null
@@ -1,83 +0,0 @@
-package com.training.java.servlet.college.domain;
-
-public class Student {
-
- private int id;
- private String firstName;
- private String lastName;
- private String phoneNumber;
- private String email;
- private int age;
- private String city;
-
- public int getId() {
- return id;
- }
-
- public void setId(int id) {
- this.id = id;
- }
-
- public String getFirstName() {
- return firstName;
- }
-
- public void setFirstName(String firstName) {
- this.firstName = firstName;
- }
-
- public String getLastName() {
- return lastName;
- }
-
- public void setLastName(String lastName) {
- this.lastName = lastName;
- }
-
- public String getPhoneNumber() {
- return phoneNumber;
- }
-
- public void setPhoneNumber(String phoneNumber) {
- this.phoneNumber = phoneNumber;
- }
-
- public String getEmail() {
- return email;
- }
-
- public void setEmail(String email) {
- this.email = email;
- }
-
- public int getAge() {
- return age;
- }
-
- public void setAge(int age) {
- this.age = age;
- }
-
- public String getCity() {
- return city;
- }
-
- public void setCity(String city) {
- this.city = city;
- }
-
- @Override
- public String toString() {
-
- StringBuilder str = new StringBuilder();
- str.append("id = " + id);
- str.append(" city = " + city);
- str.append(" age = " + age);
- str.append(" email = " + email);
- str.append(" firstName = " + firstName);
- str.append(" lastName = " + lastName);
-
- return str.toString();
- }
-
-}
diff --git a/ServletStudents/src/com/training/java/servlet/college/domain/StudentDAO.java b/ServletStudents/src/com/training/java/servlet/college/domain/StudentDAO.java
deleted file mode 100644
index bb0280d..0000000
--- a/ServletStudents/src/com/training/java/servlet/college/domain/StudentDAO.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.training.java.servlet.college.domain;
-
-import java.util.List;
-
-public interface StudentDAO {
-
- List getAllStudents();
- void create(Student student);
-
-}
diff --git a/ServletStudents/src/com/training/java/servlet/college/domain/StudentDAOJDBCImpl.java b/ServletStudents/src/com/training/java/servlet/college/domain/StudentDAOJDBCImpl.java
deleted file mode 100644
index ea5a6b6..0000000
--- a/ServletStudents/src/com/training/java/servlet/college/domain/StudentDAOJDBCImpl.java
+++ /dev/null
@@ -1,129 +0,0 @@
-package com.training.java.servlet.college.domain;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-import java.util.ArrayList;
-import java.util.List;
-
-public class StudentDAOJDBCImpl implements StudentDAO {
-
- private String driverClassName;
- private String jdbcURL;
- private String username;
- private String password;
-
- public StudentDAOJDBCImpl(String driverClassName, String jdbcURL,
- String username, String password) {
- this.driverClassName = driverClassName;
- this.jdbcURL = jdbcURL;
- this.username = username;
- this.password = password;
- }
-
- @Override
- public List getAllStudents() {
-
- Connection connection = null;
- Statement statement = null;
- ResultSet resultSet = null;
-
- try {
- connection = getConnection();
- statement = connection.createStatement();
- resultSet = statement.executeQuery("select * from students");
-
- List students = new ArrayList();
-
- while (resultSet.next()) {
- String firstName = resultSet.getString("first_name");
- String lastName = resultSet.getString("last_name");
- String city = resultSet.getString("city");
- int id = resultSet.getInt("id");
- int age = resultSet.getInt("age");
- String phoneNumber = resultSet.getString("phone_number");
- String email = resultSet.getString("email");
-
- Student student = new Student();
- student.setAge(age);
- student.setCity(city);
- student.setEmail(email);
- student.setFirstName(firstName);
- student.setId(id);
- student.setLastName(lastName);
- student.setPhoneNumber(phoneNumber);
-
- students.add(student);
- }
-
- return students;
- } catch (SQLException e) {
- e.printStackTrace();
- throw new DAOException(e);
- } finally {
- try {
- if (resultSet != null) {
- resultSet.close();
- }
- closeResources(statement, connection);
- } catch (SQLException ex) {
- ex.printStackTrace();
- }
- }
- }
-
- @Override
- public void create(Student student) {
-
- Connection connection = null;
- PreparedStatement statement = null;
-
- try {
- connection = getConnection();
-
- statement = connection
- .prepareStatement("insert into students values(?, ?, ?, ?, ?, ?, ?)");
-
- statement.setString(1, student.getFirstName());
- statement.setString(2, student.getLastName());
- statement.setString(3, student.getPhoneNumber());
- statement.setString(4, student.getEmail());
- statement.setInt(5, student.getAge());
- statement.setString(6, student.getCity());
- statement.setInt(7, student.getId());
-
- statement.execute();
- } catch (SQLException ex) {
- ex.printStackTrace();
- throw new DAOException(ex);
- } finally {
- closeResources(statement, connection);
- }
- }
-
- private void closeResources(Statement statement, Connection connection) {
- try {
- if (statement != null) {
- statement.close();
- }
- if (connection != null) {
- connection.close();
- }
- } catch (SQLException ex) {
- ex.printStackTrace();
- }
- }
-
- private Connection getConnection() throws SQLException {
- try {
- Class.forName(driverClassName);
- } catch (ClassNotFoundException ex) {
- throw new DAOException(ex);
- }
- return DriverManager.getConnection(jdbcURL, username, password);
- }
-
-}
diff --git a/ServletStudents/src/com/training/java/servlet/college/domain/StudentDAOJDBCImplTest.java b/ServletStudents/src/com/training/java/servlet/college/domain/StudentDAOJDBCImplTest.java
deleted file mode 100644
index 5fe92f6..0000000
--- a/ServletStudents/src/com/training/java/servlet/college/domain/StudentDAOJDBCImplTest.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package com.training.java.servlet.college.domain;
-
-import java.util.List;
-
-import org.junit.Ignore;
-import org.junit.Test;
-
-public class StudentDAOJDBCImplTest {
-
- @Test
- public void testGetAllStudents() {
-
- StudentDAO dao = new StudentDAOJDBCImpl("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/training", "root", "password");
- List students = dao.getAllStudents();
-
- for(Student current : students)
- {
- System.out.println(current);
- }
- }
-
- @Ignore
- public void testCreateStudent(){
- StudentDAO dao = new StudentDAOJDBCImpl("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/training", "root", "password");
-
- Student student = new Student();
- student.setAge(20);
- student.setCity("Sterling Heights");
- student.setEmail("priya@gmail.com");
- student.setFirstName("Priya");
- student.setId(7);
- student.setLastName("Patel");
- student.setPhoneNumber("248-238-9874");
-
- dao.create(student);
-
- //assert that your student is created
-
- //delete the student that you just created
- }
-
-}
diff --git a/ServletStudents/src/com/training/java/servlet/college/web/AddStudentServlet.java b/ServletStudents/src/com/training/java/servlet/college/web/AddStudentServlet.java
deleted file mode 100644
index 7da517c..0000000
--- a/ServletStudents/src/com/training/java/servlet/college/web/AddStudentServlet.java
+++ /dev/null
@@ -1,71 +0,0 @@
-package com.training.java.servlet.college.web;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import com.training.java.servlet.college.domain.Student;
-import com.training.java.servlet.college.domain.StudentDAO;
-import com.training.java.servlet.college.domain.StudentDAOJDBCImpl;
-
-/**
- * Servlet implementation class AddStudentServlet
- */
-public class AddStudentServlet extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public AddStudentServlet() {
- super();
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- doPost(request, response);
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
-
- String firstName = request.getParameter("firstName");
- String lastName = request.getParameter("lastName");
- String phone = request.getParameter("phone");
- String email = request.getParameter("email");
- String age = request.getParameter("age");
- String city = request.getParameter("city");
- String id = request.getParameter("id");
-
- //do the validation here
- Student student = new Student();
- student.setFirstName(firstName);
- student.setLastName(lastName);
- student.setPhoneNumber(phone);
- student.setEmail(email);
- student.setAge(Integer.parseInt(age));
- student.setCity(city);
- student.setId(Integer.parseInt(id));
-
- String driverClassName = getServletContext().getInitParameter("driverClassName");
- String jdbcURL = getServletContext().getInitParameter("jdbcURL");
- String username = getServletContext().getInitParameter("username");
- String password = getServletContext().getInitParameter("password");
-
- StudentDAO dao = new StudentDAOJDBCImpl(driverClassName, jdbcURL, username, password);
- dao.create(student);
-
- PrintWriter out = response.getWriter();
-
- out.print(" Your details have been saved successfully!");
- }
-
-}
diff --git a/ServletStudents/src/com/training/java/servlet/college/web/ListStudentsServlet.java b/ServletStudents/src/com/training/java/servlet/college/web/ListStudentsServlet.java
deleted file mode 100644
index 6664011..0000000
--- a/ServletStudents/src/com/training/java/servlet/college/web/ListStudentsServlet.java
+++ /dev/null
@@ -1,79 +0,0 @@
-package com.training.java.servlet.college.web;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.util.List;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import com.training.java.servlet.college.domain.Student;
-import com.training.java.servlet.college.domain.StudentDAO;
-import com.training.java.servlet.college.domain.StudentDAOJDBCImpl;
-
-/**
- * Servlet implementation class ListStudentsServlet
- */
-public class ListStudentsServlet extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public ListStudentsServlet() {
- super();
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
-
- String maxResultsStr = getServletConfig().getInitParameter("maxResults");
- int maxResults = Integer.parseInt(maxResultsStr);
-
- String driverClassName = getServletContext().getInitParameter("driverClassName");
- String jdbcURL = getServletContext().getInitParameter("jdbcURL");
- String username = getServletContext().getInitParameter("username");
- String password = getServletContext().getInitParameter("password");
-
- StudentDAO dao = new StudentDAOJDBCImpl(driverClassName, jdbcURL, username, password);
- List students = dao.getAllStudents();
-
- PrintWriter out = response.getWriter();
-
- out.print("");
- out.print("");
- out.print("");
- out.print("");
- out.print("First Name ");
- out.print("Last Name ");
- out.print("Phone Number ");
- out.print(" ");
-
- for(int i=0; i");
- out.print("" + current.getFirstName() + " ");
- out.print("" + current.getLastName() + " ");
- out.print("" + current.getPhoneNumber() + " ");
- out.print("");
- }
-
- out.print("
");
- out.print("");
- out.print("");
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- // TODO Auto-generated method stub
- }
-
-}
diff --git a/SpringAnnotations/.classpath b/SpringAnnotations/.classpath
deleted file mode 100644
index 3ea250f..0000000
--- a/SpringAnnotations/.classpath
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/SpringAnnotations/.project b/SpringAnnotations/.project
deleted file mode 100644
index a087e92..0000000
--- a/SpringAnnotations/.project
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
- SpringAnnotations
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.maven.ide.eclipse.maven2Builder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
- org.maven.ide.eclipse.maven2Nature
-
-
diff --git a/SpringAnnotations/.settings/org.eclipse.jdt.core.prefs b/SpringAnnotations/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 2a93a71..0000000
--- a/SpringAnnotations/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,6 +0,0 @@
-#Wed Sep 28 23:15:28 EDT 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/SpringAnnotations/.settings/org.maven.ide.eclipse.prefs b/SpringAnnotations/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644
index 2ce8dfa..0000000
--- a/SpringAnnotations/.settings/org.maven.ide.eclipse.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Wed Sep 28 23:15:28 EDT 2011
-activeProfiles=
-eclipse.preferences.version=1
-fullBuildGoals=process-test-resources
-resolveWorkspaceProjects=true
-resourceFilterGoals=process-resources resources\:testResources
-skipCompilerPlugin=true
-version=1
diff --git a/SpringAnnotations/pom.xml b/SpringAnnotations/pom.xml
deleted file mode 100644
index d7884c6..0000000
--- a/SpringAnnotations/pom.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
- 4.0.0
-
- com.apps
- SpringAnnotations
- 1.0
- jar
-
- SpringAnnotations
- http://maven.apache.org
-
-
- UTF-8
-
-
-
-
- junit
- junit
- 3.8.1
- test
-
-
- org.springframework
- spring-context
- 3.0.6.RELEASE
-
-
-
diff --git a/SpringAnnotations/src/main/java/com/apps/SpringAnnotations/App.java b/SpringAnnotations/src/main/java/com/apps/SpringAnnotations/App.java
deleted file mode 100644
index 8f15c9e..0000000
--- a/SpringAnnotations/src/main/java/com/apps/SpringAnnotations/App.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.apps.SpringAnnotations;
-
-/**
- * Hello world!
- *
- */
-public class App
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
- }
-}
diff --git a/SpringAnnotations/src/main/java/com/training/java/spring/Boat.java b/SpringAnnotations/src/main/java/com/training/java/spring/Boat.java
deleted file mode 100644
index 9a9a008..0000000
--- a/SpringAnnotations/src/main/java/com/training/java/spring/Boat.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.training.java.spring;
-
-import org.springframework.stereotype.Component;
-
-@Component
-public class Boat implements Vehicle
-{
- public void accelerate()
- {
- System.out.println("Boat is accelerating");
- }
-
- public void applyBrakes()
- {
- System.out.println("Boat is applying brakes");
- }
-
- public void start()
- {
- System.out.println("Boat is starting");
- }
-
- public void stop()
- {
- System.out.println("Boat is stopping");
- }
-}
diff --git a/SpringAnnotations/src/main/java/com/training/java/spring/Car.java b/SpringAnnotations/src/main/java/com/training/java/spring/Car.java
deleted file mode 100644
index 1fa8747..0000000
--- a/SpringAnnotations/src/main/java/com/training/java/spring/Car.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.training.java.spring;
-
-import org.springframework.stereotype.Component;
-
-@Component
-public class Car implements Vehicle
-{
-
- public void accelerate()
- {
- System.out.println("Car is accelerating");
- }
-
- public void applyBrakes()
- {
- System.out.println("Car is applying brakes");
- }
-
- public void start()
- {
- System.out.println("Car is starting");
- }
-
- public void stop()
- {
- System.out.println("Car is stopping");
- }
-}
diff --git a/SpringAnnotations/src/main/java/com/training/java/spring/DummyVehicle.java b/SpringAnnotations/src/main/java/com/training/java/spring/DummyVehicle.java
deleted file mode 100644
index 0080952..0000000
--- a/SpringAnnotations/src/main/java/com/training/java/spring/DummyVehicle.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.training.java.spring;
-
-public class DummyVehicle implements Vehicle
-{
-
- public void accelerate()
- {
- System.out.println("Dummy vehicle is accelerating..");
- }
-
- public void applyBrakes()
- {
- // TODO Auto-generated method stub
-
- }
-
- public void start()
- {
- // TODO Auto-generated method stub
-
- }
-
- public void stop()
- {
- // TODO Auto-generated method stub
-
- }
-
-}
diff --git a/SpringAnnotations/src/main/java/com/training/java/spring/Luggage.java b/SpringAnnotations/src/main/java/com/training/java/spring/Luggage.java
deleted file mode 100644
index 157388d..0000000
--- a/SpringAnnotations/src/main/java/com/training/java/spring/Luggage.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package com.training.java.spring;
-
-public interface Luggage
-{
- String getCompanyName();
-
-}
diff --git a/SpringAnnotations/src/main/java/com/training/java/spring/SuiteCase.java b/SpringAnnotations/src/main/java/com/training/java/spring/SuiteCase.java
deleted file mode 100644
index b298cdc..0000000
--- a/SpringAnnotations/src/main/java/com/training/java/spring/SuiteCase.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.training.java.spring;
-
-import org.springframework.stereotype.Component;
-
-@Component
-public class SuiteCase implements Luggage
-{
-
- public String getCompanyName()
- {
- return "VIP";
- }
-
-}
diff --git a/SpringAnnotations/src/main/java/com/training/java/spring/Traveller.java b/SpringAnnotations/src/main/java/com/training/java/spring/Traveller.java
deleted file mode 100644
index 6a5bb93..0000000
--- a/SpringAnnotations/src/main/java/com/training/java/spring/Traveller.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package com.training.java.spring;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Qualifier;
-import org.springframework.stereotype.Component;
-
-@Component
-public class Traveller
-{
- private Vehicle v;
- private Luggage l;
-
- @Autowired
- public Traveller(@Qualifier("car") Vehicle v, Luggage l)
- {
- this.v = v;
- this.l = l;
- }
-
- public void travel()
- {
- System.out.println("started travelling with " + l.getCompanyName());
- v.start();
- v.accelerate();
- v.applyBrakes();
- v.stop();
- System.out.println("Done with travelling");
- }
-
- /* Use this for setter injection
- public void setVehicle(Vehicle v)
- {
- this.v = v;
- }
- */
-}
diff --git a/SpringAnnotations/src/main/java/com/training/java/spring/TravellerDemo.java b/SpringAnnotations/src/main/java/com/training/java/spring/TravellerDemo.java
deleted file mode 100644
index fdab934..0000000
--- a/SpringAnnotations/src/main/java/com/training/java/spring/TravellerDemo.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.training.java.spring;
-
-import org.springframework.beans.factory.BeanFactory;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-public class TravellerDemo
-{
-
- /**
- * @param args
- */
- public static void main(String[] args)
- {
- /* Dependency Injection by hand
- Vehicle v = new Boat();
- Traveller t = new Traveller(v);
- //t.setVehicle(v);
-
- t.travel();
- */
-
- BeanFactory factory = new ClassPathXmlApplicationContext("spring-config.xml");
-
- Traveller traveller = (Traveller) factory.getBean("traveller");
- traveller.travel();
- }
-
-}
diff --git a/SpringAnnotations/src/main/java/com/training/java/spring/Vehicle.java b/SpringAnnotations/src/main/java/com/training/java/spring/Vehicle.java
deleted file mode 100644
index 920bdec..0000000
--- a/SpringAnnotations/src/main/java/com/training/java/spring/Vehicle.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.training.java.spring;
-
-public interface Vehicle
-{
- void start();
- void accelerate();
- void applyBrakes();
- void stop();
-}
diff --git a/SpringAnnotations/src/main/resources/spring-config.xml b/SpringAnnotations/src/main/resources/spring-config.xml
deleted file mode 100644
index c492a71..0000000
--- a/SpringAnnotations/src/main/resources/spring-config.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
diff --git a/SpringAnnotations/src/test/java/com/apps/SpringAnnotations/AppTest.java b/SpringAnnotations/src/test/java/com/apps/SpringAnnotations/AppTest.java
deleted file mode 100644
index f5dd834..0000000
--- a/SpringAnnotations/src/test/java/com/apps/SpringAnnotations/AppTest.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.apps.SpringAnnotations;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-/**
- * Unit test for simple App.
- */
-public class AppTest
- extends TestCase
-{
- /**
- * Create the test case
- *
- * @param testName name of the test case
- */
- public AppTest( String testName )
- {
- super( testName );
- }
-
- /**
- * @return the suite of tests being tested
- */
- public static Test suite()
- {
- return new TestSuite( AppTest.class );
- }
-
- /**
- * Rigourous Test :-)
- */
- public void testApp()
- {
- assertTrue( true );
- }
-}
diff --git a/SpringCellStore/.classpath b/SpringCellStore/.classpath
deleted file mode 100644
index 76d716f..0000000
--- a/SpringCellStore/.classpath
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/SpringCellStore/.project b/SpringCellStore/.project
deleted file mode 100644
index 9fc8e20..0000000
--- a/SpringCellStore/.project
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
- SpringCellStore
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
- org.maven.ide.eclipse.maven2Builder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.jdt.core.javanature
- org.maven.ide.eclipse.maven2Nature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/SpringCellStore/.settings/.jsdtscope b/SpringCellStore/.settings/.jsdtscope
deleted file mode 100644
index fac399c..0000000
--- a/SpringCellStore/.settings/.jsdtscope
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/SpringCellStore/.settings/org.eclipse.jdt.core.prefs b/SpringCellStore/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 9f55be4..0000000
--- a/SpringCellStore/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,9 +0,0 @@
-#Sat Oct 01 14:53:50 EDT 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/SpringCellStore/.settings/org.eclipse.wst.common.component b/SpringCellStore/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index b19db8b..0000000
--- a/SpringCellStore/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/SpringCellStore/.settings/org.eclipse.wst.common.project.facet.core.xml b/SpringCellStore/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index 6f361dd..0000000
--- a/SpringCellStore/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/SpringCellStore/.settings/org.eclipse.wst.jsdt.ui.superType.container b/SpringCellStore/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/SpringCellStore/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/SpringCellStore/.settings/org.eclipse.wst.jsdt.ui.superType.name b/SpringCellStore/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/SpringCellStore/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/SpringCellStore/.settings/org.maven.ide.eclipse.prefs b/SpringCellStore/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644
index eb85a57..0000000
--- a/SpringCellStore/.settings/org.maven.ide.eclipse.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Sat Oct 01 13:01:14 EDT 2011
-activeProfiles=
-eclipse.preferences.version=1
-fullBuildGoals=process-test-resources
-resolveWorkspaceProjects=true
-resourceFilterGoals=process-resources resources\:testResources
-skipCompilerPlugin=true
-version=1
diff --git a/SpringCellStore/.springBeans b/SpringCellStore/.springBeans
deleted file mode 100644
index dd3589a..0000000
--- a/SpringCellStore/.springBeans
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- 1
-
-
-
-
-
-
- src/main/resources/cellphone-config.xml
-
-
-
-
diff --git a/SpringCellStore/pom.xml b/SpringCellStore/pom.xml
deleted file mode 100644
index 993ffb9..0000000
--- a/SpringCellStore/pom.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-
- 4.0.0
- com.rajashree
- RajSpringCellStore
- 1.0
- war
-
-
-
-
- maven-compiler-plugin
- 2.3.2
-
- 1.6
- 1.6
-
-
-
-
-
-
-
- junit
- junit
- 4.9
-
-
- org.springframework
- spring-context
- 3.0.6.RELEASE
-
-
- org.springframework
- spring-web
- 3.0.6.RELEASE
-
-
- mysql
- mysql-connector-java
- 5.1.17
-
-
- struts
- struts
- 1.2.9
-
-
- javax.servlet
- servlet-api
- 2.5
-
-
-
\ No newline at end of file
diff --git a/SpringCellStore/src/main/java/com/training/cellstore/domain/Cellphone.java b/SpringCellStore/src/main/java/com/training/cellstore/domain/Cellphone.java
deleted file mode 100644
index 506a0f6..0000000
--- a/SpringCellStore/src/main/java/com/training/cellstore/domain/Cellphone.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package com.training.cellstore.domain;
-
-public class Cellphone {
-
- private int cellid;
- private String cellCompanyname;
- private String model;
- private float price;
- public int getCellid() {
- return cellid;
- }
- public void setCellid(int cellid) {
- this.cellid = cellid;
- }
- public String getCellCompanyname() {
- return cellCompanyname;
- }
- public void setCellCompanyname(String cellCompanyname) {
- this.cellCompanyname = cellCompanyname;
- }
- public String getModel() {
- return model;
- }
- public void setModel(String model) {
- this.model = model;
- }
- public float getPrice() {
- return price;
- }
- public void setPrice(float price) {
- this.price = price;
- }
-
-
-}
diff --git a/SpringCellStore/src/main/java/com/training/cellstore/domain/CellphoneDAO.java b/SpringCellStore/src/main/java/com/training/cellstore/domain/CellphoneDAO.java
deleted file mode 100644
index 17549d6..0000000
--- a/SpringCellStore/src/main/java/com/training/cellstore/domain/CellphoneDAO.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.training.cellstore.domain;
-
-import java.util.List;
-
-public interface CellphoneDAO {
-
- void create(Cellphone cp);
-
- List getcellphones();
-
- void Update(Cellphone cp);
- Cellphone findByPrimaryKey(int cellid);
- void delete(int cellid);
-
-
-
-}
diff --git a/SpringCellStore/src/main/java/com/training/cellstore/domain/CellphoneDAOException.java b/SpringCellStore/src/main/java/com/training/cellstore/domain/CellphoneDAOException.java
deleted file mode 100644
index 7031b24..0000000
--- a/SpringCellStore/src/main/java/com/training/cellstore/domain/CellphoneDAOException.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.training.cellstore.domain;
-
-public class CellphoneDAOException extends RuntimeException {
-
- public CellphoneDAOException(String message)
- {
- super(message);
- }
-}
diff --git a/SpringCellStore/src/main/java/com/training/cellstore/domain/CellphoneDAOJDBCImpl.java b/SpringCellStore/src/main/java/com/training/cellstore/domain/CellphoneDAOJDBCImpl.java
deleted file mode 100644
index ae2161b..0000000
--- a/SpringCellStore/src/main/java/com/training/cellstore/domain/CellphoneDAOJDBCImpl.java
+++ /dev/null
@@ -1,289 +0,0 @@
-package com.training.cellstore.domain;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.List;
-
-
-
-
-
-public class CellphoneDAOJDBCImpl implements CellphoneDAO {
-
-
- private String dbUrl;
- private String dbUsername;
- private String dbPassword;
-
- //constructor
- public CellphoneDAOJDBCImpl(String dbUrl, String dbUsername,
- String dbPassword) {
- super();
- this.dbUrl = dbUrl;
- this.dbUsername = dbUsername;
- this.dbPassword = dbPassword;
- }
-
- private Connection getConnection() throws ClassNotFoundException, SQLException
- {
- Class.forName("com.mysql.jdbc.Driver");
- System.out.println("Driver is loaded");
- //Class.forName("com.mysql.jdbc.Driver");
- Connection con = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);
- return con;
- }
-
- @Override
- public void create(Cellphone cp) throws CellphoneDAOException {
- // TODO Auto-generated method stub
-
- Connection con=null;
- PreparedStatement stmt=null;
- try
- {
- con=getConnection();
- stmt=con.prepareStatement("insert into cellphone(cellid,cellCompanyname,model, price) values (?,?,?,?)");
- stmt.setInt(1,cp.getCellid());
- stmt.setString(2, cp.getCellCompanyname());
- stmt.setString(3, cp.getModel());
- stmt.setFloat(4,cp.getPrice());
-
- int rowsAffected=stmt.executeUpdate();
-
- if (rowsAffected !=1)
- {
- System.out.println("Error occured while updating the record");
- }
- }
- catch (SQLException e)
- {
- e.printStackTrace();
- }
- catch (ClassNotFoundException e)
- {
- e.printStackTrace();
- }
- catch(CellphoneDAOException e1)
- {
- e1.printStackTrace();
- }
- finally
- {
- if(stmt != null)
- try
- {
- stmt.close();
- }
- catch (SQLException e)
- {
- e.printStackTrace();
- }
- if(con !=null)
- try
- {
- con.close();
- }
- catch (SQLException e)
- {
- e.printStackTrace();
- }
- }
- }
-
-
- //method to getcellphones from db
-
- public List getcellphones()
- {
- Connection con =null;
- PreparedStatement stmt=null;
- ResultSet rs=null;
-
- List cellphones= new ArrayList();
- try
- {
- con=getConnection();
- stmt= con.prepareStatement("select * from cellphone");
- rs= stmt.executeQuery();
-
- while (rs.next())
- {
- Cellphone acp=new Cellphone();
- acp.setCellid(rs.getInt("cellid"));
- acp.setCellCompanyname(rs.getString("cellCompanyname"));
- acp.setModel(rs.getString("model"));
- acp.setPrice(rs.getFloat("price"));
- cellphones.add(acp);
- }
- }
- catch(SQLException e)
- { e.printStackTrace(); }
- catch(ClassNotFoundException e)
- { e.printStackTrace(); }
- /*finally
- {
- if (stmt != null)
- try
- { stmt.close(); }
- catch (SQLException e)
- { e.printStackTrace(); }
- }*/
- return cellphones;
- }
-
-
-
-
-
- @Override
- public Cellphone findByPrimaryKey(int cellid) {
- // TODO Auto-generated method stub
- Cellphone a1=null;
- Connection con=null;
- PreparedStatement stmt=null;
- try
- {
- con=getConnection();
- stmt= con.prepareStatement("Select * from cellphone where cellid =?");
- stmt.setInt(1,cellid);
- ResultSet rs=stmt.executeQuery();
-
- while(rs.next())
- {
- a1=new Cellphone();
- a1.setCellid(rs.getInt("cellid"));
- a1.setCellCompanyname(rs.getString("cellCompanyname"));
- a1.setModel(rs.getString("model"));
- a1.setPrice(rs.getFloat("price"));
-
- }
-
- }
- catch(SQLException e)
- { e.printStackTrace(); }
- catch(ClassNotFoundException e)
- { e.printStackTrace(); }
- /*finally
- {
- if (stmt != null)
- try
- { stmt.close(); }
- catch (SQLException e)
- { e.printStackTrace(); }
- }*/
- return a1;
- }
-
- @Override
- public void Update(Cellphone cp) {
- // TODO Auto-generated method stub
- Connection con=null;
- PreparedStatement stmt = null;
- ResultSet rs= null;
- try
- {
- con=getConnection();
- stmt=con.prepareStatement("update cellphone set cellCompanyname=?," +"model=?," +"price=?"+ "where cellid=?" );
-
- stmt.setString(1,cp.getCellCompanyname());
- stmt.setString(2,cp.getModel());
- stmt.setFloat(3,cp.getPrice());
- stmt.setInt(4, cp.getCellid());
-
- int noOfRowsAffected=stmt.executeUpdate();
-
- if (noOfRowsAffected !=1)
- {
- throw new CellphoneDAOException("Error has occured while updating record.");
- }
- }
- catch(SQLException e)
- {
- e.printStackTrace();
- }
- catch(ClassNotFoundException e)
- {
- e.printStackTrace();
- }
- finally
- {
- if (stmt !=null)
- try
- { stmt.close(); }
- catch(SQLException e)
- { e.printStackTrace(); }
- if (con !=null)
- try
- { con.close(); }
- catch(SQLException e)
- { e.printStackTrace(); }
- }
-
- }//end of update method.
-
-
- //Method to delete record from
-
- public void delete(int cellid)
- {
- Connection con=null;
- PreparedStatement stmt=null;
-
- try
- {
- con=getConnection();
- stmt=con.prepareStatement("delete from cellphone where cellid= ?");
- stmt.setInt(1, cellid);
-
- int noOfRowsAffected=stmt.executeUpdate();
- if (noOfRowsAffected != 1) {
- throw new CellphoneDAOException("Error has occured while deleting the record");
- }
- }
- catch(SQLException e)
- {
- e.printStackTrace();
- }
- catch(ClassNotFoundException e)
- {
- e.printStackTrace();
- }
- finally
- {
- if (stmt !=null)
- try
- { stmt.close(); }
- catch(SQLException e)
- { e.printStackTrace(); }
- if (con !=null)
- try
- { con.close(); }
- catch(SQLException e)
- { e.printStackTrace(); }
- }
-
- }//end of delete method.
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/SpringCellStore/src/main/java/com/training/cellstore/service/CellPhoneService.java b/SpringCellStore/src/main/java/com/training/cellstore/service/CellPhoneService.java
deleted file mode 100644
index 869950b..0000000
--- a/SpringCellStore/src/main/java/com/training/cellstore/service/CellPhoneService.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.training.cellstore.service;
-
-import java.util.List;
-
-import com.training.cellstore.domain.Cellphone;
-
-public interface CellPhoneService {
-
- void create(Cellphone cp);
- Cellphone getByCellPhoneId(int cellid);
- List getcellphones();
-
-}
diff --git a/SpringCellStore/src/main/java/com/training/cellstore/service/CellPhoneServiceImpl.java b/SpringCellStore/src/main/java/com/training/cellstore/service/CellPhoneServiceImpl.java
deleted file mode 100644
index c4dcf42..0000000
--- a/SpringCellStore/src/main/java/com/training/cellstore/service/CellPhoneServiceImpl.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package com.training.cellstore.service;
-
-import java.util.List;
-
-import com.training.cellstore.domain.Cellphone;
-import com.training.cellstore.domain.CellphoneDAO;
-
-public class CellPhoneServiceImpl implements CellPhoneService {
-
- private CellphoneDAO dao;
-
- @Override
- public void create(Cellphone cp) {
- System.out.println("Inside create method of Service impl");
- dao.create(cp);
- }
-
- @Override
- public Cellphone getByCellPhoneId(int cellid)
- {
- System.out.println("Inside getByCellPhoneId method of Service impl");
- return dao.findByPrimaryKey(cellid);
- }
-
- public CellphoneDAO getDao() {
- return dao;
- }
-
- public void setDao(CellphoneDAO dao) {
- this.dao = dao;
- }
-
- @Override
- public List getcellphones() {
- System.out.println("Inside getcellphones method of Service impl");
- return dao.getcellphones();
- }
-
-}
diff --git a/SpringCellStore/src/main/java/com/training/cellstore/web/AddCellphoneAction.java b/SpringCellStore/src/main/java/com/training/cellstore/web/AddCellphoneAction.java
deleted file mode 100644
index 70d73c4..0000000
--- a/SpringCellStore/src/main/java/com/training/cellstore/web/AddCellphoneAction.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.training.cellstore.web;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-public class AddCellphoneAction extends Action {
-
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
- // TODO Auto-generated method stub
- return mapping.findForward("addCellphone");
- }
-
-}
diff --git a/SpringCellStore/src/main/java/com/training/cellstore/web/CellphoneStore.properties b/SpringCellStore/src/main/java/com/training/cellstore/web/CellphoneStore.properties
deleted file mode 100644
index bae7cca..0000000
--- a/SpringCellStore/src/main/java/com/training/cellstore/web/CellphoneStore.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-errors.header=Validation Errors
-errors.prefix=
-errors.suffix=
-
-cellid.required=Cell Id is required
-cellCompanyname.required=Company Name is required
-cellCompanynamelength.exceed= Cell Company Name exceeds the max limit ie 30 chars.
-model.required=Model is required
-price.required=Price is required
\ No newline at end of file
diff --git a/SpringCellStore/src/main/java/com/training/cellstore/web/EditCellphoneAction.java b/SpringCellStore/src/main/java/com/training/cellstore/web/EditCellphoneAction.java
deleted file mode 100644
index 9dbf05f..0000000
--- a/SpringCellStore/src/main/java/com/training/cellstore/web/EditCellphoneAction.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package com.training.cellstore.web;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-import com.training.cellstore.domain.Cellphone;
-import com.training.cellstore.domain.CellphoneDAO;
-import com.training.cellstore.domain.CellphoneDAOJDBCImpl;
-
-public class EditCellphoneAction extends Action {
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- String id = request.getParameter("id");
-
- CellphoneDAO dao= new CellphoneDAOJDBCImpl("jdbc:mysql://localhost/training", "root", "rajashri");
- Cellphone cellPhoneToEdit = dao.findByPrimaryKey(Integer.parseInt(id));
-
- cellphoneform cellphForm = (cellphoneform) form;
-
- cellphForm.setCellCompanyname(cellPhoneToEdit.getCellCompanyname());
- cellphForm.setCellid(cellPhoneToEdit.getCellid());
- cellphForm.setModel(cellPhoneToEdit.getModel());
- cellphForm.setPrice(cellPhoneToEdit.getPrice());
-
- return mapping.findForward("editCellphone");
- }
-
-}
diff --git a/SpringCellStore/src/main/java/com/training/cellstore/web/ListCellphoneAction.java b/SpringCellStore/src/main/java/com/training/cellstore/web/ListCellphoneAction.java
deleted file mode 100644
index 8b8a494..0000000
--- a/SpringCellStore/src/main/java/com/training/cellstore/web/ListCellphoneAction.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package com.training.cellstore.web;
-
-import java.util.List;
-
-import javax.servlet.ServletContext;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-import org.springframework.web.context.WebApplicationContext;
-import org.springframework.web.context.support.WebApplicationContextUtils;
-
-import com.training.cellstore.domain.Cellphone;
-import com.training.cellstore.service.CellPhoneService;
-
-public class ListCellphoneAction extends Action {
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception
- {
-
- ServletContext servletContext = servlet.getServletContext();
- WebApplicationContext webAppContext = WebApplicationContextUtils
- .getWebApplicationContext(servletContext);
- CellPhoneService service = webAppContext.getBean(CellPhoneService.class);
-
- List cellphones = service.getcellphones();
-
- request.setAttribute("RajCellphones", cellphones);
-
- return mapping.findForward("listCellphones");
- }
-
-}
diff --git a/SpringCellStore/src/main/java/com/training/cellstore/web/SaveCellphoneAction.java b/SpringCellStore/src/main/java/com/training/cellstore/web/SaveCellphoneAction.java
deleted file mode 100644
index 07d005f..0000000
--- a/SpringCellStore/src/main/java/com/training/cellstore/web/SaveCellphoneAction.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.training.cellstore.web;
-
-import javax.servlet.ServletContext;
-
-import org.apache.struts.action.Action;
-import org.springframework.web.context.WebApplicationContext;
-import org.springframework.web.context.support.WebApplicationContextUtils;
-
-import com.training.cellstore.domain.Cellphone;
-import com.training.cellstore.service.CellPhoneService;
-
-public class SaveCellphoneAction extends Action {
- public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception {
-
- cellphoneform acellphform = (cellphoneform) form;
-
- System.out.println("CellId: " +acellphform.getCellid());
- System.out.println("Cell Companyname: " +acellphform.getCellCompanyname());
- System.out.println("Model: " +acellphform.getModel());
- System.out.println("Price: " +acellphform.getPrice());
-
- Cellphone bcph= new Cellphone();
-
- bcph.setCellid(acellphform.getCellid());
- bcph.setCellCompanyname(acellphform.getCellCompanyname());
- bcph.setModel(acellphform.getModel());
- bcph.setPrice(acellphform.getPrice());
-
- ServletContext servletContext = servlet.getServletContext();
- WebApplicationContext webAppContext = WebApplicationContextUtils
- .getWebApplicationContext(servletContext);
- CellPhoneService service = webAppContext.getBean(CellPhoneService.class);
-
- service.create(bcph);
-
- return mapping.findForward("acknowledgement");
- };
-}
diff --git a/SpringCellStore/src/main/java/com/training/cellstore/web/SaveUpdateCellphoneAction.java b/SpringCellStore/src/main/java/com/training/cellstore/web/SaveUpdateCellphoneAction.java
deleted file mode 100644
index db99192..0000000
--- a/SpringCellStore/src/main/java/com/training/cellstore/web/SaveUpdateCellphoneAction.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package com.training.cellstore.web;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.action.Action;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-import com.training.cellstore.domain.Cellphone;
-import com.training.cellstore.domain.CellphoneDAO;
-import com.training.cellstore.domain.CellphoneDAOJDBCImpl;
-
-public class SaveUpdateCellphoneAction extends Action {
-
-
- @Override
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- cellphoneform acellphform = (cellphoneform) form;
-
- System.out.println("CellId: " +acellphform.getCellid());
- System.out.println("Cell Companyname: " +acellphform.getCellCompanyname());
- System.out.println("Model: " +acellphform.getModel());
- System.out.println("Price: " +acellphform.getPrice());
-
- Cellphone bcph= new Cellphone();
-
- bcph.setCellid(acellphform.getCellid());
- bcph.setCellCompanyname(acellphform.getCellCompanyname());
- bcph.setModel(acellphform.getModel());
- bcph.setPrice(acellphform.getPrice());
-
- CellphoneDAO dao= new CellphoneDAOJDBCImpl("jdbc:mysql://localhost/training", "root", "rajashri");
- dao.Update(bcph);
-
- return mapping.findForward("acknowledgement");
-
- }
-
-}
diff --git a/SpringCellStore/src/main/java/com/training/cellstore/web/cellphoneform.java b/SpringCellStore/src/main/java/com/training/cellstore/web/cellphoneform.java
deleted file mode 100644
index 1f492d9..0000000
--- a/SpringCellStore/src/main/java/com/training/cellstore/web/cellphoneform.java
+++ /dev/null
@@ -1,72 +0,0 @@
-package com.training.cellstore.web;
-
-import javax.servlet.http.HttpServletRequest;
-
-import org.apache.struts.action.ActionErrors;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionMapping;
-import org.apache.struts.action.ActionMessage;
-
-public class cellphoneform extends ActionForm {
- private int cellid;
- private String cellCompanyname;
- private String model;
- private float price;
-
- public int getCellid() {
- return cellid;
- }
- public void setCellid(int cellid) {
- this.cellid = cellid;
- }
- public String getCellCompanyname() {
- return cellCompanyname;
- }
- public void setCellCompanyname(String cellCompanyname) {
- this.cellCompanyname = cellCompanyname;
- }
- public String getModel() {
- return model;
- }
- public void setModel(String model) {
- this.model = model;
- }
- public float getPrice() {
- return price;
- }
- public void setPrice(float price) {
- this.price = price;
- }
-
- @Override
- public ActionErrors validate(ActionMapping mapping,
- HttpServletRequest request) {
- // TODO Auto-generated method stub
- ActionErrors errors = new ActionErrors();
-
- if(cellid == 0)
- {
- errors.add("cellid", new ActionMessage("cellid.required"));
- }
- if(cellCompanyname == null || cellCompanyname.trim().equals(""))
- {
- errors.add("cellCompanyname", new ActionMessage("cellCompanyname.required"));
- }
-
- if(cellCompanyname.length() > 30)
- {
- errors.add("cellCompanyname", new ActionMessage("cellCompanynamelength.exceed"));
- }
-
- if (model == null || model.trim().equals(""))
- {
- errors.add("model", new ActionMessage("model.required"));
- }
- if(price == 0)
- {
- errors.add("price", new ActionMessage("price.required"));
- }
-
- return errors;
- }
-}
diff --git a/SpringCellStore/src/main/resources/cellphone-config.xml b/SpringCellStore/src/main/resources/cellphone-config.xml
deleted file mode 100644
index c897e37..0000000
--- a/SpringCellStore/src/main/resources/cellphone-config.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-