palio.modules.forum.dao
Class ThreadDAO
java.lang.Object
palio.modules.forum.dao.ThreadDAO
- All Implemented Interfaces:
- SimpleDAO
public class ThreadDAO
- extends java.lang.Object
- implements SimpleDAO
- Author:
- leszek
TODO To change the template for this generated type comment go to Window -
Preferences - Java - Code Style - Code Templates
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadDAO
public ThreadDAO()
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
getActiveThreads
public static java.util.LinkedList getActiveThreads(SQLConnectable connector,
java.lang.Long forumId,
java.lang.Long start,
java.lang.Long count,
java.lang.Long userID)
throws palio.PalioException
- Throws:
palio.PalioException
getMessageCount
public java.lang.Long getMessageCount(SQLConnectable connector)
throws palio.PalioException
- Throws:
palio.PalioException
getLastMessage
public java.lang.Object getLastMessage(SQLConnectable connector)
throws palio.PalioException
- Throws:
palio.PalioException
touch
public static void touch(SQLConnectable connector,
java.lang.Long id)
throws palio.PalioException
- Throws:
palio.PalioException
getViews
public java.lang.Long getViews()
- Returns:
- Returns the views.
setViews
public void setViews(java.lang.Long views)
- Parameters:
views
- The views to set.
getGuest
public java.lang.String getGuest()
- Returns:
- Returns the guest.
setGuest
public void setGuest(java.lang.String guest)
- Parameters:
guest
- The guest to set.
getId
public java.lang.Long getId()
- Returns:
- Returns the id.
setId
public void setId(java.lang.Long id)
- Parameters:
id
- The id 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.
getType
public java.lang.Long getType()
- Returns:
- Returns the type.
setType
public void setType(java.lang.Long type)
- Parameters:
type
- The type to set.
getUserId
public java.lang.Long getUserId()
- Returns:
- Returns the userId.
setUserId
public void setUserId(java.lang.Long userId)
- Parameters:
userId
- The userId to set.
getForumId
public java.lang.Long getForumId()
- Returns:
- Returns the forumId.
setForumId
public void setForumId(java.lang.Long forumId)
- Parameters:
forumId
- The forumId 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.