001: /*
002: * Copyright (c) JForum Team
003: * All rights reserved.
004: *
005: * Redistribution and use in source and binary forms,
006: * with or without modification, are permitted provided
007: * that the following conditions are met:
008: *
009: * 1) Redistributions of source code must retain the above
010: * copyright notice, this list of conditions and the
011: * following disclaimer.
012: * 2) Redistributions in binary form must reproduce the
013: * above copyright notice, this list of conditions and
014: * the following disclaimer in the documentation and/or
015: * other materials provided with the distribution.
016: * 3) Neither the name of "Rafael Steil" nor
017: * the names of its contributors may be used to endorse
018: * or promote products derived from this software without
019: * specific prior written permission.
020: *
021: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
022: * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
023: * EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
024: * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
025: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR
026: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
027: * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
028: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
029: * EXEMPLARY, OR CONSEQUENTIAL DAMAGES
030: * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
031: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
032: * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
033: * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
034: * IN CONTRACT, STRICT LIABILITY, OR TORT
035: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
036: * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
037: * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
038: *
039: * This file creation date: 24/05/2004 / 12:01 PM
040: * The JForum Project
041: * http://www.jforum.net
042: */
043: package net.jforum.dao.oracle;
044:
045: import net.jforum.dao.LuceneDAO;
046: import net.jforum.dao.ModerationDAO;
047: import net.jforum.dao.ModerationLogDAO;
048: import net.jforum.dao.PostDAO;
049: import net.jforum.dao.PrivateMessageDAO;
050: import net.jforum.dao.TopicDAO;
051: import net.jforum.dao.UserDAO;
052: import net.jforum.dao.generic.GenericDataAccessDriver;
053:
054: /**
055: * @author Dmitriy Kiriy
056: * @version $Id: OracleDataAccessDriver.java,v 1.11 2007/09/10 22:34:21 rafaelsteil Exp $
057: */
058: public class OracleDataAccessDriver extends GenericDataAccessDriver {
059: private static PostDAO postDao = new OraclePostDAO();
060: private static TopicDAO topicDao = new OracleTopicDAO();
061: private static UserDAO userDao = new OracleUserDAO();
062: private static PrivateMessageDAO pmDao = new OraclePrivateMessageDAO();
063: private static ModerationDAO moderationDao = new OracleModerationDAO();
064: private static ModerationLogDAO moderationLogDao = new OracleModerationLogDAO();
065: private static LuceneDAO luceneDao = new OracleLuceneDAO();
066:
067: /**
068: * @see net.jforum.dao.generic.GenericDataAccessDriver#newModerationLogDAO()
069: */
070: public ModerationLogDAO newModerationLogDAO() {
071: return moderationLogDao;
072: }
073:
074: /**
075: * @see net.jforum.dao.DataAccessDriver#newModerationDAO()
076: */
077: public ModerationDAO newModerationDAO() {
078: return moderationDao;
079: }
080:
081: /**
082: * @see net.jforum.dao.DataAccessDriver#newPostDAO()
083: */
084: public PostDAO newPostDAO() {
085: return postDao;
086: }
087:
088: /**
089: * @see net.jforum.dao.DataAccessDriver#newTopicDAO()
090: */
091: public TopicDAO newTopicDAO() {
092: return topicDao;
093: }
094:
095: /**
096: * @see net.jforum.dao.DataAccessDriver#newUserDAO()
097: */
098: public UserDAO newUserDAO() {
099: return userDao;
100: }
101:
102: /**
103: * @see net.jforum.dao.DataAccessDriver#newPrivateMessageDAO()
104: */
105: public PrivateMessageDAO newPrivateMessageDAO() {
106: return pmDao;
107: }
108:
109: /**
110: * @see net.jforum.dao.generic.GenericDataAccessDriver#newLuceneDAO()
111: */
112: public LuceneDAO newLuceneDAO() {
113: return luceneDao;
114: }
115: }
|