Menu

Code snippet in Java Pos.

Help
Sanjeeda
2013-04-29
2013-04-29
  • Sanjeeda

    Sanjeeda - 2013-04-29

    Hi,
    I'm new to Java POS and there is this code which I'm unable to understand. All I understood is, it creates a session but how? Can anyone please explain me how this code works?

    public class DataLogicGoodsReceipt extends BeanFactoryDataSingle{
    private Session s;
    @Override
    public void init(Session s) {
    this.s =s;
    }

    }

     
    • stefanot

      stefanot - 2013-04-29

      this code does not create a Session, it just stores the Session object
      passed as an argument to the init method in a private member of the
      class

      2013/4/29 Sanjeeda sanjeeda@users.sf.net:

      Hi,
      I'm new to Java POS and there is this code which I'm unable to understand.
      All I understood is, it creates a session but how? Can anyone please explain
      me how this code works?

      public class DataLogicGoodsReceipt extends BeanFactoryDataSingle{
      private Session s;
      @Override
      public void init(Session s) {
      this.s =s;
      }

      }


      Code snippet in Java Pos.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/postest/discussion/311132/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

Log in to post a comment.