HIbernate cache

Caching is all about application performance optimization and it sits between your application and the database to avoid the number of database hits as many as possible to give a better performance for performance critical applications.



Java Search Algorithms

Search algorithm is an algorithm for finding an item with specified properties among a collection of items. The items may be stored individually as records in a database or may be elements of a search space defined by a mathematical formula or procedure, such as the roots of an equation with integer variables or a combination of the two.

You can find examples for different types of search algorithms here.

– See more at: http://www.java2novice.com/java-search-algorithms/#sthash.KbYxAkkS.dpuf

neo4j visualization with JSF: integration with Vivagraph SVG, simple example from tutorial

In the internet a lot of question how to show graph in the web page, mostly asked from java developers.
A lot of js technologies support neo4j visualization , but how to pass data from java to js in the web page?
Imagine you have already graph object from java – nodes and links. I used Vivagraph SVG for this example. You can extend it.

First we have JSF bean which contains our simpe graph nodes and edges, like

After we change the Vivagraph SVG simple example code, passing values from JSF bean, instead static data which you can find in the example.

You can see that
I used
graph.addNode(‘${graphBean.firstNode}’, ’91bad8ceeec43ae303790f8fe238164b’);
graph.addNode(‘${graphBean.secondNode}’, ‘d43e8ea63b61e7669ded5b9d3c2e980f’);

graph.addLink(‘${graphBean.firstNode}’, ‘${graphBean.secondNode}’);

instead of
graph.addNode(‘anvaka’, ’91bad8ceeec43ae303790f8fe238164b’);
graph.addNode(‘indexzero’, ‘d43e8ea63b61e7669ded5b9d3c2e980f’);
graph.addLink(‘anvaka’, ‘indexzero’);

as a result


Get Example from https://github.com/anvaka/VivaGraphJS/tree/3b2da1f87c90363a50427efb039b277eac523cad/demos

neo4j tutorial

Neo4j is a one of the popular Graph Databases and CQL stands for Cypher QueryLanguage. Neo4j is written in Java Language.

This tutorial will teach you basics of Neo4j, Java with Neo4j and Spring DATA with Neo4j. The tutorial is divided into sections such as Neo4j Introduction, Neo4j CQL, Neo4j CQL Functions, Neo4j Admin, Neo4j with Java and Neo4j with Spring DATA Framework. Each of these sections contain related topics with simple and useful examples.


DB2 – Tutorial

DB2 is a database product from IBM. It is a Relational Database Management System (RDBMS). DB2 is designed to store, analyze and retrieve the data efficiently. DB2 product is extended with the support of Object-Oriented features and non-relational structures with XML.


Initially, IBM had developed DB2 product for their specific platform. Since year 1990, it decided to develop a Universal Database (UDB) DB2 Server, which can run on any authoritative operating systems such as Linux, UNIX, and Windows.

LINK http://www.tutorialspoint.com/db2/db2_introduction.htm