MentaBean

Rev

Rev 161 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 161 Rev 196
Line 23... Line 23...
23
 * @author Sergio Oliveira Jr.
23
 * @author Sergio Oliveira Jr.
24
 */
24
 */
25
public interface MentaBean {
25
public interface MentaBean {
26
26
27
        /**
27
        /**
28
         * Attempt to insert a bean to the database.
-
 
-
 
28
         * Attempt to insert a bean in the database.
29
         *
29
         *
30
         * Note: This method can be called multiple times in the same bean. Of course the PK constraints will be enforced by the database, so you can change the PK by hand and call this method multiple times, to insert multiple beans. If the PK is an auto-generated database field (e.g. auto-increment),
30
         * Note: This method can be called multiple times in the same bean. Of course the PK constraints will be enforced by the database, so you can change the PK by hand and call this method multiple times, to insert multiple beans. If the PK is an auto-generated database field (e.g. auto-increment),
31
         * you will not change the PK by hand and a new PK will be automatically assigned to the bean.
31
         * you will not change the PK by hand and a new PK will be automatically assigned to the bean.
32
         */
32
         */
33
        public void insert();
33
        public void insert();