<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4128824703162040018</id><updated>2012-01-15T20:51:37.835-08:00</updated><title type='text'>andrews web site</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>63</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-1649585327303802383</id><published>2011-08-25T12:59:00.000-07:00</published><updated>2011-08-25T13:00:08.242-07:00</updated><title type='text'>Role Base Security Data Base Design (MYSQL Script)</title><content type='html'>-- phpMyAdmin SQL Dump&lt;br /&gt;-- version 3.2.0.1&lt;br /&gt;-- http://www.phpmyadmin.net&lt;br /&gt;--&lt;br /&gt;-- Host: localhost&lt;br /&gt;-- Generation Time: Aug 25, 2011 at 07:58 PM&lt;br /&gt;-- Server version: 5.1.36&lt;br /&gt;-- PHP Version: 5.3.0&lt;br /&gt;&lt;br /&gt;SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Database: `security`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;-- --------------------------------------------------------&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Table structure for table `roles`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;CREATE TABLE IF NOT EXISTS `roles` (&lt;br /&gt;  `pk_role_id` varchar(50) NOT NULL,&lt;br /&gt;  `role_name` varchar(50) NOT NULL,&lt;br /&gt;  `created_by` varchar(50) NOT NULL,&lt;br /&gt;  `created_datettime` datetime NOT NULL,&lt;br /&gt;  `modified_by` varchar(50) NOT NULL,&lt;br /&gt;  `modified_datetime` datetime NOT NULL,&lt;br /&gt;  PRIMARY KEY (`pk_role_id`)&lt;br /&gt;) ENGINE=MyISAM DEFAULT CHARSET=latin1;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Dumping data for table `roles`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;INSERT INTO `roles` (`pk_role_id`, `role_name`, `created_by`, `created_datettime`, `modified_by`, `modified_datetime`) VALUES&lt;br /&gt;('psu1001', 'prod_support', 'andrew', '2011-08-20 11:51:58', 'andrew', '2011-08-20 11:52:02'),&lt;br /&gt;('ops1001', 'order pro specialist', 'andrew', '2011-08-20 11:52:51', 'vdsi', '2011-08-20 11:52:55');&lt;br /&gt;&lt;br /&gt;-- --------------------------------------------------------&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Table structure for table `role_screen`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;CREATE TABLE IF NOT EXISTS `role_screen` (&lt;br /&gt;  `pk_role_screen_id` varchar(50) NOT NULL,&lt;br /&gt;  `fk_role_id` varchar(50) NOT NULL,&lt;br /&gt;  `fk_screen_id` varchar(50) NOT NULL,&lt;br /&gt;  `created_by` varchar(50) NOT NULL,&lt;br /&gt;  `created_datettime` datetime NOT NULL,&lt;br /&gt;  `modified_by` varchar(50) NOT NULL,&lt;br /&gt;  `modified_datetime` datetime NOT NULL,&lt;br /&gt;  PRIMARY KEY (`pk_role_screen_id`),&lt;br /&gt;  KEY `fk_role_id` (`fk_role_id`),&lt;br /&gt;  KEY `fk_screen_id` (`fk_screen_id`)&lt;br /&gt;) ENGINE=MyISAM DEFAULT CHARSET=latin1;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Dumping data for table `role_screen`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;INSERT INTO `role_screen` (`pk_role_screen_id`, `fk_role_id`, `fk_screen_id`, `created_by`, `created_datettime`, `modified_by`, `modified_datetime`) VALUES&lt;br /&gt;('1', 'psu1001', 'oes1001', 'andrew', '2011-08-20 12:01:35', 'andrew', '2011-08-20 12:01:40'),&lt;br /&gt;('2', 'psu1001', 'psu1001', 'andrew', '2011-08-20 12:02:11', 'andrew', '2011-08-20 12:02:17'),&lt;br /&gt;('3', 'oes1001', 'oes1001', 'andrew', '2011-08-20 12:03:46', 'andrew', '2011-08-20 12:03:50');&lt;br /&gt;&lt;br /&gt;-- --------------------------------------------------------&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Table structure for table `screens`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;CREATE TABLE IF NOT EXISTS `screens` (&lt;br /&gt;  `screen_id` varchar(50) NOT NULL,&lt;br /&gt;  `screen_name` varchar(50) NOT NULL,&lt;br /&gt;  `created_by` varchar(50) NOT NULL,&lt;br /&gt;  `created_datettime` datetime NOT NULL,&lt;br /&gt;  `modified_by` varchar(50) NOT NULL,&lt;br /&gt;  `modified_datetime` datetime NOT NULL,&lt;br /&gt;  PRIMARY KEY (`screen_id`)&lt;br /&gt;) ENGINE=MyISAM DEFAULT CHARSET=latin1;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Dumping data for table `screens`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;INSERT INTO `screens` (`screen_id`, `screen_name`, `created_by`, `created_datettime`, `modified_by`, `modified_datetime`) VALUES&lt;br /&gt;('oes1001', 'order_entry', 'andew', '2011-08-20 11:56:47', 'andrew', '2011-08-20 11:56:57'),&lt;br /&gt;('pss1001', 'production support', 'andrewq', '2011-08-20 11:58:01', 'andrew', '2011-08-20 11:58:08'),&lt;br /&gt;('1111', 'scree', 'andrew', '2011-08-20 11:56:47', 'andrew', '2011-08-20 11:56:47');&lt;br /&gt;&lt;br /&gt;-- --------------------------------------------------------&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Table structure for table `userinfo`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;CREATE TABLE IF NOT EXISTS `userinfo` (&lt;br /&gt;  `pk_user_id` varchar(50) NOT NULL,&lt;br /&gt;  `user_name` varchar(50) NOT NULL,&lt;br /&gt;  `password` varchar(50) NOT NULL,&lt;br /&gt;  `email_id` varchar(50) NOT NULL,&lt;br /&gt;  `current_designation` varchar(50) NOT NULL,&lt;br /&gt;  `current_role` varchar(50) NOT NULL,&lt;br /&gt;  `created_by` varchar(50) NOT NULL,&lt;br /&gt;  `created_datettime` datetime NOT NULL,&lt;br /&gt;  `modified_by` varchar(50) NOT NULL,&lt;br /&gt;  `modified_datetime` datetime NOT NULL,&lt;br /&gt;  PRIMARY KEY (`pk_user_id`)&lt;br /&gt;) ENGINE=MyISAM DEFAULT CHARSET=latin1;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Dumping data for table `userinfo`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;INSERT INTO `userinfo` (`pk_user_id`, `user_name`, `password`, `email_id`, `current_designation`, `current_role`, `created_by`, `created_datettime`, `modified_by`, `modified_datetime`) VALUES&lt;br /&gt;('z381466', 'anton', 'anton', 'anton@gmail.com', 'developer', 'developer', 'andrew ', '2011-08-20 11:50:46', 'andrew', '2011-08-20 11:50:46'),&lt;br /&gt;('z381455', 'andrews ', 'andrvdsiews', 'andrew_india@yahoo.com', 'analyst', 'developer', 'vdsi', '2011-08-20 11:49:22', 'andrew', '2011-08-20 11:49:22'),&lt;br /&gt;('oiu', 'oiuo', 'oiu', 'ioou', '98', '9809', '098', '2011-11-11 00:00:00', '890', '2011-11-11 00:00:00');&lt;br /&gt;&lt;br /&gt;-- --------------------------------------------------------&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Table structure for table `user_role`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;CREATE TABLE IF NOT EXISTS `user_role` (&lt;br /&gt;  `pk_user_role_id` varchar(50) NOT NULL,&lt;br /&gt;  `fk_role_id` varchar(50) NOT NULL,&lt;br /&gt;  `fk_user_id` varchar(50) NOT NULL,&lt;br /&gt;  `created_by` varchar(50) NOT NULL,&lt;br /&gt;  `created_datettime` datetime NOT NULL,&lt;br /&gt;  `modified_by` varchar(50) NOT NULL,&lt;br /&gt;  `modified_datetime` datetime NOT NULL,&lt;br /&gt;  PRIMARY KEY (`pk_user_role_id`),&lt;br /&gt;  KEY `fk_role_id` (`fk_role_id`),&lt;br /&gt;  KEY `fk_user_id` (`fk_user_id`)&lt;br /&gt;) ENGINE=MyISAM DEFAULT CHARSET=latin1;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Dumping data for table `user_role`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;INSERT INTO `user_role` (`pk_user_role_id`, `fk_role_id`, `fk_user_id`, `created_by`, `created_datettime`, `modified_by`, `modified_datetime`) VALUES&lt;br /&gt;('1', 'psu1001', 'z381455', 'vdsi', '2011-08-20 11:55:23', 'andrew', '2011-08-20 11:55:33'),&lt;br /&gt;('2', 'ops1001', 'z381455', 'andewq', '2011-08-20 11:55:54', 'vdsi', '2011-08-20 11:55:58');&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-1649585327303802383?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/1649585327303802383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=1649585327303802383' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/1649585327303802383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/1649585327303802383'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2011/08/role-base-security-data-base-design.html' title='Role Base Security Data Base Design (MYSQL Script)'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-6223029606339590746</id><published>2011-08-25T12:56:00.000-07:00</published><updated>2011-08-25T12:58:08.483-07:00</updated><title type='text'>Inventory database Design</title><content type='html'>Hi All Please find a DB Design for inventory  and you can use it in your projects.&lt;br /&gt;post questions if youn have any questions or comments.&lt;br /&gt;&lt;br /&gt;-- phpMyAdmin SQL Dump&lt;br /&gt;-- version 3.2.0.1&lt;br /&gt;-- http://www.phpmyadmin.net&lt;br /&gt;--&lt;br /&gt;-- Host: localhost&lt;br /&gt;-- Generation Time: Aug 25, 2011 at 07:43 PM&lt;br /&gt;-- Server version: 5.1.36&lt;br /&gt;-- PHP Version: 5.3.0&lt;br /&gt;&lt;br /&gt;SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Database: `inventory`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;-- --------------------------------------------------------&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Table structure for table `branch_info`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;CREATE TABLE IF NOT EXISTS `branch_info` (&lt;br /&gt;  `pk_branch_id` varchar(50) NOT NULL,&lt;br /&gt;  `fk_company_id` varchar(50) NOT NULL,&lt;br /&gt;  `branch_name` varchar(50) NOT NULL,&lt;br /&gt;  `branch_poc` varchar(50) NOT NULL,&lt;br /&gt;  `branch_detail` varchar(200) NOT NULL,&lt;br /&gt;  `website` varchar(100) NOT NULL,&lt;br /&gt;  `created_by` varchar(50) NOT NULL,&lt;br /&gt;  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,&lt;br /&gt;  `last_updated_by` varchar(50) NOT NULL,&lt;br /&gt;  `last_updated_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;  `status` varchar(1) NOT NULL,&lt;br /&gt;  PRIMARY KEY (`pk_branch_id`),&lt;br /&gt;  KEY `FK_branch_info_company_info` (`fk_company_id`)&lt;br /&gt;) ENGINE=InnoDB DEFAULT CHARSET=latin1;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Dumping data for table `branch_info`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- --------------------------------------------------------&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Table structure for table `company_info`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;CREATE TABLE IF NOT EXISTS `company_info` (&lt;br /&gt;  `pk_company_id` varchar(50) NOT NULL,&lt;br /&gt;  `company_name` varchar(50) NOT NULL,&lt;br /&gt;  `company_type` varchar(25) NOT NULL,&lt;br /&gt;  `company_detail` varchar(100) NOT NULL,&lt;br /&gt;  `website` varchar(50) NOT NULL,&lt;br /&gt;  `created_by` varchar(25) NOT NULL,&lt;br /&gt;  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,&lt;br /&gt;  `last_updated_by` varchar(50) NOT NULL,&lt;br /&gt;  `last_updated_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;  `status` varchar(1) NOT NULL,&lt;br /&gt;  PRIMARY KEY (`pk_company_id`)&lt;br /&gt;) ENGINE=InnoDB DEFAULT CHARSET=latin1;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Dumping data for table `company_info`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- --------------------------------------------------------&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Table structure for table `inventory`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;CREATE TABLE IF NOT EXISTS `inventory` (&lt;br /&gt;  `pk_inventory_id` varchar(50) NOT NULL,&lt;br /&gt;  `fk_product_id` varchar(50) NOT NULL,&lt;br /&gt;  `fk_company_id` varchar(50) NOT NULL,&lt;br /&gt;  `fk_branch_id` varchar(50) NOT NULL,&lt;br /&gt;  `quantity` int(5) NOT NULL,&lt;br /&gt;  `calculation_unit` varchar(4) NOT NULL,&lt;br /&gt;  `io_type` varchar(1) NOT NULL,&lt;br /&gt;  `created_by` varchar(25) NOT NULL,&lt;br /&gt;  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,&lt;br /&gt;  `last_updated_by` varchar(50) NOT NULL,&lt;br /&gt;  `last_updated_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;  `status` varchar(1) NOT NULL,&lt;br /&gt;  PRIMARY KEY (`pk_inventory_id`),&lt;br /&gt;  KEY `FK_inventory_product_info` (`fk_product_id`),&lt;br /&gt;  KEY `FK_inventory_company_info` (`fk_company_id`),&lt;br /&gt;  KEY `FK_inventory_branch_info` (`fk_branch_id`)&lt;br /&gt;) ENGINE=InnoDB DEFAULT CHARSET=latin1;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Dumping data for table `inventory`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- --------------------------------------------------------&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Table structure for table `product_info`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;CREATE TABLE IF NOT EXISTS `product_info` (&lt;br /&gt;  `pk_product_id` varchar(50) NOT NULL,&lt;br /&gt;  `product_name` varchar(50) NOT NULL,&lt;br /&gt;  `product_detail` varchar(100) NOT NULL,&lt;br /&gt;  `model` varchar(50) NOT NULL,&lt;br /&gt;  `material_type` varchar(50) NOT NULL,&lt;br /&gt;  `quantity` int(5) NOT NULL,&lt;br /&gt;  `calculation_unit` varchar(4) NOT NULL,&lt;br /&gt;  `current_rate` decimal(8,0) NOT NULL,&lt;br /&gt;  `created_by` varchar(25) NOT NULL,&lt;br /&gt;  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,&lt;br /&gt;  `last_updated_by` varchar(50) NOT NULL,&lt;br /&gt;  `last_updated_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;  `status` varchar(1) NOT NULL,&lt;br /&gt;  PRIMARY KEY (`pk_product_id`)&lt;br /&gt;) ENGINE=InnoDB DEFAULT CHARSET=latin1;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Dumping data for table `product_info`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- --------------------------------------------------------&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Table structure for table `product_supplier`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;CREATE TABLE IF NOT EXISTS `product_supplier` (&lt;br /&gt;  `pk_product_supplier_id` varchar(101) NOT NULL,&lt;br /&gt;  `fk_product_id` varchar(50) NOT NULL,&lt;br /&gt;  `fk_supplier_id` varchar(50) NOT NULL,&lt;br /&gt;  `created_by` varchar(25) NOT NULL,&lt;br /&gt;  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,&lt;br /&gt;  `last_updated_by` varchar(50) NOT NULL,&lt;br /&gt;  `last_updated_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;  `status` varchar(1) NOT NULL,&lt;br /&gt;  PRIMARY KEY (`pk_product_supplier_id`),&lt;br /&gt;  KEY `FK_product_supplier_product_info` (`fk_product_id`),&lt;br /&gt;  KEY `FK_product_supplier_supplier_info` (`fk_supplier_id`)&lt;br /&gt;) ENGINE=InnoDB DEFAULT CHARSET=latin1;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Dumping data for table `product_supplier`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- --------------------------------------------------------&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Table structure for table `supplier_info`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;CREATE TABLE IF NOT EXISTS `supplier_info` (&lt;br /&gt;  `pk_supplier_id` varchar(50) NOT NULL,&lt;br /&gt;  `supplier_name` varchar(50) NOT NULL,&lt;br /&gt;  `supplier_type` varchar(25) NOT NULL,&lt;br /&gt;  `supplier_detail` varchar(100) NOT NULL,&lt;br /&gt;  `website` varchar(50) NOT NULL,&lt;br /&gt;  `created_by` varchar(25) NOT NULL,&lt;br /&gt;  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,&lt;br /&gt;  `last_updated_by` varchar(50) NOT NULL,&lt;br /&gt;  `last_updated_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;  `status` varchar(1) NOT NULL,&lt;br /&gt;  PRIMARY KEY (`pk_supplier_id`)&lt;br /&gt;) ENGINE=InnoDB DEFAULT CHARSET=latin1;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Dumping data for table `supplier_info`&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Constraints for dumped tables&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Constraints for table `branch_info`&lt;br /&gt;--&lt;br /&gt;ALTER TABLE `branch_info`&lt;br /&gt;  ADD CONSTRAINT `FK_branch_info_company_info` FOREIGN KEY (`fk_company_id`) REFERENCES `company_info` (`pk_company_id`) ON DELETE CASCADE ON UPDATE CASCADE;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Constraints for table `inventory`&lt;br /&gt;--&lt;br /&gt;ALTER TABLE `inventory`&lt;br /&gt;  ADD CONSTRAINT `FK_inventory_branch_info` FOREIGN KEY (`fk_branch_id`) REFERENCES `branch_info` (`pk_branch_id`) ON DELETE CASCADE ON UPDATE CASCADE,&lt;br /&gt;  ADD CONSTRAINT `FK_inventory_company_info` FOREIGN KEY (`fk_company_id`) REFERENCES `company_info` (`pk_company_id`) ON DELETE CASCADE ON UPDATE CASCADE,&lt;br /&gt;  ADD CONSTRAINT `FK_inventory_product_info` FOREIGN KEY (`fk_product_id`) REFERENCES `product_info` (`pk_product_id`) ON DELETE CASCADE ON UPDATE CASCADE;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Constraints for table `product_supplier`&lt;br /&gt;--&lt;br /&gt;ALTER TABLE `product_supplier`&lt;br /&gt;  ADD CONSTRAINT `FK_product_supplier_product_info` FOREIGN KEY (`fk_product_id`) REFERENCES `product_info` (`pk_product_id`) ON DELETE CASCADE ON UPDATE CASCADE,&lt;br /&gt;  ADD CONSTRAINT `FK_product_supplier_supplier_info` FOREIGN KEY (`fk_supplier_id`) REFERENCES `supplier_info` (`pk_supplier_id`) ON DELETE CASCADE ON UPDATE CASCADE;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-6223029606339590746?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/6223029606339590746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=6223029606339590746' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6223029606339590746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6223029606339590746'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2011/08/inventory-database-design.html' title='Inventory database Design'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-87335232321058702</id><published>2011-08-17T21:37:00.000-07:00</published><updated>2012-01-15T20:51:38.148-08:00</updated><title type='text'>PHP TUTOR</title><content type='html'>What is PHP?&lt;br /&gt;PHP is one of the langauge for Web Programming.  &lt;br /&gt;It is used to develop dynamic web sites like Online shopping, Exam results and railway reservation.&lt;br /&gt;&lt;br /&gt;What is Know as Dynamic web Pages and static web Page? (Basic)&lt;br /&gt;Dyanmic Web Site : &lt;br /&gt;Web Page Content is taken and displayed from database, It is Dynamic Content.&lt;br /&gt;Example : Exam Results. Here student info and marks are taken from database.&lt;br /&gt;&lt;br /&gt;Static Web Site :&lt;br /&gt;In web Page, Content is entered in web page it self is known as static content.&lt;br /&gt;Example : About us, Contact us pages in web site.&lt;br /&gt;&lt;br /&gt;What is Database commonly used for PHP and WHY? (Basic)&lt;br /&gt;MYSQL because it is open source.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-87335232321058702?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/87335232321058702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=87335232321058702' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/87335232321058702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/87335232321058702'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2011/08/php-tutor.html' title='PHP TUTOR'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-6615118280586147494</id><published>2010-05-25T03:55:00.000-07:00</published><updated>2012-01-15T20:51:38.150-08:00</updated><title type='text'>Eclipse weblogic Debug Setup</title><content type='html'>Debugging WebLogic&lt;br /&gt;&lt;br /&gt;Debugging WebLogic is no different than debugging any other Java remote application. You need to make sure to launch it with the required debugging arguments and attach a debugger. In the case of WebLogic 8.1, you need to add these arguments to the startup script. WebLogic comes with several launch scripts (*.sh and *.cmd) under BEA_HOME/weblogic81/server/bin. &lt;br /&gt;&lt;br /&gt;1. Locate startWSL.cmd and add the following variable DEBUG_OPTS: &lt;br /&gt;set DEBUG_OPTS = -Xdebug -Xrunjdwp:transport= dt_socket,address=1044,server=y,suspend=n&lt;br /&gt;&lt;br /&gt;2. Next, insert the new variable to the WebLogic startup command, after "%JAVA_HOME%\bin\java" and preferably before the other options. &lt;br /&gt;&lt;br /&gt;3. Your startup script should look like:&lt;br /&gt;"%JAVA_HOME%\bin\java" %DEBUG_OPTS% %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS%-Dweblogic.Name=%SERVER_NAME% -Dweblogic.management.username= %WLS_USER%-Dweblogic.management.password= %WLS_PW% -Dweblogic.management.server= %ADMIN_URL%-Dweblogic.ProductionModeEnabled= %PRODUCTION_MODE%-Djava.security.policy= "%WL_HOME%\server\lib\weblogic.policy" weblogic.Server&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-6615118280586147494?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/6615118280586147494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=6615118280586147494' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6615118280586147494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6615118280586147494'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2010/05/eclipse-weblogic-setup.html' title='Eclipse weblogic Debug Setup'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-606726840547369226</id><published>2010-03-20T21:13:00.000-07:00</published><updated>2012-01-15T20:51:38.151-08:00</updated><title type='text'>SCEA Useful Links</title><content type='html'>&lt;a href="http://marcels-javanotes.blogspot.com/2008/06/passed.html"&gt;SCEA Useful Links&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-606726840547369226?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/606726840547369226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=606726840547369226' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/606726840547369226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/606726840547369226'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2010/03/scea-useful-links.html' title='SCEA Useful Links'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-957497657099271648</id><published>2009-12-12T09:33:00.000-08:00</published><updated>2012-01-15T20:51:38.151-08:00</updated><title type='text'>Thread _ Notes</title><content type='html'>Threads can be created by extending Thread and overriding the&lt;br /&gt;public void run() method.&lt;br /&gt;q Thread objects can also be created by calling the Thread constructor that&lt;br /&gt;takes a Runnable argument. The Runnable object is said to be the target of&lt;br /&gt;the thread.&lt;br /&gt;q You can call start() on a Thread object only once. If start() is called&lt;br /&gt;more than once on a Thread object, it will throw a RuntimeException.&lt;br /&gt;q It is legal to create many Thread objects using the same Runnable object as&lt;br /&gt;the target.&lt;br /&gt;q When a Thread object is created, it does not become a thread of execution&lt;br /&gt;until its start() method is invoked. When a Thread object exists but hasn't&lt;br /&gt;been started, it is in the new state and is not considered alive.&lt;br /&gt;Transitioning Between Thread States (Objective 4.2)&lt;br /&gt;q Once a new thread is started, it will always enter the runnable state.&lt;br /&gt;q The thread scheduler can move a thread back and forth between the&lt;br /&gt;runnable state and the running state.&lt;br /&gt;q For a typical single-processor machine, only one thread can be running at a&lt;br /&gt;time, although many threads may be in the runnable state.&lt;br /&gt;q There is no guarantee that the order in which threads were started&lt;br /&gt;determines the order in which they'll run.&lt;br /&gt;q There's no guarantee that threads will take turns in any fair way. It's up&lt;br /&gt;to the thread scheduler, as determined by the particular virtual machine&lt;br /&gt;implementation. If you want a guarantee that your threads will take turns&lt;br /&gt;regardless of the underlying JVM, you can use the sleep() method. This&lt;br /&gt;prevents one thread from hogging the running process while another thread&lt;br /&gt;starves. (In most cases, though, yield() works well enough to encourage&lt;br /&gt;your threads to play together nicely.)&lt;br /&gt;q A running thread may enter a blocked/waiting state by a wait(), sleep(),&lt;br /&gt;or join() call.&lt;br /&gt;3&lt;br /&gt;q A running thread may enter a blocked/waiting state because it can't acquire&lt;br /&gt;the lock for a synchronized block of code.&lt;br /&gt;q When the sleep or wait is over, or an object's lock becomes available, the&lt;br /&gt;thread can only reenter the runnable state. It will go directly from waiting to&lt;br /&gt;running (well, for all practical purposes anyway).&lt;br /&gt;q A dead thread cannot be started again.&lt;br /&gt;Sleep, Yield, and Join (Objective 4.2)&lt;br /&gt;q Sleeping is used to delay execution for a period of time, and no locks are&lt;br /&gt;released when a thread goes to sleep.&lt;br /&gt;q A sleeping thread is guaranteed to sleep for at least the time specified in&lt;br /&gt;the argument to the sleep() method (unless it's interrupted), but there is&lt;br /&gt;no guarantee as to when the newly awakened thread will actually return to&lt;br /&gt;running.&lt;br /&gt;q The sleep() method is a static method that sleeps the currently executing&lt;br /&gt;thread's state. One thread cannot tell another thread to sleep.&lt;br /&gt;q The setPriority() method is used on Thread objects to give threads&lt;br /&gt;a priority of between 1 (low) and 10 (high), although priorities are not&lt;br /&gt;guaranteed, and not all JVMs recognize 10 distinct priority levels—some&lt;br /&gt;levels may be treated as effectively equal.&lt;br /&gt;q If not explicitly set, a thread's priority will have the same priority as the&lt;br /&gt;priority of the thread that created it.&lt;br /&gt;q The yield() method may cause a running thread to back out if there are&lt;br /&gt;runnable threads of the same priority. There is no guarantee that this will&lt;br /&gt;happen, and there is no guarantee that when the thread backs out there&lt;br /&gt;will be a different thread selected to run. A thread might yield and then&lt;br /&gt;immediately reenter the running state.&lt;br /&gt;q The closest thing to a guarantee is that at any given time, when a thread&lt;br /&gt;is running it will usually not have a lower priority than any thread in the&lt;br /&gt;runnable state. If a low-priority thread is running when a high-priority thread&lt;br /&gt;enters runnable, the JVM will usually preempt the running low-priority&lt;br /&gt;thread and put the high-priority thread in.&lt;br /&gt;q When one thread calls the join() method of another thread, the currently&lt;br /&gt;running thread will wait until the thread it joins with has completed. Think&lt;br /&gt;of the join() method as saying, "Hey thread, I want to join on to the end&lt;br /&gt;of you. Let me know when you're done, so I can enter the runnable state."&lt;br /&gt;Two-Minute Drill 731&lt;br /&gt;732 Chapter 9: Threads&lt;br /&gt;Concurrent Access Problems and Synchronized Threads (Obj. 4.3)&lt;br /&gt;q synchronized methods prevent more than one thread from accessing an&lt;br /&gt;object's critical method code simultaneously.&lt;br /&gt;q You can use the synchronized keyword as a method modifier, or to start a&lt;br /&gt;synchronized block of code.&lt;br /&gt;q To synchronize a block of code (in other words, a scope smaller than the&lt;br /&gt;whole method), you must specify an argument that is the object whose lock&lt;br /&gt;you want to synchronize on.&lt;br /&gt;q While only one thread can be accessing synchronized code of a particular&lt;br /&gt;instance, multiple threads can still access the same object's unsynchronized code.&lt;br /&gt;q When a thread goes to sleep, its locks will be unavailable to other threads.&lt;br /&gt;q static methods can be synchronized, using the lock from the&lt;br /&gt;java.lang.Class instance representing that class.&lt;br /&gt;Communicating with Objects by Waiting and Notifying (Obj. 4.4)&lt;br /&gt;q The wait() method lets a thread say, "there's nothing for me to do now, so&lt;br /&gt;put me in your waiting pool and notify me when something happens that I&lt;br /&gt;care about." Basically, a wait() call means "wait me in your pool," or "add&lt;br /&gt;me to your waiting list."&lt;br /&gt;q The notify() method is used to send a signal to one and only one of the&lt;br /&gt;threads that are waiting in that same object's waiting pool.&lt;br /&gt;q The notify() method can NOT specify which waiting thread to notify.&lt;br /&gt;q The method notifyAll() works in the same way as notify(), only it sends&lt;br /&gt;the signal to all of the threads waiting on the object.&lt;br /&gt;q All three methods—wait(), notify(), and notifyAll()—must be&lt;br /&gt;called from within a synchronized context! A thread invokes wait() or&lt;br /&gt;notify() on a particular object, and the thread must currently hold the lock&lt;br /&gt;on that object.&lt;br /&gt;Deadlocked Threads (Objective 4.4)&lt;br /&gt;q Deadlocking is when thread execution grinds to a halt because the code is&lt;br /&gt;waiting for locks to be removed from objects.&lt;br /&gt;q Deadlocking can occur when a locked object attempts to access another&lt;br /&gt;locked object that is trying to access the first locked object. In other words,&lt;br /&gt;both threads are waiting for each other's locks to be released; therefore, the&lt;br /&gt;locks will never be released!&lt;br /&gt;q Deadlocking is bad. Don't do it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-957497657099271648?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/957497657099271648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=957497657099271648' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/957497657099271648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/957497657099271648'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/12/thread-notes.html' title='Thread _ Notes'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-2241700583233138607</id><published>2009-12-08T20:22:00.000-08:00</published><updated>2012-01-15T20:51:38.151-08:00</updated><title type='text'>SCJP 5.0 Syllabus</title><content type='html'>Objectives &lt;br /&gt; &lt;br /&gt;Section 1: Declarations, Initialization and Scoping &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;· Develop code that declares classes (including abstract and all forms of nested classes), interfaces, and enums, and includes the appropriate use of package and import statements (including static imports). &lt;br /&gt;· Develop code that declares an interface. Develop code that implements or extends one or more interfaces. Develop code that declares an abstract class. Develop code that extends an abstract class. &lt;br /&gt;· Develop code that declares, initializes, and uses primitives, arrays, enums, and objects as static, instance, and local variables. Also, use legal identifiers for variable names. &lt;br /&gt;· Given a code example, determine if a method is correctly overriding or overloading another method, and identify legal return values (including covariant returns), for the method. &lt;br /&gt;· Given a set of classes and superclasses, develop constructors for one or more of the classes. Given a class declaration, determine if a default constructor will be created, and if so, determine the behavior of that constructor. Given a nested or non-nested class listing, write code to instantiate the class. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Section 2: Flow Control &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;· Develop code that implements an if or switch statement; and identify legal argument types for these statements. &lt;br /&gt;· Develop code that implements all forms of loops and iterators, including the use of for, the enhanced for loop (for-each), do, while, labels, break, and continue; and explain the values taken by loop counter variables during and after loop execution. &lt;br /&gt;· Develop code that makes use of assertions, and distinguish appropriate from inappropriate uses of assertions. &lt;br /&gt;· Develop code that makes use of exceptions and exception handling clauses (try, catch, finally), and declares methods and overriding methods that throw exceptions. &lt;br /&gt;· Recognize the effect of an exception arising at a specified point in a code fragment. Note that the exception may be a runtime exception, a checked exception, or an error. &lt;br /&gt;· Recognize situations that will result in any of the following being thrown: ArrayIndexOutOfBoundsException,ClassCastException, IllegalArgumentException, IllegalStateException, NullPointerException, NumberFormatException, AssertionError, ExceptionInInitializerError, StackOverflowError or NoClassDefFoundError. Understand which of these are thrown by the virtual machine and recognize situations in which others should be thrown programatically. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Section 3: API Contents &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;· Develop code that uses the primitive wrapper classes (such as Boolean, Character, Double, Integer, etc.), and/or autoboxing &amp; unboxing. Discuss the differences between the String, StringBuilder, and StringBuffer classes. &lt;br /&gt;· Given a scenario involving navigating file systems, reading from files, or writing to files, develop the correct solution using the following classes (sometimes in combination), from java.io: BufferedReader,BufferedWriter, File, FileReader, FileWriter and PrintWriter. &lt;br /&gt;· Use standard J2SE APIs in the java.text package to correctly format or parse dates, numbers, and currency values for a specific locale; and, given a scenario, determine the appropriate methods to use if you want to use the default locale or a specific locale. Describe the purpose and use of the java.util.Locale class. &lt;br /&gt;· Write code that uses standard J2SE APIs in the java.util and java.util.regex packages to format or parse strings or streams. For strings, write code that uses the Pattern and Matcher classes and the String.split method. Recognize and use regular expression patterns for matching (limited to: . (dot), * (star), + (plus), ?, \d, \s, \w, [], ()). The use of *, +, and ? will be limited to greedy quantifiers, and the parenthesis operator will only be used as a grouping mechanism, not for capturing content during matching. For streams, write code using the Formatter and Scanner classes and the PrintWriter.format/printf methods. Recognize and use formatting parameters (limited to: %b, %c, %d, %f, %s) in format strings. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Section 4: Concurrency &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;· Write code to define, instantiate, and start new threads using both java.lang.Thread and java.lang.Runnable. &lt;br /&gt;· Recognize the states in which a thread can exist, and identify ways in which a thread can transition from one state to another. &lt;br /&gt;· Given a scenario, write code that makes appropriate use of object locking to protect static or instance variables from concurrent access problems. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Section 5: OO Concepts &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;· Develop code that implements tight encapsulation, loose coupling, and high cohesion in classes, and describe the benefits. &lt;br /&gt;· Given a scenario, develop code that demonstrates the use of polymorphism. Further, determine when casting will be necessary and recognize compiler vs. runtime errors related to object reference casting. &lt;br /&gt;· Explain the effect of modifiers on inheritance with respect to constructors, instance or static variables, and instance or static methods. &lt;br /&gt;· Given a scenario, develop code that declares and/or invokes overridden or overloaded methods and code that declares and/or invokes superclass or overloaded constructors. &lt;br /&gt;· Develop code that implements "is-a" and/or "has-a" relationships.  &lt;br /&gt;&lt;br /&gt;                                                       &lt;br /&gt;Section 6: Collections / Generics &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;· Given a design scenario, determine which collection classes and/or interfaces should be used to properly implement that design, including the use of the Comparable interface. &lt;br /&gt;· Distinguish between correct and incorrect overrides of corresponding hashCode and equals methods, and explain the difference between == and the equals method. &lt;br /&gt;· Write code that uses the generic versions of the Collections API, in particular, the Set, List, and Map interfaces and implementation classes. Recognize the limitations of the non-generic Collections API and how to refactor code to use the generic versions. &lt;br /&gt;· Develop code that makes proper use of type parameters in class/interface declarations, instance variables, method arguments, and return types; and write generic methods or methods that make use of wildcard types and understand the similarities and differences between these two approaches. &lt;br /&gt;· Use capabilities in the java.util package to write code to manipulate a list by sorting, performing a binary search, or converting the list to an array. Use capabilities in the java.util package to write code to manipulate an array by sorting, performing a binary search, or converting the array to a list. Use the java.util.Comparator and java.lang.Comparable interfaces to affect the sorting of lists and arrays. Furthermore, recognize the effect of the "natural ordering" of primitive wrapper classes and java.lang.String on sorting. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Section 7: Fundamentals &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;· Given a code example and a scenario, write code that uses the appropriate access modifiers, package declarations, and import statements to interact with (through access or inheritance) the code in the example. &lt;br /&gt;· Given an example of a class and a command-line, determine the expected runtime behavior. &lt;br /&gt;· Determine the effect upon object references and primitive values when they are passed into methods that perform assignments or other modifying operations on the parameters. &lt;br /&gt;· Given a code example, recognize the point at which an object becomes eligible for garbage collection, and determine what is and is not guaranteed by the garbage collection system. Recognize the behaviors of System.gc and finalization. &lt;br /&gt;· Given the fully-qualified name of a class that is deployed inside and/or outside a JAR file, construct the appropriate directory structure for that class. Given a code example and a classpath, determine whether the classpath will allow the code to compile successfully. &lt;br /&gt;· Write code that correctly applies the appropriate operators including assignment operators (limited to: =, +=, -=), arithmetic operators (limited to: +, -, *, /, %, ++, --), relational operators (limited to: &lt;, &lt;=, &gt;, &gt;=, ==, !=), the instanceof operator, logical operators (limited to: &amp;, |, ^, !, &amp;&amp;, ||), and the conditional operator ( ? : ), to produce a desired result. Write code that determines the equality of two objects or two primitives.&lt;br /&gt;&lt;br /&gt;reference : http://java.sun.com/docs/books/tutorial/extra/certification/index.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-2241700583233138607?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/2241700583233138607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=2241700583233138607' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/2241700583233138607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/2241700583233138607'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/12/scjp-syllabus.html' title='SCJP 5.0 Syllabus'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-6460146791339025763</id><published>2009-11-28T23:56:00.000-08:00</published><updated>2012-01-15T20:51:38.152-08:00</updated><title type='text'>Design Pattern - Java</title><content type='html'>Creational Patterns&lt;br /&gt;Factory Pattern  : &lt;br /&gt;Used to create Object Through an interface&lt;br /&gt;&lt;br /&gt;Abstract Factory Pattern  : &lt;br /&gt;Create an instance of several families of subclasses, It is one more level of abstraction in Factory Pattern&lt;br /&gt;&lt;br /&gt;Singleton Pattern  :&lt;br /&gt;A class produces only a single instance of its&lt;br /&gt;&lt;br /&gt;Builder Pattern  :&lt;br /&gt;&lt;br /&gt;Prototype Pattern : A pttern to clone an fully initialised object.&lt;br /&gt;&lt;br /&gt;Structural Patterns &lt;br /&gt;&lt;br /&gt;Adapter Pattern :&lt;br /&gt;&lt;br /&gt;A class which connects unrelated classes through interfaces.&lt;br /&gt;&lt;br /&gt;Bridge Pattern  :&lt;br /&gt;Interface and its implementation of an object is separateed Here.&lt;br /&gt;&lt;br /&gt;Composite Pattern :&lt;br /&gt;&lt;br /&gt;Used to defined tree structured objects&lt;br /&gt;&lt;br /&gt;Decorator Pattern :&lt;br /&gt;&lt;br /&gt;Used to add an object at runtime.&lt;br /&gt;&lt;br /&gt;Facade Pattern :&lt;br /&gt;&lt;br /&gt;A class whic represent entire sub system&lt;br /&gt;&lt;br /&gt;Flyweight Pattern :&lt;br /&gt;Proxy Pattern :&lt;br /&gt;&lt;br /&gt;Behavioral Patterns (behavioral pattern can alter the program's running behavior.&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;Chain of Responsibility :&lt;br /&gt;Way of passing a request between a chain of objects : Example Excelption handling.&lt;br /&gt;&lt;br /&gt;Command Pattern :&lt;br /&gt;command pattern is a design pattern in which an object is used to represent and encapsulate all the information needed to call a method at a later time&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Interpreter Pattern :&lt;br /&gt;&lt;br /&gt;Include Language Element in program &lt;br /&gt;Example : "expression ::= plus | minus | variable"&lt;br /&gt;&lt;br /&gt;Iterator Pattern  :&lt;br /&gt;Used to access collection of object in sequence.&lt;br /&gt;&lt;br /&gt;Mediator Pattern :&lt;br /&gt;provides a unified interface to a set of interfaces in a subsystem.&lt;br /&gt;&lt;br /&gt;Momento Pattern  :&lt;br /&gt;&lt;br /&gt;This pattern gets the previous state of an object&lt;br /&gt;&lt;br /&gt;Observer Pattern:&lt;br /&gt;&lt;br /&gt;A way of notifying change to number of classes&lt;br /&gt;&lt;br /&gt;State Pattern :&lt;br /&gt;This pattern is used in computer programming to represent the state of an object. This is a clean way for an object to partially change its type at runtime.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Strategy Pattern  :&lt;br /&gt;Encapsulates an algorithm in inside a class.&lt;br /&gt;&lt;br /&gt;Template Pattern :&lt;br /&gt;- Define the skeleton of an algorithm in an operation, deferring some steps to subclasses.&lt;br /&gt;- Template Method lets subclasses redefine certain steps of an algorithm without letting them to change the algorithm's structure.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Visitor Pattern :&lt;br /&gt;&lt;br /&gt;adds a new operation in a class with out changing the class&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-6460146791339025763?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/6460146791339025763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=6460146791339025763' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6460146791339025763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6460146791339025763'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/11/design-pattern-java.html' title='Design Pattern - Java'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-7253177620186133104</id><published>2009-11-24T22:29:00.001-08:00</published><updated>2012-01-15T20:51:38.152-08:00</updated><title type='text'>j2ee design pattern</title><content type='html'>----------------------------------------------------&lt;br /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;Presentation Tier&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; &lt;br /&gt;---------------------------------------------------&lt;br /&gt;&lt;br /&gt;Intercepting Filter :&lt;br /&gt;A centralised control which hadles request from the web client.&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Front Controller :&lt;br /&gt;A centralized point of contact for handling a request may be useful, for example, to control and log a user's progress through the site.&lt;br /&gt;&lt;br /&gt;What is the difference betwenn Intercepting Filter and Front Controller.&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Composite View :&lt;br /&gt;A Framework to present content in a single web page, from numerous data sources.&lt;br /&gt;Tiles is a good example for this pattern&lt;br /&gt;&lt;br /&gt;Alos it is good to refer this link &lt;br /&gt;http://java.sun.com/blueprints/patterns/CompositeView.html&lt;br /&gt;&lt;br /&gt;1. The client requests service&lt;br /&gt;&lt;br /&gt;2. After processing the request, MainServlet (the Front Controller) directs the ScreenFlowManager to select the next view &lt;br /&gt;&lt;br /&gt;3. The ScreenFlowManager determines the name of the screen to display &lt;br /&gt;&lt;br /&gt;4. The request is forwarded to TemplateServlet &lt;br /&gt;&lt;br /&gt;5. The TemplateServlet identifies the requested Screen object and stores it in HttpSession &lt;br /&gt;&lt;br /&gt;6. The request is forwarded to the template JSP page&lt;br /&gt;&lt;br /&gt;7. The template JSP page executes an insert tag&lt;br /&gt;&lt;br /&gt;8. The insert tag retrieves the screen from HttpSession &lt;br /&gt;&lt;br /&gt;9. The insert tag inserts the content from the URL corresponding to the value of its parameter attribute &lt;br /&gt;&lt;br /&gt;10 - 12. The template JSP page executes another insert tag, which inserts the content as in the steps 7 - 9.&lt;br /&gt;&lt;br /&gt;13. Template execution is complete, and the server returns the generated response to the client.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;View Helper :&lt;br /&gt;Helpers provide a clean separation between presentation and business data by acting as intermediaries between the two&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Dispatcher View :&lt;br /&gt;System controls flow of execution and access to presentation processing, which is responsible for generating dynamic content&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Service to Worker : &lt;br /&gt;The system controls flow of execution and access to business data, from which it creates presentation content&lt;br /&gt;Refer Link : http://www.corej2eepatterns.com/Patterns/ServiceToWorker.htm&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;Business Tier&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Business Delegate &lt;br /&gt;The business delegate object abstracts the business services API and provides standard interface to al the client components.&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Session Facade :&lt;br /&gt;Use a session bean as a facade to encapsulate the complexity of interactions between the business objects participating in a workflow. The Session Facade manages the business objects, and provides a uniform coarse-grained service access layer to clients.&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Service Locator &lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Transfer Object Assembler :&lt;br /&gt;The Transfer Object Assembler uses Transfer Objects to retrieve data from various business objects and other objects that define the model or part of the model.&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Value List Handler &lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Composite Entity &lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Transfer Object :&lt;br /&gt;&lt;br /&gt;A pattern used to "Application clients need to exchange data with enterprise beans".&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;Transfer object / value object is a plain serializable Java class that represents a snapshot of some server side data, as in the following code example:&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;Integration Tier&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Service Activator :&lt;br /&gt;&lt;br /&gt;Enterprise beans and other business services need a way to be activated asynchronously&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Data Access Object : &lt;br /&gt;&lt;br /&gt;A Pattern which abstracts and encapsulate all access to the database.The DAO manages the connection with the data source to obtain and store data.&lt;br /&gt;&lt;br /&gt;Access to persistent storage, such as to a database, varies greatly depending on the type of storage (relational databases, object-oriented databases, flat files, and so forth) and the vendor implementation.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-7253177620186133104?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/7253177620186133104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=7253177620186133104' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7253177620186133104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7253177620186133104'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/11/j2ee-design-pattern.html' title='j2ee design pattern'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-3108546618342350189</id><published>2009-11-13T00:11:00.000-08:00</published><updated>2012-01-15T20:51:38.152-08:00</updated><title type='text'>AJAX with EXCEL POI Import</title><content type='html'>Import EXCEL Data into Table using POI:&lt;br /&gt;&amp;lt%@page import="org.apache.poi.poifs.filesystem.POIFSFileSystem"%&amp;gt&lt;br /&gt;&amp;lt%@page import="java.io.*"%&amp;gt&lt;br /&gt;&amp;lt%@page import="java.sql.*"%&amp;gt&lt;br /&gt;&amp;lt%@page import="org.apache.poi.hssf.usermodel.*"%&amp;gt&lt;br /&gt;&amp;lthtml&amp;gt&lt;br /&gt;    &amp;ltbody&amp;gt&lt;br /&gt;       &lt;br /&gt;&amp;lt%&lt;br /&gt;&lt;br /&gt;    String DRIVER = "org.gjt.mm.mysql.Driver";&lt;br /&gt;Class.forName(DRIVER).newInstance();&lt;br /&gt;&lt;br /&gt;String sql="";&lt;br /&gt;Connection con=null;&lt;br /&gt;ResultSet rst=null;&lt;br /&gt;Statement stmt=null;&lt;br /&gt;&lt;br /&gt;try{&lt;br /&gt;String url="jdbc:mysql://localhost/csr?user=root&amp;password=";&lt;br /&gt;&lt;br /&gt;con=DriverManager.getConnection(url);&lt;br /&gt;&lt;br /&gt;stmt=con.createStatement();&lt;br /&gt;&lt;br /&gt;//==========&lt;br /&gt;    POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream("D:\\ABC.xls"));&lt;br /&gt;HSSFWorkbook wb = new HSSFWorkbook(fs);&lt;br /&gt;HSSFSheet sheet = wb.getSheetAt(0);&lt;br /&gt;HSSFRow row;&lt;br /&gt;HSSFCell cell;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int rows; // No of rows&lt;br /&gt;rows = sheet.getPhysicalNumberOfRows();&lt;br /&gt;&lt;br /&gt;int cols = 0; // No of columns&lt;br /&gt;int tmp = 0;&lt;br /&gt;    out.println("&amp;lttable border=1&amp;gt");&lt;br /&gt;// This trick ensures that we get the data properly even if it doesnâ??t start from first few rows&lt;br /&gt;for(int i = 0; i &amp;lt rows; i++) &lt;br /&gt;{&lt;br /&gt;row = sheet.getRow(i);&lt;br /&gt;if(row != null) &lt;br /&gt;{&lt;br /&gt;tmp = sheet.getRow(i).getPhysicalNumberOfCells();&lt;br /&gt;if(tmp &amp;gt cols) cols = tmp;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;else &lt;br /&gt;    {&lt;br /&gt;    out.println("ROW is null"+ i+"&amp;ltBR&amp;gt");&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;    out.println("Total Row "+rows+"&amp;ltBR&amp;gt");&lt;br /&gt;    &lt;br /&gt;for(int r = 1; r &amp;lt rows; r++) &lt;br /&gt;{&lt;br /&gt;        out.println("Row "+r+"&amp;ltBR&amp;gt");&lt;br /&gt;     sql =   "insert into csr_mst values (";&lt;br /&gt;row = sheet.getRow(r);&lt;br /&gt;if(row != null) &lt;br /&gt;{&lt;br /&gt;   // out.println("&amp;lttr&amp;gt&amp;lttd&amp;gt"+row.getRowNum()+"&amp;lt/td&amp;gt");&lt;br /&gt;    &lt;br /&gt;for(int c = 0; c &amp;lt cols; c++) &lt;br /&gt;{&lt;br /&gt;     &lt;br /&gt;cell = row.getCell((short)c);&lt;br /&gt;if(cell == null) &lt;br /&gt;{&lt;br /&gt;    sql = sql + "'',";&lt;br /&gt;}&lt;br /&gt;else if(cell != null) &lt;br /&gt;{&lt;br /&gt;// Your code here &lt;br /&gt;// s = cell.getData();&lt;br /&gt;      // out.println("&amp;lttd&amp;gt");&lt;br /&gt;//out.println(cell);&lt;br /&gt;    &lt;br /&gt;    String cellValue = cell.toString();&lt;br /&gt;    CharSequence singleQuote = "'";&lt;br /&gt;    CharSequence singleQuoteReplace = "`";&lt;br /&gt;    if(cellValue.contains("'"))&lt;br /&gt;        {      &lt;br /&gt;        cellValue = cellValue.replace(singleQuote,singleQuoteReplace);&lt;br /&gt;       &lt;br /&gt;        }&lt;br /&gt;     sql = sql + "'"+cellValue+"',";    &lt;br /&gt;            &lt;br /&gt;   //out.println("&amp;lt/td&amp;gt");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;   // out.println("&amp;lt/tr&amp;gt");&lt;br /&gt;    sql = sql.substring(0,sql.length()-1);&lt;br /&gt;sql = sql +")";&lt;br /&gt;out.println("&amp;ltBR&amp;gt"+sql+"&amp;ltBR&amp;gt");&lt;br /&gt;//stmt.addBatch(sql);&lt;br /&gt;con.setAutoCommit(false);&lt;br /&gt;stmt.execute(sql);&lt;br /&gt;con.commit();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;con.close();&lt;br /&gt;}&lt;br /&gt;catch (BatchUpdateException be) {&lt;br /&gt;out.println(be.getMessage());&lt;br /&gt; //handle batch update exception&lt;br /&gt; int[] counts = be.getUpdateCounts();&lt;br /&gt; for (int i=0; i&amp;lt counts.length; i++) {&lt;br /&gt;  System.out.println("Statement["+i+"] :"+counts[i]);&lt;br /&gt; }&lt;br /&gt; con.rollback();&lt;br /&gt;}&lt;br /&gt;catch (SQLException e) {&lt;br /&gt;        out.println(e.getMessage());&lt;br /&gt;&lt;br /&gt; //handle SQL exception&lt;br /&gt; con.rollback();&lt;br /&gt;}&lt;br /&gt;catch(Exception ioe) &lt;br /&gt;{&lt;br /&gt;    out.println(ioe.getMessage());&lt;br /&gt;ioe.printStackTrace();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;out.println("&amp;lt/table&amp;gt");&lt;br /&gt; &lt;br /&gt;out.println("ALL Infomrations are updated successfully");&lt;br /&gt;&lt;br /&gt;%&amp;gt&lt;br /&gt;   &amp;lt/body&amp;gt&lt;br /&gt;&amp;lt/html&amp;gt&lt;br /&gt;&lt;br /&gt;Table structure which is being imported :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CREATE TABLE /*!32312 IF NOT EXISTS*/ "csr_mst" (&lt;br /&gt;  "ATS_ID" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Application_Name" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Application_Acronym" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Sector" varchar(200) DEFAULT NULL,&lt;br /&gt;  "GSC" varchar(200) DEFAULT NULL,&lt;br /&gt;  "CSR_Number" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Priority" varchar(200) DEFAULT NULL,&lt;br /&gt;  "CSR_Title" varchar(1000) DEFAULT NULL,&lt;br /&gt;  "Business_Case" longtext,&lt;br /&gt;  "Change_Classification" varchar(200) DEFAULT NULL,&lt;br /&gt;  "State" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Business_Request_Date" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Proposal_Approved_Date" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Implemented_Canceled_Date" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Request_Submitted_Date" varchar(200) DEFAULT NULL,&lt;br /&gt;  "ROM" varchar(200) DEFAULT NULL,&lt;br /&gt;  "CRB1_Approved_Date" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Final_Estimated_Hours" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Proposal_Date" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Project_Status" varchar(200) DEFAULT NULL,&lt;br /&gt;  "GM_Requestor" varchar(200) DEFAULT NULL,&lt;br /&gt;  "GM_Requestor_Phone" varchar(200) DEFAULT NULL,&lt;br /&gt;  "GM_Requestor_Email" varchar(200) DEFAULT NULL,&lt;br /&gt;  "GM_Sustain_Lead" varchar(200) DEFAULT NULL,&lt;br /&gt;  "GM_Sustain_Lead_Phone" varchar(200) DEFAULT NULL,&lt;br /&gt;  "GM_Sustain_Lead_Email" varchar(200) DEFAULT NULL,&lt;br /&gt;  "EDS_Sustain_Lead" varchar(200) DEFAULT NULL,&lt;br /&gt;  "EDS_Sustain_Lead_Phone" varchar(200) DEFAULT NULL,&lt;br /&gt;  "EDS_Sustain_Lead_Email" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Impl_Mgmt_Number" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Proposed_Implementation_Date" varchar(200) DEFAULT NULL,&lt;br /&gt;  "CRB2_Approved_Date" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Comments" longtext,&lt;br /&gt;  "Funding_Source" varchar(200) DEFAULT NULL,&lt;br /&gt;  "SOX_Impact" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Change_Category" varchar(200) DEFAULT NULL,&lt;br /&gt;  "SAP_Code" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Attachment00" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Note00" longtext,&lt;br /&gt;  "Attachment01" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Note01" longtext,&lt;br /&gt;  "Attachment02" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Note02" longtext,&lt;br /&gt;  "Attachment03" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Note03" longtext,&lt;br /&gt;  "Attachment04" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Note04" longtext,&lt;br /&gt;  "Attachment05" varchar(200) DEFAULT NULL,&lt;br /&gt;  "Note05" longtext&lt;br /&gt;) /*!40100 DEFAULT CHARSET=latin1*/;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Dumping data for table 'csr_mst'&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;LOCK TABLES "csr_mst" WRITE;&lt;br /&gt;/*!40000 ALTER TABLE "csr_mst" DISABLE KEYS;*/&lt;br /&gt;REPLACE INTO "csr_mst" ("ATS_ID", "Application_Name", "Application_Acronym", "Sector", "GSC", "CSR_Number", "Priority", "CSR_Title", "Business_Case", "Change_Classification", "State", "Business_Request_Date", "Proposal_Approved_Date", "Implemented_Canceled_Date", "Request_Submitted_Date", "ROM", "CRB1_Approved_Date", "Final_Estimated_Hours", "Proposal_Date", "Project_Status", "GM_Requestor", "GM_Requestor_Phone", "GM_Requestor_Email", "GM_Sustain_Lead", "GM_Sustain_Lead_Phone", "GM_Sustain_Lead_Email", "EDS_Sustain_Lead", "EDS_Sustain_Lead_Phone", "EDS_Sustain_Lead_Email", "Impl_Mgmt_Number", "Proposed_Implementation_Date", "CRB2_Approved_Date", "Comments", "Funding_Source", "SOX_Impact", "Change_Category", "SAP_Code", "Attachment00", "Note00", "Attachment01", "Note01", "Attachment02", "Note02", "Attachment03", "Note03", "Attachment04", "Note04", "Attachment05", "Note05") VALUES&lt;br /&gt; ('2704.0','SAP Compass','SAP Finance,&lt;br /&gt;PRIDE','GMAP','20','8410.0','14.0','Confiigeration for ZPRC to operated for HNZ','HNZ currently updates the Condition Records Manually into the different condition types and this can lead to errors.','Business Improvement','Design','23-Jun-2009','07-Jul-2008','','02-Jul-2008','Large','07-Jul-2008','105.0','07-Jul-2008','','Jan Smillie','+64 9 9783643','Jan.Smillie@gm.com','Steven Celar',' +61 3 9038 4666','steven.celar@gm.com','Atul Gokhale','020-66069000','atul.gokhale@eds.com','','','07-Jul-2008','"18 Nov - Awaiting resourcing at completion of CR 8923.&lt;br /&gt;07 Nov - This CR is necessary before an important change to DDR payments (CR being drafted by HNZ).  Priority increased to 1.4&lt;br /&gt;02 Sep - Placed on hold at GM request, pending refinement of business reqts.&lt;br /&gt;29 Jul - Grant in discussion with Wilhelm/Jan for review of business requirements. Meeting scheduled&lt;br /&gt;07 Jul - ROM submitted"','Discretionary','No','Enhancement','','','0 7/2/2008 It is required that ZPRC program works for HNZ the same way that GMH operates ZPRC, however requires to be altered for HNZ rules.&lt;br /&gt; &lt;br /&gt;NZ populates the ZPRC price master tables via an Excel upload file or manual input, including contract table.','','','','','','','','','','');&lt;br /&gt;REPLACE INTO "csr_mst" ("ATS_ID", "Application_Name", "Application_Acronym", "Sector", "GSC", "CSR_Number", "Priority", "CSR_Title", "Business_Case", "Change_Classification", "State", "Business_Request_Date", "Proposal_Approved_Date", "Implemented_Canceled_Date", "Request_Submitted_Date", "ROM", "CRB1_Approved_Date", "Final_Estimated_Hours", "Proposal_Date", "Project_Status", "GM_Requestor", "GM_Requestor_Phone", "GM_Requestor_Email", "GM_Sustain_Lead", "GM_Sustain_Lead_Phone", "GM_Sustain_Lead_Email", "EDS_Sustain_Lead", "EDS_Sustain_Lead_Phone", "EDS_Sustain_Lead_Email", "Impl_Mgmt_Number", "Proposed_Implementation_Date", "CRB2_Approved_Date", "Comments", "Funding_Source", "SOX_Impact", "Change_Category", "SAP_Code", "Attachment00", "Note00", "Attachment01", "Note01", "Attachment02", "Note02", "Attachment03", "Note03", "Attachment04", "Note04", "Attachment05", "Note05") VALUES&lt;br /&gt; ('2704.0','SAP Compass','SAP Finance,&lt;br /&gt;PRIDE','GMAP','20','8412.0','12.0','BULLETIN INPUT SCREEN  (ZDC1) &amp; ZVI001 TABLES - ADD AUSTRALIAN STATE','The business has made a decision via Sales and Marketing to begin processing bonus bulletin payments across each Australian state .','Business Improvement','Testing','01-Oct-2008','04-Jul-2008','','03-Jul-2008','Small','04-Jul-2008','80.0','04-Jul-2008','','LOU BASCHIERA','+61 3 96472534','lou.baschiera@gm.com','Steven Celar',' +61 3 9038 4666','steven.celar@gm.com','Atul Gokhale','020-66069000','atul.gokhale@eds.com','','','04-Jul-2008','"&lt;br /&gt;15 July- UATTesting in progress &lt;br /&gt;8 july -  Issues identified during testing in QBS.  Team reviewing the code again.&lt;br /&gt;24 June - Build completed.  Stamp Duty Claim amount upload successful. Currently testing the automatic claims process&lt;br /&gt;17 june- SOL prepration in progress. &lt;br /&gt;10 june- Priority moved up to 1.2 &lt;br /&gt;03 June - SOL prepartion is in progress. &lt;br /&gt;18-May - Team discussing on requirements of bulletin number validation, upload of stamp duty claim file etc. Design and Build could take longer time as the logic to be built is complex&lt;br /&gt;15-May- Clarified points on claim code maintenance and Aus state as unique key field in custom table. additional requirement of bulletin number also was raised&lt;br /&gt;13 May, 4-May- SOL is under progress. Priority changed from 1.9 to 1.5&lt;br /&gt;29Apr - Team discussed with Lou on 21/04/2009. Additional input of claim code needs to be taken care. Also discussed internally on 22/04/2009. Work in progress&lt;br /&gt;24 Apr - Few modifications recognized in SOL. Also, need few clarifications in the process to make this work&lt;br /&gt;22 Apr- ABAP team is modifying SOL to meet the requirements.&lt;br /&gt;17 Mar - Design underway. prasad is working on Design. As other high priority CR`s are in progress, this will be taken care in parallel. &lt;br /&gt;07 Nov - Impacted by LEPA; no development until 25/01/09.&lt;br /&gt;23 Sep - Coding underway.&lt;br /&gt;16 Sep - Design progressing&lt;br /&gt;01 Sep - Seeking customer feedback on requirements.&lt;br /&gt;18 Aug - Working on design in background&lt;br /&gt;07 Aug - Implementation pending completion of VDC project.  Will attempt to work around&lt;br /&gt;05 Aug - Design proceeding&lt;br /&gt;22 Jul - Seeking customer feedback on requirements.&lt;br /&gt;04 Jul - ROM submitted and approved."','Discretionary','No','Enhancement','','','0 7/3/2008 Currently Holden has many bonus driveaway deals. These deals are seperated by Australian state due to onroad costs being different across each state. &lt;br /&gt;&lt;br /&gt;We would like the facility to add the  Australian state to the bulletin input screen (ZDC1','','1 7/3/2008','','','','','','','','');&lt;br /&gt;REPLACE INTO "csr_mst" ("ATS_ID", "Application_Name", "Application_Acronym", "Sector", "GSC", "CSR_Number", "Priority", "CSR_Title", "Business_Case", "Change_Classification", "State", "Business_Request_Date", "Proposal_Approved_Date", "Implemented_Canceled_Date", "Request_Submitted_Date", "ROM", "CRB1_Approved_Date", "Final_Estimated_Hours", "Proposal_Date", "Project_Status", "GM_Requestor", "GM_Requestor_Phone", "GM_Requestor_Email", "GM_Sustain_Lead", "GM_Sustain_Lead_Phone", "GM_Sustain_Lead_Email", "EDS_Sustain_Lead", "EDS_Sustain_Lead_Phone", "EDS_Sustain_Lead_Email", "Impl_Mgmt_Number", "Proposed_Implementation_Date", "CRB2_Approved_Date", "Comments", "Funding_Source", "SOX_Impact", "Change_Category", "SAP_Code", "Attachment00", "Note00", "Attachment01", "Note01", "Attachment02", "Note02", "Attachment03", "Note03", "Attachment04", "Note04", "Attachment05", "Note05") VALUES&lt;br /&gt; ('2704.0','SAP Compass','SAP Finance,&lt;br /&gt;PRIDE','GMAP','20','8640.0','33.0','CLAIMS NOT PAID ON OPTIONS - (ZDC1)','The business is not able to pay dealers any claims relating to options within the ZDC1 bulletin input screen , causing much frustration and disatisfaction amongst the dealer network across Australia','Business Improvement','Workload','01-Oct-2008','05-Aug-2008','','29-Jul-2008','Large','05-Aug-2008','154.5','04-Aug-2008','','LOU BASCHIERA','+61 3 96472534','lou.baschiera@gm.com','Steven Celar',' +61 3 9038 4666','steven.celar@gm.com','Atul Gokhale','020-66069000','atul.gokhale@eds.com','','','05-Aug-2008','"07 Nov - Impacted by LEPA; no development until 25/01/09.&lt;br /&gt;07 Aug - Placed on hold, pending completion of VDC project.&lt;br /&gt;05 Aug - ROM approved&lt;br /&gt;04 Aug - ROM submitted for approval"','Discretionary','No','Enhancement','','','0 7/29/2008 Currently all Vehicles ("VE") and Smartpacks ("SP" ) are loaded to the bulletin input screen and claims are automatically paid if the retail (RETL) records matches the material codes loaded within the bulletin input screen. &lt;br /&gt;&lt;br /&gt;Issue is that a','','','','','','','','','','');&lt;br /&gt;REPLACE INTO "csr_mst" ("ATS_ID", "Application_Name", "Application_Acronym", "Sector", "GSC", "CSR_Number", "Priority", "CSR_Title", "Business_Case", "Change_Classification", "State", "Business_Request_Date", "Proposal_Approved_Date", "Implemented_Canceled_Date", "Request_Submitted_Date", "ROM", "CRB1_Approved_Date", "Final_Estimated_Hours", "Proposal_Date", "Project_Status", "GM_Requestor", "GM_Requestor_Phone", "GM_Requestor_Email", "GM_Sustain_Lead", "GM_Sustain_Lead_Phone", "GM_Sustain_Lead_Email", "EDS_Sustain_Lead", "EDS_Sustain_Lead_Phone", "EDS_Sustain_Lead_Email", "Impl_Mgmt_Number", "Proposed_Implementation_Date", "CRB2_Approved_Date", "Comments", "Funding_Source", "SOX_Impact", "Change_Category", "SAP_Code", "Attachment00", "Note00", "Attachment01", "Note01", "Attachment02", "Note02", "Attachment03", "Note03", "Attachment04", "Note04", "Attachment05", "Note05") VALUES&lt;br /&gt; ('2704.0','SAP Compass','SAP Finance,&lt;br /&gt;PRIDE','GMAP','20','8748.0','11.0','Create SAP Finance interface to accept SAP Extract file out of LN Sundry Invoicing','Load LN invoice &amp; credit notes into SAP and streamline GMH &amp; HNZ processes.','Business Improvement','Testing','31-Dec-2008','13-Aug-2008','','08-Aug-2008','Small','13-Aug-2008','80.0','12-Aug-2008','','Jan Smillie','+64 9 9783643','Jan.Smillie@gm.com','Steven Celar',' +61 3 9038 4666','steven.celar@gm.com','Atul Gokhale','020-66069000','atul.gokhale@eds.com','','','13-Aug-2008','17 Mar - Customer confirmation that testing will recommence 18/03.&lt;br /&gt;20 Jan - Awaiting UAT.&lt;br /&gt;10 Dec - Testing delayed by CR 9734.&lt;br /&gt;24 Nov - Testing progressing&lt;br /&gt;13 Aug - ROM approved&lt;br /&gt;12 Aug - ROM submitted for approval','Discretionary','No','Enhancement','','','0 8/8/2008 Create a new SAP Finance interface to upload and process a newly generated SAP Extract file out of LN Sundry invoicing. &lt;br /&gt;The SAP Finance interface needs to be able to accept and process a file with the following information:&lt;br /&gt;- Header &lt;br /&gt;   - Q','','','','','','','','','','');&lt;br /&gt;&lt;br /&gt;&amp;ltstrong&amp;gtAJAX&amp;lt/strong&amp;gt&lt;br /&gt;&lt;br /&gt;The Ajax technique accomplishes this by using the following technologies:&lt;br /&gt;&lt;br /&gt;JavaScript that allows for interaction with the browser and responding to events &lt;br /&gt;The DOM for accessing and manipulating the structure of the HTML of the page &lt;br /&gt;XML, which represents the data passed between the server and client. &lt;br /&gt;An XMLHttpRequest object for asynchronously exchanging the XML data between the client and the server. &lt;br /&gt;The following graphic shows how these technologies work together to update a piece of a page with new data from the server.&lt;br /&gt;&lt;br /&gt;                Figure 1: General Sequence of Ajax Request&lt;br /&gt;&lt;br /&gt;Figure 1 illustrates the following steps in a generalized Ajax request:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; The user generates an event, such as by clicking a button.  This results in a JavaScript call. &lt;br /&gt;An XMLHttpRequest object is created and configured with a request parameter that includes the ID of the component that generated the event and any value that the user might have entered. &lt;br /&gt;The XMLHttpRequest object makes an asynchronous request to the web server.  An object (such as a servlet or listener) receives the request, processes it, and stores any data in the request to the data store.  In the case of Ajax-aware JavaServer Faces components, the object that processes the request is a PhaseListener object.  We'll cover that more later in the document. &lt;br /&gt;The object that processed the request returns an XML document containing any updates that need to go to the client. &lt;br /&gt;The XMLHttpRequest object receives the XML data, processes it, and updates the HTML DOM representing the page with the new data. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In the below Example &lt;br /&gt;&lt;br /&gt;Run -&amp;gtCall.jsp it invokes db.jsp through Ajax&lt;br /&gt;&lt;br /&gt;&amp;ltstrong&amp;gt&lt;br /&gt;CALL.JSP&amp;lt/strong&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lt%@page contentType="text/html"%&amp;gt&lt;br /&gt;&amp;lt!-- The above is the page directive with attribute "contentType" which is used to get the content type of the page --&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lt%@page pageEncoding="UTF-8"%&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lt!-- The above is the page directive with the attribute "pageEncoding" tells us that we are working with unicode encoding within the page --&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lt!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"&amp;gt&lt;br /&gt;&amp;lthtml&amp;gt&lt;br /&gt;&amp;lthead&amp;gt&lt;br /&gt;&amp;lt!-- We call a ajax.js javascript which makes an asynchronous request to the server --&amp;gt&lt;br /&gt;&amp;ltscript language="javascript" src="ajax.js"&amp;gt&amp;lt/script&amp;gt .&lt;br /&gt;&amp;ltmeta http-equiv="Content-Type" content="text/html;charset=UTF-8"&amp;gt&lt;br /&gt;&amp;lttitle&amp;gtJSP Page using AJAX&lt;br /&gt;&amp;lt/title&amp;gt&lt;br /&gt;&amp;lt/head&amp;gt&lt;br /&gt;&amp;ltbody&amp;gt&lt;br /&gt;&amp;ltform name=testFrm"&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sector : &amp;ltselect name="sector" id="sector"&amp;gt &lt;br /&gt;    &amp;ltoption value=''&amp;gt&amp;lt/option&amp;gt&lt;br /&gt;    &amp;ltoption value='GME'&amp;gtGME&amp;lt/option&amp;gt&lt;br /&gt;    &amp;ltoption value='Corp Finance'&amp;gtCorp Finance&amp;lt/option&amp;gt&lt;br /&gt;    &amp;ltoption value='GMNA'&amp;gtGMNA&amp;lt/option&amp;gt&lt;br /&gt;    &amp;ltoption value='Corp Staff - EDES'&amp;gtCorp Staff - EDES&amp;lt/option&amp;gt&lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;&amp;lt/select&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Application Acronym : &lt;br /&gt;&lt;br /&gt;&amp;ltselect name="application_acronym" id="application_acronym"&amp;gt  &lt;br /&gt;    &amp;ltoption value=''&amp;gt&amp;lt/option&amp;gt&lt;br /&gt;    &amp;ltoption value='eCVMS'&amp;gteCVMS&amp;lt/option&amp;gt&lt;br /&gt;    &amp;ltoption value='vcps'&amp;gtvcps&amp;lt/option&amp;gt&lt;br /&gt;    &amp;ltoption value='e.VPS'&amp;gte.VPS&amp;lt/option&amp;gt&lt;br /&gt;&amp;lt/select&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;State : &amp;ltselect name="state" id="state"&amp;gt &lt;br /&gt;    &amp;ltoption value=''&amp;gt&amp;lt/option&amp;gt&lt;br /&gt;    &amp;ltoption value='ROM'&amp;gtROM&amp;lt/option&amp;gt&lt;br /&gt;    &amp;ltoption value='Design'&amp;gtDesign&amp;lt/option&amp;gt&lt;br /&gt;    &amp;ltoption value='Workload'&amp;gtWorkload&amp;lt/option&amp;gt&lt;br /&gt;    &amp;ltoption value='Testing'&amp;gtTesting&amp;lt/option&amp;gt   &lt;br /&gt;    &amp;ltoption value='Build'&amp;gtBuild&amp;lt/option&amp;gt&lt;br /&gt;    &amp;ltoption value='Deploy'&amp;gtDeploy&amp;lt/option&amp;gt&lt;br /&gt;    &amp;ltoption value='On Hold'&amp;gtOn Hold&amp;lt/option&amp;gt&lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;&amp;lt/select&amp;gt&lt;br /&gt;&lt;br /&gt;ATS No : &amp;ltinput type='text' name="ats_id" id="ats_id"/&amp;gt&lt;br /&gt;CR#: &amp;ltinput type='text' name="csr_number" id="csr_number"/&amp;gt&lt;br /&gt;&amp;ltinput id="submit" type="button"  value="Submit" onclick="sendRequest('GET','db.jsp')"&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltdiv id="ajax_res"&amp;gt Please get CR detail by entering the above values &lt;br /&gt;&amp;lt/div&amp;gt&lt;br /&gt;&amp;lt/form&amp;gt&lt;br /&gt;&amp;lt/body&amp;gt&lt;br /&gt;&amp;lt/html&amp;gt&lt;br /&gt;&lt;br /&gt;AJAX.js&lt;br /&gt;=======&lt;br /&gt;function createRequestObject(){&lt;br /&gt;var req; try {&lt;br /&gt;// Firefox, Opera, Safari&lt;br /&gt;req = new XMLHttpRequest();&lt;br /&gt;} catch (e) {&lt;br /&gt;// Internet Explorer&lt;br /&gt;try {&lt;br /&gt;//For IE 6&lt;br /&gt;req = new ActiveXObject("Msxml2.XMLHTTP");&lt;br /&gt;} catch (e) {&lt;br /&gt;try {&lt;br /&gt;//For IE 5&lt;br /&gt;req = new ActiveXObject("Microsoft.XMLHTTP");&lt;br /&gt;} catch (e) {&lt;br /&gt;alert('Your browser is not IE 5 or higher, or Firefox or Safari or Opera');&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;return req;&lt;br /&gt;}&lt;br /&gt;//Make the XMLHttpRequest Object&lt;br /&gt;var http = createRequestObject();&lt;br /&gt;&lt;br /&gt;function sendRequest(method, url){&lt;br /&gt;if(method == 'get' || method == 'GET'){&lt;br /&gt; var ats_id = document.getElementById("ats_id").value;&lt;br /&gt;        var sector  = document.getElementById("sector").value;&lt;br /&gt;        var application_acronym = document.getElementById("application_acronym").value;&lt;br /&gt;        var csr_number = document.getElementById("csr_number").value;&lt;br /&gt;        var state = document.getElementById("state").value;&lt;br /&gt;&lt;br /&gt; url=url+"?ats_id="+ats_id;&lt;br /&gt; url=url+"&amp;sector="+sector;&lt;br /&gt; url=url+"&amp;application_acronym="+application_acronym;&lt;br /&gt; url=url+"&amp;csr_number="+csr_number;&lt;br /&gt;        url=url+"&amp;state="+state;&lt;br /&gt;&lt;br /&gt; url=url+"&amp;sid="+Math.random();&lt;br /&gt;http.open(method,url,true);&lt;br /&gt;http.onreadystatechange = antonyfntest;&lt;br /&gt;http.send(null);}&lt;br /&gt;}&lt;br /&gt;function antonyfntest(){&lt;br /&gt;//alert('Hi Antony');&lt;br /&gt;if(http.readyState == 4 &amp;&amp; http.status == 200){&lt;br /&gt;var response = http.responseText;&lt;br /&gt;if(response){&lt;br /&gt;document.getElementById("ajax_res").innerHTML = response;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;========&lt;br /&gt;&lt;br /&gt;DB.JSP&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt%@page import="java.sql.*"%&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lthtml&amp;gt&lt;br /&gt;&amp;ltbody&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lttable&amp;gt&lt;br /&gt;&amp;lttbody&amp;gt    &lt;br /&gt;&amp;ltdiv&amp;gt&lt;br /&gt;&amp;ltcenter&amp;gt&lt;br /&gt;&amp;lt%&lt;br /&gt;String ats_id= request.getParameter("ats_id");&lt;br /&gt;String sector= request.getParameter("sector");&lt;br /&gt;String application_acronym = request.getParameter("application_acronym");&lt;br /&gt;String csr_number= request.getParameter("csr_number");&lt;br /&gt;String state= request.getParameter("state");&lt;br /&gt;&lt;br /&gt;String  sql = null;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;out.println("&amp;ltBR&amp;gt*******************ats_id*********************==&amp;gt"+ats_id);&lt;br /&gt;out.println("&amp;ltBR&amp;gt*******************sector*********************==&amp;gt"+sector);&lt;br /&gt;out.println("&amp;ltBR&amp;gt*******************application_acronym*********************==&amp;gt"+application_acronym);&lt;br /&gt;out.println("&amp;ltBR&amp;gt*******************csr_number*********************==&amp;gt"+csr_number);&lt;br /&gt;out.println("&amp;ltBR&amp;gt*******************state*********************==&amp;gt"+state);&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;String condition = null;&lt;br /&gt;if(ats_id != null || sector != null || application_acronym != null || csr_number != null)&lt;br /&gt;    {&lt;br /&gt;    condition = "  where ";&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;if (ats_id != null &amp;&amp; !ats_id.equalsIgnoreCase(""))&lt;br /&gt;{&lt;br /&gt;    ats_id = ats_id +".0";&lt;br /&gt;    condition = condition + "ats_id ='"+ats_id+"' and ";&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;if (sector != null &amp;&amp; !sector.equalsIgnoreCase(""))&lt;br /&gt;{&lt;br /&gt;    condition = condition + "sector ='"+sector+"' and ";&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;if (application_acronym != null &amp;&amp; !application_acronym.equalsIgnoreCase(""))&lt;br /&gt;{&lt;br /&gt;    condition = condition + "application_acronym ='"+application_acronym+"' and ";&lt;br /&gt;}  &lt;br /&gt;&lt;br /&gt;if (csr_number != null &amp;&amp; !csr_number.equalsIgnoreCase(""))&lt;br /&gt;{&lt;br /&gt;    csr_number = csr_number+".0";&lt;br /&gt;    condition = condition + "csr_number ='"+csr_number+"'  and ";&lt;br /&gt;}  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if (state != null &amp;&amp; !state.equalsIgnoreCase(""))&lt;br /&gt;{&lt;br /&gt;    condition = condition + "state ='"+state+"'  and";&lt;br /&gt;}  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        &lt;br /&gt;        &lt;br /&gt;//out.println("Copndtin ="+condition);&lt;br /&gt;&lt;br /&gt;if(condition!=null)&lt;br /&gt;    {&lt;br /&gt;int len = condition.length();&lt;br /&gt;//out.println("Beforecondition"+condition);&lt;br /&gt; condition = condition.substring(1,len-4);&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt;     {&lt;br /&gt;     condition = "";&lt;br /&gt;     }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;String DRIVER = "org.gjt.mm.mysql.Driver";&lt;br /&gt;Class.forName(DRIVER).newInstance();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connection con=null;&lt;br /&gt;ResultSet rs=null;&lt;br /&gt;Statement stmt=null;&lt;br /&gt;&lt;br /&gt;try{&lt;br /&gt;String url="jdbc:mysql://localhost/csr?user=root&amp;password=";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;con=DriverManager.getConnection(url);&lt;br /&gt;stmt=con.createStatement();&lt;br /&gt;  sql = "select * from csr_mst " + condition;&lt;br /&gt;rs=stmt.executeQuery(sql);&lt;br /&gt;&lt;br /&gt;//out.println("SQL"+sql);&lt;br /&gt;    &lt;br /&gt;String column="";&lt;br /&gt;    &lt;br /&gt;    ResultSetMetaData rsm =rs.getMetaData();&lt;br /&gt;     out.println("&amp;lttable border=1&amp;gt"); &lt;br /&gt;       int cc = rsm.getColumnCount();&lt;br /&gt;       System.out.println("running......cnt...."+cc);&lt;br /&gt;       int c=1;&lt;br /&gt;       String header ="&amp;lttr&amp;gt&amp;lttd&amp;gtS.No&amp;lt/td&amp;gt";&lt;br /&gt;       for(int i=1;i&amp;lt=cc;i++)&lt;br /&gt;      {&lt;br /&gt;    System.out.println("is "+rsm.getColumnName(i));&lt;br /&gt;      header = header+"&amp;lttd&amp;gt"+rsm.getColumnName(i)+"&amp;lt/td&amp;gt";&lt;br /&gt;   &lt;br /&gt;     }&lt;br /&gt;       header = header+"&amp;lt/tr&amp;gt";&lt;br /&gt;       out.println(header);&lt;br /&gt;&lt;br /&gt;       int row = 0; &lt;br /&gt;       while(rs.next())&lt;br /&gt;       { &lt;br /&gt;             row= row +1;&lt;br /&gt;                          System.out.println(row);&lt;br /&gt;             out.println("&amp;lttr&amp;gt&amp;lttd&amp;gt"+row+"&amp;lt/td&amp;gt");&lt;br /&gt;             &lt;br /&gt;           for(int i=1;i&amp;lt=cc;i++)&lt;br /&gt;           {&lt;br /&gt;               //column = column+rs.getString(rsm.getColumnName(i))+"#";&lt;br /&gt;         out.println("&amp;lttd&amp;gt"+rs.getString(rsm.getColumnName(i))+"&amp;lt/td&amp;gt");&lt;br /&gt;       &lt;br /&gt;           }&lt;br /&gt;               out.println("&amp;lt/tr&amp;gt");&lt;br /&gt;       } &lt;br /&gt;&lt;br /&gt;    &lt;br /&gt;    out.println("&amp;lt/table&amp;gt");&lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;rs.close();&lt;br /&gt;stmt.close();&lt;br /&gt;con.close();&lt;br /&gt;}catch(Exception e){out.println(e.getMessage()+"&amp;ltBR&amp;gt"+sql);&lt;br /&gt;}&lt;br /&gt;%&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lt/tbody&amp;gt&lt;br /&gt;&amp;lt/table&amp;gt&lt;br /&gt;&amp;lt/center&amp;gt&lt;br /&gt;&amp;lt/div&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt/body&amp;gt&lt;br /&gt;&amp;lt/html&amp;gt&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-3108546618342350189?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/3108546618342350189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=3108546618342350189' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/3108546618342350189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/3108546618342350189'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/11/ajax-with-excel-poi-import.html' title='AJAX with EXCEL POI Import'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-8789166042115235537</id><published>2009-11-10T03:46:00.000-08:00</published><updated>2012-01-15T20:51:38.152-08:00</updated><title type='text'>Good Design for your websites</title><content type='html'>http://www.multiprobe.com/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-8789166042115235537?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/8789166042115235537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=8789166042115235537' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/8789166042115235537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/8789166042115235537'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/11/good-design-for-your-websites.html' title='Good Design for your websites'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-8865862682309991208</id><published>2009-11-07T21:47:00.000-08:00</published><updated>2012-01-15T20:51:38.162-08:00</updated><title type='text'>Java Interview Question</title><content type='html'>Questions:&lt;br /&gt;Core &lt;br /&gt;Type I&lt;br /&gt;1. What is Oops?&lt;br /&gt;2. What is function overloading&lt;br /&gt;3. What is function overriding&lt;br /&gt;4. &lt;br /&gt;Type II&lt;br /&gt;1. What is abstract Class?&lt;br /&gt;2. What is Interface?&lt;br /&gt;3. What is a difference between abstract and interface?&lt;br /&gt;4. What is Vector, Array List?2&lt;br /&gt;5. What is Hash table and Hash map&lt;br /&gt;6. What is StringTokenizer?&lt;br /&gt;7. What is the difference between string and string buffer?&lt;br /&gt;8. What is Exception? How many type of Exceptions&lt;br /&gt;9. What is the difference between compile time exception and run time exception&lt;br /&gt;10. What is synchronization&lt;br /&gt;11. &lt;br /&gt;Type III&lt;br /&gt;1. What is Hash Tree and Hash map?&lt;br /&gt;2. What is IO?&lt;br /&gt;3. What is socket and datagram?&lt;br /&gt;4. &lt;br /&gt;&lt;br /&gt;Type IV&lt;br /&gt;1. What is Thread?&lt;br /&gt;2. What is wait, Join, sleep?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DataBase:&lt;br /&gt;&lt;br /&gt;Standard Questions:&lt;br /&gt;1. How will you connect to the Database?&lt;br /&gt;2. What is mean by Class.forName, sun.jdbc.odbc&lt;br /&gt;3. What is the difference between prepared statement and callable statement.&lt;br /&gt;4. How many types of dirvers available?  *&lt;br /&gt;5. What is difference between statement and prepared statement?&lt;br /&gt;6. What is the difference between executeQuery, executeUpdate and execute.&lt;br /&gt;7. What  is ResultSet meta data and database meta data? *&lt;br /&gt;8. &lt;br /&gt;9. &lt;br /&gt;&lt;br /&gt;Servlet&lt;br /&gt;1. What is servlet?&lt;br /&gt;2. What is the difference between doGet and doPost?&lt;br /&gt;&lt;br /&gt;JSP&lt;br /&gt;1. What are the advantages of the JSP&lt;br /&gt;2. What is difference between include and forward? *&lt;br /&gt;3. What is the difference between sendreaderwrite and forward *&lt;br /&gt;4. What are the implicits objects in JSP&lt;br /&gt;5. How will you handle error page in Java. *&lt;br /&gt;6. What is the difference between page, session, request and application&lt;br /&gt;7. How will you make JSP thread at safe? *&lt;br /&gt;8. &lt;br /&gt;&lt;br /&gt;Face to Face Interview Questions:&lt;br /&gt;1. How will setup Tomcat:&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-8865862682309991208?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/8865862682309991208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=8865862682309991208' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/8865862682309991208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/8865862682309991208'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/11/java-interview-question.html' title='Java Interview Question'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-589160353398255149</id><published>2009-11-07T05:30:00.000-08:00</published><updated>2012-01-15T20:51:38.163-08:00</updated><title type='text'>HTML ADD Dynamic ROW in table</title><content type='html'>This code is taken from http://www.mredkj.com/tutorials/tableaddrow.html it is an excellent site for DHTML&lt;br /&gt;&lt;br /&gt;&amp;lt!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&amp;gt&lt;br /&gt;&amp;ltHTML&amp;gt&lt;br /&gt; &amp;ltHEAD&amp;gt&lt;br /&gt;  &amp;ltTITLE&amp;gt New Document &amp;lt/TITLE&amp;gt&lt;br /&gt;  &amp;ltMETA NAME="Generator" CONTENT="EditPlus"&amp;gt&lt;br /&gt;  &amp;ltMETA NAME="Author" CONTENT=""&amp;gt&lt;br /&gt;  &amp;ltMETA NAME="Keywords" CONTENT=""&amp;gt&lt;br /&gt;  &amp;ltMETA NAME="Description" CONTENT=""&amp;gt&lt;br /&gt;  &amp;ltscript language="javascript"&amp;gt&lt;br /&gt;&lt;br /&gt;function addRowToTable()&lt;br /&gt;{&lt;br /&gt;  var tbl = document.getElementById('tblSample');&lt;br /&gt;  var lastRow = tbl.rows.length;&lt;br /&gt;  // if there's no header row in the table, then iteration = lastRow + 1&lt;br /&gt;  var iteration = lastRow;&lt;br /&gt;  var row = tbl.insertRow(lastRow);&lt;br /&gt;  &lt;br /&gt;  // left cell&lt;br /&gt;  var cellLeft = row.insertCell(0);&lt;br /&gt;  var textNode = document.createTextNode(iteration);&lt;br /&gt;  cellLeft.appendChild(textNode);&lt;br /&gt;  &lt;br /&gt;  // right cell&lt;br /&gt;  var cellRight = row.insertCell(1);&lt;br /&gt;  var el = document.createElement('input');&lt;br /&gt;  el.type = 'text';&lt;br /&gt;  el.name = 'txtRow' + iteration;&lt;br /&gt;  el.id = 'txtRow' + iteration;&lt;br /&gt;  el.size = 40;&lt;br /&gt;  &lt;br /&gt;  el.onkeypress = keyPressTest;&lt;br /&gt;  cellRight.appendChild(el);&lt;br /&gt;  &lt;br /&gt;  // select cell&lt;br /&gt;  var cellRightSel = row.insertCell(2);&lt;br /&gt;  var sel = document.createElement('select');&lt;br /&gt;  sel.name = 'selRow' + iteration;&lt;br /&gt;  sel.options[0] = new Option('text zero', 'value0');&lt;br /&gt;  sel.options[1] = new Option('text one', 'value1');&lt;br /&gt;  cellRightSel.appendChild(sel);&lt;br /&gt;}&lt;br /&gt;function keyPressTest(e, obj)&lt;br /&gt;{&lt;br /&gt;  var validateChkb = document.getElementById('chkValidateOnKeyPress');&lt;br /&gt;  if (validateChkb.checked) {&lt;br /&gt;    var displayObj = document.getElementById('spanOutput');&lt;br /&gt;    var key;&lt;br /&gt;    if(window.event) {&lt;br /&gt;      key = window.event.keyCode; &lt;br /&gt;    }&lt;br /&gt;    else if(e.which) {&lt;br /&gt;      key = e.which;&lt;br /&gt;    }&lt;br /&gt;    var objId;&lt;br /&gt;    if (obj != null) {&lt;br /&gt;      objId = obj.id;&lt;br /&gt;    } else {&lt;br /&gt;      objId = this.id;&lt;br /&gt;    }&lt;br /&gt;    displayObj.innerHTML = objId + ' : ' + String.fromCharCode(key);&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;function removeRowFromTable()&lt;br /&gt;{&lt;br /&gt;  var tbl = document.getElementById('tblSample');&lt;br /&gt;  var lastRow = tbl.rows.length;&lt;br /&gt;  if (lastRow &amp;gt 2) tbl.deleteRow(lastRow - 1);&lt;br /&gt;}&lt;br /&gt;function openInNewWindow(frm)&lt;br /&gt;{&lt;br /&gt;  // open a blank window&lt;br /&gt;  var aWindow = window.open('', 'TableAddRowNewWindow',&lt;br /&gt;   'scrollbars=yes,menubar=yes,resizable=yes,toolbar=no,width=400,height=400');&lt;br /&gt;   &lt;br /&gt;  // set the target to the blank window&lt;br /&gt;  frm.target = 'TableAddRowNewWindow';&lt;br /&gt;  &lt;br /&gt;  // submit&lt;br /&gt;  frm.submit();&lt;br /&gt;}&lt;br /&gt;function validateRow(frm)&lt;br /&gt;{&lt;br /&gt;  var chkb = document.getElementById('chkValidate');&lt;br /&gt;  if (chkb.checked) {&lt;br /&gt;    var tbl = document.getElementById('tblSample');&lt;br /&gt;    var lastRow = tbl.rows.length - 1;&lt;br /&gt;    var i;&lt;br /&gt;    for (i=1; i&amp;lt=lastRow; i++) {&lt;br /&gt;      var aRow = document.getElementById('txtRow' + i);&lt;br /&gt;      if (aRow.value.length &amp;lt= 0) {&lt;br /&gt;        alert('Row ' + i + ' is empty');&lt;br /&gt;        return;&lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;  openInNewWindow(frm);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt/script&amp;gt&lt;br /&gt; &amp;lt/HEAD&amp;gt&lt;br /&gt;&lt;br /&gt; &amp;ltBODY&amp;gt&lt;br /&gt;  &amp;ltform action="tableaddrow_nw.html" method="get"&amp;gt&lt;br /&gt;&amp;ltp&amp;gt&lt;br /&gt;&amp;ltinput type="button" value="Add" onclick="addRowToTable();" /&amp;gt&lt;br /&gt;&amp;ltinput type="button" value="Remove" onclick="removeRowFromTable();" /&amp;gt&lt;br /&gt;&amp;ltinput type="button" value="Submit" onclick="validateRow(this.form);" /&amp;gt&lt;br /&gt;&amp;ltinput type="checkbox" id="chkValidate" /&amp;gt Validate Submit&lt;br /&gt;&amp;lt/p&amp;gt&lt;br /&gt;&amp;ltp&amp;gt&lt;br /&gt;&amp;ltinput type="checkbox" id="chkValidateOnKeyPress" checked="checked" /&amp;gt Display OnKeyPress&lt;br /&gt;&amp;ltspan id="spanOutput" style="border: 1px solid #000; padding: 3px;"&amp;gt &amp;lt/span&amp;gt&lt;br /&gt;&amp;lt/p&amp;gt&lt;br /&gt;&amp;lttable border="1" id="tblSample"&amp;gt&lt;br /&gt;  &amp;lttr&amp;gt&lt;br /&gt;    &amp;ltth colspan="3"&amp;gtSample table&amp;lt/th&amp;gt&lt;br /&gt;  &amp;lt/tr&amp;gt&lt;br /&gt;  &amp;lttr&amp;gt&lt;br /&gt;    &amp;lttd&amp;gt1&amp;lt/td&amp;gt&lt;br /&gt;    &amp;lttd&amp;gt&amp;ltinput type="text" name="txtRow1"&lt;br /&gt;     id="txtRow1" size="40" onkeypress="keyPressTest(event, this);" /&amp;gt&amp;lt/td&amp;gt&lt;br /&gt;    &amp;lttd&amp;gt&lt;br /&gt;    &amp;ltselect name="selRow0"&amp;gt&lt;br /&gt;    &amp;ltoption value="value0"&amp;gttext zero&amp;lt/option&amp;gt&lt;br /&gt;    &amp;ltoption value="value1"&amp;gttext one&amp;lt/option&amp;gt&lt;br /&gt;    &amp;lt/select&amp;gt&lt;br /&gt;    &amp;lt/td&amp;gt&lt;br /&gt;  &amp;lt/tr&amp;gt&lt;br /&gt;&amp;lt/table&amp;gt&lt;br /&gt;&amp;lt/form&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &amp;lt/BODY&amp;gt&lt;br /&gt;&amp;lt/HTML&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;&lt;html&gt; &lt;head&gt;  &lt;title&gt; New Document &lt;/title&gt;  &lt;meta name="Generator" content="EditPlus"&gt;  &lt;meta name="Author" content=""&gt;  &lt;meta name="Keywords" content=""&gt;  &lt;meta name="Description" content=""&gt;  &lt;script language="javascript"&gt;&lt;br /&gt;function addRowToTable(){  var tbl = document.getElementById('tblSample');  var lastRow = tbl.rows.length;  // if there's no header row in the table, then iteration = lastRow + 1  var iteration = lastRow;  var row = tbl.insertRow(lastRow);    // left cell  var cellLeft = row.insertCell(0);  var textNode = document.createTextNode(iteration);  cellLeft.appendChild(textNode);    // right cell  var cellRight = row.insertCell(1);  var el = document.createElement('input');  el.type = 'text';  el.name = 'txtRow' + iteration;  el.id = 'txtRow' + iteration;  el.size = 40;    el.onkeypress = keyPressTest;  cellRight.appendChild(el);    // select cell  var cellRightSel = row.insertCell(2);  var sel = document.createElement('select');  sel.name = 'selRow' + iteration;  sel.options[0] = new Option('text zero', 'value0');  sel.options[1] = new Option('text one', 'value1');  cellRightSel.appendChild(sel);}function keyPressTest(e, obj){  var validateChkb = document.getElementById('chkValidateOnKeyPress');  if (validateChkb.checked) {    var displayObj = document.getElementById('spanOutput');    var key;    if(window.event) {      key = window.event.keyCode;     }    else if(e.which) {      key = e.which;    }    var objId;    if (obj != null) {      objId = obj.id;    } else {      objId = this.id;    }    displayObj.innerHTML = objId + ' : ' + String.fromCharCode(key);  }}function removeRowFromTable(){  var tbl = document.getElementById('tblSample');  var lastRow = tbl.rows.length;  if (lastRow &gt; 2) tbl.deleteRow(lastRow - 1);}function openInNewWindow(frm){  // open a blank window  var aWindow = window.open('', 'TableAddRowNewWindow',   'scrollbars=yes,menubar=yes,resizable=yes,toolbar=no,width=400,height=400');     // set the target to the blank window  frm.target = 'TableAddRowNewWindow';    // submit  frm.submit();}function validateRow(frm){  var chkb = document.getElementById('chkValidate');  if (chkb.checked) {    var tbl = document.getElementById('tblSample');    var lastRow = tbl.rows.length - 1;    var i;    for (i=1; i&lt;=lastRow; i++) {      var aRow = document.getElementById('txtRow' + i);      if (aRow.value.length &lt;= 0) {        alert('Row ' + i + ' is empty');        return;      }    }  }  openInNewWindow(frm);}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;/script&gt; &lt;/head&gt;&lt;br /&gt; &lt;body&gt;  &lt;form action="tableaddrow_nw.html" method="get"&gt;&lt;p&gt;&lt;input type="button" value="Add" onclick="addRowToTable();"&gt;&lt;input type="button" value="Remove" onclick="removeRowFromTable();"&gt;&lt;input type="button" value="Submit" onclick="validateRow(this.form);"&gt;&lt;input type="checkbox" id="chkValidate"&gt; Validate Submit&lt;/p&gt;&lt;p&gt;&lt;input type="checkbox" id="chkValidateOnKeyPress" checked="checked"&gt; Display OnKeyPress&lt;span id="spanOutput" style="border: 1px solid #000; padding: 3px;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;table border="1" id="tblSample"&gt;  &lt;tr&gt;    &lt;th colspan="3"&gt;Sample table&lt;/th&gt;  &lt;/tr&gt;  &lt;tr&gt;    &lt;td&gt;1&lt;/td&gt;    &lt;td&gt;&lt;input type="text" name="txtRow1" id="txtRow1" size="40" onkeypress="keyPressTest(event, this);"&gt;&lt;/td&gt;    &lt;td&gt;    &lt;select name="selRow0"&gt;    &lt;option value="value0"&gt;text zero&lt;/option&gt;    &lt;option value="value1"&gt;text one&lt;/option&gt;    &lt;/select&gt;    &lt;/td&gt;  &lt;/tr&gt;&lt;/table&gt;&lt;/form&gt;&lt;br /&gt; &lt;/body&gt;&lt;/html&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-589160353398255149?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/589160353398255149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=589160353398255149' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/589160353398255149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/589160353398255149'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/11/html-add-dynamic-row-in-table.html' title='HTML ADD Dynamic ROW in table'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-2902613152949716314</id><published>2009-09-24T00:45:00.000-07:00</published><updated>2012-01-15T20:51:38.163-08:00</updated><title type='text'>Good Flash Templates</title><content type='html'>http://www.flashvillage.com/ is the best site to view and download Flash Templates&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-2902613152949716314?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/2902613152949716314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=2902613152949716314' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/2902613152949716314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/2902613152949716314'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/09/good-flash-templates.html' title='Good Flash Templates'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-1451876591388518378</id><published>2009-08-21T10:14:00.000-07:00</published><updated>2012-01-15T20:51:38.163-08:00</updated><title type='text'>MY Back UP</title><content type='html'>PHP BACK UP :&lt;br /&gt;&lt;br /&gt;This is only for my reference others dont use it&lt;br /&gt;http://www.efreelearn.com/BCP/test/BCP_CALL_COMMON.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PHP Oject CODE&lt;br /&gt;&lt;br /&gt;&lt;?php &lt;br /&gt;&lt;br /&gt;   // first test simple associative arrays  &lt;br /&gt;   $memory1 = xdebug_memory_usage( ); &lt;br /&gt;&lt;br /&gt;   $data = array(); &lt;br /&gt;&lt;br /&gt;   for($i=0;$i&lt;1000;$i++) { &lt;br /&gt;&lt;br /&gt;       $data[] = array( &lt;br /&gt;            'property1' =&gt; md5(microtime()), &lt;br /&gt;            'property2' =&gt; md5(microtime()), &lt;br /&gt;            'property3' =&gt; md5(microtime()), &lt;br /&gt;       ); &lt;br /&gt;&lt;br /&gt;   } &lt;br /&gt;&lt;br /&gt;   $array =  xdebug_memory_usage()-$memory1 . "\n"; &lt;br /&gt;&lt;br /&gt;   // Now do the same thing, but with a class..  &lt;br /&gt;&lt;br /&gt;   class Test { &lt;br /&gt;&lt;br /&gt;       public $property1; &lt;br /&gt;       public $property2; &lt;br /&gt;       public $property3; &lt;br /&gt;&lt;br /&gt;   } &lt;br /&gt;&lt;br /&gt;   $data = array(); &lt;br /&gt;&lt;br /&gt;   $memory1 = xdebug_memory_usage( ); &lt;br /&gt;&lt;br /&gt;   for($i=0;$i&lt;1000;$i++) { &lt;br /&gt;&lt;br /&gt;       $test = new Test(); &lt;br /&gt;       $test-&gt;property1 = md5(microtime()); &lt;br /&gt;       $test-&gt;property2 = md5(microtime()); &lt;br /&gt;       $test-&gt;property3 = md5(microtime()); &lt;br /&gt;       $data[] = $test; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   } &lt;br /&gt;&lt;br /&gt;   $object = xdebug_memory_usage()-$memory1; &lt;br /&gt;&lt;br /&gt;   echo 'Arrays: ' . $array . "\n"; &lt;br /&gt;   echo 'Objects: ' . $object; &lt;br /&gt;&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-1451876591388518378?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/1451876591388518378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=1451876591388518378' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/1451876591388518378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/1451876591388518378'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/08/my-back-up.html' title='MY Back UP'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-5724128097093372677</id><published>2009-08-05T08:57:00.000-07:00</published><updated>2012-01-15T20:51:38.163-08:00</updated><title type='text'>Spring Tutor</title><content type='html'>Spring Practical Questions : (reference http://www.java2s.com/Code/Java/Spring/RegexpPointcutExample.htm)&lt;br /&gt;===================&lt;br /&gt;1. What is dependencyInjection explain with Configuration Example?&lt;br /&gt;&lt;br /&gt;Instead of a code calls a component a configuration file will be used to call component this is known us dependencyInjection.&lt;br /&gt;&lt;br /&gt;- Container Takes care maintainblity of Component. Detail information will updated later.&lt;br /&gt;- Loose coupling exists between Component and Client.&lt;br /&gt;&lt;br /&gt;&amp;ltbeans&amp;gt&lt;br /&gt;&amp;ltbean class="com.seetab.scar.matchmaker.impl.StudyDaoImpl" id="studyDao"&amp;gt&lt;br /&gt;&amp;lt/beans&amp;gt&lt;br /&gt;&lt;br /&gt;2.How many types of depency Injections are there? Explain with Code.&lt;br /&gt;-Constructor Injection.&lt;br /&gt;-Setter Injection.&lt;br /&gt;-Interface Injection.&lt;br /&gt;&lt;br /&gt;3.Please explain the follwing terms in AOP?&lt;br /&gt;a.org.springframework.aop.framework.ProxyFactoryBean - Spring Defined Proxy Bean&lt;br /&gt;b.proxyInterfaces - Defines which interface needs to be called.&lt;br /&gt;c.interceptorNames - Defines which Impl needs to be mapped&lt;br /&gt;&lt;br /&gt;&amp;ltbean id = "beforeCall"     class = "com.spring.aop.LogBeforeCallAdvice" /&amp;gt&lt;br /&gt;    &amp;lt!-- Implementation Class --&amp;gt&lt;br /&gt;    &amp;ltbean id = "adderImpl"     class = "com.spring.aop.AdderImpl" /&amp;gt    &lt;br /&gt;    &amp;lt!-- Proxy Implementation Class --&amp;gt&lt;br /&gt;    &amp;ltbean id = "adder"    class = "org.springframework.aop.framework.ProxyFactoryBean"&amp;gt&lt;br /&gt;        &amp;ltproperty name = "proxyInterfaces"&amp;gt&lt;br /&gt;            &amp;ltvalue&amp;gtcom.spring.aop.Adder&amp;lt/value&amp;gt&lt;br /&gt;        &amp;lt/property&amp;gt&lt;br /&gt;        &amp;ltproperty name = "interceptorNames"&amp;gt&lt;br /&gt;            &amp;ltlist&amp;gt&lt;br /&gt;                &amp;ltvalue&amp;gtbeforeCall&amp;lt/value&amp;gt&lt;br /&gt;            &amp;lt/list&amp;gt &lt;br /&gt;        &amp;lt/property&amp;gt&lt;br /&gt;        &amp;ltproperty name = "target"&amp;gt    &lt;br /&gt;            &amp;ltref bean = "adderImpl"/&amp;gt&lt;br /&gt;        &amp;lt/property&amp;gt    &lt;br /&gt;&amp;lt/bean&amp;gt&lt;br /&gt;4.What is Static Point Cuts (Name Method Match and Regular Expression Point Cuts)?&lt;br /&gt;5.How a constructor values are initialised in IOC or Dependency Injection?&lt;br /&gt;6.What is interceptor Pattern?&lt;br /&gt;7.Please Explain Steps to Integrate spring with Hiberante?&lt;br /&gt;- Required Component : ______.HBM.XML, Configuration.XML (Spring Configuration File)&lt;br /&gt;1)Create Bean ID for DAO or Impl&lt;br /&gt;2)Create Datasource. Note : datasource Name &lt;br /&gt;3)Create Session Factory From &lt;br /&gt;org.springframework.orm.hibernate3.LocalSessionFactoryBean (datasource,mappingreosurces,hibernateproperties are mapped).&lt;br /&gt;&lt;br /&gt;8.How the Client Program is defined?&lt;br /&gt;1.Define classpath : ClassPathXmlApplicationContext&lt;br /&gt;2.getBean &lt;br /&gt;3.Assign Bean to DAO&lt;br /&gt;4.Save&lt;br /&gt;&lt;br /&gt;9.What is HIbernate Template?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. What is IOC (or Dependency Injection)?&lt;br /&gt;The basic concept of the Inversion of Control pattern (also known as dependency injection) is that you do not create your objects but describe how they should be created. You don't directly connect your components and services together in code but describe which services are needed by which components in a configuration file. A container (in the case of the Spring framework, the IOC container) is then responsible for hooking it all up.i.e., Applying IoC, objects are given their dependencies at creation time by some external entity that coordinates each object in the system. That is, dependencies are injected into objects. So, IoC means an inversion of responsibility with regard to how an object obtains references to collaborating objects.&lt;br /&gt;&lt;br /&gt;2. What are the different types of IOC (dependency injection) ?&lt;br /&gt;There are three types of dependency injection:&lt;br /&gt;Constructor Injection (e.g. Pico container, Spring etc): Dependencies are provided as constructor parameters.&lt;br /&gt;Setter Injection (e.g. Spring): Dependencies are assigned through JavaBeans properties (ex: setter methods).&lt;br /&gt;Interface Injection (e.g. Avalon): Injection is done through an interface.&lt;br /&gt;Note: Spring supports only Constructor and Setter Injection&lt;br /&gt;&lt;br /&gt;3. What are the benefits of IOC (Dependency Injection)?&lt;br /&gt;Benefits of IOC (Dependency Injection) are as follows:&lt;br /&gt;Minimizes the amount of code in your application. With IOC containers you do not care about how services are created and how you get references to the ones you need. You can also easily add additional services by adding a new constructor or a setter method with little or no extra configuration.&lt;br /&gt;Make your application more testable by not requiring any singletons or JNDI lookup mechanisms in your unit test cases. IOC containers make unit testing and switching implementations very easy by manually allowing you to inject your own objects into the object under test.&lt;br /&gt;Loose coupling is promoted with minimal effort and least intrusive mechanism. The factory design pattern is more intrusive because components or services need to be requested explicitly whereas in IOC the dependency is injected into requesting piece of code. Also some containers promote the design to interfaces not to implementations design concept by encouraging managed objects to implement a well-defined service interface of your own.&lt;br /&gt;IOC containers support eager instantiation and lazy loading of services. Containers also provide support for instantiation of managed objects, cyclical dependencies, life cycles management, and dependency resolution between managed objects etc.&lt;br /&gt;4. What is Spring ?&lt;br /&gt;Spring is an open source framework created to address the complexity of enterprise application development. One of the chief advantages of the Spring framework is its layered architecture, which allows you to be selective about which of its components you use while also providing a cohesive framework for J2EE application development.&lt;br /&gt;&lt;br /&gt;5. What are the advantages of Spring framework?&lt;br /&gt;The advantages of Spring are as follows:&lt;br /&gt;Spring has layered architecture. Use what you need and leave you don't need now.&lt;br /&gt;Spring Enables POJO Programming. There is no behind the scene magic here. POJO programming enables continuous integration and testability.&lt;br /&gt;Dependency Injection and Inversion of Control Simplifies JDBC&lt;br /&gt;Open source and no vendor lock-in.&lt;br /&gt;6. What are features of Spring ?&lt;br /&gt;Lightweight:&lt;br /&gt;spring is lightweight when it comes to size and transparency. The basic version of spring framework is around 1MB. And the processing overhead is also very negligible.&lt;br /&gt;Inversion of control (IOC):&lt;br /&gt;Loose coupling is achieved in spring using the technique Inversion of Control. The objects give their dependencies instead of creating or looking for dependent objects.&lt;br /&gt;Aspect oriented (AOP):&lt;br /&gt;Spring supports Aspect oriented programming and enables cohesive development by separating application business logic from system services.&lt;br /&gt;Container:&lt;br /&gt;Spring contains and manages the life cycle and configuration of application objects.&lt;br /&gt;MVC Framework:&lt;br /&gt;Spring comes with MVC web application framework, built on core Spring functionality. This framework is highly configurable via strategy interfaces, and accommodates multiple view technologies like JSP, Velocity, Tiles, iText, and POI. But other frameworks can be easily used instead of Spring MVC Framework.&lt;br /&gt;Transaction Management:&lt;br /&gt;Spring framework provides a generic abstraction layer for transaction management. This allowing the developer to add the pluggable transaction managers, and making it easy to demarcate transactions without dealing with low-level issues. Spring's transaction support is not tied to J2EE environments and it can be also used in container less environments.&lt;br /&gt;JDBC Exception Handling:&lt;br /&gt;The JDBC abstraction layer of the Spring offers a meaningful exception hierarchy, which simplifies the error handling strategy. Integration with Hibernate, JDO, and iBATIS: Spring provides best Integration services with Hibernate, JDO and iBATIS&lt;br /&gt;7. How many modules are there in Spring? What are they?&lt;br /&gt;(Roll over to view the Image )&lt;br /&gt;&lt;a href="http://www.developersbook.com/spring/interview-questions/spring-interview-questions-faqs.php"&gt;&lt;/a&gt;&lt;br /&gt;Spring comprises of seven modules. They are..&lt;br /&gt;The core container:&lt;br /&gt;The core container provides the essential functionality of the Spring framework. A primary component of the core container is the BeanFactory, an implementation of the Factory pattern. The BeanFactory applies the Inversion of Control (IOC) pattern to separate an application's configuration and dependency specification from the actual application code.&lt;br /&gt;Spring context:&lt;br /&gt;The Spring context is a configuration file that provides context information to the Spring framework. The Spring context includes enterprise services such as JNDI, EJB, e-mail, internalization, validation, and scheduling functionality.&lt;br /&gt;Spring AOP:&lt;br /&gt;The Spring AOP module integrates aspect-oriented programming functionality directly into the Spring framework, through its configuration management feature. As a result you can easily AOP-enable any object managed by the Spring framework. The Spring AOP module provides transaction management services for objects in any Spring-based application. With Spring AOP you can incorporate declarative transaction management into your applications without relying on EJB components.&lt;br /&gt;Spring DAO:&lt;br /&gt;The Spring JDBC DAO abstraction layer offers a meaningful exception hierarchy for managing the exception handling and error messages thrown by different database vendors. The exception hierarchy simplifies error handling and greatly reduces the amount of exception code you need to write, such as opening and closing connections. Spring DAO's JDBC-oriented exceptions comply to its generic DAO exception hierarchy.&lt;br /&gt;Spring ORM:&lt;br /&gt;The Spring framework plugs into several ORM frameworks to provide its Object Relational tool, including JDO, Hibernate, and iBatis SQL Maps. All of these comply to Spring's generic transaction and DAO exception hierarchies.&lt;br /&gt;Spring Web module:&lt;br /&gt;The Web context module builds on top of the application context module, providing contexts for Web-based applications. As a result, the Spring framework supports integration with Jakarta Struts. The Web module also eases the tasks of handling multi-part requests and binding request parameters to domain objects.&lt;br /&gt;Spring MVC framework:&lt;br /&gt;The Model-View-Controller (MVC) framework is a full-featured MVC implementation for building Web applications. The MVC framework is highly configurable via strategy interfaces and accommodates numerous view technologies including JSP, Velocity, Tiles, iText, and POI.&lt;br /&gt;8. What are the types of Dependency Injection Spring supports?&gt;&lt;br /&gt;Setter Injection:&lt;br /&gt;Setter-based DI is realized by calling setter methods on your beans after invoking a no-argument constructor or no-argument static factory method to instantiate your bean.&lt;br /&gt;Constructor Injection:&lt;br /&gt;Constructor-based DI is realized by invoking a constructor with a number of arguments, each representing a collaborator.&lt;br /&gt;9. What is Bean Factory ?&lt;br /&gt;A BeanFactory is like a factory class that contains a collection of beans. The BeanFactory holds Bean Definitions of multiple beans within itself and then instantiates the bean whenever asked for by clients.&lt;br /&gt;BeanFactory is able to create associations between collaborating objects as they are instantiated. This removes the burden of configuration from bean itself and the beans client.&lt;br /&gt;BeanFactory also takes part in the life cycle of a bean, making calls to custom initialization and destruction methods.&lt;br /&gt;&lt;br /&gt;10. What is Application Context?&lt;br /&gt;A bean factory is fine to simple applications, but to take advantage of the full power of the Spring framework, you may want to move up to Springs more advanced container, the application context. On the surface, an application context is same as a bean factory.Both load bean definitions, wire beans together, and dispense beans upon request. But it also provides:&lt;br /&gt;A means for resolving text messages, including support for internationalization.&lt;br /&gt;A generic way to load file resources.&lt;br /&gt;Events to beans that are registered as listeners.&lt;br /&gt;&lt;br /&gt;11. What is the difference between Bean Factory and Application Context ?&lt;br /&gt;On the surface, an application context is same as a bean factory. But application context offers much more..&lt;br /&gt;Application contexts provide a means for resolving text messages, including support for i18n of those messages.&lt;br /&gt;Application contexts provide a generic way to load file resources, such as images.&lt;br /&gt;Application contexts can publish events to beans that are registered as listeners.&lt;br /&gt;Certain operations on the container or beans in the container, which have to be handled in a programmatic fashion with a bean factory, can be handled declaratively in an application context.&lt;br /&gt;ResourceLoader support: Spring’s Resource interface us a flexible generic abstraction for handling low-level resources. An application context itself is a ResourceLoader, Hence provides an application with access to deployment-specific Resource instances.&lt;br /&gt;MessageSource support: The application context implements MessageSource, an interface used to obtain localized messages, with the actual implementation being pluggable&lt;br /&gt;12. What are the common implementations of the Application Context ?&lt;br /&gt;The three commonly used implementation of 'Application Context' are&lt;br /&gt;ClassPathXmlApplicationContext : It Loads context definition from an XML file located in the classpath, treating context definitions as classpath resources. The application context is loaded from the application's classpath by using the code .ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");&lt;br /&gt;FileSystemXmlApplicationContext : It loads context definition from an XML file in the filesystem. The application context is loaded from the file system by using the code . ApplicationContext context = new FileSystemXmlApplicationContext("bean.xml");&lt;br /&gt;XmlWebApplicationContext : It loads context definition from an XML file contained within a web application.&lt;br /&gt;&lt;br /&gt;13. How is a typical spring implementation look like ?&lt;br /&gt;For a typical Spring Application we need the following files:&lt;br /&gt;An interface that defines the functions.&lt;br /&gt;An Implementation that contains properties, its setter and getter methods, functions etc.,&lt;br /&gt;Spring AOP (Aspect Oriented Programming)&lt;br /&gt;A XML file called Spring configuration file.&lt;br /&gt;Client program that uses the function.&lt;br /&gt;14. What is the typical Bean life cycle in Spring Bean Factory Container ?&lt;br /&gt;Bean life cycle in Spring Bean Factory Container is as follows:&lt;br /&gt;The spring container finds the bean’s definition from the XML file and instantiates the bean.&lt;br /&gt;Using the dependency injection, spring populates all of the properties as specified in the bean definition&lt;br /&gt;If the bean implements the BeanNameAware interface, the factory calls setBeanName() passing the bean’s ID.&lt;br /&gt;If the bean implements the BeanFactoryAware interface, the factory calls setBeanFactory(), passing an instance of itself.&lt;br /&gt;If there are any BeanPostProcessors associated with the bean, their post- ProcessBeforeInitialization() methods will be called.&lt;br /&gt;If an init-method is specified for the bean, it will be called.&lt;br /&gt;Finally, if there are any BeanPostProcessors associated with the bean, their postProcessAfterInitialization() methods will be called.&lt;br /&gt;&lt;br /&gt;15. What do you mean by Bean wiring ?&lt;br /&gt;The act of creating associations between application components (beans) within the Spring container is reffered to as Bean wiring.&lt;br /&gt;16. What do you mean by Auto Wiring?&lt;br /&gt;The Spring container is able to autowire relationships between collaborating beans. This means that it is possible to automatically let Spring resolve collaborators (other beans) for your bean by inspecting the contents of the BeanFactory. The autowiring functionality has five modes.&lt;br /&gt;no&lt;br /&gt;byName&lt;br /&gt;byType&lt;br /&gt;constructor&lt;br /&gt;autodirect&lt;br /&gt;17. What is DelegatingVariableResolver?&lt;br /&gt;Spring provides a custom JavaServer Faces VariableResolver implementation that extends the standard Java Server Faces managed beans mechanism which lets you use JSF and Spring together. This variable resolver is called as DelegatingVariableResolver&lt;br /&gt;&lt;br /&gt;18. How to integrate Java Server Faces (JSF) with Spring?&lt;br /&gt;JSF and Spring do share some of the same features, most noticeably in the area of IOC services. By declaring JSF managed-beans in the faces-config.xml configuration file, you allow the FacesServlet to instantiate that bean at startup. Your JSF pages have access to these beans and all of their properties.We can integrate JSF and Spring in two ways:&lt;br /&gt;DelegatingVariableResolver: Spring comes with a JSF variable resolver that lets you use JSF and Spring together.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;faces-config&gt;&lt;br /&gt;&lt;application&gt;&lt;br /&gt;&lt;variable-resolver&gt;&lt;br /&gt;org.springframework.web.jsf.DelegatingVariableResolver&lt;br /&gt;&lt;/VARIABLE-RESOLVER&gt;&lt;br /&gt;&lt;/application&gt;&lt;br /&gt;&lt;/FACES-CONFIG&gt;&lt;br /&gt;The DelegatingVariableResolver will first delegate value lookups to the default resolver of the underlying JSF implementation, and then to Spring's 'business context' WebApplicationContext. This allows one to easily inject dependencies into one's JSF-managed beans.&lt;br /&gt;FacesContextUtils:custom VariableResolver works well when mapping one's properties to beans in faces-config.xml, but at times one may need to grab a bean explicitly. The FacesContextUtils class makes this easy. It is similar to WebApplicationContextUtils, except that it takes a FacesContext parameter rather than a ServletContext parameter.&lt;br /&gt;ApplicationContext ctx = FacesContextUtils.getWebApplicationContext(FacesContext.getCurrentInstance());&lt;br /&gt;19. What is Java Server Faces (JSF) - Spring integration mechanism?&lt;br /&gt;Spring provides a custom JavaServer Faces VariableResolver implementation that extends the standard JavaServer Faces managed beans mechanism. When asked to resolve a variable name, the following algorithm is performed:&lt;br /&gt;Does a bean with the specified name already exist in some scope (request, session, application)? If so, return it&lt;br /&gt;Is there a standard JavaServer Faces managed bean definition for this variable name? If so, invoke it in the usual way, and return the bean that was created.&lt;br /&gt;Is there configuration information for this variable name in the Spring WebApplicationContext for this application? If so, use it to create and configure an instance, and return that instance to the caller.&lt;br /&gt;If there is no managed bean or Spring definition for this variable name, return null instead.&lt;br /&gt;BeanFactory also takes part in the life cycle of a bean, making calls to custom initialization and destruction methods.&lt;br /&gt;As a result of this algorithm, you can transparently use either JavaServer Faces or Spring facilities to create beans on demand.&lt;br /&gt;&lt;br /&gt;20. What is Significance of JSF- Spring integration ?&lt;br /&gt;Spring - JSF integration is useful when an event handler wishes to explicitly invoke the bean factory to create beans on demand, such as a bean that encapsulates the business logic to be performed when a submit button is pressed.&lt;br /&gt;&lt;br /&gt;21. How to integrate your Struts application with Spring?&lt;br /&gt;To integrate your Struts application with Spring, we have two options:&lt;br /&gt;Configure Spring to manage your Actions as beans, using the ContextLoaderPlugin, and set their dependencies in a Spring context file.&lt;br /&gt;Subclass Spring's ActionSupport classes and grab your Spring-managed beans explicitly using a getWebApplicationContext() method.&lt;br /&gt;22. What are ORM’s Spring supports ?&lt;br /&gt;Spring supports the following ORM’s :&lt;br /&gt;Hibernate&lt;br /&gt;iBatis&lt;br /&gt;JPA (Java Persistence API)&lt;br /&gt;TopLink&lt;br /&gt;JDO (Java Data Objects)&lt;br /&gt;OJB&lt;br /&gt;23. What are the ways to access Hibernate using Spring ?&lt;br /&gt;There are two approaches to Spring’s Hibernate integration:&lt;br /&gt;Inversion of Control with a HibernateTemplate and Callback&lt;br /&gt;Extending HibernateDaoSupport and Applying an AOP Interceptor&lt;br /&gt;24. How to integrate Spring and Hibernate using HibernateDaoSupport?&lt;br /&gt;Spring and Hibernate can integrate using Spring’s SessionFactory called LocalSessionFactory. The integration process is of 3 steps.&lt;br /&gt;Configure the Hibernate SessionFactory&lt;br /&gt;Extend your DAO Implementation from HibernateDaoSupport&lt;br /&gt;Wire in Transaction Support with AOP&lt;br /&gt;&lt;br /&gt;25. What are Bean scopes in Spring Framework ?&lt;br /&gt;The Spring Framework supports exactly five scopes (of which three are available only if you are using a web-aware ApplicationContext). The scopes supported are listed below:&lt;br /&gt;Scope&lt;br /&gt;Description&lt;br /&gt;singleton&lt;br /&gt;Scopes a single bean definition to a single object instance per Spring IoC container.&lt;br /&gt;prototype&lt;br /&gt;Scopes a single bean definition to any number of object instances.&lt;br /&gt;request&lt;br /&gt;Scopes a single bean definition to the lifecycle of a single HTTP request; that is each and every HTTP request will have its own instance of a bean created off the back of a single bean definition. Only valid in the context of a web-aware Spring ApplicationContext.&lt;br /&gt;session&lt;br /&gt;Scopes a single bean definition to the lifecycle of a HTTP Session. Only valid in the context of a web-aware Spring ApplicationContext.&lt;br /&gt;global session&lt;br /&gt;Scopes a single bean definition to the lifecycle of a global HTTP Session. Typically only valid when used in a portlet context. Only valid in the context of a web-aware Spring ApplicationContext.&lt;br /&gt;&lt;br /&gt;26. What is AOP?&lt;br /&gt;Aspect-oriented programming, or AOP, is a programming technique that allows programmers to modularize crosscutting concerns, or behavior that cuts across the typical divisions of responsibility, such as logging and transaction management. The core construct of AOP is the aspect, which encapsulates behaviors affecting multiple classes into reusable modules.&lt;br /&gt;&lt;br /&gt;27. How the AOP used in Spring?&lt;br /&gt;AOP is used in the Spring Framework: To provide declarative enterprise services, especially as a replacement for EJB declarative services. The most important such service is declarative transaction management, which builds on the Spring Framework's transaction abstraction.To allow users to implement custom aspects, complementing their use of OOP with AOP.&lt;br /&gt;&lt;br /&gt;28. What do you mean by Aspect ?&lt;br /&gt;A modularization of a concern that cuts across multiple objects. Transaction management is a good example of a crosscutting concern in J2EE applications. In Spring AOP, aspects are implemented using regular classes (the schema-based approach) or regular classes annotated with the @Aspect annotation (@AspectJ style).&lt;br /&gt;&lt;br /&gt;29. What do you mean by JointPoint?&lt;br /&gt;A point during the execution of a program, such as the execution of a method or the handling of an exception. In Spring AOP, a join point always represents a method execution.&lt;br /&gt;&lt;br /&gt;30. What do you mean by Advice?&lt;br /&gt;Action taken by an aspect at a particular join point. Different types of advice include "around," "before" and "after" advice. Many AOP frameworks, including Spring, model an advice as an interceptor, maintaining a chain of interceptors "around" the join point.&lt;br /&gt;&lt;br /&gt;31. What are the types of Advice?&lt;br /&gt;Types of advice:&lt;br /&gt;Before advice: Advice that executes before a join point, but which does not have the ability to prevent execution flow proceeding to the join point (unless it throws an exception).&lt;br /&gt;After returning advice: Advice to be executed after a join point completes normally: for example, if a method returns without throwing an exception.&lt;br /&gt;After throwing advice: Advice to be executed if a method exits by throwing an exception.&lt;br /&gt;After (finally) advice: Advice to be executed regardless of the means by which a join point exits (normal or exceptional return).&lt;br /&gt;Around advice: Advice that surrounds a join point such as a method invocation. This is the most powerful kind of advice. Around advice can perform custom behavior before and after the method invocation. It is also responsible for choosing whether to proceed to the join point or to shortcut the advised method execution by returning its own return value or throwing an exception&lt;br /&gt;32. What are the types of the transaction management Spring supports ?&lt;br /&gt;Spring Framework supports:&lt;br /&gt;Programmatic transaction management.&lt;br /&gt;Declarative transaction management.&lt;br /&gt;&lt;br /&gt;33. What are the benefits of the Spring Framework transaction management ?&lt;br /&gt;The Spring Framework provides a consistent abstraction for transaction management that delivers the following benefits:&lt;br /&gt;Provides a consistent programming model across different transaction APIs such as JTA, JDBC, Hibernate, JPA, and JDO.&lt;br /&gt;Supports declarative transaction management.&lt;br /&gt;Provides a simpler API for programmatic transaction management than a number of complex transaction APIs such as JTA.&lt;br /&gt;Integrates very well with Spring's various data access abstractions.&lt;br /&gt;&lt;br /&gt;34. Why most users of the Spring Framework choose declarative transaction management ?&lt;br /&gt;Most users of the Spring Framework choose declarative transaction management because it is the option with the least impact on application code, and hence is most consistent with the ideals of a non-invasive lightweight container.&lt;br /&gt;&lt;br /&gt;35. Explain the similarities and differences between EJB CMT and the Spring Framework's declarative transaction management ?&lt;br /&gt;The basic approach is similar: it is possible to specify transaction behavior (or lack of it) down to individual method level. It is possible to make a setRollbackOnly() call within a transaction context if necessary. The differences are:&lt;br /&gt;Unlike EJB CMT, which is tied to JTA, the Spring Framework's declarative transaction management works in any environment. It can work with JDBC, JDO, Hibernate or other transactions under the covers, with configuration changes only.&lt;br /&gt;The Spring Framework enables declarative transaction management to be applied to any class, not merely special classes such as EJBs.&lt;br /&gt;The Spring Framework offers declarative rollback rules: this is a feature with no EJB equivalent. Both programmatic and declarative support for rollback rules is provided.&lt;br /&gt;The Spring Framework gives you an opportunity to customize transactional behavior, using AOP. With EJB CMT, you have no way to influence the container's transaction management other than setRollbackOnly().&lt;br /&gt;The Spring Framework does not support propagation of transaction contexts across remote calls, as do high-end application servers.&lt;br /&gt;37. When to use programmatic and declarative transaction management ?&lt;br /&gt;Programmatic transaction management is usually a good idea only if you have a small number of transactional operations. On the other hand, if your application has numerous transactional operations, declarative transaction management is usually worthwhile. It keeps transaction management out of business logic, and is not difficult to configure.&lt;br /&gt;&lt;br /&gt;38. Explain about the Spring DAO support ?&lt;br /&gt;The Data Access Object (DAO) support in Spring is aimed at making it easy to work with data access technologies like JDBC, Hibernate or JDO in a consistent way. This allows one to switch between the persistence technologies fairly easily and it also allows one to code without worrying about catching exceptions that are specific to each technology.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;google_protectAndRun("ads_core.google_render_ad", google_handleError, google_render_ad);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;39. What are the exceptions thrown by the Spring DAO classes ?&lt;br /&gt;Spring DAO classes throw exceptions which are subclasses of DataAccessException(org.springframework.dao.DataAccessException).Spring provides a convenient translation from technology-specific exceptions like SQLException to its own exception class hierarchy with the DataAccessException as the root exception. These exceptions wrap the original exception.&lt;br /&gt;&lt;br /&gt;40. What is SQLExceptionTranslator ?&lt;br /&gt;SQLExceptionTranslator, is an interface to be implemented by classes that can translate between SQLExceptions and Spring's own data-access-strategy-agnostic org.springframework.dao.DataAccessException.&lt;br /&gt;41. What is Spring's JdbcTemplate ?&lt;br /&gt;Spring's JdbcTemplate is central class to interact with a database through JDBC. JdbcTemplate provides many convenience methods for doing things such as converting database data into primitives or objects, executing prepared and callable statements, and providing custom database error handling.&lt;br /&gt;JdbcTemplate template = new JdbcTemplate(myDataSource);&lt;br /&gt;&lt;br /&gt;42. What is PreparedStatementCreator ?&lt;br /&gt;PreparedStatementCreator:&lt;br /&gt;Is one of the most common used interfaces for writing data to database.&lt;br /&gt;Has one method – createPreparedStatement(Connection)&lt;br /&gt;Responsible for creating a PreparedStatement.&lt;br /&gt;Does not need to handle SQLExceptions.&lt;br /&gt;&lt;br /&gt;43. What is SQLProvider ?&lt;br /&gt;SQLProvider:&lt;br /&gt;Has one method – getSql()&lt;br /&gt;Typically implemented by PreparedStatementCreator implementers.&lt;br /&gt;Useful for debugging.&lt;br /&gt;&lt;br /&gt;44. What is RowCallbackHandler ?&lt;br /&gt;The RowCallbackHandler interface extracts values from each row of a ResultSet.&lt;br /&gt;Has one method – processRow(ResultSet)&lt;br /&gt;Called for each row in ResultSet.&lt;br /&gt;Typically stateful.&lt;br /&gt;&lt;br /&gt;45. What are the differences between EJB and Spring ?&lt;br /&gt;Spring and EJB feature comparison.&lt;br /&gt;Feature&lt;br /&gt;EJB&lt;br /&gt;Spring&lt;br /&gt;Transaction management&lt;br /&gt;Must use a JTA transaction manager.&lt;br /&gt;Supports transactions that span remote method calls.&lt;br /&gt;Supports multiple transaction environments through its PlatformTransactionManager interface, including JTA, Hibernate, JDO, and JDBC.&lt;br /&gt;Does not natively support distributed transactions—it must be used with a JTA transaction manager.&lt;br /&gt;Declarative transaction support&lt;br /&gt;Can define transactions declaratively through the deployment descriptor.&lt;br /&gt;Can define transaction behavior per method or per class by using the wildcard character *.&lt;br /&gt;Cannot declaratively define rollback behavior—this must be done programmatically.&lt;br /&gt;Can define transactions declaratively through the Spring configuration file or through class metadata.&lt;br /&gt;Can define which methods to apply transaction behavior explicitly or by using regular expressions.&lt;br /&gt;Can declaratively define rollback behavior per method and per exception type.&lt;br /&gt;Persistence&lt;br /&gt;Supports programmatic bean-managed persistence and declarative container managed persistence.&lt;br /&gt;Provides a framework for integrating with several persistence technologies, including JDBC, Hibernate, JDO, and iBATIS.&lt;br /&gt;Declarative security&lt;br /&gt;Supports declarative security through users and roles. The management and implementation of users and roles is container specific.&lt;br /&gt;Declarative security is configured in the deployment descriptor.&lt;br /&gt;No security implementation out-of-the box.&lt;br /&gt;Acegi, an open source security framework built on top of Spring, provides declarative security through the Spring configuration file or class metadata.&lt;br /&gt;Distributed computing&lt;br /&gt;Provides container-managed remote method calls.&lt;br /&gt;Provides proxying for remote calls via RMI, JAX-RPC, and web services.&lt;br /&gt;&lt;br /&gt;These questions are taken from &lt;a href="http://www.developersbook.com/spring/interview-questions/spring-interview-questions-faqs.php"&gt;http://www.developersbook.com/spring/interview-questions/spring-interview-questions-faqs.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;My Questions :&lt;br /&gt;&lt;br /&gt;What is Spring ? How it is better than other Framework?&lt;br /&gt;Exlain AOP in detail : What is point cut,How log implemented&lt;br /&gt;what is the difference between ref- Bean and bean-id&lt;br /&gt;What is the difference between Normal Exception and Spring way of exceptionHandling&lt;br /&gt;What are the core components of Spring?&lt;br /&gt;What is AutoWiring?&lt;br /&gt;&lt;br /&gt;How to Intergrate Spring with Hibernate?&lt;br /&gt;How to Intergrate Spring with Struts?&lt;br /&gt;How to Intergrate Spring with JSF?&lt;br /&gt;&lt;br /&gt;How Transctions are handled in Spring?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-5724128097093372677?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/5724128097093372677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=5724128097093372677' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5724128097093372677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5724128097093372677'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/08/spring-tutor.html' title='Spring Tutor'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-5372428513633843170</id><published>2009-08-04T06:37:00.000-07:00</published><updated>2012-01-15T20:51:38.163-08:00</updated><title type='text'>Hibernate Practical &amp; Interview Questions</title><content type='html'>&lt;strong&gt;&lt;u&gt;Hibernate Practical Questions :&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1.In which folder hibernate.cfg.xml &amp;   ____.hbm.xml will be there?&lt;br /&gt;hibernate.cfg.xml in root folder and  ____.hbm.xml will be in Bean Folder.&lt;br /&gt;&lt;br /&gt;2)What is the key defines it is a Composite Key?&lt;br /&gt;composite-id&lt;br /&gt;&lt;br /&gt;3.What are the Key properties while defining Composite key?&lt;br /&gt;a)Create CompositePK Class&lt;br /&gt;b)Defined parameter in XML&lt;br /&gt;&amp;ltclass name="com.hibernate.composite.Book_info" table="book_info"&amp;gt&lt;br /&gt;    &amp;ltcomposite-id name="bookPK" class="com.hibernate.composite.BookPK"&amp;gt&lt;br /&gt;        &amp;ltkey-property name="book_id" column="book_id" type="string" /&amp;gt &lt;br /&gt;        &amp;ltkey-property name="book_name"  column="book_name" type="string" /&amp;gt  &lt;br /&gt;    &amp;lt/composite-id&amp;gt &lt;br /&gt;    &amp;ltproperty name="author" column="author" type="string"/&amp;gt&lt;br /&gt;&amp;lt/class&amp;gt&lt;br /&gt;&lt;br /&gt;c) Send Composite Key values as Object&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Hibernate Interview Questions :&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Q1. Which statement is correct ?&lt;br /&gt;1 session.contains() method to determine if an instance belongs to the session cache.&lt;br /&gt;2 session.contains() method to determine if an instance belongs to the data base .&lt;br /&gt;3 Both are correct&lt;br /&gt;4 none of the above&lt;br /&gt;4Correct Answer is :&lt;br /&gt;&lt;br /&gt;Q2. What does hibernate.show_sql true mean ?&lt;br /&gt;1 show sql results on console.&lt;br /&gt;2 show sql inputs on console.&lt;br /&gt;3 show sql statement on console.&lt;br /&gt;4 None&lt;br /&gt;Correct Answer is : 3&lt;br /&gt;&lt;br /&gt;Q3. What is the naming convention for Hibernate XML mapping file extensions?&lt;br /&gt;1 .hbm.xml&lt;br /&gt;2 .hhm.xml&lt;br /&gt;3 .hb.xml&lt;br /&gt;4 none of the above&lt;br /&gt;Correct Answer is : 1&lt;br /&gt;&lt;br /&gt;Q4. What does session.createCriteria().uniqueResult() return ?&lt;br /&gt;1 Object&lt;br /&gt;2 String&lt;br /&gt;3 ResultSet&lt;br /&gt;4 HibernateResultSet&lt;br /&gt;Correct Answer is : 1&lt;br /&gt;&lt;br /&gt;Q5. ____ forces hibernate to bypass the setter method and access the instance variable directly while initializing a newly loaded object.&lt;br /&gt;1 By mapping the property with access="onlyfield" in Hibernate metadata&lt;br /&gt;2 By mapping the property with access="variable" in Hibernate metadata&lt;br /&gt;3 By mapping the property with access="field" in Hibernate metadata&lt;br /&gt;4 none of the above&lt;br /&gt;Correct Answer is : 3&lt;br /&gt;&lt;br /&gt;Q6. What does session.load() return if there is no matching database row ?&lt;br /&gt;1 NULL&lt;br /&gt;2 Empty Object&lt;br /&gt;3 unrecoverable exception&lt;br /&gt;4 None of the above&lt;br /&gt;Correct Answer is : 3&lt;br /&gt;&lt;br /&gt;Q7. It is possible to re-load an object and all its collections at any time, using the xxxx() method. This is useful when database triggers are used to initialize some of the properties of the object. What is the xxxx() method ?&lt;br /&gt;1 refresh();&lt;br /&gt;2 flush();&lt;br /&gt;3 fetch();&lt;br /&gt;4 load()&lt;br /&gt;Correct Answer is : 1&lt;br /&gt;&lt;br /&gt;Q8. What happens when both hibernate.properties and hibernate.cfg.xml are in the classpath?&lt;br /&gt;1 The settings of the properties file will override the settings used in the XML configuration&lt;br /&gt;2 The settings of the XML configuration file will override the settings used in the properties&lt;br /&gt;3 DuplicateConfigurationException&lt;br /&gt;4 None&lt;br /&gt;Correct Answer is : 2&lt;br /&gt;&lt;br /&gt;Q9. What is the naming convention for Hibernate XML mapping file extensions?&lt;br /&gt;1 .hibernate.xml&lt;br /&gt;2 .hbm.xml&lt;br /&gt;3 .hibernate_data.xml&lt;br /&gt;4 none&lt;br /&gt;Correct Answer is : 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q10. What is dirty checking in Hibernate?&lt;br /&gt;1 bject state changes in order to synchronize the updated state with the database&lt;br /&gt;2 remove the dirty data from data base.&lt;br /&gt;3 check the data when insert into data base.&lt;br /&gt;4 None&lt;br /&gt;Correct Answer is : 1&lt;br /&gt;&lt;br /&gt;Q11. If instances are not in the session or second-level cache which will give better performance?&lt;br /&gt;1 Query.list()&lt;br /&gt;2 Query.iterate()&lt;br /&gt;3 Both are same&lt;br /&gt;4 None of the above&lt;br /&gt;Correct Answer is : 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q12. Which fetching strategy tuned query automatically ?&lt;br /&gt;1 session.createQuery();&lt;br /&gt;2 session.createCriteria();&lt;br /&gt;3 session.createSQLQuery();&lt;br /&gt;4 None Of the above&lt;br /&gt;Correct Answer is : 2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q13. Is Hibernate Session threadsafe?&lt;br /&gt;1 threadsafe&lt;br /&gt;2 not threadsafe&lt;br /&gt;3 No relation to Thread&lt;br /&gt;4 None of the above&lt;br /&gt;Correct Answer is : 2&lt;br /&gt;&lt;br /&gt;Q14. In the .bhm.xml file &lt;query name="abc"&gt;? ] ]&gt;&lt;/query&gt; What is correct way of executipon of the above query in the .bhm.xml file.&lt;br /&gt;1 Query q = sess.getNamedQuery("abc");&lt;br /&gt;2 Query q = sess.createQuery("abc");&lt;br /&gt;3 Query q = sess.createSQLQuery("abc");&lt;br /&gt;4 none of the above&lt;br /&gt;Correct Answer is : 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q15. What is Configuration interface in hibernate?&lt;br /&gt;1 used to create SessionFactory.&lt;br /&gt;2 used to create Session.&lt;br /&gt;3 used to create Transaction.&lt;br /&gt;4 none of the above&lt;br /&gt;&lt;br /&gt;Correct Answer is : 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q16. By default, Hibernate uses _ for JVM-level caching.&lt;br /&gt;1 OSCache&lt;br /&gt;2 EHCache&lt;br /&gt;3 JBOSSCache&lt;br /&gt;4 None of the above&lt;br /&gt;&lt;br /&gt;Correct Answer is : 2&lt;br /&gt;&lt;br /&gt;Q17. Which Cache Strategy particularly useful in cases where underlying data may have been updated via a separate process (i.e., not modified through Hibernate)?&lt;br /&gt;1 Query.setCacheMode(CacheMode.READ).&lt;br /&gt;2 Query.setCacheMode(CacheMode.REFRESH).&lt;br /&gt;3 Query.setCacheMode(CacheMode.NONE).&lt;br /&gt;4 Query.setCacheMode(CacheMode.REFRESHDATABASE).&lt;br /&gt;&lt;br /&gt;Correct Answer is : 2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q18. What does session.evict() method do ?&lt;br /&gt;1 remove the object and its collections from the first level cache&lt;br /&gt;2 remove the object and its collections from the second level cache&lt;br /&gt;3 remove the object and its collections from the data base&lt;br /&gt;4 None of the above&lt;br /&gt;Correct Answer is : 1&lt;br /&gt;&lt;br /&gt;Q19. Is the below code work ? Session session = sessionFactory.openSession(); Transaction tx = session.beginTransaction(); for ( int i=0; i&lt;100000; i++ ) { Customer customer = new Customer(.....); session.save(customer); } tx.commit(); session.close();&lt;br /&gt;1 true&lt;br /&gt;2 false&lt;br /&gt;3 can't say&lt;br /&gt;4 none&lt;br /&gt;Correct Answer is : 2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q20. SessionFactory represent which level of cache ?&lt;br /&gt;1 2nd&lt;br /&gt;2 Ist&lt;br /&gt;3 3rd&lt;br /&gt;4 4th&lt;br /&gt;Correct Answer is : 1&lt;br /&gt;&lt;br /&gt;Q21. How can get a session object ?&lt;br /&gt;1 SessionFactory.getSession();&lt;br /&gt;2 SessionFactory.openSession();&lt;br /&gt;3 SessionFactory.get();&lt;br /&gt;4 (session)SessionFactory.getObject();&lt;br /&gt;Correct Answer is : 2&lt;br /&gt;&lt;br /&gt;Q22. To completely evict all objects from the session cache which method is appropriate ?&lt;br /&gt;1 Session.evict()&lt;br /&gt;2 Session.clear()&lt;br /&gt;3 Session.flush()&lt;br /&gt;4 None of the above&lt;br /&gt;Correct Answer is : 2&lt;br /&gt;&lt;br /&gt;Hibernate Mock Online test&lt;br /&gt;Q23. What Session.flush() do ?&lt;br /&gt;1 the state of that object will be synchronized with the database.&lt;br /&gt;2 the state of that object will be synchronized with the SessionFactory.&lt;br /&gt;3 remove state of that object from Session.&lt;br /&gt;4 remove state of that object from SessionFactory.&lt;br /&gt;Correct Answer is : 1&lt;br /&gt;&lt;br /&gt;Q24. How to create SessionFactory ?&lt;br /&gt;1 configuration.buildSessionFactory();&lt;br /&gt;2 configuration.createSessionFactory();&lt;br /&gt;3 configuration.createNewSessionFactory();&lt;br /&gt;4 none of the above&lt;br /&gt;&lt;br /&gt;Correct Answer is : 1&lt;br /&gt;&lt;br /&gt;Q25. Difference between Emp e = session.load(Emp.class) and Emp e = session.createCriteria(Emp.class) ?&lt;br /&gt;1 On session close session.load() Emp Object unavilabe to access.&lt;br /&gt;2 On session close session.createCriteria() Emp unavilabe to access.&lt;br /&gt;3 None&lt;br /&gt;4 None&lt;br /&gt;Correct Answer is : 1&lt;br /&gt;&lt;br /&gt;Q26. Which statement is correct ?&lt;br /&gt;1 A Session will not obtain a JDBC Connection (or a Datasource) unless it is needed&lt;br /&gt;2 A Session will obtain a JDBC Connection (or a Datasource) on object create&lt;br /&gt;3 A Session has no relation with JDBC Connection (or a Datasource)&lt;br /&gt;4 none of the above&lt;br /&gt;Correct Answer is : 2&lt;br /&gt;&lt;br /&gt;Q27. what is the default value in hibernate ?&lt;br /&gt;1 lazy=false;&lt;br /&gt;2 lazy=true;&lt;br /&gt;3 lazy=yes;&lt;br /&gt;4 lazy=no;&lt;br /&gt;You have choosen : 1Correct Answer is : 2You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q28. Which statement is correct&lt;br /&gt;1 The CacheMode controls how a particular session interacts with the second-level cache.&lt;br /&gt;2 The CacheMode don't controls session interaction with the second-level cache.&lt;br /&gt;3 both&lt;br /&gt;4 none&lt;br /&gt;Correct Answer is : 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q29. Which statement is true about session.saveOrUpdate()?&lt;br /&gt;1 if another object associated with the session has the same identifier, throw an exception&lt;br /&gt;2 if the object has no identifier property, save() it&lt;br /&gt;3 Both of the above&lt;br /&gt;4 none of the above&lt;br /&gt;Correct Answer is : 1&lt;br /&gt;&lt;br /&gt;Q30. Which statement is correct ?&lt;br /&gt;1 Specifying join as the fetch strategy in the mapping document does affect HQL queries.&lt;br /&gt;2 Specifying join as the fetch strategy in the mapping document does not affect HQL queries.&lt;br /&gt;3 None&lt;br /&gt;4 None&lt;br /&gt;Correct Answer is : 2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-5372428513633843170?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/5372428513633843170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=5372428513633843170' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5372428513633843170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5372428513633843170'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/08/q1.html' title='Hibernate Practical &amp; Interview Questions'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-4865817938473364778</id><published>2009-08-04T06:35:00.000-07:00</published><updated>2012-01-15T20:51:38.164-08:00</updated><title type='text'>HIBERNATE INTERVIEW QUESTION &amp; Practical Questions</title><content type='html'>&lt;div&gt;HIBERNATE INTERVIEW QUESTION&lt;br /&gt;Q1. Which statement is correct ?&lt;br /&gt;1 session.contains() method to determine if an instance belongs to the session cache.&lt;br /&gt;2 session.contains() method to determine if an instance belongs to the data base .&lt;br /&gt;3 Both are correct&lt;br /&gt;4 none of the above&lt;br /&gt;You have choosen : 4Correct Answer is : 1You were wrong.&lt;br /&gt;&lt;br /&gt;Q2. What does hibernate.show_sql true mean ?&lt;br /&gt;1 show sql results on console.&lt;br /&gt;2 show sql inputs on console.&lt;br /&gt;3 show sql statement on console.&lt;br /&gt;4 None&lt;br /&gt;You have choosen : 3Correct Answer is : 3You were correct.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q3. What is the naming convention for Hibernate XML mapping file extensions?&lt;br /&gt;1 .hbm.xml&lt;br /&gt;2 .hhm.xml&lt;br /&gt;3 .hb.xml&lt;br /&gt;4 none of the above&lt;br /&gt;You have choosen : 1Correct Answer is : 1You were correct.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q4. What does session.createCriteria().uniqueResult() return ?&lt;br /&gt;1 Object&lt;br /&gt;2 String&lt;br /&gt;3 ResultSet&lt;br /&gt;4 HibernateResultSet&lt;br /&gt;You have choosen : 1Correct Answer is : 1You were correct.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q5. ____ forces hibernate to bypass the setter method and access the instance variable directly while initializing a newly loaded object.&lt;br /&gt;1 By mapping the property with access="onlyfield" in Hibernate metadata&lt;br /&gt;2 By mapping the property with access="variable" in Hibernate metadata&lt;br /&gt;3 By mapping the property with access="field" in Hibernate metadata&lt;br /&gt;4 none of the above&lt;br /&gt;You have choosen : 1Correct Answer is : 3You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q6. What does session.load() return if there is no matching database row ?&lt;br /&gt;1 NULL&lt;br /&gt;2 Empty Object&lt;br /&gt;3 unrecoverable exception&lt;br /&gt;4 None of the above&lt;br /&gt;You have choosen : 1Correct Answer is : 3You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q7. It is possible to re-load an object and all its collections at any time, using the xxxx() method. This is useful when database triggers are used to initialize some of the properties of the object. What is the xxxx() method ?&lt;br /&gt;1 refresh();&lt;br /&gt;2 flush();&lt;br /&gt;3 fetch();&lt;br /&gt;4 load()&lt;br /&gt;You have choosen : 2Correct Answer is : 1You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q8. What happens when both hibernate.properties and hibernate.cfg.xml are in the classpath?&lt;br /&gt;1 The settings of the properties file will override the settings used in the XML configuration&lt;br /&gt;2 The settings of the XML configuration file will override the settings used in the properties&lt;br /&gt;3 DuplicateConfigurationException&lt;br /&gt;4 None&lt;br /&gt;You have choosen : 3Correct Answer is : 2You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q9. What is the naming convention for Hibernate XML mapping file extensions?&lt;br /&gt;1 .hibernate.xml&lt;br /&gt;2 .hbm.xml&lt;br /&gt;3 .hibernate_data.xml&lt;br /&gt;4 none&lt;br /&gt;You have choosen : 2Correct Answer is : 1You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q10. What is dirty checking in Hibernate?&lt;br /&gt;1 bject state changes in order to synchronize the updated state with the database&lt;br /&gt;2 remove the dirty data from data base.&lt;br /&gt;3 check the data when insert into data base.&lt;br /&gt;4 None&lt;br /&gt;You have choosen : 3Correct Answer is : 1You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q11. If instances are not in the session or second-level cache which will give better performance?&lt;br /&gt;1 Query.list()&lt;br /&gt;2 Query.iterate()&lt;br /&gt;3 Both are same&lt;br /&gt;4 None of the above&lt;br /&gt;You have choosen : 2Correct Answer is : 1You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q12. Which fetching strategy tuned query automatically ?&lt;br /&gt;1 session.createQuery();&lt;br /&gt;2 session.createCriteria();&lt;br /&gt;3 session.createSQLQuery();&lt;br /&gt;4 None Of the above&lt;br /&gt;You have choosen : 3Correct Answer is : 2You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q13. Is Hibernate Session threadsafe?&lt;br /&gt;1 threadsafe&lt;br /&gt;2 not threadsafe&lt;br /&gt;3 No relation to Thread&lt;br /&gt;4 None of the above&lt;br /&gt;You have choosen : 2Correct Answer is : 2You were correct.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q14. In the .bhm.xml file &lt;query name="abc"&gt;&lt;![CDATA[ from eg.DomesticCat as cat where cat.name = ? and cat.weight &gt; ? ] ]&gt;&lt;/query&gt; What is correct way of executipon of the above query in the .bhm.xml file.&lt;br /&gt;1 Query q = sess.getNamedQuery("abc");&lt;br /&gt;2 Query q = sess.createQuery("abc");&lt;br /&gt;3 Query q = sess.createSQLQuery("abc");&lt;br /&gt;4 none of the above&lt;br /&gt;You have choosen : 1Correct Answer is : 1You were correct.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q15. What is Configuration interface in hibernate?&lt;br /&gt;1 used to create SessionFactory.&lt;br /&gt;2 used to create Session.&lt;br /&gt;3 used to create Transaction.&lt;br /&gt;4 none of the above&lt;br /&gt;You have choosen : 3Correct Answer is : 1You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q16. By default, Hibernate uses _ for JVM-level caching.&lt;br /&gt;1 OSCache&lt;br /&gt;2 EHCache&lt;br /&gt;3 JBOSSCache&lt;br /&gt;4 None of the above&lt;br /&gt;You have choosen : 1Correct Answer is : 2You were wrong.&lt;br /&gt;&lt;br /&gt;Q17. Which Cache Strategy particularly useful in cases where underlying data may have been updated via a separate process (i.e., not modified through Hibernate)?&lt;br /&gt;1 Query.setCacheMode(CacheMode.READ).&lt;br /&gt;2 Query.setCacheMode(CacheMode.REFRESH).&lt;br /&gt;3 Query.setCacheMode(CacheMode.NONE).&lt;br /&gt;4 Query.setCacheMode(CacheMode.REFRESHDATABASE).&lt;br /&gt;You have choosen : 1Correct Answer is : 2You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q18. What does session.evict() method do ?&lt;br /&gt;1 remove the object and its collections from the first level cache&lt;br /&gt;2 remove the object and its collections from the second level cache&lt;br /&gt;3 remove the object and its collections from the data base&lt;br /&gt;4 None of the above&lt;br /&gt;You have choosen : 2Correct Answer is : 1You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q19. Is the below code work ? Session session = sessionFactory.openSession(); Transaction tx = session.beginTransaction(); for ( int i=0; i&lt;100000; i++ ) { Customer customer = new Customer(.....); session.save(customer); } tx.commit(); session.close();&lt;br /&gt;1 true&lt;br /&gt;2 false&lt;br /&gt;3 can't say&lt;br /&gt;4 none&lt;br /&gt;You have choosen : 1Correct Answer is : 2You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q20. SessionFactory represent which level of cache ?&lt;br /&gt;1 2nd&lt;br /&gt;2 Ist&lt;br /&gt;3 3rd&lt;br /&gt;4 4th&lt;br /&gt;You have choosen : 1Correct Answer is : 1You were correct.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q21. How can get a session object ?&lt;br /&gt;1 SessionFactory.getSession();&lt;br /&gt;2 SessionFactory.openSession();&lt;br /&gt;3 SessionFactory.get();&lt;br /&gt;4 (session)SessionFactory.getObject();&lt;br /&gt;You have choosen : 1Correct Answer is : 2You were wrong.&lt;br /&gt;&lt;br /&gt;Q22. To completely evict all objects from the session cache which method is appropriate ?&lt;br /&gt;1 Session.evict()&lt;br /&gt;2 Session.clear()&lt;br /&gt;3 Session.flush()&lt;br /&gt;4 None of the above&lt;br /&gt;You have choosen : 1Correct Answer is : 2You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Hibernate Mock Online test&lt;br /&gt;Q23. What Session.flush() do ?&lt;br /&gt;1 the state of that object will be synchronized with the database.&lt;br /&gt;2 the state of that object will be synchronized with the SessionFactory.&lt;br /&gt;3 remove state of that object from Session.&lt;br /&gt;4 remove state of that object from SessionFactory.&lt;br /&gt;You have choosen : 3Correct Answer is : 1You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q24. How to create SessionFactory ?&lt;br /&gt;1 configuration.buildSessionFactory();&lt;br /&gt;2 configuration.createSessionFactory();&lt;br /&gt;3 configuration.createNewSessionFactory();&lt;br /&gt;4 none of the above&lt;br /&gt;You have choosen : 3Correct Answer is : 1You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q25. Difference between Emp e = session.load(Emp.class) and Emp e = session.createCriteria(Emp.class) ?&lt;br /&gt;1 On session close session.load() Emp Object unavilabe to access.&lt;br /&gt;2 On session close session.createCriteria() Emp unavilabe to access.&lt;br /&gt;3 None&lt;br /&gt;4 None&lt;br /&gt;You have choosen : 1Correct Answer is : 1You were correct.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q26. Which statement is correct ?&lt;br /&gt;1 A Session will not obtain a JDBC Connection (or a Datasource) unless it is needed&lt;br /&gt;2 A Session will obtain a JDBC Connection (or a Datasource) on object create&lt;br /&gt;3 A Session has no relation with JDBC Connection (or a Datasource)&lt;br /&gt;4 none of the above&lt;br /&gt;You have choosen : 1Correct Answer is : 1You were correct.&lt;br /&gt;&lt;br /&gt;Q27. what is the default value in hibernate ?&lt;br /&gt;1 lazy=false;&lt;br /&gt;2 lazy=true;&lt;br /&gt;3 lazy=yes;&lt;br /&gt;4 lazy=no;&lt;br /&gt;You have choosen : 1Correct Answer is : 2You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q28. Which statement is correct&lt;br /&gt;1 The CacheMode controls how a particular session interacts with the second-level cache.&lt;br /&gt;2 The CacheMode don't controls session interaction with the second-level cache.&lt;br /&gt;3 both&lt;br /&gt;4 none&lt;br /&gt;You have choosen : 1Correct Answer is : 1You were correct.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Q29. Which statement is true about session.saveOrUpdate()?&lt;br /&gt;1 if another object associated with the session has the same identifier, throw an exception&lt;br /&gt;2 if the object has no identifier property, save() it&lt;br /&gt;3 Both of the above&lt;br /&gt;4 none of the above&lt;br /&gt;You have choosen : 2Correct Answer is : 1You were wrong.&lt;br /&gt;Explanations : null&lt;br /&gt;&lt;br /&gt;Q30. Which statement is correct ?&lt;br /&gt;1 Specifying join as the fetch strategy in the mapping document does affect HQL queries.&lt;br /&gt;2 Specifying join as the fetch strategy in the mapping document does not affect HQL queries.&lt;br /&gt;3 None&lt;br /&gt;4 None&lt;br /&gt;You have choosen : 1Correct Answer is : 2You were wrong.&lt;br /&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-4865817938473364778?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/4865817938473364778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=4865817938473364778' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/4865817938473364778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/4865817938473364778'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/08/hibernate-interview-question-practical.html' title='HIBERNATE INTERVIEW QUESTION &amp; Practical Questions'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-2838003638301213239</id><published>2009-07-31T11:03:00.000-07:00</published><updated>2012-01-15T20:51:38.164-08:00</updated><title type='text'>Free project management Software Links</title><content type='html'>&lt;a href="https://www.viewpath.net/Website/Login.aspx?Mode=LO"&gt; VIEW PATH &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-2838003638301213239?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/2838003638301213239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=2838003638301213239' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/2838003638301213239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/2838003638301213239'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/07/free-project-management-software-links.html' title='Free project management Software Links'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-2883885936574668324</id><published>2009-07-31T10:14:00.000-07:00</published><updated>2012-01-15T20:51:38.164-08:00</updated><title type='text'>XML &amp; XSL Advance Example</title><content type='html'>&amp;lt?xml version='1.0'?&amp;gt&lt;br /&gt;&amp;ltxsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&amp;gt&lt;br /&gt;&amp;ltxsl:output method="text" omit-xml-declaration="yes"/&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template match="/"&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="GeneralReport/Carlines/Carline/Prices"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="GeneralReport/Prices"/&amp;gt &lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template match="Prices"&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="LocalReport"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="DomesticOptionPrice"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="ExportModelPrice"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="ExportOptionPrice"/&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template match="DomesticOptionPrice"&amp;gt&lt;br /&gt; &amp;ltxsl:for-each select="Models/Model"&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="Code"/&amp;gt &lt;br /&gt;  &amp;ltxsl:apply-templates select="../../Code"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../ORS"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="Name"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../Name"/&amp;gt &lt;br /&gt;  &amp;ltxsl:apply-templates select="../../MSRP"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../MSRPNet"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../DealerNet"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../Taxes"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../EffectiveDate"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../MY"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../MYS"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../Carline"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../DealerIndex"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../Currency"/&amp;gt&lt;br /&gt;  &amp;ltxsl:if test="not(position()=last())"&amp;gt&lt;br /&gt;   &amp;ltxsl:call-template name="newline"/&amp;gt&lt;br /&gt;  &amp;lt/xsl:if&amp;gt&lt;br /&gt;  &amp;lt/xsl:for-each&amp;gt&lt;br /&gt; &amp;ltxsl:if test="not(position()=last())"&amp;gt&lt;br /&gt;  &amp;ltxsl:call-template name="newline"/&amp;gt&lt;br /&gt; &amp;lt/xsl:if&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template match="ExportOptionPrice"&amp;gt&lt;br /&gt; &amp;ltxsl:for-each select="Models/Model"&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="Code"/&amp;gt &lt;br /&gt;  &amp;ltxsl:apply-templates select="../../Code"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../ORS"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="Name"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../Name"/&amp;gt &lt;br /&gt;  &amp;ltxsl:apply-templates select="../../PlantPrice"/&amp;gt&lt;br /&gt;  &amp;ltxsl:text&amp;gt+000000000&amp;lt/xsl:text&amp;gt&lt;br /&gt;  &amp;ltxsl:text&amp;gt+000000000&amp;lt/xsl:text&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../Taxes"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../EffectiveDate"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../MY"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../MYS"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../Carline"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../DealerIndex"/&amp;gt&lt;br /&gt;  &amp;ltxsl:apply-templates select="../../Currency"/&amp;gt&lt;br /&gt;  &amp;ltxsl:if test="not(position()=last())"&amp;gt&lt;br /&gt;   &amp;ltxsl:call-template name="newline"/&amp;gt&lt;br /&gt;  &amp;lt/xsl:if&amp;gt&lt;br /&gt;  &amp;lt/xsl:for-each&amp;gt&lt;br /&gt; &amp;ltxsl:if test="not(position()=last())"&amp;gt&lt;br /&gt;  &amp;ltxsl:call-template name="newline"/&amp;gt&lt;br /&gt; &amp;lt/xsl:if&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template match="LocalReport"&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="Models/Model/Code"/&amp;gt &lt;br /&gt; &amp;lt!-- 10 blanks for Option Code --&amp;gt&lt;br /&gt; &amp;ltxsl:text&amp;gt          &amp;lt/xsl:text&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="ORS"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="Models/Model/Name"/&amp;gt&lt;br /&gt; &amp;lt!-- 40 blanks for Option Name --&amp;gt&lt;br /&gt; &amp;ltxsl:text&amp;gt                                        &amp;lt/xsl:text&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="MSRP"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="MSRPNet"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="DealerNet"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="Taxes"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="EffectiveDate"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="MY"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="MYS"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="Carline"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="DealerIndex"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="Currency"/&amp;gt&lt;br /&gt; &amp;ltxsl:call-template name="newline"/&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template match="ExportModelPrice"&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="Models/Model/Code"/&amp;gt &lt;br /&gt; &amp;lt!-- 10 blanks for Option Code --&amp;gt&lt;br /&gt; &amp;ltxsl:text&amp;gt          &amp;lt/xsl:text&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="ORS"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="Models/Model/Name"/&amp;gt&lt;br /&gt; &amp;lt!-- 40 blanks for Option Name --&amp;gt&lt;br /&gt; &amp;ltxsl:text&amp;gt                                        &amp;lt/xsl:text&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="PlantPrice"/&amp;gt&lt;br /&gt; &amp;ltxsl:text&amp;gt+000000000&amp;lt/xsl:text&amp;gt&lt;br /&gt; &amp;ltxsl:text&amp;gt+000000000&amp;lt/xsl:text&amp;gt &lt;br /&gt; &amp;ltxsl:apply-templates select="Taxes"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="EffectiveDate"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="MY"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="MYS"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="Carline"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="DealerIndex"/&amp;gt&lt;br /&gt; &amp;ltxsl:apply-templates select="Currency"/&amp;gt&lt;br /&gt; &amp;ltxsl:call-template name="newline"/&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template name="fillBefore"&amp;gt&lt;br /&gt; &amp;ltxsl:param name="objectString"/&amp;gt&lt;br /&gt; &amp;ltxsl:param name="numberOfChars"/&amp;gt&lt;br /&gt; &amp;ltxsl:param name="fillCharacter"/&amp;gt &lt;br /&gt; &amp;ltxsl:variable name="size" select="string-length($objectString)"/&amp;gt&lt;br /&gt; &amp;ltxsl:choose&amp;gt&lt;br /&gt;  &amp;ltxsl:when test="$size &amp;lt; $numberOfChars"&amp;gt&lt;br /&gt;   &amp;ltxsl:call-template name="fillBefore"&amp;gt&lt;br /&gt;    &amp;ltxsl:with-param name="objectString"&amp;gt&amp;ltxsl:value-of select="concat($fillCharacter, $objectString)"/&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;    &amp;ltxsl:with-param name="numberOfChars"&amp;gt&amp;ltxsl:value-of select="$numberOfChars"/&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;    &amp;ltxsl:with-param name="fillCharacter"&amp;gt&amp;ltxsl:value-of select="$fillCharacter"/&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;   &amp;lt/xsl:call-template&amp;gt&lt;br /&gt;  &amp;lt/xsl:when&amp;gt&lt;br /&gt;  &amp;ltxsl:when test="$size &amp;gt; $numberOfChars"&amp;gt&lt;br /&gt;   &amp;ltxsl:value-of select="substring($objectString,1,$numberOfChars)"/&amp;gt&lt;br /&gt;   &amp;lt!-- todo : better solution needed here --&amp;gt&lt;br /&gt;   &amp;lt!-- &amp;ltxsl:message terminate="yes"&amp;gtObjectString is too long&amp;lt/xsl:message&amp;gt --&amp;gt&lt;br /&gt;  &amp;lt/xsl:when&amp;gt&lt;br /&gt;  &amp;ltxsl:otherwise&amp;gt&lt;br /&gt;   &amp;ltxsl:value-of select="$objectString"/&amp;gt&lt;br /&gt;  &amp;lt/xsl:otherwise&amp;gt&lt;br /&gt; &amp;lt/xsl:choose&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template name="fillAfter"&amp;gt&lt;br /&gt; &amp;ltxsl:param name="objectString"/&amp;gt&lt;br /&gt; &amp;ltxsl:param name="numberOfChars"/&amp;gt&lt;br /&gt; &amp;ltxsl:param name="fillCharacter"/&amp;gt &lt;br /&gt; &amp;ltxsl:variable name="size" select="string-length($objectString)"/&amp;gt&lt;br /&gt; &amp;ltxsl:choose&amp;gt&lt;br /&gt;  &amp;ltxsl:when test="$size &amp;lt; $numberOfChars"&amp;gt&lt;br /&gt;   &amp;ltxsl:call-template name="fillAfter"&amp;gt&lt;br /&gt;    &amp;ltxsl:with-param name="objectString"&amp;gt&amp;ltxsl:value-of select="concat($objectString,$fillCharacter)"/&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;    &amp;ltxsl:with-param name="numberOfChars"&amp;gt&amp;ltxsl:value-of select="$numberOfChars"/&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;    &amp;ltxsl:with-param name="fillCharacter"&amp;gt&amp;ltxsl:value-of select="$fillCharacter"/&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;   &amp;lt/xsl:call-template&amp;gt&lt;br /&gt;  &amp;lt/xsl:when&amp;gt&lt;br /&gt;  &amp;ltxsl:when test="$size &amp;gt; $numberOfChars"&amp;gt&lt;br /&gt;   &amp;ltxsl:value-of select="substring($objectString,1,$numberOfChars)"/&amp;gt&lt;br /&gt;  &amp;lt/xsl:when&amp;gt&lt;br /&gt;  &amp;ltxsl:otherwise&amp;gt&lt;br /&gt;   &amp;ltxsl:value-of select="$objectString"/&amp;gt&lt;br /&gt;  &amp;lt/xsl:otherwise&amp;gt&lt;br /&gt; &amp;lt/xsl:choose&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt!-- leave this as it was made, it is essential for the newline --&amp;gt&lt;br /&gt;&amp;ltxsl:template name="newline"&amp;gt&lt;br /&gt; &amp;ltxsl:text&amp;gt&lt;br /&gt;&amp;lt/xsl:text&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template match="Code"&amp;gt&lt;br /&gt; &amp;ltxsl:call-template name="fillAfter"&amp;gt&lt;br /&gt;  &amp;ltxsl:with-param name="objectString"&amp;gt&amp;ltxsl:value-of select="."/&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;  &amp;ltxsl:with-param name="numberOfChars"&amp;gt10&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;  &amp;ltxsl:with-param name="fillCharacter"&amp;gt&amp;ltxsl:text&amp;gt &amp;lt/xsl:text&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt; &amp;lt/xsl:call-template&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template match="Model"&amp;gt&lt;br /&gt; &amp;ltxsl:call-template name="fillAfter"&amp;gt&lt;br /&gt;  &amp;ltxsl:with-param name="objectString"&amp;gt&amp;ltxsl:value-of select="."/&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;  &amp;ltxsl:with-param name="numberOfChars"&amp;gt10&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;  &amp;ltxsl:with-param name="fillCharacter"&amp;gt&amp;ltxsl:text&amp;gt &amp;lt/xsl:text&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt; &amp;lt/xsl:call-template&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template match="MSRP | MSRPNet | DealerNet | PlantPrice"&amp;gt&lt;br /&gt; &amp;ltxsl:choose&amp;gt&lt;br /&gt;  &amp;ltxsl:when test="@sign"&amp;gt&lt;br /&gt;   &amp;ltxsl:variable name="price" select="."/&amp;gt&lt;br /&gt;   &amp;ltxsl:call-template name="getPrice"&amp;gt&lt;br /&gt;    &amp;ltxsl:with-param name="value" select="substring-after($price,'-')"/&amp;gt&lt;br /&gt;   &amp;lt/xsl:call-template&amp;gt   &lt;br /&gt;   &amp;ltxsl:value-of select="@sign"/&amp;gt&lt;br /&gt;  &amp;lt/xsl:when&amp;gt&lt;br /&gt;  &amp;ltxsl:otherwise&amp;gt&lt;br /&gt;   &amp;ltxsl:call-template name="getPrice"&amp;gt&lt;br /&gt;    &amp;ltxsl:with-param name="value" select="."/&amp;gt&lt;br /&gt;   &amp;lt/xsl:call-template&amp;gt   &lt;br /&gt;   &amp;ltxsl:text&amp;gt+&amp;lt/xsl:text&amp;gt&lt;br /&gt;  &amp;lt/xsl:otherwise&amp;gt&lt;br /&gt; &amp;lt/xsl:choose&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template name="getPrice"&amp;gt&lt;br /&gt; &amp;ltxsl:param name="value"/&amp;gt&lt;br /&gt; &amp;ltxsl:choose&amp;gt&lt;br /&gt;  &amp;ltxsl:when test="not(contains($value,'.'))"&amp;gt&lt;br /&gt;   &amp;ltxsl:text&amp;gt000000000&amp;lt/xsl:text&amp;gt&lt;br /&gt;  &amp;lt/xsl:when&amp;gt&lt;br /&gt;  &amp;ltxsl:otherwise&amp;gt&lt;br /&gt;   &amp;ltxsl:variable name="before"&amp;gt&lt;br /&gt;    &amp;ltxsl:call-template name="fillBefore"&amp;gt&lt;br /&gt;     &amp;ltxsl:with-param name="objectString"&amp;gt&amp;ltxsl:value-of select="substring-before($value,'.')"/&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;     &amp;ltxsl:with-param name="numberOfChars"&amp;gt7&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;     &amp;ltxsl:with-param name="fillCharacter"&amp;gt&amp;ltxsl:text&amp;gt0&amp;lt/xsl:text&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;    &amp;lt/xsl:call-template&amp;gt&lt;br /&gt;   &amp;lt/xsl:variable&amp;gt&lt;br /&gt;   &amp;ltxsl:variable name="after"  select="substring-after($value,'.')"/&amp;gt&lt;br /&gt;   &amp;ltxsl:value-of select="concat($before, $after)"/&amp;gt&lt;br /&gt;  &amp;lt/xsl:otherwise&amp;gt&lt;br /&gt; &amp;lt/xsl:choose&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template name="getTax"&amp;gt&lt;br /&gt; &amp;ltxsl:param name="value"/&amp;gt&lt;br /&gt; &amp;ltxsl:choose&amp;gt&lt;br /&gt;  &amp;ltxsl:when test="not(contains($value,'.'))"&amp;gt&lt;br /&gt;   &amp;ltxsl:text&amp;gt000000&amp;lt/xsl:text&amp;gt&lt;br /&gt;  &amp;lt/xsl:when&amp;gt&lt;br /&gt;  &amp;ltxsl:otherwise&amp;gt&lt;br /&gt;   &amp;ltxsl:variable name="before"&amp;gt&lt;br /&gt;    &amp;ltxsl:call-template name="fillBefore"&amp;gt&lt;br /&gt;     &amp;ltxsl:with-param name="objectString"&amp;gt&amp;ltxsl:value-of select="substring-before($value,'.')"/&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;     &amp;ltxsl:with-param name="numberOfChars"&amp;gt3&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;     &amp;ltxsl:with-param name="fillCharacter"&amp;gt&amp;ltxsl:text&amp;gt0&amp;lt/xsl:text&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;    &amp;lt/xsl:call-template&amp;gt&lt;br /&gt;   &amp;lt/xsl:variable&amp;gt&lt;br /&gt;   &amp;lt!-- BugFix #287 - eVPS-2006-03: format the Tax values to 3 digital places before the point and 3 after --&amp;gt&lt;br /&gt;   &amp;ltxsl:variable name="after_long"&amp;gt&lt;br /&gt;    &amp;ltxsl:value-of select="substring-after($value,'.')"/&amp;gt&lt;br /&gt;   &amp;lt/xsl:variable&amp;gt&lt;br /&gt;   &amp;ltxsl:variable name="after"&amp;gt&lt;br /&gt;    &amp;ltxsl:value-of select="substring($after_long,1,3)"/&amp;gt&lt;br /&gt;   &amp;lt/xsl:variable&amp;gt&lt;br /&gt;   &amp;ltxsl:value-of select="concat($before, $after)"/&amp;gt&lt;br /&gt;  &amp;lt/xsl:otherwise&amp;gt&lt;br /&gt; &amp;lt/xsl:choose&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template name="getSpecialTaxAmount"&amp;gt&lt;br /&gt; &amp;ltxsl:param name="value"/&amp;gt&lt;br /&gt; &amp;ltxsl:choose&amp;gt&lt;br /&gt;  &amp;ltxsl:when test="not(contains($value,'.'))"&amp;gt&lt;br /&gt;   &amp;ltxsl:text&amp;gt+000000000&amp;lt/xsl:text&amp;gt&lt;br /&gt;  &amp;lt/xsl:when&amp;gt&lt;br /&gt;  &amp;ltxsl:otherwise&amp;gt&lt;br /&gt;   &amp;ltxsl:variable name="minsign"&amp;gt&lt;br /&gt;    &amp;ltxsl:if test="(contains($value,'-'))"&amp;gt     &lt;br /&gt;     &amp;ltxsl:text&amp;gt-&amp;lt/xsl:text&amp;gt&lt;br /&gt;    &amp;lt/xsl:if&amp;gt&lt;br /&gt;    &amp;ltxsl:if test="not(contains($value,'-'))"&amp;gt&lt;br /&gt;     &amp;ltxsl:text&amp;gt+&amp;lt/xsl:text&amp;gt&lt;br /&gt;    &amp;lt/xsl:if&amp;gt    &lt;br /&gt;   &amp;lt/xsl:variable&amp;gt&lt;br /&gt;   &amp;ltxsl:variable name="removeminus"&amp;gt&lt;br /&gt;    &amp;ltxsl:if test="(contains($value,'-'))"&amp;gt &lt;br /&gt;     &amp;ltxsl:value-of select="substring-after($value,'-')"/&amp;gt&lt;br /&gt;    &amp;lt/xsl:if&amp;gt&lt;br /&gt;    &amp;ltxsl:if test="not(contains($value,'-'))"&amp;gt &lt;br /&gt;     &amp;ltxsl:value-of select="string($value)"/&amp;gt&lt;br /&gt;    &amp;lt/xsl:if&amp;gt&lt;br /&gt;   &amp;lt/xsl:variable&amp;gt&lt;br /&gt;   &amp;ltxsl:variable name="before"&amp;gt&lt;br /&gt;    &amp;ltxsl:call-template name="fillBefore"&amp;gt&lt;br /&gt;     &amp;ltxsl:with-param name="objectString"&amp;gt&amp;ltxsl:value-of select="substring-before($removeminus,'.')"/&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;     &amp;ltxsl:with-param name="numberOfChars"&amp;gt7&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;     &amp;ltxsl:with-param name="fillCharacter"&amp;gt&amp;ltxsl:text&amp;gt0&amp;lt/xsl:text&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;    &amp;lt/xsl:call-template&amp;gt&lt;br /&gt;   &amp;lt/xsl:variable&amp;gt&lt;br /&gt;   &lt;br /&gt;   &amp;ltxsl:variable name="after_long"&amp;gt&lt;br /&gt;    &amp;ltxsl:value-of select="substring-after($before,'.')"/&amp;gt&lt;br /&gt;   &amp;lt/xsl:variable&amp;gt&lt;br /&gt;   &amp;ltxsl:variable name="after"&amp;gt&lt;br /&gt;    &amp;ltxsl:value-of select="substring($before,1,2)"/&amp;gt&lt;br /&gt;   &amp;lt/xsl:variable&amp;gt   &lt;br /&gt;  &amp;ltxsl:value-of select="concat($minsign,$before, $after)"/&amp;gt&lt;br /&gt;  &amp;lt/xsl:otherwise&amp;gt&lt;br /&gt; &amp;lt/xsl:choose&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template match="EffectiveDate"&amp;gt&lt;br /&gt; &amp;ltxsl:variable name="date" select="."/&amp;gt&lt;br /&gt; &amp;ltxsl:value-of select="substring($date, 1, 2)"/&amp;gt&lt;br /&gt; &amp;ltxsl:value-of select="substring($date, 4, 2)"/&amp;gt&lt;br /&gt; &amp;ltxsl:value-of select="substring($date, 7, 4)"/&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template match="ORS"&amp;gt&lt;br /&gt; &amp;ltxsl:call-template name="fillAfter"&amp;gt&lt;br /&gt;  &amp;ltxsl:with-param name="objectString"&amp;gt&amp;ltxsl:value-of select="."/&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;  &amp;ltxsl:with-param name="numberOfChars"&amp;gt25&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;  &amp;ltxsl:with-param name="fillCharacter"&amp;gt&amp;ltxsl:text&amp;gt &amp;lt/xsl:text&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt; &amp;lt/xsl:call-template&amp;gt &lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lt!--&lt;br /&gt;&amp;ltxsl:template match="Name"&amp;gt&lt;br /&gt; &lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;--&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template match="Name"&amp;gt&lt;br /&gt; &amp;ltxsl:call-template name="fillAfter"&amp;gt&lt;br /&gt;  &amp;ltxsl:with-param name="objectString"&amp;gt&amp;ltxsl:value-of select="."/&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;  &amp;ltxsl:with-param name="numberOfChars"&amp;gt40&amp;lt/xsl:with-param&amp;gt&lt;br /&gt;  &amp;ltxsl:with-param name="fillCharacter"&amp;gt&amp;ltxsl:text&amp;gt &amp;lt/xsl:text&amp;gt&amp;lt/xsl:with-param&amp;gt&lt;br /&gt; &amp;lt/xsl:call-template&amp;gt &lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template match="Taxes"&amp;gt&lt;br /&gt; &amp;ltxsl:call-template name="getTax"&amp;gt&lt;br /&gt;  &amp;ltxsl:with-param name="value" select="./SpecialTax"/&amp;gt&lt;br /&gt; &amp;lt/xsl:call-template&amp;gt&lt;br /&gt; &amp;ltxsl:call-template name="getTax"&amp;gt&lt;br /&gt;  &amp;ltxsl:with-param name="value" select="./Tax"/&amp;gt&lt;br /&gt; &amp;lt/xsl:call-template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:call-template name="getSpecialTaxAmount"&amp;gt&lt;br /&gt;  &amp;ltxsl:with-param name="value" select="./SpecialTaxAmount"/&amp;gt&lt;br /&gt;&amp;lt/xsl:call-template&amp;gt&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template match="Carline"&amp;gt&lt;br /&gt; &amp;ltxsl:value-of select="substring(.,1,2)"/&amp;gt &lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lt/xsl:stylesheet&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt!-- Stylus Studio meta-information - (c)1998-2001 eXcelon Corp.&lt;br /&gt;&amp;ltmetaInformation&amp;gt&lt;br /&gt;&amp;ltscenarios &amp;gt&amp;ltscenario default="yes" name="toExport" userelativepaths="yes" url="..\results\Kopie von sample.xml" htmlbaseurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/&amp;gt&amp;lt/scenarios&amp;gt&amp;ltMapperInfo  srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" /&amp;gt&lt;br /&gt;&amp;lt/metaInformation&amp;gt&lt;br /&gt;--&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;============================&lt;br /&gt;XML Data &lt;br /&gt;============================&lt;br /&gt;&amp;lt?xml version="1.0" encoding="ISO-8859-1"?&amp;gt&lt;br /&gt;&amp;lt?xml-stylesheet type="text/xsl" href="export.xsl"?&amp;gt&lt;br /&gt;&amp;ltGeneralReport module="Domestic"&amp;gt&lt;br /&gt;  &amp;ltMeta&amp;gt&lt;br /&gt;    &amp;ltUser&amp;gtTZG136&amp;lt/User&amp;gt&lt;br /&gt;    &amp;ltCreationDate&amp;gt31.07.2009&amp;lt/CreationDate&amp;gt&lt;br /&gt;    &amp;ltCreationTime&amp;gt15:16&amp;lt/CreationTime&amp;gt&lt;br /&gt;    &amp;ltComment&amp;gt&amp;lt/Comment&amp;gt&lt;br /&gt;    &amp;ltSelectionCriteria&amp;gt&lt;br /&gt;      &amp;ltLegalEntityName&amp;gtAustria&amp;lt/LegalEntityName&amp;gt&lt;br /&gt;      &amp;ltCarline&amp;gtAgila&amp;lt/Carline&amp;gt&lt;br /&gt;      &amp;ltMY&amp;gt2&amp;lt/MY&amp;gt&lt;br /&gt;      &amp;ltMYS&amp;gtA&amp;lt/MYS&amp;gt&lt;br /&gt;      &amp;ltDealerIndex&amp;gt000&amp;lt/DealerIndex&amp;gt&lt;br /&gt;      &amp;ltCurrency&amp;gtEUR&amp;lt/Currency&amp;gt&lt;br /&gt;      &amp;ltEffectiveDate&amp;gt= 14.12.2001&amp;lt/EffectiveDate&amp;gt&lt;br /&gt;      &amp;ltModelPrices&amp;gttrue&amp;lt/ModelPrices&amp;gt&lt;br /&gt;      &amp;ltModel&amp;gt0HF68&amp;lt/Model&amp;gt&lt;br /&gt;      &amp;ltOption&amp;gt*&amp;lt/Option&amp;gt&lt;br /&gt;      &amp;ltOptionIndicator&amp;gtM&amp;lt/OptionIndicator&amp;gt&lt;br /&gt;      &amp;ltActive&amp;gttrue&amp;lt/Active&amp;gt&lt;br /&gt;      &amp;ltORS apply="false"&amp;gt*&amp;lt/ORS&amp;gt&lt;br /&gt;    &amp;lt/SelectionCriteria&amp;gt&lt;br /&gt;  &amp;lt/Meta&amp;gt&lt;br /&gt;  &amp;ltAllModels&amp;gt&lt;br /&gt;    &amp;ltModel&amp;gt0HF68&amp;lt/Model&amp;gt&lt;br /&gt;    &amp;ltModel&amp;gt0HL68&amp;lt/Model&amp;gt&lt;br /&gt;    &amp;ltModel&amp;gt0HN68&amp;lt/Model&amp;gt&lt;br /&gt;    &amp;ltModel&amp;gt0HP68&amp;lt/Model&amp;gt&lt;br /&gt;  &amp;lt/AllModels&amp;gt&lt;br /&gt;  &amp;ltModels&amp;gt&lt;br /&gt;    &amp;ltModel&amp;gt0HF68&amp;lt/Model&amp;gt&lt;br /&gt;  &amp;lt/Models&amp;gt&lt;br /&gt;  &amp;ltPrices&amp;gt&lt;br /&gt;    &amp;ltLocalReport&amp;gt&lt;br /&gt;      &amp;ltLegalEntityName&amp;gtAustria&amp;lt/LegalEntityName&amp;gt&lt;br /&gt;      &amp;ltOptionIndicator&amp;gtM&amp;lt/OptionIndicator&amp;gt&lt;br /&gt;      &amp;ltCarline&amp;gtAgila&amp;lt/Carline&amp;gt&lt;br /&gt;      &amp;ltCode&amp;gt&amp;lt/Code&amp;gt&lt;br /&gt;      &amp;ltName&amp;gt&amp;lt/Name&amp;gt&lt;br /&gt;      &amp;ltModels&amp;gt&lt;br /&gt;        &amp;ltModel&amp;gt&lt;br /&gt;          &amp;ltCode&amp;gt0HF68&amp;lt/Code&amp;gt&lt;br /&gt;          &amp;ltName&amp;gtAgila Agila 5&amp;lt/Name&amp;gt&lt;br /&gt;        &amp;lt/Model&amp;gt&lt;br /&gt;      &amp;lt/Models&amp;gt&lt;br /&gt;      &amp;ltMY&amp;gt2&amp;lt/MY&amp;gt&lt;br /&gt;      &amp;ltMYS&amp;gtA&amp;lt/MYS&amp;gt&lt;br /&gt;      &amp;ltEffectiveDate&amp;gt14.12.2001&amp;lt/EffectiveDate&amp;gt&lt;br /&gt;      &amp;ltDealerIndex&amp;gt000&amp;lt/DealerIndex&amp;gt&lt;br /&gt;      &amp;ltMSRP sign="-"&amp;gt-90.00&amp;lt/MSRP&amp;gt&lt;br /&gt;      &amp;ltMSRPNet sign="-"&amp;gt-182.73&amp;lt/MSRPNet&amp;gt&lt;br /&gt;      &amp;ltDealerNet sign="-"&amp;gt-182.73&amp;lt/DealerNet&amp;gt&lt;br /&gt;      &amp;ltTransferPrice sign="-"&amp;gt-183.00&amp;lt/TransferPrice&amp;gt&lt;br /&gt;      &amp;ltCurrency&amp;gtEUR&amp;lt/Currency&amp;gt&lt;br /&gt;      &amp;ltORS&amp;gt&amp;lt/ORS&amp;gt&lt;br /&gt;      &amp;ltTaxes&amp;gt&lt;br /&gt;        &amp;ltTax&amp;gt0.0000&amp;lt/Tax&amp;gt&lt;br /&gt;        &amp;ltSpecialTax&amp;gt10.0000&amp;lt/SpecialTax&amp;gt&lt;br /&gt;        &amp;ltSpecialTaxAmount&amp;gt500.00&amp;lt/SpecialTaxAmount&amp;gt&lt;br /&gt;      &amp;lt/Taxes&amp;gt&lt;br /&gt;    &amp;lt/LocalReport&amp;gt&lt;br /&gt;  &amp;lt/Prices&amp;gt&lt;br /&gt;&amp;lt/GeneralReport&amp;gt&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-2883885936574668324?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/2883885936574668324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=2883885936574668324' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/2883885936574668324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/2883885936574668324'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/07/xml-xsl-advance-example.html' title='XML &amp; XSL Advance Example'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-7705168508500335850</id><published>2009-07-29T02:59:00.000-07:00</published><updated>2009-07-29T03:08:41.902-07:00</updated><title type='text'>PHP MYSQL APACHE Installation</title><content type='html'>Hi &lt;br /&gt;&lt;br /&gt;Please Use the below link Which gives you the details information about PHP MYSQL APACHE Installation&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.php-mysql-tutorial.com/wikis/php-tutorial/installing-php-and-mysql.aspx"&gt;Click Here Download Link - PHP MYSQL APACHE Installation instruction&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;After you install PHP - You can install HEIDSQL which is MYSQL front END. &lt;br /&gt;&lt;a href="http://www.heidisql.com/download.php?"&gt;Click Here Download Link : HEIDSQL - MYSQL Front End &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-7705168508500335850?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/7705168508500335850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=7705168508500335850' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7705168508500335850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7705168508500335850'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/07/php-mysql-apache-installation.html' title='PHP MYSQL APACHE Installation'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-693157565599138321</id><published>2009-07-15T04:37:00.000-07:00</published><updated>2012-01-15T20:51:38.164-08:00</updated><title type='text'>Needs Answers :</title><content type='html'>1.How to retrieve values from Oracle's ref cursor using java Program.?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-693157565599138321?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/693157565599138321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=693157565599138321' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/693157565599138321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/693157565599138321'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/07/needs-answers.html' title='Needs Answers :'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-7272175988315582513</id><published>2009-07-09T09:41:00.000-07:00</published><updated>2012-01-15T20:51:38.165-08:00</updated><title type='text'>Oracle Types access through Java Object</title><content type='html'>package com.oracleObjects.AcessOracleObjects;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;&lt;br /&gt;import java.sql.*;&lt;br /&gt;import java.util.List;&lt;br /&gt;import java.util.Properties;&lt;br /&gt;&lt;br /&gt;import oracle.sql.STRUCT;&lt;br /&gt;import oracle.sql.StructDescriptor;&lt;br /&gt;/**&lt;br /&gt; * @author tzg136&lt;br /&gt; *&lt;br /&gt; * TODO To change the template for this generated type comment go to&lt;br /&gt; * Window - Preferences - Java - Code Style - Code Templates&lt;br /&gt; */&lt;br /&gt;public class AcessOracleObjectsUsingJava_EMP {&lt;br /&gt; Connection conn = null;&lt;br /&gt; String driverName ="";&lt;br /&gt; String serverName = "";&lt;br /&gt; String username ="";&lt;br /&gt; String password = "";&lt;br /&gt; &lt;br /&gt; String portNumber ="";&lt;br /&gt; String sid = "";&lt;br /&gt; String databaseName = ""; &lt;br /&gt; &lt;br /&gt; public AcessOracleObjectsUsingJava_EMP()&lt;br /&gt; {&lt;br /&gt;  Properties configFile = new Properties();&lt;br /&gt;  try {&lt;br /&gt;   configFile.load(AcessOracleObjectsUsingJava_EMP.class.getClassLoader().getResourceAsStream("config.properties"));   &lt;br /&gt;   driverName =configFile.getProperty("driverName");&lt;br /&gt;   serverName = configFile.getProperty("serverName");&lt;br /&gt;   username =configFile.getProperty("username");&lt;br /&gt;   password = configFile.getProperty("password");   &lt;br /&gt;   portNumber =configFile.getProperty("portNumber");&lt;br /&gt;   sid = configFile.getProperty("sid");&lt;br /&gt;   databaseName = configFile.getProperty("databaseName");&lt;br /&gt;   &lt;br /&gt;  } catch (IOException e) { &lt;br /&gt;   e.printStackTrace();&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt; }&lt;br /&gt; public Connection getConnection()&lt;br /&gt; {&lt;br /&gt;  try&lt;br /&gt;  {&lt;br /&gt;  Class.forName(driverName);&lt;br /&gt;  String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;      &lt;br /&gt;  conn = DriverManager.getConnection(url, username, password);&lt;br /&gt;  System.out.println("Connected Sucessfully");&lt;br /&gt;  &lt;br /&gt;  }&lt;br /&gt;  catch (ClassNotFoundException e) {&lt;br /&gt;         System.out.println("ClassNotFoundException "+e.getMessage());&lt;br /&gt;         &lt;br /&gt;      } catch (SQLException e) {&lt;br /&gt;       System.out.println("SQl Syntaxt Error "+e.getMessage());&lt;br /&gt;       &lt;br /&gt;      }&lt;br /&gt;      catch (Exception e) {&lt;br /&gt;       System.out.println("Exception "+e.getMessage());&lt;br /&gt;       &lt;br /&gt;      }&lt;br /&gt;      return conn;      &lt;br /&gt; }&lt;br /&gt;public void insertTableObjectValue(Emp objEmp)&lt;br /&gt;{&lt;br /&gt; try {&lt;br /&gt;  Object objArray[] = new Object[4];&lt;br /&gt;       objArray[0] = objEmp.getEmp_id();&lt;br /&gt;       objArray[1] = objEmp.getEmp_Name();&lt;br /&gt;       objArray[2] = objEmp.getAge();&lt;br /&gt;       objArray[3] = new Integer(objEmp.getSalary());&lt;br /&gt;       &lt;br /&gt;   StructDescriptor colStructDesc =     StructDescriptor.createDescriptor("OBJ_TYPE_EMP", conn);&lt;br /&gt;   &lt;br /&gt;   oracle.sql.STRUCT colStruct = new STRUCT(colStructDesc,conn, objArray);&lt;br /&gt;       &lt;br /&gt;  PreparedStatement prepa_stmt= conn.prepareStatement( "INSERT INTO TABLE_EMP_OBJ VALUES (?)"); &lt;br /&gt;  prepa_stmt.setObject(1,colStruct); // Bind the Java Object to the above Statement  ps.executeUpdate(); &lt;br /&gt;  prepa_stmt.executeUpdate(); &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    } catch (SQLException e) {&lt;br /&gt;     System.out.println("SQLException"+ e.getMessage());&lt;br /&gt;    }&lt;br /&gt;    catch (Exception e) {&lt;br /&gt;     System.out.println("Exception"+ e.getMessage());&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public void createTableWithObject()&lt;br /&gt;{&lt;br /&gt;/*&lt;br /&gt; * &lt;br /&gt; * CREATE TYPE OBJ_TYPE_EMP as OBJECT (&lt;br /&gt;EMP_ID VARCHAR2(40),&lt;br /&gt;EMP_NAME VARCHAR2(40),&lt;br /&gt;AGE VARCHAR2(10) ,&lt;br /&gt;SALARY NUMBER )&lt;br /&gt;&lt;br /&gt;CREATE TABLE TABLE_EMP_OBJ (ObjEmp OBJ_TYPE_EMP )&lt;br /&gt; */&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void selectTableObjectValue()&lt;br /&gt;{&lt;br /&gt; try {&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;  Statement stmt = conn.createStatement();&lt;br /&gt;     &lt;br /&gt;         // Select rows from object1_table&lt;br /&gt;         ResultSet resultSet = stmt.executeQuery("SELECT * FROM TABLE_EMP_OBJ");&lt;br /&gt;         &lt;br /&gt;        // OracleResultSet resultSet = (OracleResultSet)pst.executeQuery();&lt;br /&gt;         &lt;br /&gt;         java.util.Hashtable mymap = new java.util.Hashtable();   &lt;br /&gt;         Class obj = Class.forName("com.oracleObjects.AcessOracleObjects.Emp");    &lt;br /&gt;         // Map the loaded java class to the object-type    &lt;br /&gt;         mymap.put ("OBJ_TYPE_EMP", obj);    &lt;br /&gt;     &lt;br /&gt;         // Get the OBJECT values from each row&lt;br /&gt;         while (resultSet.next()) &lt;br /&gt;         {&lt;br /&gt;          Emp objEmp;&lt;br /&gt;          objEmp = (Emp)resultSet.getObject(1, mymap);&lt;br /&gt;          System.out.println(""+objEmp.getEmp_Name());&lt;br /&gt;          System.out.println(""+objEmp.getAge());&lt;br /&gt;         }    &lt;br /&gt;&lt;br /&gt;        &lt;br /&gt; } &lt;br /&gt; catch (SQLException e) {&lt;br /&gt;     System.out.println("SQLException"+ e.getMessage());&lt;br /&gt;     e.printStackTrace();&lt;br /&gt;    }&lt;br /&gt;    catch (Exception e) {&lt;br /&gt;     System.out.println("Exception"+ e.getMessage());&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;public void closeConnection()&lt;br /&gt;{&lt;br /&gt; try&lt;br /&gt; {&lt;br /&gt; conn.close();&lt;br /&gt; }&lt;br /&gt;    catch (Exception e) {&lt;br /&gt;     System.out.println("Exception"+ e.getMessage());&lt;br /&gt;    }&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; public static void main(String[] args) {&lt;br /&gt;  AcessOracleObjectsUsingJava_EMP objAccessJavaObject= new AcessOracleObjectsUsingJava_EMP();&lt;br /&gt;  Emp objEmp= new Emp(); &lt;br /&gt;  objEmp.setEmp_id("1000");&lt;br /&gt;  objEmp.setEmp_Name("Andrew");&lt;br /&gt;  objEmp.setAge("34");&lt;br /&gt;  objEmp.setSalary(500);&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;  Connection conn=  objAccessJavaObject.getConnection();&lt;br /&gt;  if(args[0].equalsIgnoreCase("I"))&lt;br /&gt;  {&lt;br /&gt;   objAccessJavaObject.insertTableObjectValue(objEmp);&lt;br /&gt;  }&lt;br /&gt;  if(args[0].equalsIgnoreCase("S"))&lt;br /&gt;  {&lt;br /&gt;   objAccessJavaObject.selectTableObjectValue();&lt;br /&gt;  }&lt;br /&gt;  &lt;br /&gt;  objAccessJavaObject.closeConnection();&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-7272175988315582513?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/7272175988315582513/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=7272175988315582513' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7272175988315582513'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7272175988315582513'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/07/oracle-types-access-through-java-object.html' title='Oracle Types access through Java Object'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-6125122690498106258</id><published>2009-07-07T09:31:00.000-07:00</published><updated>2012-01-15T20:51:38.165-08:00</updated><title type='text'>Oracle Object Types - Java Implementation</title><content type='html'>Please find the code which has the implementation of inserting values in Oracle Objects and table.&lt;br /&gt;  &lt;br /&gt;CREATE TYPE product_detail_info AS object (product_detail_id VARCHAR(30), product_name VARCHAR(30),product_rate NUMBER)&lt;br /&gt;CREATE TYPE product_type AS object (product_type_id VARCHAR(30), product_type_Name VARCHAR(30),obj_product_detail_info product_detail_info )&lt;br /&gt;CREATE TABLE Electronics_Products(Electronics_Products_id VARCHAR(30), Electronics_Products_name VARCHAR(30),obj_product_type  product_type)&lt;br /&gt;&lt;br /&gt;Note : &lt;br /&gt;While running this program Please give args[0] value as below&lt;br /&gt;I- I   - Insert&lt;br /&gt;II- C  - create Object and Table&lt;br /&gt;III- S  - Select&lt;br /&gt;&lt;br /&gt;Java Code :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;package com.oracleObjects.AcessOracleObjects;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;import java.math.BigDecimal;&lt;br /&gt;import java.sql.*;&lt;br /&gt;import java.util.Properties;&lt;br /&gt;/**&lt;br /&gt; * @author tzg136&lt;br /&gt; *&lt;br /&gt; * TODO To change the template for this generated type comment go to&lt;br /&gt; * Window - Preferences - Java - Code Style - Code Templates&lt;br /&gt; */&lt;br /&gt;public class AcessOracleObjects_ElectronicsItem {&lt;br /&gt; Connection conn = null;&lt;br /&gt; String driverName ="";&lt;br /&gt; String serverName = "";&lt;br /&gt; String username ="";&lt;br /&gt; String password = "";&lt;br /&gt; &lt;br /&gt; String portNumber ="";&lt;br /&gt; String sid = "";&lt;br /&gt; String databaseName = ""; &lt;br /&gt; &lt;br /&gt; public AcessOracleObjects_ElectronicsItem()&lt;br /&gt; {&lt;br /&gt;  Properties configFile = new Properties();&lt;br /&gt;  try {&lt;br /&gt;   configFile.load(AcessOracleObjects_ElectronicsItem.class.getClassLoader().getResourceAsStream("config.properties"));   &lt;br /&gt;   driverName =configFile.getProperty("driverName");&lt;br /&gt;   serverName = configFile.getProperty("serverName");&lt;br /&gt;   username =configFile.getProperty("username");&lt;br /&gt;   password = configFile.getProperty("password");   &lt;br /&gt;   portNumber =configFile.getProperty("portNumber");&lt;br /&gt;   sid = configFile.getProperty("sid");&lt;br /&gt;   databaseName = configFile.getProperty("databaseName");&lt;br /&gt;   &lt;br /&gt;  } catch (IOException e) { &lt;br /&gt;   e.printStackTrace();&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt; }&lt;br /&gt; public Connection getConnection()&lt;br /&gt; {&lt;br /&gt;  try&lt;br /&gt;  {&lt;br /&gt;  Class.forName(driverName);&lt;br /&gt;  String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;      &lt;br /&gt;  conn = DriverManager.getConnection(url, username, password);&lt;br /&gt;  System.out.println("Connected Sucessfully");&lt;br /&gt;  &lt;br /&gt;  }&lt;br /&gt;  catch (ClassNotFoundException e) {&lt;br /&gt;         System.out.println("ClassNotFoundException "+e.getMessage());         &lt;br /&gt;      } catch (SQLException e) {&lt;br /&gt;       System.out.println("SQl Syntaxt Error "+e.getMessage());&lt;br /&gt;      }&lt;br /&gt;      catch (Exception e) {&lt;br /&gt;       System.out.println("Exception "+e.getMessage());&lt;br /&gt;      }&lt;br /&gt;      return conn;      &lt;br /&gt; }&lt;br /&gt;public void insertTableObjectValue()&lt;br /&gt;{&lt;br /&gt; try {&lt;br /&gt;        // Create an oracle.sql.ARRAY object to hold the values&lt;br /&gt;  Statement stmt = conn.createStatement();  &lt;br /&gt;  //CREATE TYPE product_detail_info AS object (product_detail_id VARCHAR(30), product_name VARCHAR(30),product_rate NUMBER)&lt;br /&gt;  //product_detail_info('TV_FLAT21_001' , '21 Inch Flat TV ' ,2000 )  &lt;br /&gt;  String product_detail_info_sql = "product_detail_info('D.Info TV_FLAT21_001' , '21 Inch Flat TV ' ,2000 )";&lt;br /&gt;  &lt;br /&gt;  // CREATE TYPE product_type AS object (product_type_id VARCHAR(30), product_type_Name VARCHAR(30),obj_product_detail_info product_detail_info )&lt;br /&gt;  //  product_type (product_type_id  , product_type_Name,product_detail_info_sql )&lt;br /&gt;  String product_type_sql= "product_type( 'TV', 'This contains   TV',("+product_detail_info_sql+"))";&lt;br /&gt;  &lt;br /&gt;  //CREATE TABLE Electronics_Products(Electronics_Products_id VARCHAR(30), Electronics_Products_name VARCHAR(30),obj_product_type  product_type)&lt;br /&gt;  //Electronics_Products(Electronics_Products_id, Electronics_Products_name ,product_type_sql)&lt;br /&gt;  String Electronics_Products_sql = "INSERT INTO Electronics_Products VALUES('ELE_item','this Elec items',"+product_type_sql+")";&lt;br /&gt;  &lt;br /&gt;         // Insert a row with values for both the object1 and object2 types&lt;br /&gt;  System.out.println("SQL is = \n"+Electronics_Products_sql);&lt;br /&gt;  int row = stmt.executeUpdate(Electronics_Products_sql);&lt;br /&gt;  System.out.println("Row Count"+row);&lt;br /&gt;         //stmt.execute("INSERT INTO object1_table VALUES(1, object1('str1', object2('obj2str1', 123)))");&lt;br /&gt;&lt;br /&gt;    } catch (SQLException e) {&lt;br /&gt;     System.out.println("SQLException"+ e.getMessage());&lt;br /&gt;    }&lt;br /&gt;    catch (Exception e) {&lt;br /&gt;     System.out.println("Exception"+ e.getMessage());&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;public void createTableWithObject()&lt;br /&gt;{&lt;br /&gt; try {&lt;br /&gt;        // Create an oracle.sql.ARRAY object to hold the values&lt;br /&gt;        // Create a statement&lt;br /&gt;        Statement stmt = conn.createStatement();&lt;br /&gt;        String prod_de_in= "CREATE TYPE product_detail_info AS object (product_detail_id VARCHAR(30), product_name VARCHAR(30),product_rate NUMBER)";&lt;br /&gt;        // Create the object2 type&lt;br /&gt;        stmt.execute(prod_de_in);&lt;br /&gt;        String prod_type= "CREATE TYPE product_type AS object (product_type_id VARCHAR(30), product_type_Name VARCHAR(30),obj_product_detail_info product_detail_info )";&lt;br /&gt;        stmt.execute(prod_type);&lt;br /&gt;        String elect_Prod= "CREATE TABLE Electronics_Products(Electronics_Products_id VARCHAR(30), Electronics_Products_name VARCHAR(30),obj_product_type  product_type)";        &lt;br /&gt;        stmt.execute(elect_Prod);   &lt;br /&gt;        // Create a table with a column to hold a number and the new object1 type        &lt;br /&gt;    } catch (SQLException e) {&lt;br /&gt;     System.out.println("SQLException"+ e.getMessage());&lt;br /&gt;    }&lt;br /&gt;    catch (Exception e) {&lt;br /&gt;     System.out.println("Exception"+ e.getMessage());&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void selectTableObjectValue()&lt;br /&gt;{&lt;br /&gt; try {&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;  Statement stmt = conn.createStatement();&lt;br /&gt;     &lt;br /&gt;         // Select rows from object1_table&lt;br /&gt;         ResultSet resultSet = stmt.executeQuery("SELECT * FROM Electronics_Products");&lt;br /&gt;     &lt;br /&gt;         // Get the OBJECT values from each row&lt;br /&gt;         while (resultSet.next()) {&lt;br /&gt;             // Get the integer from the first column col_integer of the row&lt;br /&gt;             String ele_prod_id = resultSet.getString("ELECTRONICS_PRODUCTS_ID");&lt;br /&gt;             String ele_prod_name = resultSet.getString("ELECTRONICS_PRODUCTS_NAME");&lt;br /&gt;     &lt;br /&gt;             // Get the object1 value from the second column col_object1&lt;br /&gt;             oracle.sql.STRUCT obj_PRODUCT_TYPE = (oracle.sql.STRUCT)resultSet.getObject("OBJ_PRODUCT_TYPE");&lt;br /&gt;     &lt;br /&gt;             // Get the object1 values from each row&lt;br /&gt;             Object[] obj_PRODUCT_TYPEValues = obj_PRODUCT_TYPE.getAttributes();&lt;br /&gt;             &lt;br /&gt;             System.out.println("obj_PRODUCT_TYPEValues"+obj_PRODUCT_TYPEValues.toString());    &lt;br /&gt;             &lt;br /&gt;             int obj_PRODUCT_length = obj_PRODUCT_TYPEValues.length;&lt;br /&gt;             &lt;br /&gt;             for(int i=0;i&amp;ltobj_PRODUCT_length;i++)&lt;br /&gt;             {             &lt;br /&gt;              System.out.println(i+" Product Type "+obj_PRODUCT_TYPEValues[0]);    &lt;br /&gt;              System.out.println(i+"Product Type"+obj_PRODUCT_TYPEValues[1]); &lt;br /&gt;              &lt;br /&gt;              // Product Detail Info&lt;br /&gt;              oracle.sql.STRUCT Obj_product_detail_info = (oracle.sql.STRUCT)obj_PRODUCT_TYPEValues[2];              &lt;br /&gt;              Object[]  obj_product_detail_info_Values =  Obj_product_detail_info.getAttributes();              &lt;br /&gt;              int obj_product_detail_info_length = obj_product_detail_info_Values.length;&lt;br /&gt;               for(int j=0;j&amp;ltobj_product_detail_info_length;j++)&lt;br /&gt;               {&lt;br /&gt;                System.out.println(j+" Product Detail Info  "+obj_product_detail_info_Values[0]); &lt;br /&gt;                System.out.println(j+" Product Detail Info  "+obj_product_detail_info_Values[1]); &lt;br /&gt;                System.out.println(j+" Product Detail Info  "+obj_product_detail_info_Values[2]);                 &lt;br /&gt;                &lt;br /&gt;               }&lt;br /&gt;             }&lt;br /&gt;     &lt;br /&gt;             // Get the first value of object1, which is a string&lt;br /&gt;            /* String str = (String)object1Values[0];&lt;br /&gt;             &lt;br /&gt;             System.out.println(""+str);&lt;br /&gt;     &lt;br /&gt;             // Get the second value of object1, which is of the type object2&lt;br /&gt;             oracle.sql.STRUCT object2 = (oracle.sql.STRUCT)object1Values[1];&lt;br /&gt;     &lt;br /&gt;             // Get the values of object2&lt;br /&gt;             Object object2Values[] = object2.getAttributes();&lt;br /&gt;             str = (String)object2Values[0];&lt;br /&gt;             BigDecimal num =  (BigDecimal)object2Values[1];&lt;br /&gt;             System.out.println(""+str);*/&lt;br /&gt;         }&lt;br /&gt;&lt;br /&gt;        &lt;br /&gt; } &lt;br /&gt; catch (SQLException e) {&lt;br /&gt;     System.out.println("SQLException"+ e.getMessage());&lt;br /&gt;    }&lt;br /&gt;    catch (Exception e) {&lt;br /&gt;     System.out.println("Exception"+ e.getMessage());&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;public void closeConnection()&lt;br /&gt;{&lt;br /&gt; try&lt;br /&gt; {&lt;br /&gt; conn.close();&lt;br /&gt; }&lt;br /&gt;    catch (Exception e) {&lt;br /&gt;     System.out.println("Exception"+ e.getMessage());&lt;br /&gt;    }&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; public static void main(String[] args) {&lt;br /&gt;  AcessOracleObjects_ElectronicsItem v= new AcessOracleObjects_ElectronicsItem();&lt;br /&gt;  Connection conn=  v.getConnection();&lt;br /&gt;  if(args[0].equalsIgnoreCase("C"))&lt;br /&gt;  {&lt;br /&gt;   v.createTableWithObject();   &lt;br /&gt;  }&lt;br /&gt;  else if(args[0].equalsIgnoreCase("I"))&lt;br /&gt;  {&lt;br /&gt;   v.insertTableObjectValue();&lt;br /&gt;  }&lt;br /&gt;  else if(args[0].equalsIgnoreCase("S"))&lt;br /&gt;  {&lt;br /&gt;   v.selectTableObjectValue();&lt;br /&gt;  }   &lt;br /&gt;  else&lt;br /&gt;  {&lt;br /&gt;   System.out.println("No vlaida option is selected");&lt;br /&gt;  }&lt;br /&gt;  v.closeConnection();&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Database Configuration :&lt;br /&gt;driverName=oracle.jdbc.driver.OracleDriver&lt;br /&gt;serverName=139.73.41.135&lt;br /&gt;portNumber=1521&lt;br /&gt;username=scott&lt;br /&gt;password=tiger&lt;br /&gt;databaseName=facisdev&lt;br /&gt;sid=facisdev&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-6125122690498106258?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/6125122690498106258/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=6125122690498106258' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6125122690498106258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6125122690498106258'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/07/oracle-object-types-java-implementation.html' title='Oracle Object Types - Java Implementation'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-7746112864863426810</id><published>2009-04-16T01:45:00.000-07:00</published><updated>2012-01-15T20:51:38.165-08:00</updated><title type='text'>ENGLISH BEST LINK</title><content type='html'>Hi Friend&lt;br /&gt;&lt;br /&gt;I have found this is the one of the best link for English Communication.Please try it by clikcing below &lt;br /&gt;&lt;a href="http://www.learnenglish.de/businessenglish.html"&gt;English Communication&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-7746112864863426810?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/7746112864863426810/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=7746112864863426810' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7746112864863426810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7746112864863426810'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/04/english-best-link.html' title='ENGLISH BEST LINK'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-5369110490608174297</id><published>2009-04-03T04:12:00.000-07:00</published><updated>2012-01-15T20:51:38.166-08:00</updated><title type='text'>AJAX</title><content type='html'>1.What is expanstion for AJAX?&lt;br /&gt;AJAX = Asynchronous JavaScript and XML&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2.How Ajax Loads the data without relaoding the page?&lt;br /&gt;Ajax Uses XMLHttpRequest object which directly interacts with seb server.&lt;br /&gt;&lt;br /&gt;AJAX uses asynchronous data transfer (HTTP requests) between the browser and the web server, allowing web pages to request small bits of information from the server instead of whole pages.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-5369110490608174297?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/5369110490608174297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=5369110490608174297' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5369110490608174297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5369110490608174297'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/04/ajax.html' title='AJAX'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-4369582159796744873</id><published>2009-04-01T08:15:00.000-07:00</published><updated>2011-11-22T09:55:30.884-08:00</updated><title type='text'>Back Base Steps</title><content type='html'>Steps to Implement BACKBASE &lt;br /&gt;&lt;br /&gt;1.Install Jar&lt;br /&gt; backbase-dataservices-core-1.1.0.jar—core functionality &lt;br /&gt; backbase-dataservices-servlet-1.1.0.jar—servlet bridge classes &lt;br /&gt;2.Set Up Dataservice - add in Servlet web.xml&lt;br /&gt; &amp;ltdisplay-name&amp;gtdatamodule-web-example&amp;lt/display-name&amp;gt&lt;br /&gt; &amp;ltservlet&amp;gt&lt;br /&gt;    &amp;ltservlet-name&amp;gtdatamodule-web-example&amp;lt/servlet-name&amp;gt&lt;br /&gt;    &amp;ltservlet-class&amp;gt&lt;br /&gt;       com.backbase.datamodule.servlet.DatamoduleServlet &lt;br /&gt;    &amp;lt/servlet-class&amp;gt&lt;br /&gt; &amp;lt/servlet&amp;gt&lt;br /&gt; &amp;ltservlet-mapping&amp;gt&lt;br /&gt;    &amp;ltservlet-name&amp;gtdatamodule-web-example&amp;lt/servlet-name&amp;gt&lt;br /&gt;    &amp;lturl-pattern&amp;gt/data/*&amp;lt/url-pattern&amp;gt&lt;br /&gt; &amp;lt/servlet-mapping&amp;gt&lt;br /&gt;3.Client-Side Implementation&lt;br /&gt; Data Source Definition&lt;br /&gt; Widget Binding&lt;br /&gt;4.Add datamodule-config - for Pagination&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-4369582159796744873?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/4369582159796744873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=4369582159796744873' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/4369582159796744873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/4369582159796744873'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/04/back-base-steps.html' title='Back Base Steps'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-1920418941875102326</id><published>2009-03-31T01:24:00.000-07:00</published><updated>2012-01-15T20:51:38.182-08:00</updated><title type='text'>Hibenate Coding Steps</title><content type='html'>Steps to Code Hibenate :&lt;br /&gt;1.Edit hibernate.cfg.xml :&lt;br /&gt;Hibernate uses the hibernate.cfg.xml to create the connection pool and setup required environment. Add an Entry for ???.hbm.xml&lt;br /&gt;&lt;br /&gt;2.Create Table in databse&lt;br /&gt;&lt;br /&gt;3.Create POJO Class which contains getter and setter method&lt;br /&gt;&lt;br /&gt;4.Map Table Column vs POJO Class in &lt;respective&gt;.hbm.xml&lt;br /&gt;&lt;br /&gt;5.Write Client Program&lt;br /&gt;&lt;br /&gt;SessionFactory factory=null;&lt;br /&gt;Session ses=null;&lt;br /&gt;Transaction tx=null; &lt;br /&gt;try&lt;br /&gt;{  factory=new Configuration().configure().buildSessionFactory();&lt;br /&gt;  ses=factory.openSession(); &lt;br /&gt;                  tx = ses.beginTransaction();&lt;br /&gt;                ses.save(emp); &lt;br /&gt;  tx.commit();&lt;br /&gt;}&lt;br /&gt;catch (Exception e)&lt;br /&gt;{&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-1920418941875102326?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/1920418941875102326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=1920418941875102326' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/1920418941875102326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/1920418941875102326'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/steps-to-code-hibenate.html' title='Hibenate Coding Steps'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-3116858113833987484</id><published>2009-03-30T03:08:00.000-07:00</published><updated>2012-01-15T20:51:38.183-08:00</updated><title type='text'>JavaScript</title><content type='html'>How to set Select a particular value when Select box is loaded?&lt;br /&gt;&lt;br /&gt;1.Find Length of Select Box. &lt;br /&gt;document.mtstafftransferform.qualification.options.length&lt;br /&gt;2.Loop through &lt;br /&gt;a)get the value of combobox&lt;br /&gt;var val = document.mtstafftransferform.qualification.options[i].value;&lt;br /&gt;b)match option value with value whihc needs to selected.&lt;br /&gt;3.If matches &lt;br /&gt;  select the value selected&lt;br /&gt;document.mtstafftransferform.qualification.selectedIndex=i; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example :&lt;br /&gt;&lt;br /&gt;&amp;ltSCRIPT language=JavaScript type=text/javascript&amp;gt&lt;br /&gt;var qualify ="MATHS";&lt;br /&gt;var comp_len = document.mtstafftransferform.qualification.options.length;&lt;br /&gt;for (i=0; i&amp;ltcomp_len; i++) &lt;br /&gt;{&lt;br /&gt;var val = document.mtstafftransferform.qualification.options[i].value;&lt;br /&gt;alert(""+val);&lt;br /&gt;if(val == qualify)&lt;br /&gt; {&lt;br /&gt; document.mtstafftransferform.qualification.selectedIndex=i; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;lt/SCRIPT&amp;gt&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-3116858113833987484?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/3116858113833987484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=3116858113833987484' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/3116858113833987484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/3116858113833987484'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/javascript.html' title='JavaScript'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-6243313547789734036</id><published>2009-03-26T00:17:00.001-07:00</published><updated>2012-01-15T20:51:38.185-08:00</updated><title type='text'>SWING</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-6243313547789734036?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/6243313547789734036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=6243313547789734036' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6243313547789734036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6243313547789734036'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/swing.html' title='SWING'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-476819406905613257</id><published>2009-03-17T04:56:00.000-07:00</published><updated>2012-01-15T20:51:38.188-08:00</updated><title type='text'>Hibernate Important Interview Question</title><content type='html'>1.What is O-R Mapping?&lt;br /&gt;2.What is the difference between createCriteria  and createQuery in Hibernate?&lt;br /&gt;3.How would you implement on deletecasecade in Hiberante?&lt;br /&gt;4.How Inheritance Implemented in Hiberante?&lt;br /&gt;5.Is one Bean class can be involved with more than one relationship?&lt;br /&gt;  For example 1 class may have 1 to 1 and 1 to many &lt;br /&gt;6.How do define compound primary key?&lt;br /&gt;7.How to implement Oncasecasde deletion?&lt;br /&gt;8.What is cascade="all" &lt;br /&gt;&lt;br /&gt;Code Examples :&lt;br /&gt;&lt;br /&gt;What are the steps to be followed to implement 1 to 1 database insert/update/delete?&lt;br /&gt;&lt;br /&gt;Pre - Request :&lt;br /&gt;Check we able to connect databse through Sample JSP program.&lt;br /&gt;&lt;br /&gt;Step 1:&lt;br /&gt;&lt;br /&gt;Table and Bean :&lt;br /&gt;&lt;br /&gt;Create master table and Child table &lt;br /&gt;Create bean for Master and Child table. Here Both Bean should contain gettter and setter value of other bean.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;XML Entry :&lt;br /&gt;&lt;br /&gt;In Master &lt;br /&gt;&lt;br /&gt;Apart from XML Entry, There should be map to child table &lt;br /&gt;&lt;br /&gt;&amp;ltone-to-one name="&amp;lt&amp;ltChildtablename&amp;gt&amp;gt" class="&amp;lt&amp;ltChildtableClass&amp;gt&amp;gt" cascade="all" /&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltone-to-one name="employeeSalary" class="EmployeeSalary" cascade="all" /&amp;gt&lt;br /&gt;&lt;br /&gt;Note : it refers only the class&lt;br /&gt;&lt;br /&gt;In Child table &lt;br /&gt;&lt;br /&gt;refer the master table's as below&lt;br /&gt;&lt;br /&gt;In reference key column, &lt;br /&gt;&lt;br /&gt;a)metioned generator class =foreign then mention property name&lt;br /&gt;b)define one to one with property name and Class&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-476819406905613257?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/476819406905613257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=476819406905613257' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/476819406905613257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/476819406905613257'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/interview-question.html' title='Hibernate Important Interview Question'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-8917869422015392104</id><published>2009-03-13T01:00:00.000-07:00</published><updated>2012-01-15T20:51:38.189-08:00</updated><title type='text'>EXCEL MACRO</title><content type='html'>a.  Code for connecting to the excel file&lt;br /&gt;Sub connectivity()&lt;br /&gt;On Error GoTo myerr:&lt;br /&gt;Set cn1 = New ADODB.Connection&lt;br /&gt;With cn1&lt;br /&gt;    .Provider = "Microsoft.Jet.OLEDB.4.0"&lt;br /&gt;    .ConnectionString = "Data Source='" &amp; ThisWorkbook.FullName &amp; "'; Extended Properties=Excel 8.0;"&lt;br /&gt;    .Open&lt;br /&gt;End With&lt;br /&gt;myerr:&lt;br /&gt;If Err.Number &lt;&gt; 0 Then&lt;br /&gt;   MsgBox Err.Description&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;   B.  Code for reading the datas from the excel file&lt;br /&gt;Sub readingrecord()&lt;br /&gt;          connectivity&lt;br /&gt;Set rs = New ADODB.Recordset&lt;br /&gt;rs.Open "select * from [sheet1$]", cn1, adOpenStatic, adLockOptimistic&lt;br /&gt;If rs.EOF = False Then&lt;br /&gt;    rs.MoveFirst&lt;br /&gt;    Do While Not rs.EOF&lt;br /&gt;         myName = rs.Fields(1).Value &amp; "," &amp; rs.Fields(2).Value&lt;br /&gt;         Set rs1 = New ADODB.Recordset&lt;br /&gt;         rs1.Open "select * from [sheet1$] where [Namefield] ='" &amp; myName &amp; "'", cn1, adOpenStatic, adLockOptimistic&lt;br /&gt;         If rs1.EOF = True Then&lt;br /&gt;                Sheet7.Cells(i, 1) = myName&lt;br /&gt;                Sheet7.Cells(i, 2) = 0&lt;br /&gt;                i = i + 1&lt;br /&gt;         End If&lt;br /&gt;       rs.MoveNext&lt;br /&gt;    Loop&lt;br /&gt;End If&lt;br /&gt;End sub&lt;br /&gt;&lt;br /&gt;   C.  Code for save the data to the external excel file.&lt;br /&gt;Sub fileupload()&lt;br /&gt;    Sheets("sheet1").Select&lt;br /&gt;    Cells.Select&lt;br /&gt;    Selection.Copy&lt;br /&gt;    Workbooks.Add&lt;br /&gt;    ActiveSheet.Paste&lt;br /&gt;    ActiveWorkbook.SaveAs Filename:= _&lt;br /&gt;        "C:\test.xls", FileFormat:=xlNormal, _&lt;br /&gt;        Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _&lt;br /&gt;        CreateBackup:=False&lt;br /&gt;    Sheets("Sheet1").Select&lt;br /&gt;    Sheets("Sheet1").Name = "sheet1"&lt;br /&gt;    Range("C8").Select&lt;br /&gt;    ActiveWorkbook.Save&lt;br /&gt;    ActiveWorkbook.Close&lt;br /&gt;    Range("A1").Select&lt;br /&gt;End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-8917869422015392104?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/8917869422015392104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=8917869422015392104' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/8917869422015392104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/8917869422015392104'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/excel-macro.html' title='EXCEL MACRO'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-6947061768284847461</id><published>2009-03-12T07:07:00.001-07:00</published><updated>2012-01-15T20:51:38.189-08:00</updated><title type='text'>SQL Server Back Up and Restoration</title><content type='html'>.  Installation of SQL Server Database:&lt;br /&gt;Click on SQLeval.exe.&lt;br /&gt;Once the extraction is complete, click on setup.bat&lt;br /&gt;Follow the below Instruction and complete the database server Installation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt; &lt;br /&gt;2&lt;br /&gt; &lt;br /&gt;3&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;4&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;5&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Password as ehr/ehr&lt;br /&gt;&lt;br /&gt;SQL Server Installation completed.&lt;br /&gt;Configure DSN : &lt;br /&gt;Start the database.&lt;br /&gt;Click on SQL Server Enterprise Manager.&lt;br /&gt;Expand the top most node.&lt;br /&gt;Right click on database and click on New Database.&lt;br /&gt;Create two databases core_db and core_db_session and note down the location of the data file and log file in both the cases.&lt;br /&gt;&lt;br /&gt;Right click on core_db and click on All tasks menu. Click on Restore Database.&lt;br /&gt;Click on From Device button as shown below in Fig 23&lt;br /&gt;Fig 23:&lt;br /&gt; &lt;a href="http://2.bp.blogspot.com/_BmvSXVAn6gQ/SbkZDHTuvgI/AAAAAAAAAR4/mS_AdYzK7F0/s1600-h/image036.png"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 266px;" src="http://2.bp.blogspot.com/_BmvSXVAn6gQ/SbkZDHTuvgI/AAAAAAAAAR4/mS_AdYzK7F0/s320/image036.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5312304776752315906" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Locate the core_db file and core_db_session file as shown below in Fig 24.&lt;br /&gt;Fig 24:&lt;br /&gt; &lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_BmvSXVAn6gQ/SbkYuioNuSI/AAAAAAAAARw/x5_84OtX1V4/s1600-h/image032.png"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 213px;" src="http://3.bp.blogspot.com/_BmvSXVAn6gQ/SbkYuioNuSI/AAAAAAAAARw/x5_84OtX1V4/s320/image032.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5312304423308736802" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;On doing this, the following screen  as shown below in Fig 25 &lt;br /&gt;will get displayed :&lt;br /&gt; &lt;br /&gt;Click on Options tab and provide the locations of data file and the log files whose location was recorded in the previous steps and as shown below in Fig 26.&lt;br /&gt;Fig 26:&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Click on Ok button. The message will get displayed as shown below in Fig 27.&lt;br /&gt;Fig 27&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;8. Configuration of Datasource:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Go to Control Panel. Click on Administrative tools /  DataSources. On doing so a popup window will appear as shown below in Fig 28.&lt;br /&gt;Fig 28:&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Click on System DSN tab as shown below in Fig 29. &lt;br /&gt;Fig 29:&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Click on Add button. A popup screen similar to the one shown below in Fig 30 &lt;br /&gt;will appear .&lt;br /&gt;Fig 30:&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Select SQL Server and click on Finish Button. On Doing so another popup screen will get displayed as shown below in Fig 31&lt;br /&gt;Fig 31:&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Fill the data source name and select the server as shown above. Click on Next button &lt;br /&gt;And fill the login id as well as the password. Use sa as login id and password as ehr&lt;br /&gt;Fig 32:&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; Click on Next button and the following screen as shown below in Fig 33 will get displayed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Fig 33&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Click on Next button and the screen as shown below in Fig 34 will get displayed.&lt;br /&gt;Fig 34:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Click on Finish.&lt;br /&gt;Test the DSN Set up &lt;br /&gt; &lt;br /&gt;Similarly create another datasource core_db_session.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-6947061768284847461?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/6947061768284847461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=6947061768284847461' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6947061768284847461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6947061768284847461'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/sql-server-back-up-and-restoration.html' title='SQL Server Back Up and Restoration'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_BmvSXVAn6gQ/SbkZDHTuvgI/AAAAAAAAAR4/mS_AdYzK7F0/s72-c/image036.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-7526820421560036024</id><published>2009-03-11T06:33:00.000-07:00</published><updated>2012-01-15T20:51:38.189-08:00</updated><title type='text'>My Code Link</title><content type='html'>Hi Friends &lt;br /&gt;&lt;br /&gt;Here I have attached some of the samples I have developed &lt;br /&gt;&lt;br /&gt;Please use it wherever is it required.&lt;br /&gt;&lt;br /&gt;The Link is :&lt;a href="http://andrewsselvaraj.googlepages.com/andrewswebsite2"&gt;MY CODES&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-7526820421560036024?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/7526820421560036024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=7526820421560036024' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7526820421560036024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7526820421560036024'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/my-code-link.html' title='My Code Link'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-3465158367579847141</id><published>2009-03-11T06:22:00.000-07:00</published><updated>2012-01-15T20:51:38.189-08:00</updated><title type='text'>XML Code GEN</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-3465158367579847141?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/3465158367579847141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=3465158367579847141' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/3465158367579847141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/3465158367579847141'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/xml-code-gen.html' title='XML Code GEN'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-3450821642491056110</id><published>2009-03-11T05:58:00.000-07:00</published><updated>2012-01-15T20:51:38.194-08:00</updated><title type='text'>XML &amp; XSL EXAMPLE</title><content type='html'>&amp;lt?xml version="1.0"?&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lt?xml-stylesheet type="text/xsl" href="Input.xsl"?&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltproject&amp;gt&lt;br /&gt; &amp;ltclass&amp;gt&lt;br /&gt;  &amp;lttype&amp;gtprivate&amp;lt/type&amp;gt&lt;br /&gt;  &amp;ltName&amp;gtAddTwasdsoNumbers&amp;lt/Name&amp;gt&lt;br /&gt; &amp;lt/class&amp;gt&lt;br /&gt; &amp;ltvariable&amp;gt&lt;br /&gt;  &amp;ltvar&amp;gt&lt;br /&gt;  &amp;lttype&amp;gt int &amp;lt/type&amp;gt&lt;br /&gt;  &amp;ltName&amp;gtx&amp;lt/Name&amp;gt&lt;br /&gt;  &amp;lt/var&amp;gt&lt;br /&gt;  &amp;ltvar&amp;gt&lt;br /&gt;  &amp;lttype&amp;gt int &amp;lt/type&amp;gt&lt;br /&gt;  &amp;ltName&amp;gty&amp;lt/Name&amp;gt&lt;br /&gt;  &amp;lt/var&amp;gt&lt;br /&gt;&lt;br /&gt; &amp;lt/variable&amp;gt&lt;br /&gt; &amp;ltfuntionmodule&amp;gt&lt;br /&gt;  &amp;ltvar&amp;gt&lt;br /&gt;  &amp;ltName&amp;gtaddtwonumber&amp;lt/Name&amp;gt&lt;br /&gt;   &amp;ltarg&amp;gt&lt;br /&gt;    &amp;lttype&amp;gt int &amp;lt/type&amp;gt&lt;br /&gt;    &amp;ltName&amp;gtx&amp;lt/Name&amp;gt&lt;br /&gt;   &amp;lt/arg&amp;gt&lt;br /&gt;   &amp;ltarg&amp;gt&lt;br /&gt;    &amp;lttype&amp;gt int &amp;lt/type&amp;gt&lt;br /&gt;    &amp;ltName&amp;gty&amp;lt/Name&amp;gt&lt;br /&gt;   &amp;lt/arg&amp;gt&lt;br /&gt;  &amp;ltreturntype&amp;gt int &amp;lt/returntype&amp;gt&lt;br /&gt;  &amp;lt/var&amp;gt  &lt;br /&gt; &amp;lt/funtionmodule&amp;gt&lt;br /&gt;  &lt;br /&gt;&amp;lt/project&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lt?xml version="1.0"?&amp;gt&lt;br /&gt;&amp;ltxsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&amp;gt&lt;br /&gt;&lt;br /&gt; &amp;ltxsl:template match="/"&amp;gt&lt;br /&gt; &amp;lthtml&amp;gt&lt;br /&gt; &amp;ltbody&amp;gt&lt;br /&gt;  &amp;ltxsl:call-template name="project_class"/&amp;gt&lt;br /&gt; &amp;lt/body&amp;gt&lt;br /&gt; &amp;lt/html&amp;gt&lt;br /&gt; &amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt; &amp;ltxsl:template name="project_class"&amp;gt&lt;br /&gt;  &lt;br /&gt;  &amp;ltxsl:value-of select="project/class/type" disable-output-escaping="no"/&amp;gt &lt;br /&gt;   &amp;ltfont color="red"&amp;gtclass &amp;ltxsl:value-of select="project/class/Name" disable-output-escaping="no"/&amp;gt {&lt;br /&gt;  &amp;ltbr/&amp;gt&amp;lt/font&amp;gt &amp;ltdiv/&amp;gt  &lt;br /&gt;  &amp;ltxsl:call-template name="project_Variable"/&amp;gt&lt;br /&gt;  &amp;ltbr/&amp;gt&lt;br /&gt;  &amp;ltxsl:call-template name="project_Methods"/&amp;gt&lt;br /&gt;  &amp;ltbr/&amp;gt&lt;br /&gt;  }&lt;br /&gt; &amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt; &lt;br /&gt; &amp;ltxsl:template name="project_Variable"&amp;gt&lt;br /&gt;&lt;br /&gt;  &amp;ltxsl:for-each select="project/variable/var"&amp;gt&lt;br /&gt;   &lt;br /&gt;   &amp;ltxsl:value-of select="type" disable-output-escaping="no"/&amp;gt &lt;br /&gt;   &lt;br /&gt;   &amp;ltxsl:value-of select="Name"/&amp;gt;&lt;br /&gt;   &amp;ltbr/&amp;gt&lt;br /&gt;   &lt;br /&gt;  &amp;lt/xsl:for-each&amp;gt &lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt; &amp;ltxsl:template name="project_Methods"&amp;gt&lt;br /&gt;  &amp;ltxsl:for-each select="project/funtionmodule/var"&amp;gt&lt;br /&gt;  public &amp;ltxsl:value-of select="returntype" disable-output-escaping="no"/&amp;gt &amp;ltxsl:value-of select="Name"/&amp;gt() thrwos Exception{&lt;br /&gt;  &amp;ltbr/&amp;gt&lt;br /&gt;  Rajnikanth&lt;br /&gt;  &lt;br /&gt;  }&lt;br /&gt;  &amp;lt/xsl:for-each&amp;gt &lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt; &amp;lt/xsl:template&amp;gt&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&amp;lt/xsl:stylesheet&amp;gt&amp;lt!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.&lt;br /&gt;--&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another Example :&lt;br /&gt;&lt;br /&gt;&amp;lt?xml version="1.0"?&amp;gt&lt;br /&gt;&amp;lt?xml-stylesheet type="text/xsl" href="emp.xsl"?&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltdatabase name="scott"&amp;gt&lt;br /&gt;    &amp;lttable-name name="Employee"&amp;gt&lt;br /&gt;        &amp;ltfields&amp;gt&lt;br /&gt;            &amp;ltcolumn-name&amp;gtempid&amp;lt/column-name&amp;gt&lt;br /&gt;            &amp;ltcolumn-type&amp;gtnumber&amp;lt/column-type&amp;gt&lt;br /&gt;            &amp;ltcolumn-size&amp;gt5&amp;lt/column-size&amp;gt&lt;br /&gt;        &amp;lt/fields&amp;gt&lt;br /&gt;        &amp;ltfields&amp;gt&lt;br /&gt;            &amp;ltcolumn-name&amp;gtempname&amp;lt/column-name&amp;gt&lt;br /&gt;            &amp;ltcolumn-type&amp;gtvarchar&amp;lt/column-type&amp;gt&lt;br /&gt;            &amp;ltcolumn-size&amp;gt5&amp;lt/column-size&amp;gt&lt;br /&gt;        &amp;lt/fields&amp;gt&lt;br /&gt;    &amp;lt/table-name&amp;gt&lt;br /&gt;    &amp;lttable-name name="Student"&amp;gt&lt;br /&gt;        &amp;ltfields&amp;gt&lt;br /&gt;            &amp;ltcolumn-name&amp;gtstudentid&amp;lt/column-name&amp;gt&lt;br /&gt;            &amp;ltcolumn-type&amp;gtnumber&amp;lt/column-type&amp;gt&lt;br /&gt;            &amp;ltcolumn-size&amp;gt5&amp;lt/column-size&amp;gt&lt;br /&gt;        &amp;lt/fields&amp;gt&lt;br /&gt;        &amp;ltfields&amp;gt&lt;br /&gt;            &amp;ltcolumn-name&amp;gtstudentname&amp;lt/column-name&amp;gt&lt;br /&gt;            &amp;ltcolumn-type&amp;gtvarchar&amp;lt/column-type&amp;gt&lt;br /&gt;            &amp;ltcolumn-size&amp;gt5&amp;lt/column-size&amp;gt&lt;br /&gt;        &amp;lt/fields&amp;gt&lt;br /&gt;    &amp;lt/table-name&amp;gt&lt;br /&gt;&amp;lt/database&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt?xml version='1.0'?&amp;gt&lt;br /&gt;&amp;ltxsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&amp;gt&lt;br /&gt;    &lt;br /&gt;    &amp;ltxsl:output method="html"/&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltxsl:template match="/"&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   &amp;lthtml&amp;gt&lt;br /&gt;             &amp;ltbody&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;  &amp;ltxsl:for-each select="database/table-name"&amp;gt   &lt;br /&gt;  &amp;lttable&amp;gt&lt;br /&gt;  &amp;lttr&amp;gt&lt;br /&gt;  &amp;lttd&amp;gt&amp;lth4&amp;gtTable Name:&amp;lt/h4&amp;gt&amp;lt/td&amp;gt&amp;lttd&amp;gt&amp;ltxsl:value-of select="@name"/&amp;gt&amp;lt/td&amp;gt&lt;br /&gt;  &amp;lt/tr&amp;gt&lt;br /&gt;  &amp;lt/table&amp;gt  &lt;br /&gt;    &amp;lttable&amp;gt  &lt;br /&gt;   &amp;lttr width="250"&amp;gt&lt;br /&gt;   &amp;ltth width="100"&amp;gtName&amp;lt/th&amp;gt    &lt;br /&gt;   &amp;ltth width="100"&amp;gtType&amp;lt/th&amp;gt    &lt;br /&gt;   &amp;ltth width="50"&amp;gtSize&amp;lt/th&amp;gt    &lt;br /&gt;   &amp;lt/tr&amp;gt      &lt;br /&gt;   &amp;ltxsl:for-each select="fields"&amp;gt&lt;br /&gt;   &amp;lttr&amp;gt&lt;br /&gt;          &amp;lttd&amp;gt&lt;br /&gt;            &amp;ltxsl:value-of select="column-name"/&amp;gt&lt;br /&gt;            &amp;lt/td&amp;gt&lt;br /&gt;          &amp;lttd&amp;gt&lt;br /&gt;            &amp;ltxsl:value-of select="column-type"/&amp;gt&lt;br /&gt;            &amp;lt/td&amp;gt&lt;br /&gt;          &amp;lttd&amp;gt&lt;br /&gt;            &amp;ltxsl:value-of select="column-size"/&amp;gt&lt;br /&gt;            &amp;lt/td&amp;gt&lt;br /&gt;   &amp;lt/tr&amp;gt&lt;br /&gt;   &amp;lt/xsl:for-each&amp;gt&lt;br /&gt; &amp;lt/table&amp;gt    &lt;br /&gt; &amp;ltbr/&amp;gt&lt;br /&gt; &amp;ltbr/&amp;gt&lt;br /&gt; &amp;ltbr/&amp;gt  &lt;br /&gt;  &amp;lt/xsl:for-each&amp;gt   &lt;br /&gt;  &lt;br /&gt;========================&lt;br /&gt;form submition&lt;br /&gt;========================&lt;br /&gt;&lt;br /&gt;  &amp;ltxsl:for-each select="database/table-name"&amp;gt    &lt;br /&gt;Table:&amp;ltxsl:value-of select="@name"/&amp;gt  &lt;br /&gt;  &amp;lttable&amp;gt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    &amp;ltxsl:for-each select="fields"&amp;gt&lt;br /&gt;  &amp;lttr&amp;gt&lt;br /&gt;&lt;br /&gt;DB EMP NAME :&amp;ltxsl:value-of select="column-name"/&amp;gt :&lt;br /&gt;  USEREMPNAME : &lt;br /&gt;  &lt;br /&gt;  &amp;ltinput type="text"&amp;gt&lt;br /&gt;    &amp;ltxsl:attribute name="value"&amp;gt &amp;ltxsl:value-of select="column-name"/&amp;gt&lt;br /&gt;    &amp;lt/xsl:attribute&amp;gt  &lt;br /&gt;  &amp;lt/input&amp;gt     &lt;br /&gt;  &amp;lt/tr&amp;gt&lt;br /&gt;  &lt;br /&gt;    &amp;lt/xsl:for-each&amp;gt   &lt;br /&gt;  &amp;lt/table&amp;gt&lt;br /&gt;  &amp;lt/xsl:for-each&amp;gt   &lt;br /&gt;  &lt;br /&gt;&amp;lt/body&amp;gt&lt;br /&gt;&amp;lt/html&amp;gt&lt;br /&gt;&amp;lt/xsl:template&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lt/xsl:stylesheet&amp;gt&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-3450821642491056110?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/3450821642491056110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=3450821642491056110' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/3450821642491056110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/3450821642491056110'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/xml-xsl-example.html' title='XML &amp; XSL EXAMPLE'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-1860040899740366623</id><published>2009-03-11T05:55:00.000-07:00</published><updated>2012-01-15T20:51:38.195-08:00</updated><title type='text'>Code Gen</title><content type='html'>Add Code Gen by JSP and then Convert to PHP&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-1860040899740366623?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/1860040899740366623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=1860040899740366623' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/1860040899740366623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/1860040899740366623'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/code-gen.html' title='Code Gen'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-695671254941897738</id><published>2009-03-11T05:41:00.000-07:00</published><updated>2012-01-15T20:51:38.195-08:00</updated><title type='text'>Java XML Example</title><content type='html'>import java.io.StringWriter;&lt;br /&gt;import java.util.ArrayList;&lt;br /&gt;&lt;br /&gt;import javax.xml.transform.OutputKeys;&lt;br /&gt;import javax.xml.transform.Transformer;&lt;br /&gt;import javax.xml.transform.TransformerFactory;&lt;br /&gt;import javax.xml.transform.dom.DOMSource;&lt;br /&gt;import javax.xml.transform.stream.StreamResult;&lt;br /&gt;&lt;br /&gt;import org.apache.xerces.dom.DocumentImpl;&lt;br /&gt;import org.w3c.dom.Document;&lt;br /&gt;import org.w3c.dom.Element;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* @author tzg136&lt;br /&gt;*&lt;br /&gt;* TODO To change the template for this generated type comment go to&lt;br /&gt;* Window - Preferences - Java - Code Style - Code Templates&lt;br /&gt;*/&lt;br /&gt;public class XMLCreator {&lt;br /&gt;Document xmlDoc = null;&lt;br /&gt;Element rootElement = null;&lt;br /&gt;Element topElement = null;&lt;br /&gt;public Document getData()&lt;br /&gt;{&lt;br /&gt;xmlDoc = new DocumentImpl();&lt;br /&gt;topElement = xmlDoc.createElement("source");&lt;br /&gt;&lt;br /&gt;//data &lt;br /&gt;ArrayList alEmp = new ArrayList();&lt;br /&gt;EmployeeBean e= new EmployeeBean();&lt;br /&gt;e.setEmp_ID("3636");&lt;br /&gt;e.setEmp_Name("Andrew");&lt;br /&gt;e.setEmp_Sal("60000");&lt;br /&gt;alEmp.add(e);&lt;br /&gt;e.setEmp_ID("2");&lt;br /&gt;e.setEmp_Name("kumas");&lt;br /&gt;e.setEmp_Sal("60asd000");&lt;br /&gt;alEmp.add(e);&lt;br /&gt;&lt;br /&gt;// data end&lt;br /&gt;&lt;br /&gt;for(int i=0;i &lt; alEmp.size();i++)&lt;br /&gt;{&lt;br /&gt;EmployeeBean emp = (EmployeeBean)alEmp.get(i);&lt;br /&gt;createXml(emp);&lt;br /&gt;}&lt;br /&gt;System.out.println("TOP SIZE"+alEmp.size());&lt;br /&gt;xmlDoc.appendChild(topElement);&lt;br /&gt;System.out.println("OP NN"+xmlDoc.getNodeName());&lt;br /&gt;System.out.println("OP"+xmlDoc.toString());&lt;br /&gt;return xmlDoc;&lt;br /&gt;}&lt;br /&gt;public void createXml(EmployeeBean emp)&lt;br /&gt;{ &lt;br /&gt;Element innnerElement = xmlDoc.createElement("EMPINFO");&lt;br /&gt;org.w3c.dom.Node node_Empid = xmlDoc.createElement("Empid");&lt;br /&gt;org.w3c.dom.Node node_EmpName = xmlDoc.createElement("EmpName");&lt;br /&gt;org.w3c.dom.Node node_EmpSal = xmlDoc.createElement("EmpAge");&lt;br /&gt;&lt;br /&gt;node_Empid.appendChild(xmlDoc.createTextNode(emp.getEmp_ID()));&lt;br /&gt;node_EmpName.appendChild(xmlDoc.createTextNode(emp.getEmp_Name()));&lt;br /&gt;node_EmpSal.appendChild(xmlDoc.createTextNode(emp.getEmp_Sal()));&lt;br /&gt;&lt;br /&gt;innnerElement.appendChild(node_Empid);&lt;br /&gt;innnerElement.appendChild(node_EmpName);&lt;br /&gt;innnerElement.appendChild(node_EmpSal);&lt;br /&gt;&lt;br /&gt;topElement.appendChild(innnerElement);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;public String toString()&lt;br /&gt;{&lt;br /&gt; return this.getClass().getName();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public static void main(String args[])&lt;br /&gt;{&lt;br /&gt;XMLCreator a = new XMLCreator();&lt;br /&gt;//StreamResult result =  new StreamResult(System.out);&lt;br /&gt;//System.out.println("Out put"+a.getData().toString());&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;Document doc = a.getData();&lt;br /&gt;&lt;br /&gt;Transformer transformer = TransformerFactory.newInstance().newTransformer();&lt;br /&gt;transformer.setOutputProperty(OutputKeys.INDENT, "yes");&lt;br /&gt;&lt;br /&gt;//initialize StreamResult with File object to save to file&lt;br /&gt;StreamResult result = new StreamResult(new StringWriter());&lt;br /&gt;DOMSource source = new DOMSource(doc);&lt;br /&gt;transformer.transform(source, result);&lt;br /&gt;&lt;br /&gt;String xmlString = result.getWriter().toString();&lt;br /&gt;System.out.println(xmlString);&lt;br /&gt;}&lt;br /&gt;catch(Exception e)&lt;br /&gt;{&lt;br /&gt; e.getMessage();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//System.out.println(doc.getElementsByTagName("Empid").);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;class EmployeeBean&lt;br /&gt;{&lt;br /&gt; /**&lt;br /&gt;  * @return Returns the emp_ID.&lt;br /&gt;  */&lt;br /&gt; public String getEmp_ID() {&lt;br /&gt;  return emp_ID;&lt;br /&gt; }&lt;br /&gt; /**&lt;br /&gt;  * @param emp_ID The emp_ID to set.&lt;br /&gt;  */&lt;br /&gt; public void setEmp_ID(String emp_ID) {&lt;br /&gt;  this.emp_ID = emp_ID;&lt;br /&gt; }&lt;br /&gt; /**&lt;br /&gt;  * @return Returns the emp_Sal.&lt;br /&gt;  */&lt;br /&gt; public String getEmp_Sal() {&lt;br /&gt;  return emp_Sal;&lt;br /&gt; }&lt;br /&gt; /**&lt;br /&gt;  * @param emp_Sal The emp_Sal to set.&lt;br /&gt;  */&lt;br /&gt; public void setEmp_Sal(String emp_Sal) {&lt;br /&gt;  this.emp_Sal = emp_Sal;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; String emp_ID;&lt;br /&gt; /**&lt;br /&gt;  * @return Returns the emp_Name.&lt;br /&gt;  */&lt;br /&gt; public String getEmp_Name() {&lt;br /&gt;  return emp_Name;&lt;br /&gt; }&lt;br /&gt; /**&lt;br /&gt;  * @param emp_Name The emp_Name to set.&lt;br /&gt;  */&lt;br /&gt; public void setEmp_Name(String emp_Name) {&lt;br /&gt;  this.emp_Name = emp_Name;&lt;br /&gt; }&lt;br /&gt; String emp_Name;&lt;br /&gt; &lt;br /&gt; String emp_Sal;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-695671254941897738?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/695671254941897738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=695671254941897738' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/695671254941897738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/695671254941897738'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/java-xml-exmaple.html' title='Java XML Example'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-5564413417408180610</id><published>2009-03-11T05:37:00.000-07:00</published><updated>2012-01-15T20:51:38.195-08:00</updated><title type='text'>java Interface Example </title><content type='html'>Do reports &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-5564413417408180610?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/5564413417408180610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=5564413417408180610' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5564413417408180610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5564413417408180610'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/java-interface-example.html' title='java Interface Example '/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-6376937751368504846</id><published>2009-03-11T05:29:00.000-07:00</published><updated>2012-01-15T20:51:38.215-08:00</updated><title type='text'>Java Abstract Class Example</title><content type='html'>Base Class :&lt;br /&gt;=============&lt;br /&gt;&lt;br /&gt;package pkg_abstract;&lt;br /&gt;&lt;br /&gt;import java.awt.Frame;&lt;br /&gt;public class BaseWindow extends Frame {&lt;br /&gt;}&lt;br /&gt;Derived Class :&lt;br /&gt;=============&lt;br /&gt;&lt;br /&gt;package pkg_abstract;&lt;br /&gt;&lt;br /&gt;public class EDSWindow extends BaseWindow{&lt;br /&gt; public static void main(String args[])&lt;br /&gt; {&lt;br /&gt;  EDSWindow a = new EDSWindow();&lt;br /&gt;  a.show();&lt;br /&gt; }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-6376937751368504846?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/6376937751368504846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=6376937751368504846' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6376937751368504846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6376937751368504846'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/java-abstract-class-example.html' title='Java Abstract Class Example'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-5848320118664694778</id><published>2009-03-11T05:24:00.000-07:00</published><updated>2012-01-15T20:51:38.215-08:00</updated><title type='text'>Filter Pattern</title><content type='html'>package com.filter;&lt;br /&gt;&lt;br /&gt;import java.util.Iterator;&lt;br /&gt;import java.util.Vector;&lt;br /&gt;&lt;br /&gt;public class FilterChain {&lt;br /&gt;   // filter chain &lt;br /&gt;   private Vector myFilters = new Vector();&lt;br /&gt;&lt;br /&gt;   // Creates new FilterChain &lt;br /&gt;   public FilterChain()  {&lt;br /&gt;     // plug-in default filter services for example &lt;br /&gt;     // only. This would typically be done in the &lt;br /&gt;     // FilterManager, but is done here for example &lt;br /&gt;     // purposes&lt;br /&gt;     addFilter(new DebugFilter());&lt;br /&gt;     addFilter(new LoginFilter());&lt;br /&gt;     addFilter(new AuditFilter());&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public void processFilter( &lt;br /&gt;     javax.servlet.http.HttpServletRequest request,&lt;br /&gt;     javax.servlet.http.HttpServletResponse response)&lt;br /&gt;   throws javax.servlet.ServletException, &lt;br /&gt;     java.io.IOException         {&lt;br /&gt;    Filter filter;&lt;br /&gt;&lt;br /&gt;     // apply filters&lt;br /&gt;     Iterator filters = myFilters.iterator();&lt;br /&gt;     while (filters.hasNext())&lt;br /&gt;     {&lt;br /&gt;       filter = (Filter)filters.next();&lt;br /&gt;       // pass request &amp; response through various &lt;br /&gt;       // filters&lt;br /&gt;       filter.execute(request, response);&lt;br /&gt;     }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public void addFilter(Filter filter)  {&lt;br /&gt;     myFilters.add(filter);&lt;br /&gt;   }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;===============================================================&lt;br /&gt;/*&lt;br /&gt; * Created on Oct 13, 2005&lt;br /&gt; *&lt;br /&gt; * TODO To change the template for this generated file go to&lt;br /&gt; * Window - Preferences - Java - Code Style - Code Templates&lt;br /&gt; */&lt;br /&gt;package com.filter;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt; * @author tzg136&lt;br /&gt; *&lt;br /&gt; * TODO To change the template for this generated type comment go to&lt;br /&gt; * Window - Preferences - Java - Code Style - Code Templates&lt;br /&gt; */&lt;br /&gt;public class FilterManager {&lt;br /&gt;   public void processFilter(Filter target, &lt;br /&gt;     javax.servlet.http.HttpServletRequest request, &lt;br /&gt;     javax.servlet.http.HttpServletResponse response) &lt;br /&gt;     throws javax.servlet.ServletException, &lt;br /&gt;       java.io.IOException       {                    &lt;br /&gt;     FilterChain filterChain = new FilterChain();&lt;br /&gt;&lt;br /&gt;     // The filter manager builds the filter chain here &lt;br /&gt;     // if necessary&lt;br /&gt;&lt;br /&gt;     // Pipe request through Filter Chain&lt;br /&gt;     filterChain.processFilter(request, response);&lt;br /&gt;&lt;br /&gt;     //process target resource&lt;br /&gt;     target.execute(request, response);&lt;br /&gt;  &lt;br /&gt;   }&lt;br /&gt; }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-5848320118664694778?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/5848320118664694778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=5848320118664694778' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5848320118664694778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5848320118664694778'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/filter-pattern.html' title='Filter Pattern'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-1901342833503052254</id><published>2009-03-11T05:07:00.000-07:00</published><updated>2012-01-15T20:51:38.215-08:00</updated><title type='text'>Value List Handler</title><content type='html'>Client - Displays the result&lt;br /&gt;=============================&lt;br /&gt;package com.ValueList.client;&lt;br /&gt;&lt;br /&gt;import com.ValueList.controller.EmpController;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class EmpClient {&lt;br /&gt; public void result()&lt;br /&gt; {&lt;br /&gt;  EmpController e =  new EmpController();&lt;br /&gt;  e.getAllEmpInfo();&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt;public static void main(String args[])&lt;br /&gt;{&lt;br /&gt; EmpClient e = new EmpClient();&lt;br /&gt; e.result();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;===============================================&lt;br /&gt;Controller :&lt;br /&gt;===============================================&lt;br /&gt;Client Calls controller :&lt;br /&gt;&lt;br /&gt;package com.ValueList.controller;&lt;br /&gt;&lt;br /&gt;import com.ValueList.common.ValueListHandler;&lt;br /&gt;import com.ValueList.model.EmpDBManager;&lt;br /&gt;&lt;br /&gt;public class EmpController {&lt;br /&gt; &lt;br /&gt; public void getAllEmpInfo()&lt;br /&gt; {&lt;br /&gt;  EmpDBManager objEmpDBManager = new EmpDBManager();&lt;br /&gt;  ValueListHandler allempInfo = objEmpDBManager.empInfo();&lt;br /&gt;  Object  empbean = allempInfo.getCurrentElement();&lt;br /&gt;  System.out.println("CURRENT ELEMENT ");&lt;br /&gt;  System.out.println("CURRENT ELEMENT "+allempInfo.getCurrentElement());&lt;br /&gt;  System.out.println("SIZE "+allempInfo.getSize());&lt;br /&gt;  System.out.println("HAS NEXT "+allempInfo.hasNext()); &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;============================&lt;br /&gt;package com.ValueList.common;&lt;br /&gt;&lt;br /&gt;// Import List class&lt;br /&gt;import java.util.List;&lt;br /&gt;&lt;br /&gt;public interface ValueListHandler  {&lt;br /&gt;  public void setList(List list);&lt;br /&gt;  public int getSize();&lt;br /&gt;  public boolean hasNext();&lt;br /&gt;  public Object nextElement() ;&lt;br /&gt;  public Object getCurrentElement();&lt;br /&gt;  public void resetIndex() ;&lt;br /&gt;}&lt;br /&gt;====================================&lt;br /&gt;Employee Value List Handler:&lt;br /&gt;===================================&lt;br /&gt;package com.ValueList.handler;&lt;br /&gt;&lt;br /&gt;// Import List class&lt;br /&gt;import java.util.List;&lt;br /&gt;&lt;br /&gt;import com.ValueList.common.ValueListHandler;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt; * This class holds the list of orders. The presentation layer uses the&lt;br /&gt; * methods from this class to display the Order information.&lt;br /&gt; * This class implements the ValueListHandler interface, which provides the&lt;br /&gt; * necessary methods to iterate through the list.&lt;br /&gt; */&lt;br /&gt;public class EmployeeHandler implements ValueListHandler {&lt;br /&gt;&lt;br /&gt;  private List ordersList = null;&lt;br /&gt;  private int listIndex = -1;&lt;br /&gt;  private int allRecordsSize = -1;&lt;br /&gt;&lt;br /&gt;  /**&lt;br /&gt;   * Sets the Orders list&lt;br /&gt;   * @param list - Order List&lt;br /&gt;   */&lt;br /&gt;  public void setList(List list)  {&lt;br /&gt;    ordersList = list;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  /**&lt;br /&gt;   * Returns the size of the list&lt;br /&gt;   * @return - Size&lt;br /&gt;   */&lt;br /&gt;  public int getSize()  {&lt;br /&gt;    return ordersList.size();&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  /**&lt;br /&gt;   * Returns true if there are more elements in the list&lt;br /&gt;   * @return - true/false&lt;br /&gt;   */&lt;br /&gt;  public boolean hasNext()  {&lt;br /&gt;    return  ( (listIndex+1) &lt;  ordersList.size() &amp;&amp; ordersList.size() &gt; 0 )  ;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  /**&lt;br /&gt;   * Returns the next element in the list&lt;br /&gt;   * @return Next element&lt;br /&gt;   */&lt;br /&gt;  public Object nextElement()  {&lt;br /&gt;    return ordersList.get(++listIndex) ;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  /**&lt;br /&gt;   * Returns the current element in the list&lt;br /&gt;   * @return Current element&lt;br /&gt;   */&lt;br /&gt;  public Object getCurrentElement()  {&lt;br /&gt;    if ( listIndex &lt; 0 || ordersList.size() &lt; 1 )  {&lt;br /&gt;      return null;&lt;br /&gt;    }&lt;br /&gt;    return ordersList.get(listIndex) ;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  /**&lt;br /&gt;   * Resets the index&lt;br /&gt;   */&lt;br /&gt;  public void resetIndex()  {&lt;br /&gt;    listIndex = -1;&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;=========================================================&lt;br /&gt;/*&lt;br /&gt; * Created on Oct 5, 2005&lt;br /&gt; *&lt;br /&gt; * TODO To change the template for this generated file go to&lt;br /&gt; * Window - Preferences - Java - Code Style - Code Templates&lt;br /&gt; */&lt;br /&gt;package com.ValueList.model;&lt;br /&gt;&lt;br /&gt;import java.util.ArrayList;&lt;br /&gt;&lt;br /&gt;import com.ValueList.bean.EmployeeBean;&lt;br /&gt;import com.ValueList.common.ValueListHandler;&lt;br /&gt;import com.ValueList.handler.EmployeeHandler;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt; * @author tzg136&lt;br /&gt; *&lt;br /&gt; * TODO To change the template for this generated type comment go to&lt;br /&gt; * Window - Preferences - Java - Code Style - Code Templates&lt;br /&gt; */&lt;br /&gt;public class EmpDBManager {&lt;br /&gt; &lt;br /&gt; EmployeeHandler empValueListHandler = new EmployeeHandler();&lt;br /&gt; public ValueListHandler empInfo()&lt;br /&gt; {&lt;br /&gt;&lt;br /&gt;  ArrayList orderList = new ArrayList();&lt;br /&gt;  &lt;br /&gt;  EmployeeBean oEmployeeBean = new EmployeeBean();&lt;br /&gt;  oEmployeeBean.setEmp_ID("3939");&lt;br /&gt;  oEmployeeBean.setEmp_Name("ANDREW");&lt;br /&gt;  oEmployeeBean.setEmp_Sal("5.5LKS");&lt;br /&gt;  &lt;br /&gt;  orderList.add(oEmployeeBean);&lt;br /&gt;  &lt;br /&gt;  oEmployeeBean = new EmployeeBean();&lt;br /&gt;  oEmployeeBean.setEmp_ID("1 3939");&lt;br /&gt;  oEmployeeBean.setEmp_Name("1 ANDREW");&lt;br /&gt;  oEmployeeBean.setEmp_Sal("1 5.5LKS");&lt;br /&gt;  &lt;br /&gt;  orderList.add(oEmployeeBean);&lt;br /&gt;  &lt;br /&gt;  oEmployeeBean = new EmployeeBean();&lt;br /&gt;  oEmployeeBean.setEmp_ID("3 3939");&lt;br /&gt;  oEmployeeBean.setEmp_Name("3 ANDREW");&lt;br /&gt;  oEmployeeBean.setEmp_Sal("3 5.5LKS");&lt;br /&gt;  &lt;br /&gt;  orderList.add(oEmployeeBean);&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;  oEmployeeBean = new EmployeeBean();&lt;br /&gt;  oEmployeeBean.setEmp_ID("4 3939");&lt;br /&gt;  oEmployeeBean.setEmp_Name("4 ANDREW");&lt;br /&gt;  oEmployeeBean.setEmp_Sal("4 5.5LKS");&lt;br /&gt;  &lt;br /&gt;  orderList.add(oEmployeeBean);&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;  oEmployeeBean = new EmployeeBean();&lt;br /&gt;  oEmployeeBean.setEmp_ID("5 3939");&lt;br /&gt;  oEmployeeBean.setEmp_Name("5 ANDREW");&lt;br /&gt;  oEmployeeBean.setEmp_Sal("5 5.5LKS");&lt;br /&gt;  &lt;br /&gt;  orderList.add(oEmployeeBean);&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;  oEmployeeBean = new EmployeeBean();&lt;br /&gt;  oEmployeeBean.setEmp_ID("6 3939");&lt;br /&gt;  oEmployeeBean.setEmp_Name("6 ANDREW");&lt;br /&gt;  oEmployeeBean.setEmp_Sal("6 5.5LKS");&lt;br /&gt;  &lt;br /&gt;  orderList.add(oEmployeeBean);&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;  empValueListHandler.setList(orderList);&lt;br /&gt;  &lt;br /&gt;  return empValueListHandler;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;=======================================================&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-1901342833503052254?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/1901342833503052254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=1901342833503052254' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/1901342833503052254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/1901342833503052254'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/value-list-handler.html' title='Value List Handler'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-1932836938889164060</id><published>2009-03-11T04:54:00.000-07:00</published><updated>2012-01-15T20:51:38.216-08:00</updated><title type='text'>STRUTS - Iterator Example</title><content type='html'>update with MT CODE&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-1932836938889164060?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/1932836938889164060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=1932836938889164060' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/1932836938889164060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/1932836938889164060'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/struts-iterator-example.html' title='STRUTS - Iterator Example'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-7643638363143611239</id><published>2009-03-04T05:35:00.003-08:00</published><updated>2012-01-15T20:51:38.216-08:00</updated><title type='text'>PL SQL</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-7643638363143611239?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/7643638363143611239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=7643638363143611239' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7643638363143611239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7643638363143611239'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/pl-sql.html' title='PL SQL'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-7195964859932243567</id><published>2009-03-04T05:35:00.001-08:00</published><updated>2012-01-15T20:51:38.216-08:00</updated><title type='text'>SQL</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-7195964859932243567?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/7195964859932243567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=7195964859932243567' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7195964859932243567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7195964859932243567'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/sql.html' title='SQL'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-3613981464303811198</id><published>2009-03-04T05:34:00.003-08:00</published><updated>2012-01-15T20:51:38.217-08:00</updated><title type='text'>EJB</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-3613981464303811198?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/3613981464303811198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=3613981464303811198' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/3613981464303811198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/3613981464303811198'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/ejb.html' title='EJB'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-2049712698526813810</id><published>2009-03-04T05:34:00.001-08:00</published><updated>2012-01-15T20:51:38.217-08:00</updated><title type='text'>Struts Dynaform example</title><content type='html'>JSP PAGE :&lt;br /&gt;=========&lt;br /&gt;&amp;lt%@ taglib uri="struts/bean-el" prefix="bean" %&amp;gt&lt;br /&gt;&amp;lt%@ taglib uri="struts/html-el" prefix="html" %&amp;gt&lt;br /&gt;&amp;lt%@ taglib uri="struts/logic-el" prefix="logic" %&amp;gt&lt;br /&gt;&amp;lt%@ taglib uri="jstl/c" prefix="c" %&amp;gt&lt;br /&gt;&amp;lthtml&amp;gt&lt;br /&gt;&amp;lthead&amp;gt&lt;br /&gt;&amp;ltlink href="&amp;lthtml:rewrite page="/rr.css" /&amp;gt" rel="stylesheet" type="text/css"&amp;gt&lt;br /&gt;&amp;lttitle&amp;gt&amp;ltbean:message key="title.employee.employeeform"/&amp;gt&amp;lt/title&amp;gt&lt;br /&gt;&amp;lt/head&amp;gt&lt;br /&gt;&amp;ltbody&amp;gt&lt;br /&gt; &lt;br /&gt;&amp;ltc:choose&amp;gt&lt;br /&gt;    &amp;ltc:when test="${employeeForm.map.methodToCall == 'insert'}"&amp;gt&lt;br /&gt;        &amp;lth1&amp;gt&amp;ltbean:message key="title.employee.insert"/&amp;gt&amp;lt/h1&amp;gt&lt;br /&gt;    &amp;lt/c:when&amp;gt&lt;br /&gt;    &amp;ltc:otherwise&amp;gt&lt;br /&gt;        &amp;lth1&amp;gt&amp;ltbean:message key="title.employee.update"/&amp;gt&amp;lt/h1&amp;gt   &lt;br /&gt;    &amp;lt/c:otherwise&amp;gt &lt;br /&gt;&amp;lt/c:choose&amp;gt&lt;br /&gt; &lt;br /&gt;&amp;ltlogic:messagesPresent&amp;gt&lt;br /&gt;    &amp;ltspan id="errorsHeader"&amp;gt&amp;ltbean:message key="errors.validation.header"/&amp;gt&amp;lt/span&amp;gt&lt;br /&gt;    &amp;lthtml:messages id="error"&amp;gt&lt;br /&gt;      &amp;ltli&amp;gt&amp;ltc:out value="${error}"/&amp;gt&amp;lt/li&amp;gt&lt;br /&gt;    &amp;lt/html:messages&amp;gt&lt;br /&gt;    &amp;lthr&amp;gt&lt;br /&gt;&amp;lt/logic:messagesPresent&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltlogic:messagesPresent message="true"&amp;gt&lt;br /&gt;       &amp;lthtml:messages id="message" message="true"&amp;gt&lt;br /&gt;         &amp;ltspan id="success"&amp;gt&amp;ltc:out value="${message}"/&amp;gt&amp;lt/span&amp;gt&amp;ltbr&amp;gt&lt;br /&gt;       &amp;lt/html:messages&amp;gt&lt;br /&gt;&amp;lt/logic:messagesPresent&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lthtml:form action="employeeAction" focus="name"&amp;gt&lt;br /&gt;&amp;lttable&amp;gt&lt;br /&gt;&amp;lttr&amp;gt&lt;br /&gt;    &amp;lttd &amp;gtName:&amp;lt/td&amp;gt&lt;br /&gt;    &amp;lttd&amp;gt&amp;lthtml:text property="name"/&amp;gt&amp;lt/td&amp;gt&lt;br /&gt;&amp;lt/tr&amp;gt&lt;br /&gt;&amp;lttr&amp;gt&lt;br /&gt;    &amp;lttd&amp;gtAge:&amp;lt/td&amp;gt&lt;br /&gt;    &amp;lttd&amp;gt&amp;lthtml:text property="age"/&amp;gt&amp;lt/td&amp;gt&lt;br /&gt;&amp;lt/tr&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lttr&amp;gt&lt;br /&gt;    &amp;lttd&amp;gtDepartment:&amp;lt/td&amp;gt&lt;br /&gt;    &amp;lttd&amp;gt&lt;br /&gt;     &amp;lthtml:select name="employeeForm" property="department"&amp;gt&lt;br /&gt;        &amp;lthtml:options collection="departments" property="id" labelProperty="description"/&amp;gt&lt;br /&gt;    &amp;lt/html:select&amp;gt&lt;br /&gt;    &amp;lt/td&amp;gt&lt;br /&gt;&amp;lt/tr&amp;gt&lt;br /&gt;&amp;lttr&amp;gt&lt;br /&gt;    &amp;lttd&amp;gtFavorite ice cream flavors:&amp;lt/td&amp;gt&lt;br /&gt;    &amp;lttd&amp;gt&lt;br /&gt;    &amp;ltc:forEach var="flavor" items="${flavors}"&amp;gt&lt;br /&gt;        &amp;lthtml:multibox name="employeeForm" property="flavorIDs"&amp;gt &lt;br /&gt;            &amp;ltc:out value="${flavor.flavorID}"/&amp;gt&lt;br /&gt;        &amp;lt/html:multibox&amp;gt&lt;br /&gt;        &amp;ltc:out value="${flavor.description}"/&amp;gt&lt;br /&gt;        &amp;nbsp;&amp;nbsp;&lt;br /&gt;    &amp;lt/c:forEach&amp;gt&lt;br /&gt;    &amp;lt/td&amp;gt&lt;br /&gt;&amp;lt/tr&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;lt/table&amp;gt&lt;br /&gt;&amp;lthtml:hidden name="employeeForm" property="methodToCall"/&amp;gt&lt;br /&gt;&lt;br /&gt;&amp;ltc:choose&amp;gt&lt;br /&gt;    &amp;ltc:when test="${employeeForm.map.methodToCall == 'insert'}"&amp;gt&lt;br /&gt;        &amp;lthtml:submit&amp;gt&amp;ltbean:message key="button.submit"/&amp;gt&amp;lt/html:submit&amp;gt&lt;br /&gt;    &amp;lt/c:when&amp;gt&lt;br /&gt;    &amp;ltc:otherwise&amp;gt&lt;br /&gt;        &amp;lthtml:submit&amp;gt&amp;ltbean:message key="button.update"/&amp;gt&amp;lt/html:submit&amp;gt    &lt;br /&gt;    &amp;lt/c:otherwise&amp;gt &lt;br /&gt;&amp;lt/c:choose&amp;gt&lt;br /&gt; &lt;br /&gt;&amp;lt/html:form&amp;gt&lt;br /&gt; &lt;br /&gt;&amp;lt/body&amp;gt&lt;br /&gt;&amp;lt/html&amp;gt&lt;br /&gt;&lt;br /&gt;ACTION CLASS (DISPATCH):&lt;br /&gt;=======================&lt;br /&gt;package com.validate.action;&lt;br /&gt;&lt;br /&gt;import org.apache.struts.action.*;&lt;br /&gt;import org.apache.struts.actions.DispatchAction;&lt;br /&gt;import org.apache.commons.beanutils.BeanUtils;&lt;br /&gt;&lt;br /&gt;import com.validate.databasebean.EmployeeDTO;&lt;br /&gt;import com.validate.handler.EmployeeService;&lt;br /&gt;&lt;br /&gt;import javax.servlet.http.HttpServletRequest;&lt;br /&gt;import javax.servlet.http.HttpServletResponse;&lt;br /&gt;  &lt;br /&gt;public final class EmployeeDispatchAction extends DispatchAction {&lt;br /&gt;&lt;br /&gt;    public ActionForward insert(ActionMapping mapping,&lt;br /&gt;                                 ActionForm form,&lt;br /&gt;                                 HttpServletRequest request,&lt;br /&gt;                                 HttpServletResponse response)&lt;br /&gt;        throws Exception {&lt;br /&gt;     System.out.println("DISPATCHER INSERT ");&lt;br /&gt;        EmployeeService service = new EmployeeService();&lt;br /&gt;        DynaActionForm employeeForm = (DynaActionForm)form;&lt;br /&gt;        EmployeeDTO employeeDTO = new EmployeeDTO();&lt;br /&gt;        BeanUtils.copyProperties( employeeDTO, employeeForm );&lt;br /&gt;        service.insertEmployee( employeeDTO );&lt;br /&gt;        ActionMessages messages = new ActionMessages();&lt;br /&gt;        ActionMessage message = new ActionMessage("message.employee.insert.success");&lt;br /&gt;        messages.add( ActionMessages.GLOBAL_MESSAGE, message );&lt;br /&gt;        saveMessages( request, messages );&lt;br /&gt;        employeeForm.set("methodToCall","update");&lt;br /&gt;        return (mapping.findForward("insertSuccess"));&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    public ActionForward update(ActionMapping mapping,&lt;br /&gt;                                 ActionForm form,&lt;br /&gt;                                 HttpServletRequest request,&lt;br /&gt;                                 HttpServletResponse response)&lt;br /&gt;        throws Exception {&lt;br /&gt;     System.out.println("DISPATCHER Update");&lt;br /&gt;        EmployeeService service = new EmployeeService();&lt;br /&gt;        DynaActionForm employeeForm = (DynaActionForm)form;&lt;br /&gt;        EmployeeDTO employeeDTO = new EmployeeDTO();&lt;br /&gt;        BeanUtils.copyProperties( employeeDTO, employeeForm );&lt;br /&gt;        service.updateEmployee( employeeDTO );&lt;br /&gt;        ActionMessages messages = new ActionMessages();&lt;br /&gt;        ActionMessage message = new ActionMessage("message.employee.update.success");&lt;br /&gt;        messages.add( ActionMessages.GLOBAL_MESSAGE, message );&lt;br /&gt;        saveMessages( request, messages );&lt;br /&gt;        return (mapping.findForward("updateSuccess"));&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;=======================================================================&lt;br /&gt;package com.validate.databasebean;&lt;br /&gt;public class EmployeeDTO {&lt;br /&gt;    private String name;&lt;br /&gt;    private int age;&lt;br /&gt;    private int department;&lt;br /&gt;    private String[] flavorIDs; &lt;br /&gt;&lt;br /&gt;    public void setName(String name) {&lt;br /&gt;        this.name = name;&lt;br /&gt;    }&lt;br /&gt;    public void setAge(int age) {&lt;br /&gt;        this.age = age;&lt;br /&gt;    }&lt;br /&gt;    public void setDepartment(int department) {&lt;br /&gt;        this.department = department;&lt;br /&gt;    }&lt;br /&gt;    public void setFlavorIDs(String[] flavorIDs) {&lt;br /&gt;        this.flavorIDs = flavorIDs;&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    public String getName() {&lt;br /&gt;        return name;&lt;br /&gt;    }&lt;br /&gt;    public int getAge() {&lt;br /&gt;        return age;&lt;br /&gt;    }&lt;br /&gt;    public int getDepartment() {&lt;br /&gt;        return department;&lt;br /&gt;    }&lt;br /&gt;    public String[] getFlavorIDs() {&lt;br /&gt;        return flavorIDs;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;======================================================&lt;br /&gt;&lt;br /&gt;package com.validate.handler;&lt;br /&gt;&lt;br /&gt;import java.util.ArrayList;&lt;br /&gt;import java.util.Collection;&lt;br /&gt;&lt;br /&gt;import com.validate.databasebean.DepartmentBean;&lt;br /&gt;import com.validate.databasebean.EmployeeDTO;&lt;br /&gt;import com.validate.databasebean.FlavorBean;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class EmployeeService {&lt;br /&gt;    public EmployeeDTO insertEmployee( EmployeeDTO employee ) {&lt;br /&gt;        //in real life call other business classes to do insert&lt;br /&gt;        //ie: &lt;br /&gt;        //EmployeeDAO.insertEmployee( employee );&lt;br /&gt;     System.out.println("INSERT");&lt;br /&gt;        return employee;&lt;br /&gt;    }&lt;br /&gt;    public EmployeeDTO updateEmployee( EmployeeDTO employee ) {&lt;br /&gt;        //in real life call other business classes to do insert&lt;br /&gt;        //ie: &lt;br /&gt;        //EmployeeDAO.insertEmployee( employee );&lt;br /&gt;     System.out.println("UPDATE");&lt;br /&gt;        return employee;&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    &lt;br /&gt;}&lt;br /&gt;====================================================&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-2049712698526813810?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/2049712698526813810/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=2049712698526813810' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/2049712698526813810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/2049712698526813810'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/struts.html' title='Struts Dynaform example'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-8948395554794722062</id><published>2009-03-04T05:33:00.002-08:00</published><updated>2012-01-15T20:51:38.217-08:00</updated><title type='text'>Hibernate Example</title><content type='html'>CREATE TABLE /*!32312 IF NOT EXISTS*/ `employee` (&lt;br /&gt;  `id` int(10) unsigned default NULL,&lt;br /&gt;  `empname` varchar(50) default NULL,&lt;br /&gt;  `date_of_joining` date default NULL&lt;br /&gt;) ENGINE=InnoDB DEFAULT CHARSET=latin1;&lt;br /&gt;===================&lt;br /&gt;&lt;br /&gt;hibernate.cfg.xml&lt;br /&gt;===================&lt;br /&gt;&amp;lt?xml version="1.0" encoding="UTF-8"?&gt;&lt;br /&gt;&lt;!DOCTYPE hibernate-configuration PUBLIC&lt;br /&gt;		"-//Hibernate/Hibernate Configuration DTD 3.0//EN"&lt;br /&gt;		"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&amp;gt&lt;br /&gt;&amp;lthibernate-configuration&amp;gt&lt;br /&gt;    &amp;ltsession-factory name="myfactory"&amp;gt&lt;br /&gt;        &amp;ltproperty name="hibernate.connection.driver_class"&amp;gtcom.mysql.jdbc.Driver&amp;lt/property&amp;gt&lt;br /&gt;        &amp;ltproperty name="hibernate.connection.url"&amp;gtjdbc:mysql://localhost/csr&amp;lt/property&amp;gt&lt;br /&gt;        &amp;ltproperty name="hibernate.connection.username"&amp;gtroot&amp;lt/property&amp;gt&lt;br /&gt;        &amp;ltproperty name="hibernate.connection.password"&amp;gtadmin&amp;lt/property&amp;gt&lt;br /&gt;        &amp;ltproperty name="hibernate.dialect"&amp;gtorg.hibernate.dialect.MySQL5Dialect&amp;lt/property&amp;gt&lt;br /&gt;        &amp;ltproperty name="hibernate.show_sql"&amp;gttrue&amp;lt/property&amp;gt&lt;br /&gt;        &amp;ltproperty name="hbm2ddl.auto"&amp;gtupdate&amp;lt/property&amp;gt&lt;br /&gt;           &amp;ltmapping resource="com/csr/bean/Employee.hbm.xml"/&amp;gt &lt;br /&gt;    &amp;lt/session-factory&amp;gt    &lt;br /&gt;&amp;lt/hibernate-configuration&amp;gt&lt;br /&gt;============================&lt;br /&gt;Employee.hbm.xml&lt;br /&gt;============================&lt;br /&gt;&amp;lt?xml version="1.0"?&amp;gt&lt;br /&gt;&amp;lt!DOCTYPE hibernate-mapping PUBLIC&lt;br /&gt;	"-//Hibernate/Hibernate Mapping DTD 3.0//EN"&lt;br /&gt;	"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"&amp;gt&lt;br /&gt;&amp;lthibernate-mapping package="com.csr.bean"&amp;gt&lt;br /&gt;&amp;ltclass name="Employee" &amp;gt&lt;br /&gt;	&amp;ltid name="id" column="id" type="integer"&amp;gt&lt;br /&gt;	&amp;ltgenerator class="increment"&amp;gt&amp;lt/generator&amp;gt&lt;br /&gt;	&amp;lt/id&amp;gt&lt;br /&gt;	&amp;ltproperty name="empname" column="employeename" type="string"/&amp;gt&lt;br /&gt;  	&amp;ltproperty name="DOJ" column="date_of_joining" type="date"/&amp;gt&lt;br /&gt;&amp;lt/class&amp;gt&lt;br /&gt;&amp;lt/hibernate-mapping&amp;gt&lt;br /&gt;&lt;br /&gt;=============&lt;br /&gt;package com.csr.bean;&lt;br /&gt;&lt;br /&gt;import java.util.Date;&lt;br /&gt;&lt;br /&gt;public class Employee {&lt;br /&gt; private int id;&lt;br /&gt; private String empname;&lt;br /&gt; private Date DOJ;&lt;br /&gt; public Date getDOJ() {&lt;br /&gt;  return DOJ;&lt;br /&gt; }&lt;br /&gt; public void setDOJ(Date doj) {&lt;br /&gt;  DOJ = doj;&lt;br /&gt; }&lt;br /&gt; public String getEmpname() {&lt;br /&gt;  return empname;&lt;br /&gt; }&lt;br /&gt; public void setEmpname(String empname) {&lt;br /&gt;  this.empname = empname;&lt;br /&gt; }&lt;br /&gt; public int getId() {&lt;br /&gt;  return id;&lt;br /&gt; }&lt;br /&gt; public void setId(int id) {&lt;br /&gt;  this.id = id;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;===============&lt;br /&gt;&amp;lt%&lt;br /&gt;  SessionFactory factory=null;&lt;br /&gt;  Session ses=null;&lt;br /&gt;  Transaction trans=null;&lt;br /&gt;  try&lt;br /&gt;  {&lt;br /&gt;                String bookname = request.getParameter("bookname");&lt;br /&gt;  factory=new Configuration().configure().buildSessionFactory();&lt;br /&gt;  ses=factory.openSession();&lt;br /&gt;  trans=ses.beginTransaction();&lt;br /&gt;  Book book = new Book();&lt;br /&gt;                book.setLngBookId(4);&lt;br /&gt;                book.setStrBookName(bookname);&lt;br /&gt;                //ses.update(book);&lt;br /&gt;                ses.delete(book);&lt;br /&gt;                trans.commit();&lt;br /&gt;                ses.flush();&lt;br /&gt;                ses.close();                &lt;br /&gt;                System.out.println("Book object persisted to the database.");&lt;br /&gt;                }&lt;br /&gt;  catch(Exception e)&lt;br /&gt;  {&lt;br /&gt;   out.println("error "+e.getMessage());   &lt;br /&gt;  }  &lt;br /&gt;%&amp;gt&lt;br /&gt;&lt;br /&gt;========================================&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-8948395554794722062?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/8948395554794722062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=8948395554794722062' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/8948395554794722062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/8948395554794722062'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/hibernate.html' title='Hibernate Example'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-5353992373928438181</id><published>2009-03-04T05:33:00.001-08:00</published><updated>2012-01-15T20:51:38.217-08:00</updated><title type='text'>ITIL</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-5353992373928438181?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/5353992373928438181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=5353992373928438181' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5353992373928438181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5353992373928438181'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/itil.html' title='ITIL'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-8087520363564979948</id><published>2009-03-02T23:21:00.000-08:00</published><updated>2012-01-15T20:51:38.218-08:00</updated><title type='text'>FUTURE PLAN</title><content type='html'>Do PHD in Computer Science&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-8087520363564979948?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/8087520363564979948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=8087520363564979948' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/8087520363564979948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/8087520363564979948'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/03/future-plan.html' title='FUTURE PLAN'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-6581757589039840863</id><published>2009-02-03T02:52:00.000-08:00</published><updated>2012-01-15T20:51:38.218-08:00</updated><title type='text'>English Grammer</title><content type='html'>Reference : http://esl.about.com/library/grammar/blgr_adverbclauses_time.htm&lt;br /&gt;&lt;br /&gt;When :&lt;br /&gt;Sherly was sleeping when I arrived.&lt;br /&gt;&lt;br /&gt;Before :&lt;br /&gt;We will coding before he arrives.&lt;br /&gt;&lt;br /&gt;After :&lt;br /&gt;While, as&lt;br /&gt;By the time&lt;br /&gt;Until, till&lt;br /&gt;Since&lt;br /&gt;As soon as&lt;br /&gt;Whenever, every time&lt;br /&gt;The first, second, third, fourth etc., next, last time&lt;br /&gt;&lt;br /&gt;'IF' SENTENCES AND THE 'UNREAL' FUTURE&lt;br /&gt;&lt;br /&gt;Will it be the same situation if the company pays for the shift in the future&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-6581757589039840863?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/6581757589039840863/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=6581757589039840863' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6581757589039840863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6581757589039840863'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/02/english-grammer.html' title='English Grammer'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-1929690260271897815</id><published>2009-01-22T03:32:00.000-08:00</published><updated>2012-01-15T20:51:38.218-08:00</updated><title type='text'>Website Free templates</title><content type='html'>1.where Can i Find best Website Free templates?&lt;br /&gt;www.freewebsitetemplates.com&lt;br /&gt;&lt;br /&gt;PHP-EXT :&lt;br /&gt;2.http://php-ext.quimera-solutions.com/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-1929690260271897815?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/1929690260271897815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=1929690260271897815' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/1929690260271897815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/1929690260271897815'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/01/website-free-templates.html' title='Website Free templates'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-5876805251087489703</id><published>2009-01-14T03:40:00.001-08:00</published><updated>2012-01-15T20:51:38.218-08:00</updated><title type='text'>UML Design  Question</title><content type='html'>1.Define subsystem?&lt;br /&gt;&lt;br /&gt;Classes that collaborate among themselves to accomplish a set of cohesive (consistent) responsibilities are referred to as subsystem or packages.&lt;br /&gt;&lt;br /&gt;2.What are the two types of dependency that can be used from a subsystem?&lt;br /&gt;3.which task is performed during use-case realization refinement? &lt;br /&gt;4.Define design subsystems? &lt;br /&gt;5.Which process document describes design mechanisms, any mappings between design &lt;br /&gt;mechanisms, and the details regarding their use? &lt;br /&gt;6.Which process document describes design mechanisms, any mappings between design &lt;br /&gt;mechanisms, and the details regarding their use?&lt;br /&gt;7.In the state of a state machine, a behavior can be defined &lt;br /&gt;A. before reaching a state &lt;br /&gt;B. upon reaching a state &lt;br /&gt;C. upon leaving a state &lt;br /&gt;D. inside a state &lt;br /&gt;Answer: B, C, D &lt;br /&gt;8.What is a gate? &lt;br /&gt;9.When identifying design elements, a simple analysis class will map to a(n)______ &lt;br /&gt;10.In which OOAD activity is the distribution mechanism identified? &lt;br /&gt;14.What is the relationship between operation and method? &lt;br /&gt;15.Why would you use subsystem interfaces rather than subsystem instances on sequence diagrams? &lt;br /&gt;16.Which is an input artifact to the Identify Design Elements activity? &lt;br /&gt;17.What is an important consideration when allocating processes to nodes? &lt;br /&gt;18.Which type of mechanism is a connector on a deployment diagram? &lt;br /&gt;19.Define Desing mechanism&lt;br /&gt;20.How to identify Design Elements ?&lt;br /&gt;21.Additional subsystems can be discovered during Use Case Design by noting- Define&lt;br /&gt;22.Which activities are performed during Use Case Design? &lt;br /&gt;23.On a sequence diagram, what is used to represent a specific subsystem? &lt;br /&gt;24.Which UML elements are used to describe the physical architecture of a system? &lt;br /&gt;25.Which artifact is used to describe use-case realizations? &lt;br /&gt;26.What defines a subsystems responsibilities? &lt;br /&gt;27.Which is a design mechanism? &lt;br /&gt;28.To begin identifying design mechanisms, you start by categorizing analysis mechanisms. &lt;br /&gt;&lt;br /&gt;What are three steps in the process of Categorizing Analysis Mechanisms? &lt;br /&gt;29.In Subsystem Design, what happens in the step, Distribute Subsystem Responsibilities? &lt;br /&gt;30.Which entity has a well-defined boundary and identity that encapsulates state and &lt;br /&gt;&lt;br /&gt;behavior? &lt;br /&gt;31.What is the purpose of the Identify Design Mechanisms activity? &lt;br /&gt;32.In a dependency, through what reference does the client class gain visibility to the &lt;br /&gt;&lt;br /&gt;supplier? &lt;br /&gt;33.In which Analysis and Design activity are subsystems mapped to analysis classes? &lt;br /&gt;34.Which design element is used to represent a concurrent object? &lt;br /&gt;35.The Describe Distribution activity is where the processes defined in the Describe the Run-&lt;br /&gt;&lt;br /&gt;time &lt;br /&gt;Architecture activity are allocated to ______ &lt;br /&gt;36.During Subsystem Design, how many interaction diagrams (sequence or communication) &lt;br /&gt;&lt;br /&gt;should be created?&lt;br /&gt;37.A directed graph of nodes connected by transitions is a _____ diagram.&lt;br /&gt;39.Use Case Design is part of which workflow detail? &lt;br /&gt;40.When does an analysis class map directly to a design class? &lt;br /&gt;41.What is a design subsystems primary purpose? &lt;br /&gt;42.What is the purpose of subsystem design? &lt;br /&gt;44.Defining the network configuration is the ______ step of the Describe the Distribution &lt;br /&gt;&lt;br /&gt;activity. &lt;br /&gt;46.Which statement is true about packages and subsystems? &lt;br /&gt;47.How many physical nodes should be identified in order to perform the Describe Distribution &lt;br /&gt;&lt;br /&gt;activity? &lt;br /&gt;48.Supplemental sequence diagram documentation, in the form of notes and scripts, is &lt;br /&gt;&lt;br /&gt;commonly &lt;br /&gt;used for ______. (Choose three.)&lt;br /&gt;49 What is used to describe the process of applying a distribution mechanism during &lt;br /&gt;implementation? &lt;br /&gt;What does an underlined attribute indicate? &lt;br /&gt;51.What does an underlined attribute indicate?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-5876805251087489703?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/5876805251087489703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=5876805251087489703' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5876805251087489703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5876805251087489703'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/01/uml-design-question.html' title='UML Design  Question'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-9113258550424829233</id><published>2009-01-14T03:34:00.000-08:00</published><updated>2012-01-15T20:51:38.219-08:00</updated><title type='text'>UML ANALYSIS - Question</title><content type='html'>1.What is UML and What is current Version?&lt;br /&gt;&lt;br /&gt;UML is language and notation system used to specify, construct, visualise and document models of a software system.&lt;br /&gt;&lt;br /&gt;2.What is the difference 1.0 and 2.0?&lt;br /&gt;&lt;br /&gt;2a.what is association? &lt;br /&gt;An association is a structural relationship that describes &lt;strong&gt;a set of links&lt;/strong&gt;; a link is a connection among objects.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3.What are the types of Structural classes?&lt;br /&gt;&lt;br /&gt;Boundary class,Control class and Entity Class&lt;br /&gt;&lt;br /&gt;Boundary class: &lt;br /&gt;&lt;br /&gt;This is the first type of an analysis class. In a system consisting of a boundary class, the users interact with the system through the boundary classes. &lt;br /&gt;&lt;br /&gt;Control class: &lt;br /&gt;&lt;br /&gt;This is the second type of an analysis class. A control class typically does not perform any business functions, but only redirects to the appropriate business function class depending on the function requested by the boundary class or the user. &lt;br /&gt;&lt;br /&gt;Entity class: &lt;br /&gt;&lt;br /&gt;This is the third type of an analysis class. An entity class consists of all the business logic and interactions with databases.&lt;br /&gt;&lt;br /&gt;4.What is the difference between Traditional Class &amp; Structural class?&lt;br /&gt;&lt;br /&gt;Traditional Class  plays multiple roles that vary on the objects that interact with it.&lt;br /&gt;&lt;br /&gt;5.Why iterative development process is important?&lt;br /&gt;&lt;br /&gt;5.Define Interface.&lt;br /&gt;An interface is a group of related methods with empty bodies.&lt;br /&gt;&lt;br /&gt;Interface used to interact with object and This can be achived by Implementing in interface in java.&lt;br /&gt;&lt;br /&gt;6.What is the focus of analysis?&lt;br /&gt;7.Why is encapsulation important?&lt;br /&gt;10.Which is most important in Analysis Model for a system?.&lt;br /&gt;12.In a sequence diagram, each interaction on the diagram maps to the transition on a state diagram &lt;br /&gt;13.Explain Mutiplicity&lt;br /&gt;14.What are two important considerations when diagramming state?&lt;br /&gt;15.wht is Circular depnedency&lt;br /&gt;16.What is the purpose of Architectural Analysis?&lt;br /&gt;17.How Ports are defined?&lt;br /&gt;18.Define Attribute : They change value from object to object of the same class. &lt;br /&gt;19.What are the purposes of Analysis and Design&lt;br /&gt;20.Objects that are polymorphic may have the same operation names but the operations &lt;br /&gt;perform differently &lt;br /&gt;21. Waht is nesting structured classes? &lt;br /&gt;22 .During Architectural Analysis, a Software Architect wants to reduce the complexity of the &lt;br /&gt;&lt;br /&gt;system at work and improve its consistency. What should the Software Architect define to &lt;br /&gt;&lt;br /&gt;accomplish this? &lt;br /&gt;A. coding rules &lt;br /&gt;B. use-case realizations &lt;br /&gt;C. analysis mechanisms &lt;br /&gt;D. design mechanisms &lt;br /&gt;Answer: C&lt;br /&gt;23. &lt;br /&gt;24.Analysis classes evolve into ______?&lt;br /&gt;25.What happens when a superclass is changed? &lt;br /&gt;26.waht is use Case realization?&lt;br /&gt;27.Which state does NOT contain another state? &lt;br /&gt;28.How we need to group element into packages&lt;br /&gt;29.What are three architectural mechanism categories? &lt;br /&gt;30.In a sequence diagram, what can be defined by the interactions between participants in &lt;br /&gt;&lt;br /&gt;the interactions? &lt;br /&gt;31.Which view focuses on the physical realization of the system?&lt;br /&gt;32.Define an active object? &lt;br /&gt;33.During Use Case Analysis, what is generally allocated to control classes?&lt;br /&gt;QUESTION 34 &lt;br /&gt;What are three sources for Key Abstractions identification? (Choose three.) &lt;br /&gt;A. domain knowledge &lt;br /&gt;B. requirements &lt;br /&gt;C. design classes &lt;br /&gt;D. glossary &lt;br /&gt;Answer: A, B, D &lt;br /&gt;35.What is object in UML and how it is defined&lt;br /&gt;36.During Use Case Analysis, an attribute should be used instead of a class when the &lt;br /&gt;&lt;br /&gt;information &lt;br /&gt;37.Which view is NOT part of the RUP 4+1 View Model?&lt;br /&gt;38.What are two functions of visual modeling? (Choose two.)&lt;br /&gt;39.During Use Case Analysis, why are analysis mechanisms used? &lt;br /&gt;40.Define Pattern&lt;br /&gt;41.During Use Case Analysis, why is it sometimes necessary to supplement the use-case &lt;br /&gt;&lt;br /&gt;description? &lt;br /&gt;42.In Use Case Analysis, what is the purpose of the Unify Analysis Classes step? &lt;br /&gt;43 . Which three processes are best suited for UML? (Choose three.) &lt;br /&gt;A. use-case driven &lt;br /&gt;B. waterfall development-based &lt;br /&gt;C. iterative and incremental &lt;br /&gt;D. architecture-centric &lt;br /&gt;E. requirements-centric &lt;br /&gt;Answer: A, C, D &lt;br /&gt;&lt;br /&gt;QUESTION 44 &lt;br /&gt;Architectural layers are commonly modeled in UML using a _____ &lt;br /&gt;A. package stereotyped &lt;&lt;Layer&gt;&gt; &lt;br /&gt;B. subsystem stereotyped &lt;&lt;Layer&gt;&gt; &lt;br /&gt;C. composite class stereotyped &lt;&lt;Layer&gt;&gt; &lt;br /&gt;D. class diagram entitled Layer &lt;br /&gt;Answer: A &lt;br /&gt;QUESTION 45&lt;br /&gt;In a state diagram, a state has two transitions. One of the transitions is an internal transition &lt;br /&gt;&lt;br /&gt;and the other is an external transition. Which state(s) can perform an exit action? &lt;br /&gt;46.Define Use case Driven Process&lt;br /&gt;47.Which is the primary function of entity classes?&lt;br /&gt;48.Which is a UML general-purpose mechanism for organizing elements into groups? &lt;br /&gt;49.During Use Case Analysis, how many interaction diagrams (sequence or communication) &lt;br /&gt;&lt;br /&gt;should be drawn for each use-case? &lt;br /&gt;50.In Use Case Analysis, what is the flinction of boundary classes?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-9113258550424829233?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/9113258550424829233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=9113258550424829233' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/9113258550424829233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/9113258550424829233'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/01/uml-analysis-question.html' title='UML ANALYSIS - Question'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-4460181486212382157</id><published>2009-01-13T05:05:00.001-08:00</published><updated>2012-01-15T20:51:38.219-08:00</updated><title type='text'>To do</title><content type='html'>Find the string position wihihc needs to be extracted&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-4460181486212382157?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/4460181486212382157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=4460181486212382157' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/4460181486212382157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/4460181486212382157'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/01/to-do.html' title='To do'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-5320723027017524699</id><published>2009-01-13T00:20:00.000-08:00</published><updated>2012-01-15T20:51:38.219-08:00</updated><title type='text'>இங்கிலீஷ் தமிழ்</title><content type='html'>Grammer&lt;br /&gt;அவன் இருந்தால்  அவனிடம்  கொடுப்பேன்&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-5320723027017524699?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/5320723027017524699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=5320723027017524699' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5320723027017524699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5320723027017524699'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/01/blog-post.html' title='இங்கிலீஷ் தமிழ்'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-7956718851807081639</id><published>2009-01-12T02:54:00.000-08:00</published><updated>2012-01-15T20:51:38.219-08:00</updated><title type='text'>Code Gen from DDL</title><content type='html'>Convert the below DDL to Java/PHP Code &lt;br /&gt;/**&lt;br /&gt;** atm.sql&lt;br /&gt;** $Revision: 1.1 $&lt;br /&gt;** $Log: atm.sql,v $&lt;br /&gt;** Revision 1.1  2004/08/23 20:22:55  vz86k2&lt;br /&gt;** check in&lt;br /&gt;**&lt;br /&gt;**/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;** ATM_VENDOR Table&lt;br /&gt;**/&lt;br /&gt;&lt;br /&gt;DROP TABLE ATM_VENDOR CASCADE CONSTRAINTS;&lt;br /&gt;&lt;br /&gt;CREATE TABLE ATM_VENDOR (&lt;br /&gt;       VENDOR_ID          NUMBER(10) NOT NULL,&lt;br /&gt;       NAME               VARCHAR2(50) NOT NULL&lt;br /&gt;);&lt;br /&gt;ALTER TABLE ATM_VENDOR&lt;br /&gt;       ADD  ( PRIMARY KEY (VENDOR_ID) );&lt;br /&gt;&lt;br /&gt;DROP SEQUENCE ATM_VENDOR_SEQUENCE;&lt;br /&gt;CREATE SEQUENCE ATM_VENDOR_SEQUENCE START WITH 100;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;** ATM_USER Table&lt;br /&gt;**/&lt;br /&gt;&lt;br /&gt;DROP TABLE ATM_USER CASCADE CONSTRAINTS;&lt;br /&gt;&lt;br /&gt;CREATE TABLE ATM_USER (&lt;br /&gt;       USER_ID            NUMBER(10) NOT NULL,&lt;br /&gt;       NETID              VARCHAR2(8) NOT NULL&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_USER&lt;br /&gt;       ADD  ( PRIMARY KEY (USER_ID) );&lt;br /&gt;&lt;br /&gt;DROP SEQUENCE ATM_USER_SEQUENCE;&lt;br /&gt;CREATE SEQUENCE ATM_USER_SEQUENCE START WITH 100;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;** ATM_USER_ROLE Table&lt;br /&gt;**/&lt;br /&gt;&lt;br /&gt;DROP TABLE ATM_USER_ROLE CASCADE CONSTRAINTS;&lt;br /&gt;&lt;br /&gt;CREATE TABLE ATM_USER_ROLE (&lt;br /&gt;       ROLE_ID            NUMBER(10) NOT NULL,&lt;br /&gt;       ROLE               VARCHAR2(30) NOT NULL&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_USER_ROLE&lt;br /&gt;       ADD  ( PRIMARY KEY (ROLE_ID) );&lt;br /&gt;&lt;br /&gt;DROP SEQUENCE ATM_USER_ROLE_SEQUENCE;&lt;br /&gt;CREATE SEQUENCE ATM_USER_ROLE_SEQUENCE START WITH 100;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;** ATM_USER_ROLE_TO_USER Table&lt;br /&gt;**/&lt;br /&gt;&lt;br /&gt;DROP TABLE ATM_USER_ROLE_TO_USER CASCADE CONSTRAINTS;&lt;br /&gt;&lt;br /&gt;CREATE TABLE ATM_USER_ROLE_TO_USER (&lt;br /&gt;       ROLE_ID            NUMBER(10) NOT NULL,&lt;br /&gt;       USER_ID            NUMBER(10) NOT NULL&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_USER_ROLE_TO_USER&lt;br /&gt;       ADD  ( PRIMARY KEY (ROLE_ID, USER_ID) );&lt;br /&gt;&lt;br /&gt;CREATE INDEX ATM_USER_ROLE_TO_USER_INDEX ON ATM_USER_ROLE_TO_USER&lt;br /&gt;(&lt;br /&gt;       USER_ID                    ASC&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_USER_ROLE_TO_USER&lt;br /&gt;       ADD  ( FOREIGN KEY (USER_ID)&lt;br /&gt;                             REFERENCES ATM_USER );&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_USER_ROLE_TO_USER&lt;br /&gt;       ADD  ( FOREIGN KEY (ROLE_ID)&lt;br /&gt;                             REFERENCES ATM_USER_ROLE );&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;** ATM_CODE Table&lt;br /&gt;**/&lt;br /&gt;&lt;br /&gt;DROP TABLE ATM_CODE CASCADE CONSTRAINTS;&lt;br /&gt;&lt;br /&gt;CREATE TABLE ATM_CODE (&lt;br /&gt;       CODE_ID            NUMBER(10) NOT NULL,&lt;br /&gt;       CODE_GROUP         VARCHAR2(50) NOT NULL,&lt;br /&gt;       VALUE              VARCHAR2(100) NOT NULL&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_CODE&lt;br /&gt;       ADD  ( PRIMARY KEY (CODE_ID) );&lt;br /&gt;&lt;br /&gt;DROP SEQUENCE ATM_CODE_SEQUENCE;&lt;br /&gt;CREATE SEQUENCE ATM_CODE_SEQUENCE START WITH 100;&lt;br /&gt;&lt;br /&gt;CREATE INDEX ATM_CODE_INDEX_2 ON ATM_CODE&lt;br /&gt;(&lt;br /&gt;       CODE_GROUP                    ASC&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;** ATM_PRODUCT Table&lt;br /&gt;**/&lt;br /&gt;&lt;br /&gt;DROP TABLE ATM_PRODUCT CASCADE CONSTRAINTS;&lt;br /&gt;&lt;br /&gt;CREATE TABLE ATM_PRODUCT (&lt;br /&gt;       PRODUCT_ID            NUMBER(10) NOT NULL,&lt;br /&gt;       VENDOR_ID             NUMBER(10) NOT NULL,&lt;br /&gt;       NAME                  VARCHAR2(100) NOT NULL,&lt;br /&gt;       DESCRIPTION           VARCHAR2(255) NOT NULL,&lt;br /&gt;       CATEGORY_CD_ID        NUMBER(10) NOT NULL,&lt;br /&gt;       ACQUISITION_METHOD    VARCHAR2(255) NOT NULL,&lt;br /&gt;       LICENSE_PRICE         DECIMAL(12,2) NOT NULL,&lt;br /&gt;       MAINTENANCE_COST      DECIMAL(12,2) NOT NULL,&lt;br /&gt;       EXT_MAINTENANCE_COST  DECIMAL(12,2) NOT NULL,&lt;br /&gt;       LICENSE_TYPE_CD_ID    NUMBER(10) NOT NULL,&lt;br /&gt;       LICENSE_QUANTITY      NUMBER(10) NOT NULL,&lt;br /&gt;       TOTAL_COST            DECIMAL(10,2) NOT NULL,&lt;br /&gt;       LICENSE_OWNER_CD_ID   NUMBER(10) NOT NULL,&lt;br /&gt;       LICENSE_RENEWED_CD_ID NUMBER(10) NOT NULL,&lt;br /&gt;       LICENSE_RENEWED_BY_DT DATE NOT NULL,&lt;br /&gt;       TOOL_STATUS_CD_ID     NUMBER(10) NOT NULL,&lt;br /&gt;       PRODUCT_COMMENT       VARCHAR(512) NOT NULL&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_PRODUCT&lt;br /&gt;       ADD  ( PRIMARY KEY (PRODUCT_ID) );&lt;br /&gt;&lt;br /&gt;DROP SEQUENCE ATM_PRODUCT_SEQUENCE;&lt;br /&gt;CREATE SEQUENCE ATM_PRODUCT_SEQUENCE START WITH 100;&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_PRODUCT&lt;br /&gt;       ADD  ( FOREIGN KEY (VENDOR_ID)&lt;br /&gt;                             REFERENCES ATM_VENDOR );&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_PRODUCT&lt;br /&gt;       ADD  ( FOREIGN KEY (CATEGORY_CD_ID)&lt;br /&gt;                             REFERENCES ATM_CODE );&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_PRODUCT&lt;br /&gt;       ADD  ( FOREIGN KEY (LICENSE_TYPE_CD_ID)&lt;br /&gt;                             REFERENCES ATM_CODE );&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_PRODUCT&lt;br /&gt;       ADD  ( FOREIGN KEY (LICENSE_OWNER_CD_ID)&lt;br /&gt;                             REFERENCES ATM_CODE );&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_PRODUCT&lt;br /&gt;       ADD  ( FOREIGN KEY (LICENSE_RENEWED_CD_ID)&lt;br /&gt;                             REFERENCES ATM_CODE );&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_PRODUCT&lt;br /&gt;       ADD  ( FOREIGN KEY (TOOL_STATUS_CD_ID)&lt;br /&gt;                             REFERENCES ATM_CODE );&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;** ATM_PROJECT Table&lt;br /&gt;**/&lt;br /&gt;&lt;br /&gt;DROP TABLE ATM_PROJECT CASCADE CONSTRAINTS;&lt;br /&gt;&lt;br /&gt;CREATE TABLE ATM_PROJECT (&lt;br /&gt;       PROJECT_ID            NUMBER(10) NOT NULL,&lt;br /&gt;       NAME                  VARCHAR2(50) NOT NULL&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_PROJECT&lt;br /&gt;       ADD  ( PRIMARY KEY (PROJECT_ID) );&lt;br /&gt;&lt;br /&gt;DROP SEQUENCE ATM_PROJECT_SEQUENCE;&lt;br /&gt;CREATE SEQUENCE ATM_PROJECT_SEQUENCE START WITH 100;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;** ATM_PRODUCT_TO_PROJECT Table&lt;br /&gt;**/&lt;br /&gt;&lt;br /&gt;DROP TABLE ATM_PRODUCT_TO_PROJECT CASCADE CONSTRAINTS;&lt;br /&gt;&lt;br /&gt;CREATE TABLE ATM_PRODUCT_TO_PROJECT (&lt;br /&gt;       PRODUCT_ID            NUMBER(10) NOT NULL,&lt;br /&gt;       PROJECT_ID            NUMBER(10) NOT NULL&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_PRODUCT_TO_PROJECT&lt;br /&gt;       ADD  ( PRIMARY KEY (PRODUCT_ID, PROJECT_ID) );&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_PRODUCT_TO_PROJECT&lt;br /&gt;       ADD  ( FOREIGN KEY (PRODUCT_ID)&lt;br /&gt;                             REFERENCES ATM_PRODUCT );&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ALTER TABLE ATM_PRODUCT_TO_PROJECT&lt;br /&gt;       ADD  ( FOREIGN KEY (PROJECT_ID)&lt;br /&gt;                             REFERENCES ATM_PROJECT );&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-7956718851807081639?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/7956718851807081639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=7956718851807081639' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7956718851807081639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/7956718851807081639'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/01/code-gen-from-ddl_12.html' title='Code Gen from DDL'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-6289580572569316676</id><published>2009-01-12T01:58:00.000-08:00</published><updated>2012-01-15T20:51:38.220-08:00</updated><title type='text'>English Learn a new Word</title><content type='html'>1)Indulge - Spoil  (21/12/2009)&lt;br /&gt;&lt;br /&gt;2)Pledge  - Promise (21/12/2009)&lt;br /&gt;I Pledge  to live by company values &lt;br /&gt;&lt;br /&gt;3)relentless  - persistent (21/12/2009)&lt;br /&gt;Example : Behind the contract there is and relentless team.&lt;br /&gt;&lt;br /&gt;4.)Snap - Break (21/12/2009)&lt;br /&gt;Example : Vaiko dont want to Snap AIADMK relation&lt;br /&gt;&lt;br /&gt;29/12/2009&lt;br /&gt;===========&lt;br /&gt;5) Vain : Unproductive of success. &lt;br /&gt;Jeyasurya's 100 in first Test went vain.&lt;br /&gt;&lt;br /&gt;6) Speculation - Guess&lt;br /&gt;&lt;br /&gt;7) Conviction - strong beleive &lt;br /&gt;(An unshakable belief in something without need for proof or evidence)&lt;br /&gt;&lt;br /&gt;Sentense : no Speculation pure Conviction (a stement by CIBIL)&lt;br /&gt;&lt;br /&gt;8)Refrain - avoid doing (30/12/2009)&lt;br /&gt;Example : I am going to refrain from falling into that trap.&lt;br /&gt;&lt;br /&gt;9)Scary- frightening- fearsome&lt;br /&gt;Example - It was a scary thought to go and work somewhere else.&lt;br /&gt;&lt;br /&gt;10)depicts - show , describe (04/02/2009)&lt;br /&gt;"This scene depicts country life" &lt;br /&gt;&lt;br /&gt;11)enmity - un friendly &lt;br /&gt; “Ramadoss trying to create enmity between me and Centre”&lt;br /&gt;&lt;br /&gt;12)India clinches series with a thumping win&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-6289580572569316676?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/6289580572569316676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=6289580572569316676' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6289580572569316676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/6289580572569316676'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/01/english-preposition.html' title='English Learn a new Word'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-4640321314808401745</id><published>2009-01-09T04:51:00.000-08:00</published><updated>2012-01-15T20:51:38.220-08:00</updated><title type='text'>Un completed task</title><content type='html'>Extract Multiple line Using regular expresion by PHP&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-4640321314808401745?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/4640321314808401745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=4640321314808401745' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/4640321314808401745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/4640321314808401745'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/01/un-completed-task.html' title='Un completed task'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-5539718626881921199</id><published>2009-01-05T06:45:00.000-08:00</published><updated>2012-01-15T20:51:38.220-08:00</updated><title type='text'>On Line Test Creator</title><content type='html'>How to covenvert the below questions into SQL Insert Statement using regular expression&lt;br /&gt;&lt;br /&gt;QUESTION 31 &lt;br /&gt;&lt;br /&gt;What is the purpose of the Identify Design Mechanisms activity? &lt;br /&gt;A. to refine the analysis mechanisms and specify the exact implementation of the mechanism &lt;br /&gt;B. to provide a conceptual set of services that is used by analysis objects &lt;br /&gt;C. to refine analysis mechanisms into design mechanisms, based on the constraints imposed by the implementation environment &lt;br /&gt;D. to define design placeholders in the architecture so the architecting effort remains focused and is less likely to become sidetracked &lt;br /&gt;Answer: C &lt;br /&gt;&lt;br /&gt;Tech detail required in regular expression :&lt;br /&gt;&lt;br /&gt;1.Create a class&lt;br /&gt;2.Find match for required string&lt;br /&gt;3.Read line and store in class &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Logic : &lt;br /&gt;&lt;br /&gt;Read Line till the EOF &lt;br /&gt;Find Question : &lt;br /&gt;Check for the word “Question “ and a “Numeric Value”. &lt;br /&gt;If true then split question and Question Number by using “Question Symbol” or “A.”. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Find Answer description : &lt;br /&gt;Continue reading lines and splits answers by using “A.”. “B.”. “C.”. “D.”. until it finds a word with “Answer:” &lt;br /&gt;&lt;br /&gt;Find Answer : &lt;br /&gt;&lt;br /&gt;Split the line which contains Answer: into the words Answer: and Answers Symbols. &lt;br /&gt;&lt;br /&gt;Note : Multiple answers considered as same word. &lt;br /&gt;Assumption In multiple choice questions answer notation are stored in Sorted order. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Class Question &lt;br /&gt;{ &lt;br /&gt;int question_topic; &lt;br /&gt;int question_number; &lt;br /&gt;String question; &lt;br /&gt;} &lt;br /&gt;Class Answers &lt;br /&gt;{ &lt;br /&gt;int question_topic; &lt;br /&gt;int question_number; &lt;br /&gt;String answer; &lt;br /&gt;String correct_answer; &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Tech Detail : &lt;br /&gt;Parse Question : &lt;br /&gt;Set int question_topic; int question_number; String question; into Question Object &lt;br /&gt;&lt;br /&gt;Answer : Looping till find “Answer:” and Parse Answers : &lt;br /&gt;set int question_topic; int question_number; String answer; String correct_answer; into Answers object. &lt;br /&gt;&lt;br /&gt;Notes : &lt;br /&gt;1 to many &lt;br /&gt;Has a &lt;br /&gt;Composite&lt;br /&gt;&lt;br /&gt;Approach 1 :&lt;br /&gt;read line by line.&lt;br /&gt;&lt;br /&gt;Issue :&lt;br /&gt;If question contains more than one line It won't handled&lt;br /&gt;&lt;br /&gt;Approach 2 :&lt;br /&gt;Read Question by question&lt;br /&gt;&lt;br /&gt;Analyse :&lt;br /&gt;How to read question by question&lt;br /&gt;&lt;br /&gt;Issue :&lt;br /&gt;If question contains more than one line It won't handled&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Approach 3 :&lt;br /&gt;&lt;br /&gt;read line by until it a question completes. Use String tokeniser, string existence and manipulate&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-5539718626881921199?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/5539718626881921199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=5539718626881921199' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5539718626881921199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5539718626881921199'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2009/01/on-line-test-creator.html' title='On Line Test Creator'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-334415171187095160</id><published>2008-12-19T06:54:00.003-08:00</published><updated>2012-01-15T20:51:38.220-08:00</updated><title type='text'>UML Link</title><content type='html'>&lt;a href="http://kickstartuml.googlepages.com/"&gt;http://kickstartuml.googlepages.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Analysis :&lt;br /&gt;&lt;br /&gt;Section 1: UML and the Modeling Process &lt;br /&gt;Section 2: Concepts of Object Orientation &lt;br /&gt;Section 3: Architectural Analysis &lt;br /&gt;Section 4: Use Case Analysis &lt;br /&gt;&lt;br /&gt;Design :&lt;br /&gt;Section 1: Identify Design Elements&lt;br /&gt;Section 2: Concepts of Object Orientation &lt;br /&gt;Section 3: Distribution &lt;br /&gt;Section 4: Use Case Design &lt;br /&gt;Section 5: Subsystem Design &lt;br /&gt;Section 6: Class Design&lt;br /&gt;&lt;br /&gt;Test 833: Object Oriented Analysis and Design - Part 1 (Analysis)&lt;br /&gt;&lt;br /&gt;Section 1: UML and the Modeling Process (20%)&lt;br /&gt;&lt;br /&gt;a. The Unified Modeling Language &lt;br /&gt;b. Process and Visual Modeling &lt;br /&gt;c. Analysis &amp; Design Key Concepts&lt;br /&gt;&lt;br /&gt;Section 2: Concepts of Object Orientation (40%)&lt;br /&gt;&lt;br /&gt;a. Relationships &lt;br /&gt;b. Class &lt;br /&gt;c. Polymorphism &lt;br /&gt;d. Interface &lt;br /&gt;1. Provided &lt;br /&gt;2. Required&lt;br /&gt;e. Structured Classes &amp; Ports&lt;br /&gt;&lt;br /&gt;Section 3: Architectural Analysis (20%)&lt;br /&gt;&lt;br /&gt;a. Key Concepts &lt;br /&gt;b. Define high-level organization of the model &lt;br /&gt;c. Identify analysis mechanisms &lt;br /&gt;d. Identify key abstractions &lt;br /&gt;e. Create use-case realizations&lt;br /&gt;&lt;br /&gt;Section 4: Use Case Analysis (20%)&lt;br /&gt;&lt;br /&gt;a. Supplement the Use-Case Description &lt;br /&gt;b. For each Use-Case Realization &lt;br /&gt;1. Find Classes from Use-Case Behavior &lt;br /&gt;2. Distribute Use-Case Behavior to Classes &lt;br /&gt;&lt;br /&gt;c. For each resulting analysis class &lt;br /&gt;1. Describe Responsibilities &lt;br /&gt;2. Describe Attributes and Associations &lt;br /&gt;3. Qualify Analysis Mechanisms &lt;br /&gt;&lt;br /&gt;d. Unify Analysis Classes&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Test 834: Object Oriented Analysis and Design - Part 2 (Design)&lt;br /&gt;&lt;br /&gt;Section1: Identify Design Elements (17%)&lt;br /&gt;&lt;br /&gt;a. Identify classes and subsystems &lt;br /&gt;b. Identify subsystem interfaces &lt;br /&gt;c. Update the organization of the Design Model&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Section 2: Identify Design Mechanisms (8%)&lt;br /&gt;&lt;br /&gt;a. Categorize clients of analysis mechanisms &lt;br /&gt;b. Document architectural mechanisms&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Section 3: Distribution (17%)&lt;br /&gt;&lt;br /&gt;a. Define the network configuration &lt;br /&gt;b. Allocate processes to nodes &lt;br /&gt;c. Define the distribution mechanism&lt;br /&gt;&lt;br /&gt;Section 4: Use Case Design (22%)&lt;br /&gt;&lt;br /&gt;a. Describe interaction among design objects &lt;br /&gt;b. Simplify sequence diagrams using subsystems &lt;br /&gt;c. Describe persistence-related behavior &lt;br /&gt;d. Refine the flow of events description &lt;br /&gt;e. Unify classes and subsystems&lt;br /&gt;&lt;br /&gt;Section 5: Subsystem Design (11%)&lt;br /&gt;a. Distribute subsystem behavior to subsystem elements &lt;br /&gt;b. Document subsystem elements &lt;br /&gt;c. Describe subsystem dependencies&lt;br /&gt;&lt;br /&gt;Section 6: Class Design (25%)&lt;br /&gt;&lt;br /&gt;a. Create Initial Design Classes &lt;br /&gt;b. Define Operations &lt;br /&gt;c. Define Methods &lt;br /&gt;d. Define States &lt;br /&gt;e. Define Attributes &lt;br /&gt;f. Define Dependencies &lt;br /&gt;g. Define Associations &lt;br /&gt;h. Define Internal Structure &lt;br /&gt;i. Define Generalizations &lt;br /&gt;j. Resolve Use-Case Collisions &lt;br /&gt;k. Handle Nonfunctional Requirements in General&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-334415171187095160?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/334415171187095160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=334415171187095160' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/334415171187095160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/334415171187095160'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2008/12/uml-link.html' title='UML Link'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-5839547788999570934</id><published>2008-12-19T06:54:00.001-08:00</published><updated>2012-01-15T20:51:38.221-08:00</updated><title type='text'>SCJP 1.5 Link</title><content type='html'>&lt;a href="http://www.examulator.com/phezam/selectsubject.php"&gt;http://www.examulator.com/phezam/selectsubject.php&lt;/a&gt; &lt;a href="http://www.indijava.in/community/forum/imporatantmust-have-questions-scjp-java-5"&gt;http://www.indijava.in/community/forum/imporatantmust-have-questions-scjp-java-5&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-5839547788999570934?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/5839547788999570934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=5839547788999570934' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5839547788999570934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/5839547788999570934'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2008/12/scjo-link.html' title='SCJP 1.5 Link'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4128824703162040018.post-173135346945775563</id><published>2008-12-19T06:46:00.000-08:00</published><updated>2012-01-15T20:51:38.221-08:00</updated><title type='text'>regular Expression Samples</title><content type='html'>&lt;p&gt;This is good example for regular Expression&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.phpf1.com/tutorial/php-regular-expression.html"&gt;http://www.phpf1.com/tutorial/php-regular-expression.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.askaboutphp.com/tutorials/25/regex-extract-content.html"&gt;Useful php link for regular expression extractor&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bigresource.com/PHP-regular-expression-kkcdAfqg.html"&gt;HTML FILE READ using regular expresssion&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.phpro.org/tutorials/Introduction-to-PHP-Regex.html"&gt;Simple PHP Examples&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/u&gt;&lt;a href="http://www.devolio.com/regextester/"&gt;Regular expression Cheat Sheet&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The regular expressions basic syntax&lt;br /&gt;To use regular expressions first you need to learn the syntax of the patterns. We can group the characters inside a pattern like this:&lt;br /&gt;Normal characters which match themselves like hello&lt;br /&gt;Start and end indicators as ^ and $&lt;br /&gt;Count indicators like +,*,?&lt;br /&gt;Logical operator like&lt;br /&gt;Grouping with {},(),[]&lt;br /&gt;An example pattern to check valid emails looks like this:&lt;br /&gt;Code: ^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z.]{2,5}$&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Count indicators like +,*,?&lt;/strong&gt;&lt;br /&gt;&lt;/u&gt;&lt;br /&gt;“+” : There is at least 1 "d" after "worl"&lt;br /&gt;“*” : There is 0 or more "d" after "worl"&lt;br /&gt;“?” : There is 0 or 1 "d" after "worl"&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Logical operator like&lt;/strong&gt; &lt;/u&gt;&lt;br /&gt;&lt;br /&gt;“” : The string contains the "earth" or the "world"&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Grouping with {},(),[]&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;{} : deals with last single character&lt;br /&gt;world{1} There is 1 "d" after "worl"&lt;br /&gt;world{1,} There is 1 ore more "d" after "worl"&lt;br /&gt;world{2,3} There are 2 or 3 "d" after "worl"&lt;br /&gt;()&lt;br /&gt;wo(rld)* There are 2 or 3 "d" after "worl"&lt;br /&gt;[]&lt;br /&gt;[abc] There is an "a" or "b" or "c" in the string abc, bbaccc&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;br /&gt;Other Symbols “.”, ”-“, “^”&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;. Any character in place of the dot.&lt;br /&gt;&lt;br /&gt;- [a-z] There are any lowercase letter in the string&lt;br /&gt;[a-zA-Z] There are any lower- or uppercase letter in the string&lt;br /&gt;&lt;br /&gt;^[^wW] The actual character can not be a "w" or "W" &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;import java.util.regex.*;&lt;br /&gt;import java.io.*;&lt;br /&gt;&lt;br /&gt;public class MultipleFlag{&lt;br /&gt; public static void main(String[] args){&lt;br /&gt;  String inputStr = "Abc\ndef";&lt;br /&gt;&lt;br /&gt;  //Simply print the original string.&lt;br /&gt;  System.out.println(inputStr);&lt;br /&gt;  String patternStr = "\n";&lt;br /&gt;&lt;br /&gt;  // Compile with multiline and case-insensitive enabled.&lt;br /&gt;  Pattern pattern = Pattern.compile(patternStr, Pattern.MULTILINE | Pattern.CASE_INSENSITIVE);&lt;br /&gt;  Matcher matcher = pattern.matcher(inputStr);&lt;br /&gt;&lt;br /&gt;  //Finding new line and replacing with a tab.&lt;br /&gt;  boolean matchFound = matcher.find();&lt;br /&gt;  String str = matcher.replaceAll("\t");&lt;br /&gt;&lt;br /&gt;  System.out.println(matchFound);&lt;br /&gt;  System.out.println(str);&lt;br /&gt;&lt;br /&gt;  //Split from where the new line character lies in the string.&lt;br /&gt;  String[] strg = "Abc\ndef".split("\n");&lt;br /&gt;  for (int i =0; i &amp;lt strg.length; i++){&lt;br /&gt;   System.out.print(strg[i] + " ");&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;import java.util.regex.Pattern;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class NLMatch {&lt;br /&gt;  public static void main(String[] argv) {&lt;br /&gt;&lt;br /&gt;    String input = "I dream of engines\nmore engines, all day long";&lt;br /&gt;    System.out.println("INPUT: " + input);&lt;br /&gt;    System.out.println();&lt;br /&gt;&lt;br /&gt;    String[] patt = { "engines.more engines", "engines$" };&lt;br /&gt;&lt;br /&gt;    for (int i = 0; i &amp;lt  patt.length; i++) {&lt;br /&gt;      System.out.println("PATTERN " + patt[i]);&lt;br /&gt;&lt;br /&gt;      boolean found;&lt;br /&gt;      Pattern p1l = Pattern.compile(patt[i]);&lt;br /&gt;      found = p1l.matcher(input).find();&lt;br /&gt;      System.out.println("DEFAULT match " + found);&lt;br /&gt;&lt;br /&gt;      Pattern pml = Pattern.compile(patt[i], Pattern.DOTALL&lt;br /&gt;          | Pattern.MULTILINE);&lt;br /&gt;      found = pml.matcher(input).find();&lt;br /&gt;      System.out.println("MultiLine match " + found);&lt;br /&gt;      System.out.println();&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128824703162040018-173135346945775563?l=andrewsselvaraj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewsselvaraj.blogspot.com/feeds/173135346945775563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4128824703162040018&amp;postID=173135346945775563' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/173135346945775563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4128824703162040018/posts/default/173135346945775563'/><link rel='alternate' type='text/html' href='http://andrewsselvaraj.blogspot.com/2008/12/important-link.html' title='regular Expression Samples'/><author><name>andrews selvaraj</name><uri>http://www.blogger.com/profile/16155484793814373917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
