SqlServerDataAccessDriver.java
Upload User: gdxydsw
Upload Date: 2019-01-29
Package Size: 16721k
Code Size: 3k
Category:

Java Develop

Development Platform:

Java

  1. /*
  2.  * Copyright (c) JForum Team
  3.  * All rights reserved.
  4.  * Redistribution and use in source and binary forms, 
  5.  * with or without modification, are permitted provided 
  6.  * that the following conditions are met:
  7.  * 1) Redistributions of source code must retain the above 
  8.  * copyright notice, this list of conditions and the 
  9.  * following  disclaimer.
  10.  * 2)  Redistributions in binary form must reproduce the 
  11.  * above copyright notice, this list of conditions and 
  12.  * the following disclaimer in the documentation and/or 
  13.  * other materials provided with the distribution.
  14.  * 3) Neither the name of "Rafael Steil" nor 
  15.  * the names of its contributors may be used to endorse 
  16.  * or promote products derived from this software without 
  17.  * specific prior written permission.
  18.  * 
  19.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT 
  20.  * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
  21.  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, 
  22.  * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
  23.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
  24.  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 
  25.  * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 
  26.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
  27.  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
  28.  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
  29.  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 
  30.  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
  31.  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 
  32.  * IN CONTRACT, STRICT LIABILITY, OR TORT 
  33.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 
  34.  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 
  35.  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
  36.  * 
  37.  * Created on 29/05/2004 00:12:37
  38.  * The JForum Project
  39.  * http://www.jforum.net
  40.  */
  41. package net.jforum.dao.sqlserver;
  42. /**
  43.  * @author Andre de Andrade da Silva - andre.de.andrade@gmail.com
  44.  * @author Dirk Rasmussen - d.rasmussen@bevis.de (2007/02/19, modifs for MS SqlServer 2005)
  45.  * @see WEB-INFconfigdatabasesqlserversqlserver.sql (2007/02/19, MS SqlServer 2005 specific version!)
  46.  * @version $Id: SqlServerDataAccessDriver.java,v 1.9 2007/07/28 20:07:18 rafaelsteil Exp $
  47.  */
  48. public class SqlServerDataAccessDriver extends net.jforum.dao.generic.GenericDataAccessDriver
  49. {
  50. private static SqlServerPostDAO postDao = new SqlServerPostDAO();
  51. private static SqlServerTopicDAO topicDao = new SqlServerTopicDAO();
  52. private static SqlServerUserDAO userDao = new SqlServerUserDAO();
  53. private static SqlServerPrivateMessageDAO pmDao = new SqlServerPrivateMessageDAO();
  54. private static SqlServerKarmaDAO karmaDao = new SqlServerKarmaDAO();
  55. /** 
  56.  * @see net.jforum.dao.DataAccessDriver#newPostDAO()
  57.  */
  58. public net.jforum.dao.PostDAO newPostDAO()
  59. {
  60. return postDao;
  61. }
  62. /** 
  63.  * @see net.jforum.dao.DataAccessDriver#newTopicDAO()
  64.  */
  65. public net.jforum.dao.TopicDAO newTopicDAO()
  66. {
  67. return topicDao;
  68. }
  69. /** 
  70.  * @see net.jforum.dao.DataAccessDriver#newUserDAO()
  71.  */
  72. public net.jforum.dao.UserDAO newUserDAO()
  73. {
  74. return userDao;
  75. }
  76. /** 
  77.  * @see net.jforum.dao.DataAccessDriver#newPrivateMessageDAO()
  78.  */
  79. public net.jforum.dao.PrivateMessageDAO newPrivateMessageDAO()
  80. {
  81. return pmDao;
  82. }
  83. /** 
  84.  * @see net.jforum.dao.DataAccessDriver#newKarmaDAO()
  85.  */
  86. public net.jforum.dao.KarmaDAO newKarmaDAO()
  87. {
  88. return karmaDao;
  89. }
  90. }