/*
 * Copyright 2007 Kickmogu Co. Ltd. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
 * either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */



/*
 * 作成日: 2005/06/23
 *
 * TODO この生成されたファイルのテンプレートを変更するには次へジャンプ:
 * ウィンドウ - 設定 - Java - コード・スタイル - コード・テンプレート
 */
package com.kickmogu.rhythm.addressbook.dao;

import com.kickmogu.rhythm.addressbook.*;

/**
 * @author mogu
 *
 */
public interface AddressBookTelephoneDao {
    public Class BEAN = AddressBookTelephone.class;
    public static final String getAddressBookTelephone_QUERY = "addressBookId = ? and telephoneId = ?";
    public static final String list_SQL = "select AddressBookTelephone.* from AddressBookTelephone, AddressBook "
    	+ " where registrant = ? and AddressBook.id = AddressBookTelephone.addressBookId ";
    
    public int update(AddressBookTelephone tel);
    
    public int insert(AddressBookTelephone tel);

    public int delete(AddressBookTelephone tel);
    
    public AddressBookTelephone getAddressBook_Telephone(int addressBookId, int telephoneId);
    public AddressBookTelephone[] list(int registrant);
}
