📄 accounthome.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Fri Dec 05 15:19:26 PST 2003 -->
<TITLE>
AccountHome (WebLogic Server 8.1 Examples)
</TITLE>
<META NAME="keywords" CONTENT="examples.ejb20.sequence.userDesignated.AccountHome,AccountHome interface">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
</HEAD>
<SCRIPT>
function asd()
{
parent.document.title="AccountHome (WebLogic Server 8.1 Examples)";
}
</SCRIPT>
<BODY BGCOLOR="white" onload="asd();">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</td><td valign=bottom align=right><b>WebLogic Server 8.1 Code Examples</b>, BEA Systems, Inc.</td></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../examples/ejb20/sequence/userDesignated/Account.html"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="AccountHome.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT>
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
examples.ejb20.sequence.userDesignated</FONT>
<BR>
Interface AccountHome</H2>
<DL>
<DT><B>All Superinterfaces:</B> <DD>javax.ejb.EJBHome, java.rmi.Remote</DD>
</DL>
<HR>
<DL>
<DT>public interface <B>AccountHome</B><DT>extends javax.ejb.EJBHome</DL>
<P>
This interface is the home interface for the EJBean AccountBean. A home
interface may support one or more create methods,
which must correspond to methods named "ejbCreate" in the EJBean.
<P>
<P>
<DL>
<DT><B>Author:</B></DT>
<DD>Copyright (c) 1998-2003 by BEA Systems, Inc. All Rights Reserved.</DD>
</DL>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../examples/ejb20/sequence/userDesignated/Account.html">Account</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../examples/ejb20/sequence/userDesignated/AccountHome.html#create(double, java.lang.String)">create</A></B>(double initialBalance,
java.lang.String type)</CODE>
<BR>
This method corresponds to the ejbCreate method in the bean
"AccountBean.java".
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../examples/ejb20/sequence/userDesignated/Account.html">Account</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../examples/ejb20/sequence/userDesignated/AccountHome.html#findAccount(double)">findAccount</A></B>(double balanceEqual)</CODE>
<BR>
Finds an EJBean with a balance equal to a given amount.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Collection</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../examples/ejb20/sequence/userDesignated/AccountHome.html#findBigAccounts(double)">findBigAccounts</A></B>(double balanceGreaterThan)</CODE>
<BR>
Finds all EJBeans with a balance greater than a given amount.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../examples/ejb20/sequence/userDesignated/Account.html">Account</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../examples/ejb20/sequence/userDesignated/AccountHome.html#findByPrimaryKey(java.lang.Integer)">findByPrimaryKey</A></B>(java.lang.Integer primaryKey)</CODE>
<BR>
Given a Primary Key, refreshes the EJBean from
the persistent storage.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Collection</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../examples/ejb20/sequence/userDesignated/AccountHome.html#findNullAccounts()">findNullAccounts</A></B>()</CODE>
<BR>
Finds all EJBeans with a type of 'null'.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_javax.ejb.EJBHome"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from interface javax.ejb.EJBHome</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>getEJBMetaData, getHomeHandle, remove, remove</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="create(double, java.lang.String)"><!-- --></A><H3>
create</H3>
<PRE>
public <A HREF="../../../../examples/ejb20/sequence/userDesignated/Account.html">Account</A> <B>create</B>(double initialBalance,
java.lang.String type)
throws javax.ejb.CreateException,
java.rmi.RemoteException</PRE>
<DL>
<DD>This method corresponds to the ejbCreate method in the bean
"AccountBean.java".
The parameter sets of the two methods are identical. When the client calls
<code>AccountHome.create()</code>, the container (which in WebLogic EJB is
also the factory) allocates an instance of the bean and
calls <code>AccountBean.ejbCreate()</code>
For container-managed persistence, <code>ejbCreate()</code>
returns a null, unlike the case of bean-managed
persistence, where it returns a primary key. See section 9.4.2
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>initialBalance</CODE> - double Initial balance<DD><CODE>type</CODE> - String Account type
<DT><B>Returns:</B><DD>Account
<DT><B>Throws:</B>
<DD><CODE>javax.ejb.CreateException</CODE> - if there is an error creating the bean
<DD><CODE>java.rmi.RemoteException</CODE> - if there is
a communications or systems failure<DT><B>See Also:</B><DD><A HREF="../../../../examples/ejb20/sequence/userDesignated/AccountBean.html"><CODE>AccountBean</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="findAccount(double)"><!-- --></A><H3>
findAccount</H3>
<PRE>
public <A HREF="../../../../examples/ejb20/sequence/userDesignated/Account.html">Account</A> <B>findAccount</B>(double balanceEqual)
throws javax.ejb.FinderException,
java.rmi.RemoteException</PRE>
<DL>
<DD>Finds an EJBean with a balance equal to a given amount.
Returns a single EJBean Account.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>balanceEqual</CODE> - double Test Amount
<DT><B>Returns:</B><DD>Account
<DT><B>Throws:</B>
<DD><CODE>javax.ejb.FinderException</CODE> - if an error occurs while accessing
the persistent storage
<DD><CODE>java.rmi.RemoteException</CODE> - if there is
a communications or systems failure<DT><B>See Also:</B><DD><A HREF="../../../../examples/ejb20/sequence/userDesignated/AccountBean.html"><CODE>AccountBean</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="findBigAccounts(double)"><!-- --></A><H3>
findBigAccounts</H3>
<PRE>
public java.util.Collection <B>findBigAccounts</B>(double balanceGreaterThan)
throws javax.ejb.FinderException,
java.rmi.RemoteException</PRE>
<DL>
<DD>Finds all EJBeans with a balance greater than a given amount.
Returns a Collection of found EJBean Accounts.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>balanceGreaterThan</CODE> - double Test Amount
<DT><B>Returns:</B><DD>Collection of Account
<DT><B>Throws:</B>
<DD><CODE>javax.ejb.FinderException</CODE> - if an error occurs while accessing
the persistent storage
<DD><CODE>java.rmi.RemoteException</CODE> - if there is
a communications or systems failure<DT><B>See Also:</B><DD><A HREF="../../../../examples/ejb20/sequence/userDesignated/AccountBean.html"><CODE>AccountBean</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="findByPrimaryKey(java.lang.Integer)"><!-- --></A><H3>
findByPrimaryKey</H3>
<PRE>
public <A HREF="../../../../examples/ejb20/sequence/userDesignated/Account.html">Account</A> <B>findByPrimaryKey</B>(java.lang.Integer primaryKey)
throws javax.ejb.FinderException,
java.rmi.RemoteException</PRE>
<DL>
<DD>Given a Primary Key, refreshes the EJBean from
the persistent storage.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>primaryKey</CODE> - Primary Key
<DT><B>Returns:</B><DD>Account
<DT><B>Throws:</B>
<DD><CODE>javax.ejb.FinderException</CODE> - if there is an error finding the bean
<DD><CODE>java.rmi.RemoteException</CODE> - if there is
a communications or systems failure<DT><B>See Also:</B><DD><A HREF="../../../../examples/ejb20/sequence/userDesignated/AccountBean.html"><CODE>AccountBean</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="findNullAccounts()"><!-- --></A><H3>
findNullAccounts</H3>
<PRE>
public java.util.Collection <B>findNullAccounts</B>()
throws javax.ejb.FinderException,
java.rmi.RemoteException</PRE>
<DL>
<DD>Finds all EJBeans with a type of 'null'.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>Collection of Account
<DT><B>Throws:</B>
<DD><CODE>javax.ejb.FinderException</CODE> - if an error occurs while accessing
the persistent storage
<DD><CODE>java.rmi.RemoteException</CODE> - if there is
a communications or systems failure<DT><B>See Also:</B><DD><A HREF="../../../../examples/ejb20/sequence/userDesignated/AccountBean.html"><CODE>AccountBean</CODE></A></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</td><td valign=bottom align=right>Documentation is available at<br> <a href=http://e-docs.bea.com/wls/docs81>http://e-docs.bea.com/wls/docs81</a></td></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../examples/ejb20/sequence/userDesignated/Account.html"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="AccountHome.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT>
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<a href=http://e-docs.bea.com/wls/docs81/copyright.html>Copyright</a> © 2003 BEA Systems, Inc. All Rights Reserved.
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -