Eclipse And Java:
Free Video Tutorials
Introducing Persistence: Lesson Outline
Lesson 1
- Create Java project in Eclipse using Import from archive file
- Learn how to export a project
- Review of MyLibrary classes
- Introduce try / catch blocks
- Create a Scrapbook page
- Run try / catch blocks inside Scrapbook
- Checking Javadoc location and Source attachment
Lesson 2
- Convert from JUnit 3 to JUnit 4
- Introduce Java Annotations
- Plan methods for converting objects to XML text files
- Discuss Static Methods
- Start test method for saveStringToFile() method
Lesson 3
- Complete test method for saveStringToFile() method
- DIscuss unit tests as class documentation in agile software development
- Start actual saveStringToFile() method
Lesson 4
- Finish on saveStringToFile() method
- Discuss BufferedWriter and FileWriter classes
- Discuss exceptions and throws keyword
Lesson 5
- Finish getStringFromFile() method
- TODO and Tasks View
- Run MyUtilitiesTest JUnit test
- Reading Stack Trace
Lesson 6
- Download and add XStream XML program library to our project
- Attach source code to Java language classes to our project
- Learn how to browse the Java source code
- Learn how to use the Eclipse Hierarchy view
- Use Eclipse to automatically create equals() and hashCode() methods for
Person class
Lesson 7
- Automatically create equals() and hashcode() methods for Book and
MyLibrary classes
- Use Elclipse Open Declaration and Open Type Hierarchy to explore Java
language classes
- Discuss the benefits of XML format
- Write test method for convertToXML() and convertFromXML() methods
Lesson 8
- Create convertToXML() and convertFromXML() methods
- Look at XStream web tutorial
- Test conversion methods
- Write test method to test conversion to and from XML disk file
Lesson 9
- Create saveMyLibraryToXMLFile() and getMyLibraryFromXMLFile() methods
- Test our methods
- Use Eclipse XML editor to examine XML file
- XML object reference options in XStream
- Use the Eclipse Compare With Local History feature to compare versions of
XML files
Lesson 10
- History View and Compare With Local for Java Source
- Modify MyLibrary main method and run as Java application in Eclipse
- Learn about Java class and JAR files
- Create JAR manifest file with Class-Path
- Set Java compiler compliance level
- Create JAR file in Eclipse
- Execute JAR file in Windows and Linux
Lesson 11
- Overview of Java Object Serialization
- Discuss the pros and cons of object serialization and XML
- Create test method for saveMyLibraryToSerialFile() and
getMyLibraryFromSerialFile() methods
- Write saveMyLibraryToSerialFile() method
Lesson 12
- Write getMyLibraryToSerialFile() method
- Add Serializable interface and serialVersionUID to classes
- Modify and run AllTests to test the entire application
- Look at Java Compiler Errors/Warning options
Copyright (c) 2008 Mark Dexter. All rights reserved.