palio.modules.forum.dao
Class CategoryDAO

java.lang.Object
  extended by palio.modules.forum.dao.CategoryDAO
All Implemented Interfaces:
SimpleDAO

public class CategoryDAO
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

Constructor Summary
CategoryDAO()
           
 
Method Summary
static java.util.LinkedList getAll(SQLConnectable connector)
           
 java.lang.Long getId()
           
 java.lang.String getName()
           
 java.lang.Long getPriority()
           
 void retrieve(SQLConnectable connector, java.lang.Object id)
          Pobiera dane do pustego obiektu.
 void save(SQLConnectable connector)
          Zapisuje obiekt w bazie danych; dane obiektu muszą być wypełnione!
 void setId(java.lang.Long id)
           
 void setName(java.lang.String name)
           
 void setPriority(java.lang.Long priority)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryDAO

public CategoryDAO()
Method Detail

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

getAll

public static java.util.LinkedList getAll(SQLConnectable connector)
                                   throws palio.PalioException
Throws:
palio.PalioException

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getPriority

public java.lang.Long getPriority()
Returns:
Returns the priority.

setPriority

public void setPriority(java.lang.Long priority)
Parameters:
priority - The priority to set.

getId

public java.lang.Long getId()
Returns:
Returns the id.

setId

public void setId(java.lang.Long id)