📄 accounthome.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Fri Dec 15 15:32:51 PST 2000 -->
<TITLE>
WebLogic Server 6.0 Examples: Interface AccountHome
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../examples/stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 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="../../../../examples/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 6.0 Code Examples</b>, BEA Systems, Inc.</td></EM>
</TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | 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.ejb.basic.beanManaged</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>
<DL>
<DT><B>Author: </B><DD>Copyright (c) 1998 by WebLogic, Inc. All Rights Reserved., Copyright (c) 1998-2000 by BEA Systems, Inc. All Rights Reserved.</DD>
</DL>
<HR>
<P>
<!-- ======== INNER 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/ejb/basic/beanManaged/Account.html">Account</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../examples/ejb/basic/beanManaged/AccountHome.html#create(java.lang.String, double)">create</A></B>(java.lang.String accountId, double initialBalance)</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> java.util.Enumeration</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../examples/ejb/basic/beanManaged/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/ejb/basic/beanManaged/Account.html">Account</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../examples/ejb/basic/beanManaged/AccountHome.html#findByPrimaryKey(java.lang.String)">findByPrimaryKey</A></B>(java.lang.String primaryKey)</CODE>
<BR>
Attempts to find the EJBean with a given Primary Key from the persistent storage.</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(java.lang.String, double)"><!-- --></A><H3>
create</H3>
<PRE>
public <A HREF="../../../../examples/ejb/basic/beanManaged/Account.html">Account</A> <B>create</B>(java.lang.String accountId, double initialBalance) 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 bean-managed persistence, <code>create()</code> returns a primary key, unlike the case of container-managed persistence, where it returns a void.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>accountID</CODE> - String Account ID<DD><CODE>initialBalance</CODE> - double Initial Balance<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/ejb/basic/beanManaged/AccountBean.html"><CODE>AccountBean</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="findBigAccounts(double)"><!-- --></A><H3>
findBigAccounts</H3>
<PRE>
public java.util.Enumeration <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 an Enumeration of found EJBean primary keys.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>balanceGreaterThan</CODE> - double Test Amount<DT><B>Returns:</B><DD>Enumeration of Account<DT><B>Throws:</B><DD><CODE>javax.ejb.FinderException</CODE> - if there is an error 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/ejb/basic/beanManaged/AccountBean.html"><CODE>AccountBean</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="findByPrimaryKey(java.lang.String)"><!-- --></A><H3>
findByPrimaryKey</H3>
<PRE>
public <A HREF="../../../../examples/ejb/basic/beanManaged/Account.html">Account</A> <B>findByPrimaryKey</B>(java.lang.String primaryKey) throws javax.ejb.FinderException, java.rmi.RemoteException</PRE>
<DL>
<DD>Attempts to find the EJBean with a given Primary Key from the persistent storage.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>primaryKey</CODE> - String 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/ejb/basic/beanManaged/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=2 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="../../../../examples/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/docs60>http://e-docs.bea.com/wls/docs60</a></td></EM>
</TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | 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/docs60/copyright.html>Copyright</a> © 2000 BEA Systems, Inc. All Rights Reserved.
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -