daoexamples.movie
Class MovieDAOFactory

java.lang.Object
  extended bydaoexamples.movie.MovieDAOFactory

public final class MovieDAOFactory
extends java.lang.Object

Normally, a DAO factory class contains only one public "getFooDAO" method. This class provides two "get" methods because we want this factory to expose both of the MovieDAO implementations.

Author:
Sean C. Sullivan

Constructor Summary
private MovieDAOFactory()
           
 
Method Summary
static MovieDAO getMovieDAO_JTA()
           
static MovieDAO getMovieDAO()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovieDAOFactory

private MovieDAOFactory()
Method Detail

getMovieDAO

public static MovieDAO getMovieDAO()
Returns:
a non-null value. The DAO returned by this method uses JDBC transactions. The DAO demaractes transactions internally.
See Also:
getMovieDAO_JTA()

getMovieDAO_JTA

public static MovieDAO getMovieDAO_JTA()
Returns:
a non-null value. The DAO returned by this method assumes that the caller is using JTA transactions. Transactions are demarcated external to the DAO.
See Also:
getMovieDAO()


Copyright © 2003-2004 daoexamples.sourceforge.net. All Rights Reserved.