palio.modules.forum.dao
Class ForumDAO
java.lang.Object
palio.modules.forum.dao.ForumDAO
- All Implemented Interfaces:
- SimpleDAO
public class ForumDAO
- extends java.lang.Object
- implements SimpleDAO
- Author:
- L.Leszczynski
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AUTH_ALL
public static final java.lang.String AUTH_ALL
- See Also:
- Constant Field Values
AUTH_REG
public static final java.lang.String AUTH_REG
- See Also:
- Constant Field Values
AUTH_MOD
public static final java.lang.String AUTH_MOD
- See Also:
- Constant Field Values
privNames
public static final java.lang.String[] privNames
ForumDAO
public ForumDAO()
save
public void save(SQLConnectable connector)
throws palio.PalioException,
DAOException
- Description copied from interface:
SimpleDAO
- Zapisuje obiekt w bazie danych; dane obiektu muszą być wypełnione!
Jeżeli obiekt istnieje, jest on update-owany.
- Specified by:
save
in interface SimpleDAO
- Throws:
DAOException
palio.PalioException
retrieve
public void retrieve(SQLConnectable connector,
java.lang.Object id)
throws palio.PalioException,
DAOException
- Description copied from interface:
SimpleDAO
- Pobiera dane do pustego obiektu.
- Specified by:
retrieve
in interface SimpleDAO
id
- identyfikator obiektu w bazie
- Throws:
DAOException
palio.PalioException
getThreadCount
public java.lang.Long getThreadCount(SQLConnectable connector)
throws palio.PalioException
- Throws:
palio.PalioException
getMessageCount
public java.lang.Long getMessageCount(SQLConnectable connector)
throws palio.PalioException
- Throws:
palio.PalioException
getLastThread
public java.lang.Object getLastThread(SQLConnectable connector)
throws palio.PalioException
- Throws:
palio.PalioException
getLastMessage
public java.lang.Object getLastMessage(SQLConnectable connector)
throws palio.PalioException
- Throws:
palio.PalioException
getActiveForums
public static java.util.LinkedList getActiveForums(SQLConnectable connector,
java.lang.Long userID)
throws palio.PalioException
- Throws:
palio.PalioException
addModerator
public static void addModerator(SQLConnectable connector,
java.lang.Long forumId,
java.lang.Long userId)
throws palio.PalioException
- Throws:
palio.PalioException
removeModerator
public static void removeModerator(SQLConnectable connector,
java.lang.Long forumId,
java.lang.Long userId)
throws palio.PalioException
- Throws:
palio.PalioException
getModerators
public static java.util.LinkedList getModerators(SQLConnectable connector,
java.lang.Long forumId)
throws palio.PalioException
- Throws:
palio.PalioException
setPrivilege
public void setPrivilege(java.lang.String privName,
java.lang.String authLevel)
throws palio.PalioException
- Throws:
palio.PalioException
getCategoryId
public java.lang.Long getCategoryId()
- Returns:
- Returns the categoryId.
getCategoryName
public java.lang.String getCategoryName()
- Returns:
- Returns the categoryName.
setCategoryId
public void setCategoryId(java.lang.Long categoryId)
- Parameters:
categoryId
- The categoryId to set.
getDescription
public java.lang.String getDescription()
- Returns:
- Returns the description.
setDescription
public void setDescription(java.lang.String description)
- Parameters:
description
- The description to set.
getName
public java.lang.String getName()
- Returns:
- Returns the name.
setName
public void setName(java.lang.String name)
- Parameters:
name
- The name to set.
getPrivileges
public java.util.Map getPrivileges()
- Returns:
- Returns the privileges.
setPrivileges
public void setPrivileges(java.util.Map privileges)
- Parameters:
privileges
- The privileges to set.
getStatus
public java.lang.String getStatus()
- Returns:
- Returns the status.
setStatus
public void setStatus(java.lang.String status)
- Parameters:
status
- The status to set.
getId
public java.lang.Long getId()
- Returns:
- Returns the id.
setId
public void setId(java.lang.Long id)
- Parameters:
id
-