Friday 27 July 2012

Elements In JSF

The JSF technology has its own set of elements, which together make this framework. The Core features of JSF are provided by these elements.  These Components are


  • UI Component
  • Renderer
  • Validator
  • Backing Beans
  • Converter
  • Events and Listeners
  • Message
  • Navigation
Describing UI Components:

           UI Component are the basic reusable components, such as labels, text boxes, and list boxes, used for developing user interface. We can define UI component as stateful objects maintained on the server side. the server communicates with the clients through these UI components. The components are simple JavaBeans Containing properties, methods, and events. The JSF UI components are also called Web application user interface components.

Describing the Renderer: 

          Most Web applications usually send a response to the web browser in the HTML format. Other client devices such as mobile phones or Personal Digital Assitants(PDAs) don't provide HTML browsers. some of the formats supported by these handled devices are WML and XHTML Basic. there, web applications need to respond in anther markup language. Since handheld technology is growing very fast, it is a good question to ask how existing applications can be supported by new devices.
      
         A renderer is a type of class that is responsible for encoding and decoding components

   1)Direct Rendering Model: The rendering logic is directly encapsulated into the UI component. therefore, there is no clear separation of functionality and presentation. This technique is used when we are sure that the component is being created for a particular client. as a result, the UI component is implemented in a single class. However, the reusability of the UI component is poor.

   2) In direct/ Delegated Rendering Model: This model uses a separate renderer for seperate UI component. Here this renderer, represented by the render class, does the work encoding and decoding. we can simply replace the set of renderer classes to display the output in a format compatible with some different  client

Thursday 26 July 2012

Introduction
JavaServerFaces(JSF) can be defined as a framework, which makes web application development easy by providing rich, powerful and ready to use user Interface(UI) components. The JSF Framework is based on the model-view-Controller(MVC) design pattern, which is one of the most popular design patterns available.

Saturday 21 July 2012

Step by Step Example for Many-to-Many in hibernate

           In many-to-many Association, one parent Pojo class object points one or more child pojo class object. Similarly one child pojo class object points one or more parent pojo class objects.

Monday 16 July 2012

Hibernate With Annotations

  • Data about data is called Meta Data
  • Configuring resources to pass their details to underlying software where the resources will be utilized for execution also comes under meta data operations

Saturday 16 June 2012

Session Tracking

By default all web application are stateless web application that means web applications can not use first request data for second request.this is called stateless.
But we can use one of the following four session tracking techniques to make them "stateless"


                    1.Hidden form fields
                    2.Cookies
                    3.HttpSession with Cookies
                    4.HttpSession with url rewriting

Friday 15 June 2012

Filters in Java


  • Servlet filters are a new addition to the servlet 2.3 realized in Oct 2000
  • Definition:
    • Filters are java classes that can intercepts request from a client before they access a resource, manipulate request from clients, intercepts response from resource before they sent back to the client.

ServletListeners

  • Listener is one of the most popular technologies used in the J2EE web application
  • It is part of the Java Servlet as defined in Servlet 2.3 but they have their own specific functionalities.

Thursday 14 June 2012

Difference between Servlet and CGI


  • Serverside web resource programs are generally dynamic web resource programs because they generate dynamic we pages when they are requested by browser.

Introduction about Servlet


  • The Application that are specific to one computer and contains main method is called Standalone applications 


Tuesday 12 June 2012

Servlet For You


This Servlet tutorial is also a good starting guide for the beginners. You will learn how to write Servlet, compile, configure on Tomcat, start server and test the Servlet. We will also explain how you can recompile and test the Servlet if there is any error or code modification is needed.
Servlet is used for developing server side programs for a web application based on JAVA. Servlet is based on request response model which can handle any type of request but Servlet also provides Http specific API to handle Http request more efficiently and easily.
Previously CGI was the means of providing dynamic content. CGI was platform dependent and needs to recompile the programs in the new operating system, it is process based. But Servlet is platform independent because of Java's platform independent feature and is thread based. Servlet are more advantageous over CGI in terms of features like Platform Independence, Performance, Extensibility and Security etc.
Servlet runs on JVM on the server and so safe and portable. Servlet do not require java in web browser unlike Applets.

Wednesday 6 June 2012

Developing Flexible JDBC Application

In Industry level if we develop N number of JDBC applications which deals specific database and if project client want to change the database then the java programmer has to modify N number of  JDBC applications which is the time consuming process  and hence Industry is not recommended to develop a specific JDBC applications. But Industry is always recommended to develop flexible JDBC Application

Meta Data

Data about data is known as MetaData
In JDBC Application development we have 3 catagerious of metadata they are


Transfer Excel data to oracle

Steps to Transfer excel sheet data to oracle database

Dealing with Excel database

Ms-Excel is the confidential database used for representing financial information for generating balance shee

Tuesday 5 June 2012

Dealing with MS-Access Database

We can access the data from MS-Access by using java application

Batch Processing

If a JDBC application contains multiple DML queries, to execute these queries our jdbc application requires n number of network round trips between jdbc application and database application which will reduces the performance

Stored Procedure in JDBC

it is highly recommended develop a JDBC application in such way that write separate logic for Java and write a separate logic for database. Database logic is nothing but stored procedures.

Group Function in JDBC

In Most of RDBMS Products we came across 5 aggregate functions they are

Type-4 Driver

Oracle corporation has developed their own driver in java language according to sun micro system specifications. the name of the oracle driver is oracle.jdbc.driver.OracleDriver

Dynamic Queries

