Package com.lichtfragmente.beans

Examples of com.lichtfragmente.beans.MessageBean


                stmt.setInt(1,userid);
                ResultSet result=stmt.executeQuery();

                //wrap the results into a list of beans
                while (result.next()) {
                    MessageBean temp=new MessageBean();

                    temp.setId(result.getInt(1));
                    temp.setTitle(result.getString(2));
                    temp.setDate(result.getTimestamp(3));
                    temp.setRead(result.getBoolean(4));
                    temp.getSenderBean().setName(result.getString(5));
                    temp.getSenderBean().setId(result.getInt(6));

                    list.add(temp);
                }

                result.close();
View Full Code Here


                stmt.setInt(1,userid);
                ResultSet result=stmt.executeQuery();

                //store messages in list of beans
                while (result.next()) {
                    MessageBean temp=new MessageBean();

                    temp.setId(result.getInt(1));
                    temp.setTitle(result.getString(2));
                    temp.setDate(result.getTimestamp(3));
                    temp.getRecipientBean().setName(result.getString(4));
                    temp.getRecipientBean().setId(result.getInt(5));

                    list.add(temp);
                }

                result.close();
View Full Code Here

TOP

Related Classes of com.lichtfragmente.beans.MessageBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.