View Javadoc
1   /*
2    *    Copyright 2010-2026 the original author or authors.
3    *
4    *    Licensed under the Apache License, Version 2.0 (the "License");
5    *    you may not use this file except in compliance with the License.
6    *    You may obtain a copy of the License at
7    *
8    *       https://www.apache.org/licenses/LICENSE-2.0
9    *
10   *    Unless required by applicable law or agreed to in writing, software
11   *    distributed under the License is distributed on an "AS IS" BASIS,
12   *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *    See the License for the specific language governing permissions and
14   *    limitations under the License.
15   */
16  package org.mybatis.jpetstore.mapper;
17  
18  import org.mybatis.jpetstore.domain.Account;
19  
20  /**
21   * The Interface AccountMapper.
22   */
23  public interface AccountMapper {
24  
25    /**
26     * Get account by username.
27     *
28     * @param username
29     *          the username
30     *
31     * @return the account
32     */
33    Account getAccountByUsername(String username);
34  
35    /**
36     * Get account by username and password.
37     *
38     * @param username
39     *          the username
40     * @param password
41     *          the password
42     *
43     * @return the account
44     */
45    Account getAccountByUsernameAndPassword(String username, String password);
46  
47    /**
48     * Insert account.
49     *
50     * @param account
51     *          the account
52     */
53    void insertAccount(Account account);
54  
55    /**
56     * Insert profile.
57     *
58     * @param account
59     *          the account
60     */
61    void insertProfile(Account account);
62  
63    /**
64     * Insert signon.
65     *
66     * @param account
67     *          the account
68     */
69    void insertSignon(Account account);
70  
71    /**
72     * Update account.
73     *
74     * @param account
75     *          the account
76     */
77    void updateAccount(Account account);
78  
79    /**
80     * Update profile.
81     *
82     * @param account
83     *          the account
84     */
85    void updateProfile(Account account);
86  
87    /**
88     * Update signon.
89     *
90     * @param account
91     *          the account
92     */
93    void updateSignon(Account account);
94  
95  }