Facebook Twitter

6 Java Libararies to save your Time « Semantic Java. 1.

6 Java Libararies to save your Time « Semantic Java

Joda-Time :- An easy replacement for the official Java date/Time classes. Many are suffering from the bad design of the official date/time. ActiveMQ and Tomcat: Perfect Partners. Posted by bsnyder on December 13, 2010 07:04 AM This article is excerpted from the forthcoming book ActiveMQ In Action ( by Bruce Snyder, Rob Davies and Dejan Bosanac (Manning Publications, ISBN: 1933988940) At one time or another, every software developer has the need to communicate between applications or transfer data from one system to another.

ActiveMQ and Tomcat: Perfect Partners

Not only are there many solutions to this sort of problem, but depending on your constraints and requirements, deciding how to go about such a task can be a big decision. Business requirements oftentimes place restrictions on items that directly impact such a decision including performance, scalability, reliability and more. There are many applications that we use every day that impose just such requirements including ATMs, airline reservation systems, credit card systems, point-of-sale systems and telecommunications just to name a few. In a series of articles, you will learn about the integration of ActiveMQ and Tomcat. Using Tomcat. Graph Databases features: graph algorithms and how to use them with DEX.

0inShare There is large literature on graph algorithms studied in the theory of graphs that has been proven to give excellent results extracting information with graphs.

Graph Databases features: graph algorithms and how to use them with DEX

In this article we’d like to share a description with examples using DEX 3.0 API of the most relevant graph algorithms. Traversal: You can move through the graph using BFS (breadth first search - starting at the root all its neighbors are explored and so on) or DFS (depth first search - starting at the root and selecting one node neighbors are explored as far as possible along each branch before backtracking).

The former methods allow to restrict which node types do you want to visit and which way are the edge types navigable. Use the traversal methods to obtain all the nodes in the graph ordered at your choice. This article is the first episode of the series of posts explaining the most exciting features of Graph Databases available at DEX 3.0 with examples of how to use them. MyBatis (formerly iBatis) – Examples and Hints using SELECT, INSERT and UPDATE Annotations. MyBatis is a lightweight persistence framework for Java and .NET.

MyBatis (formerly iBatis) – Examples and Hints using SELECT, INSERT and UPDATE Annotations

This blog entry addresses the Java side. MyBatis is an alternative positioned somewhere between plain JDBC and ORM frameworks (e.g. EclipseLink or Hibernate). MyBatis usually uses XML, but it also supports annotations since version 3. The documentation is very detailed for XML, but lacks annotation examples. 3 easy wins using Google Guava. Google Guava used to be known as Google Collections. It is a large set of utility methods used within Google. It aims to help you create concise and easy-to-read code. 1. Concise collection initialization - No example of Java being overly verbose is complete without showing a repetitive and noisy constructor like this: Java 7 intends to introduce a "diamond operator" which allows the code to be converted to this: This kind of change probably won't prevent any bugs, but in my opinion it greatly reduces code "noise".

Google Guava provides similar functionality, today, and it works all the way back to Java 5. A new, simple and intuitive approach to interact with your database from Java - Introduction In this article, I want to announce the first stable release 1.4.2 of jOOQ, which stands for Java Object Oriented Querying.

A new, simple and intuitive approach to interact with your database from Java -

Find more information on Abstract Many companies and software projects seem to implement one of the following two approaches to interfacing Java with SQL The very basic approach: Using JDBC directly or adding a home-grown abstraction on top of it. A new paradigm I tried to find a new solution addressing many issues that I think most developers face every day. SQL is a good thing. How does jOOQ fit in this paradigm? Not only does jOOQ completely address the above paradigm, it does so quite elegantly. -- Select all books by authors born after 1920 from a catalogue: SELECT * FROM t_author a JOIN t_book b ON = b.author_id WHERE a.year_of_birth > 1920 ORDER BY b.title Now, from your single starting point - the "Factory" - jOOQ lets you assemble the same SQL statement in objects.

Yet Another Generic DAO:yagdao. Public interface SimpleBeanDAO extends GenericDAO<SimpleBean, Long> { * Sample save method with two properties @YMethod(type = YMethodType.SAVE) SimpleBean customSave1(@YParameter("pstring") String p1, @YParameter("pdouble") double p2); @YMethod(type = YMethodType.UPDATE) SimpleBean customUpdate1(long id, @YParameter("pstring") String p1, @YParameter("pdouble") double p2); @YMethod(type = YMethodType.QUERY, query = "select s from SimpleBean s where s.pint>:minint") List<SimpleBean> customQuery2(@YParameter("minint") int arg1); @YMethod(type = YMethodType.CRITERIA) SearchResultList<SimpleBean> criteria1(@YParameter(value = "pint", operator = YOperator.GE) Integer arg1, YPage page);

Yet Another Generic DAO:yagdao

Javatuples - Main. JTattoo.