kotkabeans
Class SaveResult

java.lang.Object
  |
  +--kotkabeans.SaveResult

public class SaveResult
extends java.lang.Object

This class stores information to table "Result". All accessright checking is made here.


Constructor Summary
SaveResult()
           
 
Method Summary
 int save(int pid, int pid2, java.lang.String fieldID, java.lang.String value, java.lang.String old_value)
          This method will be called from outside.
 void setCourseRight(int r)
           
 void setUser(User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaveResult

public SaveResult()
Method Detail

setCourseRight

public void setCourseRight(int r)

setUser

public void setUser(User user)

save

public int save(int pid,
                int pid2,
                java.lang.String fieldID,
                java.lang.String value,
                java.lang.String old_value)
         throws java.lang.Exception
This method will be called from outside. Decides if person is student or something else.

Parameters:
pid2 - Personid who is going to do the saving.
value - Fields new value.
old_value - Fields value, when it was get from database
Returns:
0if everything went fine, othorwise something else, depends what went wrong.
java.lang.Exception