【Java开源代码栏目提醒】:网学会员为广大网友收集整理了,AddressPersisterIF.java,希望对大家有所帮助!
/* -*- mode: Java; fill-column: 72 -*-
* The contents of this file are subject to the ClickBlocks Public
* License Version 1.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.clickblocks.org
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied, including, but not limited to, the implied warranties of
* merchantability, fitness for a particular purpose and
* non-infringement. See the License for the specific language
* governing rights and limitations under the License.
*
* ClickBlocks, the ClickBlocks logo and combinations thereof are
* trademarks of ClickBlocks, LLC in the United States and other
* countries.
*
* The Initial Developer of the Original Code is ClickBlocks, LLC.
* Portions created by ClickBlocks, LLC are Copyright (C) 2000.
* All Rights Reserved.
*/
/*
* $Log: AddressPersisterIF.java,v $
* Revision 1.3 2000/11/14 12:25:22 mgrand
* Moved to clickblocks packages.
*
* Revision 1.2 2000/11/03 10:25:44 mgrand
* moved to clickblocks package structure.
*
* Revision 1.1.1.1 2000/10/30 01:37:38 mgrand
* reestablished local repository
*/
package org.clickblocks.entity;
import org.clickblocks.persistence.PersistenceIF;
import org.clickblocks.util.BusinessRuleException;
import org.clickblocks.util.DuplicateException;
import org.clickblocks.util.CBSystemException;
import java.util.Iterator;
/**
* This interface is implemented by all classes that manage the
* persistence of <code>AddressType<code> objects.
* @stereotype moment-interval
* @author Mark Grand
*/
public interface AddressPersisterIF extends PersistenceIF {
/** @link dependency
* @label Persists*/
/*#AddressType lnkAddressType;*/
/**
* Fetch all of the persisted <code>Address</code> and
* <code>AddressType</code> objects for the
* given <code>RelationshipEntity</code> object and add them to the
* object.
* @param entity The entity to retrieve addresses for.
* @exception CBSystemException
* If there is an problem that this method cannot
* otherwise classify, it wraps the exception in an
* CBSystemException.
*/
public void retrieve(RelationshipEntity entity)
throws CBSystemException;
/**
* Update the persisted addresses for the given entity. This works by
* discarding all existing persisted <code>AddressType</code> objects and
* the <code>Address</code> objects that they refer to and replacing
* them with the <code>AddressType</code> in the given iterator over
* <code>AddressType</code> objects. This can be used to associate
* addresses with an entity that has none or to delete all of the
* addresses associated with an entity.
* @param entity The entity to update addresses for.
* @exception CBSystemException
* If there is an problem that this method cannot
* otherwise classify, it wraps the exception in an
* CBSystemException.
*/
public void update(RelationshipEntity entity)
throws CBSystemException, BusinessRuleException, DuplicateException;
} // interface AddressPersisterIF
上一篇:
AddressList.java
下一篇:
试论建设企业信息化提升企业竞争力