A Static query is one in which the data is passed with in the itself

Steps to Develop First Jdbc Applications

To Write Standard JDBC Application we need to follow the following Sequence of steps.

Monday 4 June 2012

Types of Drivers

To Deal with any database through our java program, first we must identify the specific JDBC Driver (oracle Driver) and that Driver must registered with DriverManagers class and whose fully Qualified name is 

JDBC For You

In Information Technology we have two types of application. they are
i. Non-persistent/ volatile application
ii. Persistent logic/ non-volatile application

Friday 1 June 2012

Interview Question on core java for Freshers


1.what is difference between #include and import statement

Ans:#include makes the compiler to go the c/c++ library and copy the code in our program from header file. So program size will be increased and to compile that code waste of time. And memory will be wasted
Import statement makes the jvm to go the java standard library, execute the code there and it brings back only the results into our program. Here no code is copied and hence no waste of memory.
So import is an more efficient than #include

Tuesday 29 May 2012

Caching In Hibernate


àCache/Buffer is a tempery memory that holds results or data and uses that data or results across the multiple same request given by application

Thursday 24 May 2012

One-One Mapping

One to One UniDirectional

Association Mapping

When tables are there in association or relationship we can access one table data based on anther table data because records of one table represents the records of anther table.

Spring Web Module

Spring Web Module



Spring web module is given for two important operations

Wednesday 23 May 2012

Struts First Application



Web.xml entries will be read by web container of webserver or application server software. Struts configuration file entry is will be read by action servlet.

Introduction about Struts Resources

Struts Resources

Struts For you

Why Struts

Spring ORM Module


JDBC,Spring DAO based persistence logic is data base software dependent.

Spring ORM Module does not provide its own ORM S/W but, it provides abstract layer on the multiple ORM S/W’s like Hibernate, iBatis, JDO (Java Data Object), JPA(Java Persistent API) , Top Link

Spring DAO Module

Every Jdbc Data Source object represents one JDBC Connection pool.
JDBC Connection pool is a factory that contains set of readily available JDBC Connection object before actually being used.

Friday 18 May 2012

Thursday 17 May 2012

Inheritance Mapping

Hibernate Persistence classes are POJO classes. so they can participated in inheritance to give the advantage of re-usability  and extensibility.

Spring Core Module


Spring core module is given to support dependency Injection. This module is base module for other modules of spring.

Wednesday 16 May 2012

What is Difference between Spring and structs Frame Work


What is Difference between Spring and structs Frame Work

Hibernate Filters

Hibernate Filters

Hibernate Filters allows the Programmer to specify pre-defined criteria/condition for the persistence logic of hibernate programming
Filters represent where condition clause related conditions in hibernate mapping file and they are visible for multiple session objects of hibernate applications. These filters can be enabled or disabled dynamically at runtime on each session object level.

Tuesday 15 May 2012

Oracle Real Time Examples

Here You can see the solutions for Problem which may face...

Pagination


Pagination:
     
    When Query is select huge amount of records instead of displaying them in a single screen or single page it is recommanded to display them in multiple screens or multiple pages through “pagenation” concept.

Hibernate Bulk Operations Related Techniques(HQL,Native-SQL,Criteria-API)



Bulk Operations Related Techniques:
We can use one of the Following three techniques to manipulate more than one row at a time.
1.HQL
2.Native SQL
3.Criteria API

Hibernate With Three Connection Pool


Hibernate Software can work with three types of connection pool. They are
1.Hibernate software supplied built-in connection pool.
2.Third party supplied connection pool, like c3p0 proxool
3.Web Server/Application Server managed JDBC Connection poll.

Hibernate Built-in Tools


Hibernate supplies some built-in tools to create or alter database tables in underlying database software.
These tools are also useful to generate HB POJO class dynamically. They are

Introduction to Hibernate

What is Configuration?
ØThe Configuration class is available in org.hibernate.cfg package
ØThis Class loads hibernate configuration file
ØHibernate Configuration file contains hibernate properties such as

Monday 14 May 2012

Hibernate Identity Generator



Identity value of HB POJO class Object is the criteria value for HB Software to perform synchronization between HB POJO class object and table row.

Hibernate Persistence Operations



Persistance Operations in hibernate Environment
Single row Operations

1. save(
pojo obj)-------> to Insert record

Thursday 10 May 2012

Hibernate sample application

Here We are going to lean first hibernate sample application
we can any database like oracle,mysql,sqlserver...etc

Wednesday 9 May 2012

Spring For You

ØHistory About Spring

ØType     :java-j2ee framework

ØVersion:   3.1.1 / February 16, 2012

ØVendor:Interface 21

ØCreator:Mr RodJohnson

ØTo download:www.springframework.org

Def for spring:
“Spring is an open source,lightweight ,loosely coupled, aspect oriented, Dependency Injenction,based Framework  software of java environment to develop all kinds of java-j2ee application having Good Productivity.”

Container: 
it is a software  (or) special Application that can take care and manage complete life cycle of a given resource. That means container takes care of all the operations related to resource which are requisted for execution.

Servlet,EJB Container are heavy weight containers because they came as software. Where as spring supplied containers are light weight container because they came as pre-defined classes.


Topics in Spring
Introduction about Spring
Spring Core Module
Spring DAO Module
Spring ORM Module
Spring Web Module




                                        
Spring Software


   Spring Material 











Hibernate For You

Features of Hibernate:

1.Supports POJI/POJO Model Programming.
2.Light-Weight Technology to develop database software independent persistence logic.