⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 profilemanagement.java

📁 jainslee1.0 源代码
💻 JAVA
字号:
package javax.slee.profile;import javax.slee.SLEEException;/** * This interface must be implemented by a Profile Management Abstract Class * if a profile specification includes such a class. */public interface ProfileManagement {    /**     * The SLEE invokes this operation once the persistence representation     * for the profile has been created.  The profile may initialize its     * transient or CMP fields during this method.  This method is only     * invoked once for each profile table that is created, and provides the     * initial values for the profile table's default profile.     * <p>     * This method is invoked with an active transaction context.     * The SLEE follows a call to this method with a call to {@link #profileStore}     * and {@link #profileVerify} in the same transaction.     */    public void profileInitialize();    /**     * The SLEE invokes this method on a profile when the state of the profile object     * needs to be synchronized with the state in the underlying data source. The profile     * object should reload from CMP fields any transient state that depends on the     * state stored in those CMP fields.     * <p>     * This method is invoked with an active transaction context.     */    public void profileLoad();    /**     * The SLEE invokes this operation when the state of the underlying data source     * needs to be synchronized with the state of the profile.  The profile object     * should store into CMP fields any transient state that depends on the state     * stored in those CMP fields.     * <p>     * This method is invoked with an active transaction context.     */    public void profileStore();    /**     * The SLEE invokes this operation in response to a request by the Administrator     * to commit any changes made to the profile. The profile object should verify     * that the contents of its CMP fields at exit from this method form a valid     * configuration for SBB instances.  If not, a {@link ProfileVerificationException}     * should be thrown.     * @throws ProfileVerificationException if the profile fails any verification check.     */    public void profileVerify() throws ProfileVerificationException;    /**     * Mark the profile as being <i>dirty</i>, that is, that it has been modified since     * it was last committed.  Modifying a CMP field automatically flags the profile as     * being dirty, so this method only needs to be called, for example, if transient     * state changes.     * <p>     * An SBB Developer <i>must not</i> implement this operation.  It is implemented by     * the SLEE at deployment time.     * <p>     * This method must be invoked with a valid transaction context.     */    public void markProfileDirty();    /**     * Determine if the profile has been dirtied by an uncommitted change to its state.     * <p>     * An SBB Developer <i>must not</i> implement this operation.  It is implemented by     * the SLEE at deployment time.     * <p>     * This method must be invoked with a valid transaction context.     * @return <code>true</code> if the profile has been modified since last being     *       committed, <code>false</code> otherwise.     */    public boolean isProfileDirty();    /**     * Determine if the profile referenced by a specified profile identifier currently     * exists.     * <p>     * An SBB Developer <i>must not</i> implement this operation.  It is implemented by     * the SLEE at deployment time.     * <p>     * This method must be invoked with a valid transaction context.     * @param id the profile identifier.     * @return <code>true</code> if the profile referenced by the profile identifier     *        currently exists, <code>false</code> otherwise.     * @throws NullPointerException if <code>id</code> is <code>null</code>.     * @throws SLEEException if the profile identifier could not be validated due to     *        a system-level failure.     */    public boolean isProfileValid(ProfileID id)        throws NullPointerException, SLEEException;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -