A B C D E F G H I N Q R S T U

A

add(int, int) - Method in interface example.entity.home.Home
Adds two numbers.
addCourse(Course) - Method in interface example.cmp.many2many.Student
Enrolls the Student in a Course.
addCourse(Course) - Method in class example.cmp.many2many.StudentBean
a little helper to enroll students in a Course
addCourse(Course) - Method in interface example.cmp.transaction.RegistrationSession
Adds a Course to the list of selected courses.
addCourse(Course) - Method in class example.cmp.transaction.RegistrationSessionBean
Adds a course to the set of selected courses for this session.
addStudent(Student) - Method in class example.cmp.one2many.HouseBean
Adds a student to the house.
addStudent(Student) - Method in interface example.cmp.one2many.House
Adds a student to the house.
addStudent(Student) - Method in interface example.cmp.many2many.Course
Adds a Student to the Course.
addStudent(Student) - Method in class example.cmp.many2many.CourseBean
Adds a Student to the Course.
afterBegin() - Method in class example.cmp.transaction.RegistrationSessionBean
Called by Resin-CMP after a new transaction has begun -- required by the SessionSynchronization interface.
afterCompletion(boolean) - Method in class example.cmp.transaction.RegistrationSessionBean
Called by Resin-CMP when a transaction has completed -- required by the SessionSynchronization interface.
authenticate(String, String) - Method in class example.cmp.transaction.CMPAuthenticator
Authenticate for the user and password.
authenticateCookie(String) - Method in class example.cmp.transaction.CMPAuthenticator
For more sophisticated sites, this would allow cookie-based authentication so the user doesn't always have to login.
availableCourses - Variable in class example.cmp.transaction.StudentJavaBean
 

B

beforeCompletion() - Method in class example.cmp.transaction.RegistrationSessionBean
Called by Resin-CMP just before a transaction is committed -- required by the SessionSynchronization interface.

C

ClientServlet - class example.cmp.one2many.ClientServlet.
A client to illustrate EJB managed relations in a one-to-many context.
ClientServlet - class example.cmp.one2one.ClientServlet.
Illustrates a client that makes use of the 1-1 related CMP beans.
ClientServlet - class example.cmp.select.ClientServlet.
A client to illustrate entity bean select methods.
ClientServlet - class example.cmp.id.ClientServlet.
A client to illustrate EJB managed identifying relationships.
ClientServlet - class example.cmp.map.ClientServlet.
A client to illustrate EJB managed identifying relationships and compound primary keys.
ClientServlet() - Constructor for class example.cmp.one2many.ClientServlet
 
ClientServlet() - Constructor for class example.cmp.one2one.ClientServlet
 
ClientServlet() - Constructor for class example.cmp.select.ClientServlet
 
ClientServlet() - Constructor for class example.cmp.id.ClientServlet
 
ClientServlet() - Constructor for class example.cmp.map.ClientServlet
 
CMPAuthenticator - class example.cmp.transaction.CMPAuthenticator.
A custom Authenticator that looks up users in the Student CMP bean.
CMPAuthenticator() - Constructor for class example.cmp.transaction.CMPAuthenticator
 
CollectionServlet - class example.cmp.many2many.CollectionServlet.
A client to illustrate EJB managed relations in a many-to-many context.
CollectionServlet() - Constructor for class example.cmp.many2many.CollectionServlet
 
count - Variable in class example.session.counter.CounterBean
 
Counter - interface example.session.counter.Counter.
 
CounterBean - class example.session.counter.CounterBean.
 
CounterBean() - Constructor for class example.session.counter.CounterBean
 
counterHome - Variable in class example.session.counter.CounterServlet
The servlet stores the home interface after the initial lookup.
CounterHome - interface example.session.counter.CounterHome.
 
CounterServlet - class example.session.counter.CounterServlet.
Client servlet querying a server about a greeting.
CounterServlet() - Constructor for class example.session.counter.CounterServlet
 
course - Variable in class example.cmp.map.GradeKey
 
Course - interface example.cmp.basic.Course.
Local interface for a course taught at Hogwarts, providing methods to view and change it.
Course - interface example.cmp.find.Course.
Local interface for the Course bean.
Course - interface example.cmp.create.Course.
Local interface for the Course bean.
Course - interface example.cmp.many2many.Course.
Local interface for Course entity
Course - interface example.cmp.one2one.Course.
Local interface for the Course bean.
Course - interface example.cmp.ejbql.Course.
Local interface for the Course bean.
Course - interface example.cmp.transaction.Course.
Local interface for the Course bean.
Course - interface example.cmp.map.Course.
Local interface for the Course bean.
CourseBean - class example.cmp.basic.CourseBean.
Implementation class for the Course bean.
CourseBean - class example.cmp.find.CourseBean.
Implementation class for the Course bean.
CourseBean - class example.cmp.create.CourseBean.
Implementation class for the Course bean.
CourseBean - class example.cmp.many2many.CourseBean.
Implementation class for the Course bean.
CourseBean - class example.cmp.one2one.CourseBean.
Implementation class for the Course bean.
CourseBean - class example.cmp.ejbql.CourseBean.
Implementation class for the Course bean.
CourseBean - class example.cmp.transaction.CourseBean.
Implementation class for the Course bean.
CourseBean - class example.cmp.map.CourseBean.
Implementation class for the Course bean.
CourseBean() - Constructor for class example.cmp.basic.CourseBean
 
CourseBean() - Constructor for class example.cmp.find.CourseBean
 
CourseBean() - Constructor for class example.cmp.create.CourseBean
 
CourseBean() - Constructor for class example.cmp.many2many.CourseBean
 
CourseBean() - Constructor for class example.cmp.one2one.CourseBean
 
CourseBean() - Constructor for class example.cmp.ejbql.CourseBean
 
CourseBean() - Constructor for class example.cmp.transaction.CourseBean
 
CourseBean() - Constructor for class example.cmp.map.CourseBean
 
courseHome - Variable in class example.cmp.many2many.CollectionServlet
 
courseHome - Variable in class example.cmp.many2many.FindServlet
 
courseHome - Variable in class example.cmp.one2one.ClientServlet
 
courseHome - Variable in class example.cmp.ejbql.FindServlet
 
courseHome - Variable in class example.cmp.transaction.RegistrationServlet
 
courseHome - Variable in class example.cmp.transaction.RegistrationSessionBean
Home Interface for the Course CMP bean.
courseHome - Variable in class example.cmp.map.ClientServlet
 
CourseHome - interface example.cmp.basic.CourseHome.
Minimal home interface for courses taught at Hogwarts, containing methods to find any Course.
CourseHome - interface example.cmp.find.CourseHome.
Home interface for the Course bean.
CourseHome - interface example.cmp.create.CourseHome.
Home interface for the Course bean.
CourseHome - interface example.cmp.many2many.CourseHome.
Home interface for the Course bean.
CourseHome - interface example.cmp.one2one.CourseHome.
Home interface for the Course bean.
CourseHome - interface example.cmp.ejbql.CourseHome.
Home interface for the Course bean.
CourseHome - interface example.cmp.transaction.CourseHome.
Home interface for the Course bean.
CourseHome - interface example.cmp.map.CourseHome.
Home interface for the Course bean.
CourseServlet - class example.cmp.basic.CourseServlet.
The basic CourseClient shows the basic flow of any Resin-CMP client.
CourseServlet() - Constructor for class example.cmp.basic.CourseServlet
 
create() - Method in interface example.cmp.transaction.RegistrationSessionHome
Returns a new RegistrationSessionBean.
create() - Method in interface example.stateless.hello.HelloHome
 
create() - Method in interface example.session.counter.CounterHome
 
create(String, String) - Method in interface example.cmp.create.CourseHome
create a new course entity-

create methods.

create(Student, String) - Method in interface example.cmp.id.QuidditchHome
Create a Quidditch entry for a student.
CreateServlet - class example.cmp.create.CreateServlet.
A client to illustrate the services of the CourseBean CMP bean.
CreateServlet() - Constructor for class example.cmp.create.CreateServlet
 

D

doGet(HttpServletRequest, HttpServletResponse) - Method in class example.stateless.hello.HelloServlet
Calls the hello method.
doGet(HttpServletRequest, HttpServletResponse) - Method in class example.session.counter.CounterServlet
Calls the counter twice.

E

ejbCreate() - Method in class example.cmp.transaction.RegistrationSessionBean
Tries to resolve the calling .
ejbCreate() - Method in class example.stateless.hello.HelloBean
The ejbCreate method initializes the stateless bean instance.
ejbCreate() - Method in class example.session.counter.CounterBean
 
ejbCreate(String, String) - Method in class example.cmp.create.CourseBean
Creates a new Course entity.
ejbCreate(Student, Course, String) - Method in class example.cmp.map.GradeBean
Create a new grade object.
ejbCreate(Student, String) - Method in class example.cmp.id.QuidditchBean
Creates the student's scores, setting primary keys and fields.
ejbFindByPrimaryKey(String) - Method in class example.entity.home.HomeBean
The primary key is just a dummy.
ejbHomeAdd(int, int) - Method in class example.entity.home.HomeBean
Adds two numbers.
ejbHomeHello() - Method in class example.entity.home.HomeBean
Returns hello, world.
ejbPostCreate(String, String) - Method in class example.cmp.create.CourseBean
required by ejbCreate(String, String)
ejbPostCreate(Student, Course, String) - Method in class example.cmp.map.GradeBean
Create a new grade object.
ejbPostCreate(Student, String) - Method in class example.cmp.id.QuidditchBean
Sets any relations.
ejbSelectAllBoys(House) - Method in class example.cmp.select.HouseBean
Returns a Collection of Strings of all Student's names who are boys.
enrolledCourses - Variable in class example.cmp.transaction.StudentJavaBean
 
equals(Object) - Method in class example.cmp.map.GradeKey
Overrides equals to return true when the key matches.
example.cmp.basic - package example.cmp.basic
Introducing Container Managed Persistance (CMP) fundamental concepts.
example.cmp.create - package example.cmp.create
Introducing CMP create(...) methods.
example.cmp.ejbql - package example.cmp.ejbql
Introducing advanced EJB-QL for Finder Methods.
example.cmp.find - package example.cmp.find
Introducing CMP Finder methods.
example.cmp.id - package example.cmp.id
 
example.cmp.many2many - package example.cmp.many2many
Container Managed Relationships in a many-to-many (n-n) context.
example.cmp.map - package example.cmp.map
 
example.cmp.one2many - package example.cmp.one2many
Container Managed Relationships (CMR)
example.cmp.one2one - package example.cmp.one2one
Container Managed Relationships in a one-to-one (1-1) context.
example.cmp.select - package example.cmp.select
Shows EJB 2.0 select methods, as opposed to finder methods
example.cmp.transaction - package example.cmp.transaction
Transactions with EJB 2.0
example.entity.home - package example.entity.home
 
example.session.counter - package example.session.counter
 
example.stateless.hello - package example.stateless.hello
 

F

finalizeRegistration() - Method in interface example.cmp.transaction.RegistrationSession
Consitutes a transaction that tries to commit every course in the RegistrationSessionBean's list of selected courses to the database.
finalizeRegistration() - Method in class example.cmp.transaction.RegistrationSessionBean
Executes a transaction that will commit the selected courses to the persistant store unless an error occurs.
findAll() - Method in interface example.cmp.find.CourseHome
Returns a Collection of all Course entities in the database.
findAll() - Method in interface example.cmp.create.CourseHome
returns a Collection of all courses.
findAll() - Method in interface example.cmp.one2many.StudentHome
returns a Collection of all students managed by the container.
findAll() - Method in interface example.cmp.one2many.HouseHome
returns a Collection of all Houses managed by the container.
findAll() - Method in interface example.cmp.one2one.CourseHome
returns all Courses managed by the container (Finder method).
findAll() - Method in interface example.cmp.ejbql.StudentHome
Returns a Collection of all Students enrolled at Hogwarts.
findAll() - Method in interface example.cmp.select.StudentHome
Returns a Collection of all Students enrolled.
findAll() - Method in interface example.cmp.select.HouseHome
Returns all the houses in the database.
findAll() - Method in interface example.cmp.transaction.CourseHome
Returns a Collection of all Courses taught.
findAll() - Method in interface example.cmp.id.StudentHome
Returns all the students.
findAll() - Method in interface example.cmp.map.StudentHome
Returns all the students.
findByCourse(String) - Method in interface example.cmp.many2many.StudentHome
finds all courses for a student
findByHouse(String) - Method in interface example.cmp.ejbql.CourseHome
Finds all the courses for the students living in a house.
findByInstructor(String) - Method in interface example.cmp.find.CourseHome
Returns the Course taught by the indicated instructor.
findByName(String) - Method in interface example.cmp.transaction.StudentHome
Returns the Student with the given name.
findByPrimaryKey(GradeKey) - Method in interface example.cmp.map.GradeHome
Returns the Grade entity that matches the key.
findByPrimaryKey(int) - Method in interface example.cmp.transaction.StudentHome
Returns the Student entity that has name as its primary key.
findByPrimaryKey(int) - Method in interface example.cmp.transaction.CourseHome
Returns the Course identified by the given primary key.
findByPrimaryKey(String) - Method in interface example.cmp.basic.CourseHome
Returns the Course with courseId as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.find.CourseHome
Returns the Course that has courseId as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.create.CourseHome
returns the Course that has courseId as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.one2many.StudentHome
returns the Student entity that has name as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.one2many.HouseHome
returns the House that has name as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.many2many.StudentHome
returns the Student entity that has name as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.many2many.CourseHome
returns the Course that has name as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.one2one.TeacherHome
returns the Teacher entity that has name as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.one2one.CourseHome
returns the Course that has name as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.ejbql.HouseHome
returns the House that has name as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.ejbql.StudentHome
Returns the Student entity that has name as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.ejbql.TeacherHome
returns the Teacher entity that has name as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.ejbql.CourseHome
This is an example of a finder method that returns a single entity if successful, and throws an ObjectNotFoundException if it was unsuccessful.
findByPrimaryKey(String) - Method in interface example.cmp.select.StudentHome
Returns the Student entity that has name as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.select.HouseHome
returns the House that has name as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.id.StudentHome
returns the Student entity that has name as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.map.CourseHome
returns the Course entity that has name as its primary key.
findByPrimaryKey(String) - Method in interface example.cmp.map.StudentHome
returns the Student entity that has name as its primary key.
findByPrimaryKey(String) - Method in interface example.entity.home.Home
Dummy find by primary key.
findByPrimaryKey(Student) - Method in interface example.cmp.id.QuidditchHome
Returns the Quidditch entity with the Student as its primary key.
findByStudent(String) - Method in interface example.cmp.many2many.CourseHome
Returns all Courses that a student is enrolled in.
findByStudent(String) - Method in interface example.cmp.ejbql.TeacherHome
Finds the teachers teaching any classes with the named student.
FindServlet - class example.cmp.find.FindServlet.
A client to illustrate Course bean's finder methods.
FindServlet - class example.cmp.many2many.FindServlet.
A client to illustrate EJB managed relations in a many-to-many context.
FindServlet - class example.cmp.ejbql.FindServlet.
A client to illustrate entity bean finder methods
FindServlet() - Constructor for class example.cmp.find.FindServlet
 
FindServlet() - Constructor for class example.cmp.many2many.FindServlet
 
FindServlet() - Constructor for class example.cmp.ejbql.FindServlet
 

G

gender - Variable in class example.cmp.transaction.StudentJavaBean
 
getAllBoyNamesSorted() - Method in interface example.cmp.select.House
returns a sorted List of all Students in this House who are boys.
getAllBoyNamesSorted() - Method in class example.cmp.select.HouseBean
The business method to find the boys in this house.
getAvailableCourses() - Method in interface example.cmp.transaction.RegistrationSession
Returns a Collection of all available Courses.
getAvailableCourses() - Method in class example.cmp.transaction.StudentJavaBean
 
getAvailableCourses() - Method in class example.cmp.transaction.RegistrationSessionBean
Returns a Collection of all Courses offered (including those that the student has already selected).
getCourse() - Method in interface example.cmp.one2one.Teacher
returns the Course associated with the Teacher (CMR field).
getCourse() - Method in class example.cmp.one2one.TeacherBean
returns the Course taught by the Teacher
getCourse() - Method in class example.cmp.ejbql.TeacherBean
Returns the Course that this Teacher is teaching (CMR field).
getCourse() - Method in interface example.cmp.ejbql.Teacher
Returns the Course that this Teacher is teaching (CMR field).
getCourse() - Method in class example.cmp.map.GradeBean
Returns the Grade's course.
getCourse() - Method in interface example.cmp.map.Grade
Returns the Grade's course.
getCourseId() - Method in class example.cmp.basic.CourseBean
Returns the ID of the course, the primary key.
getCourseId() - Method in interface example.cmp.basic.Course
Returns the ID of the course (CMP field).
getCourseId() - Method in interface example.cmp.find.Course
returns the id (and name) of this course (CMP field).
getCourseId() - Method in class example.cmp.find.CourseBean
Returns the id (and name) of this course (CMP field).
getCourseId() - Method in interface example.cmp.create.Course
returns the ID of the course.
getCourseId() - Method in class example.cmp.create.CourseBean
returns the id of this course, which is also the name of the course (CMP field).
getCourseList() - Method in interface example.cmp.many2many.Student
Returns a Collection of the student's courses (CMR field)
getCourseList() - Method in class example.cmp.many2many.StudentBean
returns a Collection of all Courses the Student is currently enrolled in.
getCourseList() - Method in class example.cmp.ejbql.StudentBean
Returns a Collection of all Courses that the student is currently enrolled in (CMR field).
getCourseList() - Method in interface example.cmp.ejbql.Student
Returns a Collection of all Courses that the student is currently enrolled in (CMR field).
getCourseList() - Method in interface example.cmp.transaction.Student
Returns a Collection of all Courses that the student is currently enrolled in (CMR field).
getCourseList() - Method in class example.cmp.transaction.StudentBean
Returns a Collection of all Courses that the student is currently enrolled in (CMR field).
getEnrolledCourses() - Method in interface example.cmp.transaction.RegistrationSession
Returns a Collection of all Courses that the Student currently enrolled in.
getEnrolledCourses() - Method in class example.cmp.transaction.StudentJavaBean
 
getEnrolledCourses() - Method in class example.cmp.transaction.RegistrationSessionBean
Returns a Collection of Courses that the now registering Student is currently enrolled in.
getGender() - Method in class example.cmp.ejbql.StudentBean
Returns the gender of the student (CMP field).
getGender() - Method in interface example.cmp.ejbql.Student
Returns the gender of the student (CMP field).
getGender() - Method in class example.cmp.select.StudentBean
Returns the gender of the student (CMP field).
getGender() - Method in class example.cmp.transaction.StudentJavaBean
 
getGender() - Method in interface example.cmp.transaction.Student
Returns the gender of the student (CMP field).
getGender() - Method in class example.cmp.transaction.StudentBean
Returns the gender of the student (CMP field).
getGrade() - Method in class example.cmp.map.GradeBean
Returns the grade.
getGrade() - Method in interface example.cmp.map.Grade
Returns the grade.
getGrades() - Method in class example.cmp.map.StudentBean
Returns a map of the student's grades.
getGrades() - Method in interface example.cmp.map.Student
Returns the student's grades.
getHouse() - Method in class example.cmp.one2many.StudentBean
Returns the House that the student belongs to (CMR field).
getHouse() - Method in interface example.cmp.one2many.Student
Returns the student's house (CMR field).
getHouse() - Method in class example.cmp.ejbql.StudentBean
returns the House that this Student belongs to (CMR field).
getHouse() - Method in interface example.cmp.ejbql.Student
returns the House that this Student belongs to (CMR field).
getHouse() - Method in interface example.cmp.select.Student
Returns the House that this Student belongs to (CMR field).
getHouse() - Method in class example.cmp.select.StudentBean
returns the House that this Student belongs to (CMR field).
getId() - Method in class example.cmp.transaction.StudentJavaBean
 
getId() - Method in interface example.cmp.transaction.Course
Returns the ID of this course (CMP field).
getId() - Method in interface example.cmp.transaction.Student
Returns the student's ID (CMP field).
getId() - Method in class example.cmp.transaction.StudentBean
Returns the student ID (which is also the primary key) of this student (CMP field).
getId() - Method in class example.cmp.transaction.CourseBean
Returns the ID of this course (CMP field).
getInstructor() - Method in class example.cmp.basic.CourseBean
Returns the name of the instructor for this course.
getInstructor() - Method in interface example.cmp.basic.Course
Returns the instructor's name (CMP field).
getInstructor() - Method in interface example.cmp.find.Course
returns the name of the instructor who is teaching this course (CMP field).
getInstructor() - Method in class example.cmp.find.CourseBean
returns the name of the instructor who is teaching this course (CMP field).
getInstructor() - Method in interface example.cmp.create.Course
returns the name of the instructor who is teaching this course.
getInstructor() - Method in class example.cmp.create.CourseBean
returns the name of the instructor who is teaching this course (CMP field).
getInstructor() - Method in interface example.cmp.many2many.Course
Returns the name of the instructor teaching the Course (CMP field).
getInstructor() - Method in class example.cmp.many2many.CourseBean
Returns the name of the instructor teaching the Course (CMP field).
getMaxStudentAmount() - Method in class example.cmp.transaction.CourseBean
returns the maximum amount of students allowed to be enrolled in this course (CMP field).
getName() - Method in class example.cmp.one2many.StudentBean
Returns the name of the student (CMP field).
getName() - Method in interface example.cmp.one2many.Student
Returns the student's name (CMP field).
getName() - Method in class example.cmp.one2many.HouseBean
returns the name of the house (CMP field).
getName() - Method in interface example.cmp.one2many.House
returns the name of the house (CMP field).
getName() - Method in interface example.cmp.many2many.Course
Returns the name of the Course (CMP field).
getName() - Method in class example.cmp.many2many.CourseBean
Returns the name of the Course (CMP field).
getName() - Method in interface example.cmp.many2many.Student
Returns the student's name (CMP field).
getName() - Method in class example.cmp.many2many.StudentBean
Returns the name of the student (CMP field).
getName() - Method in class example.cmp.one2one.CourseBean
Returns the name of the course (CMP field).
getName() - Method in interface example.cmp.one2one.Teacher
returns the the name of the Teacher (CMP field).
getName() - Method in interface example.cmp.one2one.Course
Returns the name of the Course (CMP field).
getName() - Method in class example.cmp.one2one.TeacherBean
returns the Teacher's name
getName() - Method in interface example.cmp.ejbql.House
returns the name of the house (CMP field).
getName() - Method in interface example.cmp.ejbql.Course
Get the ID of the course (CMP field).
getName() - Method in class example.cmp.ejbql.HouseBean
returns the name of the house (CMP field).
getName() - Method in class example.cmp.ejbql.StudentBean
Returns the name of the student (CMP field).
getName() - Method in class example.cmp.ejbql.TeacherBean
returns the Teacher's name
getName() - Method in interface example.cmp.ejbql.Student
Returns the student's name (CMP field).
getName() - Method in class example.cmp.ejbql.CourseBean
CMP accessor and mutator methods are left for Resin-CMP to implement.
getName() - Method in interface example.cmp.ejbql.Teacher
returns the the name of the Teacher (CMP field).
getName() - Method in interface example.cmp.select.Student
Returns the student's name (the primary key).
getName() - Method in interface example.cmp.select.House
returns the name of the house (CMP field).
getName() - Method in class example.cmp.select.StudentBean
Returns the name of the student (CMP field).
getName() - Method in class example.cmp.select.HouseBean
Returns the name of the house.
getName() - Method in class example.cmp.transaction.StudentJavaBean
 
getName() - Method in interface example.cmp.transaction.Course
Get the ID of the course (CMP field).
getName() - Method in interface example.cmp.transaction.Student
Returns the student's name (CMP field).
getName() - Method in class example.cmp.transaction.StudentBean
Returns the name of the student (CMP field).
getName() - Method in class example.cmp.transaction.CourseBean
Returns the name of this Course (CMP field).
getName() - Method in class example.cmp.id.StudentBean
Returns the name of the student.
getName() - Method in interface example.cmp.id.Student
Returns the student's name.
getName() - Method in class example.cmp.map.CourseBean
Returns the name of the course.
getName() - Method in class example.cmp.map.StudentBean
Returns the name of the student.
getName() - Method in interface example.cmp.map.Student
Returns the student's name.
getName() - Method in interface example.cmp.map.Course
Returns the course's name.
getPassword() - Method in interface example.cmp.transaction.Student
Returns the password associated with this student.
getPassword() - Method in class example.cmp.transaction.StudentBean
Returns the password associated with this student.
getPoints() - Method in class example.cmp.id.QuidditchBean
Returns the number of points the student has earned.
getPoints() - Method in interface example.cmp.id.Quidditch
Returns the number of points the player has earned this season.
getPosition() - Method in class example.cmp.id.QuidditchBean
Returns the position the student plays on the team.
getPosition() - Method in interface example.cmp.id.Quidditch
Returns the player's position.
getQuidditch() - Method in class example.cmp.id.StudentBean
Returns the student's Quidditch statistics, if the student is on the house team.
getQuidditch() - Method in interface example.cmp.id.Student
Returns the student's quidditch scores.
getSelectedCourses() - Method in interface example.cmp.transaction.RegistrationSession
Returns a Collection of all Courses that are currently selected in this RegistrationSession Bean.
getSelectedCourses() - Method in class example.cmp.transaction.StudentJavaBean
 
getSelectedCourses() - Method in class example.cmp.transaction.RegistrationSessionBean
Returns a Collection of all courses currently selected.
getStudent() - Method in class example.cmp.id.QuidditchBean
Returns the owning student.
getStudent() - Method in interface example.cmp.id.Quidditch
Returns the student.
getStudent() - Method in class example.cmp.map.GradeBean
Returns the Grade's student.
getStudent() - Method in interface example.cmp.map.Grade
Returns the Grade's student.
getStudentHome() - Method in class example.cmp.transaction.CMPAuthenticator
Returns the student home, looking it up in the JNDI context if necessary.
getStudentList() - Method in class example.cmp.one2many.HouseBean
returns a Collection of all Studentss managed by the container (CMR field).
getStudentList() - Method in interface example.cmp.one2many.House
returns a list of all students living in this house (CMR field).
getStudentList() - Method in interface example.cmp.many2many.Course
Returns a Collection of all students enrolled in the Course (CMR field).
getStudentList() - Method in class example.cmp.many2many.CourseBean
Returns a Collection of all Students that are taking this course (CMR field).
getStudentList() - Method in interface example.cmp.ejbql.House
returns a Collection of all Students living in this House (CMR field).
getStudentList() - Method in interface example.cmp.ejbql.Course
Returns a Collection of all Students who are currently enrolled in this Course (CMR field).
getStudentList() - Method in class example.cmp.ejbql.HouseBean
returns a Collection of all Students living in this House (CMR field).
getStudentList() - Method in class example.cmp.ejbql.CourseBean
Returns a Collection of all Student who are currently enrolled in this Course (CMR field).
getStudentList() - Method in interface example.cmp.select.House
returns a Collection of all Students living in this House (CMR field).
getStudentList() - Method in class example.cmp.select.HouseBean
returns a Collection of all Students living in this House (CMR field).
getStudentList() - Method in interface example.cmp.transaction.Course
Returns a Collection of all Students who are currently enrolled in this Course (CMR field).
getStudentList() - Method in class example.cmp.transaction.CourseBean
Returns a Collection of all Student who are currently enrolled in this Course (CMR field).
getStudentName() - Method in interface example.cmp.transaction.RegistrationSession
Returns the name of the Student who is currently selecting Courses.
getStudentName() - Method in class example.cmp.transaction.RegistrationSessionBean
Returns the name of the Student who is selecting Courses.
getTeacher() - Method in class example.cmp.one2one.CourseBean
Returns the Teacher who is teaching this Course (CMR field).
getTeacher() - Method in interface example.cmp.one2one.Course
Returns the Teacher teaching this Course (CMR field).
getTeacher() - Method in interface example.cmp.ejbql.Course
returns the Teacher who is teaching this Course (CMR field).
getTeacher() - Method in class example.cmp.ejbql.CourseBean
returns the Teacher who is teaching this Course (CMR field).
Grade - interface example.cmp.map.Grade.
Interface for the Grade bean.
GradeBean - class example.cmp.map.GradeBean.
Implementation class for the Grade bean.
GradeBean() - Constructor for class example.cmp.map.GradeBean
 
gradeHome - Variable in class example.cmp.map.ClientServlet
 
GradeHome - interface example.cmp.map.GradeHome.
Home interface for the Grade bean.
GradeKey - class example.cmp.map.GradeKey.
The composite grade key.
GradeKey() - Constructor for class example.cmp.map.GradeKey
Null constructor for the GradeKey.
GradeKey(Student, Course) - Constructor for class example.cmp.map.GradeKey
Create a new GradeKey.

H

hashCode() - Method in class example.cmp.map.GradeKey
Returns the key's hash code.
Hello - interface example.stateless.hello.Hello.
 
hello() - Method in interface example.stateless.hello.Hello
 
hello() - Method in class example.stateless.hello.HelloBean
This business method returns a trivial string.
hello() - Method in interface example.entity.home.Home
Returns hello, world.
HelloBean - class example.stateless.hello.HelloBean.
The trivial stateless session bean returns a greeting.
HelloBean() - Constructor for class example.stateless.hello.HelloBean
 
helloHome - Variable in class example.stateless.hello.HelloServlet
The servlet stores the home interface after the initial lookup.
HelloHome - interface example.stateless.hello.HelloHome.
 
HelloServlet - class example.stateless.hello.HelloServlet.
Client servlet querying a server about a greeting.
HelloServlet() - Constructor for class example.stateless.hello.HelloServlet
 
hit() - Method in class example.session.counter.CounterBean
 
hit() - Method in interface example.session.counter.Counter
 
home - Variable in class example.cmp.basic.CourseServlet
Cached reference to the CourseHome interface.
home - Variable in class example.cmp.find.FindServlet
The course local home interface.
home - Variable in class example.cmp.create.CreateServlet
 
home - Variable in class example.entity.home.HomeServlet
Caches the home interface from the JNDI lookup.
Home - interface example.entity.home.Home.
Remote interface for the hello home.
HomeBean - class example.entity.home.HomeBean.
Implementation of the HomeBean.
HomeBean() - Constructor for class example.entity.home.HomeBean
 
HomeObj - interface example.entity.home.HomeObj.
The object interface is just a dummy.
HomeServlet - class example.entity.home.HomeServlet.
Client using the entity home call for a hello and an add call.
HomeServlet() - Constructor for class example.entity.home.HomeServlet
 
House - interface example.cmp.one2many.House.
Local interface for the House bean.
House - interface example.cmp.ejbql.House.
Local interface for the House bean.
House - interface example.cmp.select.House.
Local interface for the House bean.
HouseBean - class example.cmp.one2many.HouseBean.
Implementation class for the House bean.
HouseBean - class example.cmp.ejbql.HouseBean.
Implementation class for the House bean.
HouseBean - class example.cmp.select.HouseBean.
Implementation class for the House bean.
HouseBean() - Constructor for class example.cmp.one2many.HouseBean
 
HouseBean() - Constructor for class example.cmp.ejbql.HouseBean
 
HouseBean() - Constructor for class example.cmp.select.HouseBean
 
houseHome - Variable in class example.cmp.one2many.ClientServlet
 
houseHome - Variable in class example.cmp.ejbql.FindServlet
 
houseHome - Variable in class example.cmp.select.ClientServlet
 
HouseHome - interface example.cmp.one2many.HouseHome.
Home interface for the House bean.
HouseHome - interface example.cmp.ejbql.HouseHome.
Home interface for the House bean.
HouseHome - interface example.cmp.select.HouseHome.
Home interface for the House bean.

I

id - Variable in class example.cmp.transaction.StudentJavaBean
 
init() - Method in class example.cmp.basic.CourseServlet
Initializes the reference to the CourseBean home interface.
init() - Method in class example.cmp.find.FindServlet
Finds the course's home interface using JNDI.
init() - Method in class example.cmp.create.CreateServlet
gets a reference to the CourseBean home interface
init() - Method in class example.cmp.one2many.ClientServlet
 
init() - Method in class example.cmp.many2many.CollectionServlet
 
init() - Method in class example.cmp.many2many.FindServlet
 
init() - Method in class example.cmp.one2one.ClientServlet
 
init() - Method in class example.cmp.ejbql.FindServlet
 
init() - Method in class example.cmp.select.ClientServlet
 
init() - Method in class example.cmp.transaction.RegistrationServlet
resolves all required Home Interfaces
init() - Method in class example.cmp.id.ClientServlet
Load the EJB Home objects one.
init() - Method in class example.cmp.map.ClientServlet
Load the EJB Home objects one.
init() - Method in class example.stateless.hello.HelloServlet
The init method looks up the HelloHome interface using JNDI and stores it in a servlet variable.
init() - Method in class example.session.counter.CounterServlet
The init method looks up the CounterHome interface using JNDI and stores it in a servlet variable.
init() - Method in class example.entity.home.HomeServlet
On init, load the Home from the JNDI context.
init(CauchoApplication, RegistryNode) - Method in class example.cmp.transaction.CMPAuthenticator
init is called when the application starts.
isComplete - Variable in class example.cmp.transaction.RegistrationSessionBean
True when the registration has completed and mail has been sent.
isComplete() - Method in interface example.cmp.transaction.RegistrationSession
Returns true if the registration is complete.
isComplete() - Method in class example.cmp.transaction.RegistrationSessionBean
Returns true if the registration is complete.
isCompleting - Variable in class example.cmp.transaction.RegistrationSessionBean
True for the finalizing method.
isFull() - Method in interface example.cmp.transaction.Course
Returns true if the course is full and no more students can enroll in it.
isFull() - Method in class example.cmp.transaction.CourseBean
Returns true if the course is full and no more students can enroll in it.
isUserInRole(Principal, String) - Method in class example.cmp.transaction.CMPAuthenticator
Returns true if the user is in the specified role.

N

name - Variable in class example.cmp.transaction.StudentJavaBean
 
NEXT_PAGE - Static variable in class example.cmp.transaction.RegistrationServlet
 

Q

Quidditch - interface example.cmp.id.Quidditch.
Local interface for the Quidditch bean.
QuidditchBean - class example.cmp.id.QuidditchBean.
Implementation class for the Quidditch bean.
QuidditchBean() - Constructor for class example.cmp.id.QuidditchBean
 
quidditchHome - Variable in class example.cmp.id.ClientServlet
 
QuidditchHome - interface example.cmp.id.QuidditchHome.
Home interface for the Quidditch statistics.

R

REGISTRATION_SESSION_NAME - Static variable in class example.cmp.transaction.RegistrationServlet
 
RegistrationDeniedException - exception example.cmp.transaction.RegistrationDeniedException.
 
RegistrationDeniedException(String) - Constructor for class example.cmp.transaction.RegistrationDeniedException
 
RegistrationServlet - class example.cmp.transaction.RegistrationServlet.
Manages the registration process by invoking business logic and dispatching the results to Resin XTP (Serif) views.
RegistrationServlet() - Constructor for class example.cmp.transaction.RegistrationServlet
 
RegistrationSession - interface example.cmp.transaction.RegistrationSession.
Local Interface for the RegistrationSession bean.
RegistrationSessionBean - class example.cmp.transaction.RegistrationSessionBean.
Implementation Class for the RegistrationSession bean.
RegistrationSessionBean() - Constructor for class example.cmp.transaction.RegistrationSessionBean
Standard Constructor.
registrationSessionHome - Variable in class example.cmp.transaction.RegistrationServlet
 
RegistrationSessionHome - interface example.cmp.transaction.RegistrationSessionHome.
Home Interface for the RegistrationSession bean.
removeCourse(Course) - Method in interface example.cmp.many2many.Student
Drops a Course for the Student.
removeCourse(Course) - Method in class example.cmp.many2many.StudentBean
a little helper to drop a Course
removeCourse(Course) - Method in interface example.cmp.transaction.RegistrationSession
Removes a Course from the list of selected courses.
removeCourse(Course) - Method in class example.cmp.transaction.RegistrationSessionBean
Deletes a course from the set of selected courses for this session.
removeStudent(Student) - Method in class example.cmp.one2many.HouseBean
Removes a student from the house.
removeStudent(Student) - Method in interface example.cmp.one2many.House
Removes a student from the house.
removeStudent(Student) - Method in interface example.cmp.many2many.Course
Removes a Student from the Course.
removeStudent(Student) - Method in class example.cmp.many2many.CourseBean
Removes a Student from the Course.

S

selectedCourses - Variable in class example.cmp.transaction.StudentJavaBean
 
selectedCourses - Variable in class example.cmp.transaction.RegistrationSessionBean
Currently selected Courses.
service(HttpServletRequest, HttpServletResponse) - Method in class example.cmp.basic.CourseServlet
Illustrates how to interact with the Course EJB
service(HttpServletRequest, HttpServletResponse) - Method in class example.cmp.find.FindServlet
 
service(HttpServletRequest, HttpServletResponse) - Method in class example.cmp.create.CreateServlet
 
service(HttpServletRequest, HttpServletResponse) - Method in class example.cmp.one2many.ClientServlet
 
service(HttpServletRequest, HttpServletResponse) - Method in class example.cmp.many2many.CollectionServlet
 
service(HttpServletRequest, HttpServletResponse) - Method in class example.cmp.many2many.FindServlet
 
service(HttpServletRequest, HttpServletResponse) - Method in class example.cmp.one2one.ClientServlet
 
service(HttpServletRequest, HttpServletResponse) - Method in class example.cmp.ejbql.FindServlet
 
service(HttpServletRequest, HttpServletResponse) - Method in class example.cmp.select.ClientServlet
 
service(HttpServletRequest, HttpServletResponse) - Method in class example.cmp.transaction.RegistrationServlet
 
service(HttpServletRequest, HttpServletResponse) - Method in class example.cmp.id.ClientServlet
Print the statistics for all the students.
service(HttpServletRequest, HttpServletResponse) - Method in class example.cmp.map.ClientServlet
Print the statistics for all the students.
service(ServletRequest, ServletResponse) - Method in class example.entity.home.HomeServlet
Prints the result of the hello call and the add call.
setAvailableCourses(Collection) - Method in class example.cmp.transaction.StudentJavaBean
 
setCourse(Course) - Method in class example.cmp.map.GradeBean
Sets the Grade's course.
setCourseId(String) - Method in class example.cmp.basic.CourseBean
Sets the primary key of the course, only called from a create method.
setCourseId(String) - Method in class example.cmp.find.CourseBean
Sets the id (and name) of this course (CMP field).
setCourseId(String) - Method in class example.cmp.create.CourseBean
sets the id of this course (CMP field).
setEnrolledCourses(Collection) - Method in class example.cmp.transaction.StudentJavaBean
 
setGender(String) - Method in class example.cmp.ejbql.StudentBean
Sets the gender of the student (CMP field).
setGender(String) - Method in interface example.cmp.ejbql.Student
Sets the gender of the student (CMP field).
setGender(String) - Method in class example.cmp.select.StudentBean
Sets the gender of the student (CMP field).
setGender(String) - Method in class example.cmp.transaction.StudentJavaBean
 
setGender(String) - Method in interface example.cmp.transaction.Student
Sets the gender of the student (CMP field).
setGender(String) - Method in class example.cmp.transaction.StudentBean
Sets the gender of the student (CMP field).
setGrade(String) - Method in class example.cmp.map.GradeBean
Sets the grade.
setHouse(House) - Method in class example.cmp.one2many.StudentBean
Sets the House that the student belongs to (CMR field).
setHouse(House) - Method in interface example.cmp.one2many.Student
Sets the student's house (CMR field).
setHouse(House) - Method in class example.cmp.ejbql.StudentBean
sets the House that this Student is to belong to (CMR field).
setHouse(House) - Method in interface example.cmp.ejbql.Student
sets the House that this Student is to belong to (CMR field).
setHouse(House) - Method in interface example.cmp.select.Student
sets the House that this Student is to belong to (CMR field).
setHouse(House) - Method in class example.cmp.select.StudentBean
sets the House that this Student is to belong to (CMR field).
setId(int) - Method in class example.cmp.transaction.StudentJavaBean
 
setId(int) - Method in class example.cmp.transaction.StudentBean
Sets the student ID (which is also the primary key) of this student (CMP field).
setInstructor(String) - Method in class example.cmp.basic.CourseBean
Sets the name of the instructor for this course.
setInstructor(String) - Method in interface example.cmp.basic.Course
Sets the instructor's name (CMP field).
setInstructor(String) - Method in class example.cmp.find.CourseBean
Sets the name of the instructor who is teaching this course (CMP field).
setInstructor(String) - Method in class example.cmp.create.CourseBean
sets the name of the instructor whi is teaching this course (CMP field).
setMaxStudentAmount(int) - Method in class example.cmp.transaction.CourseBean
Sets the maximum amount of students allowed to be enrolled in this course (CMP field).
setName(String) - Method in class example.cmp.ejbql.CourseBean
CMP accessor and mutator methods are left for Resin-CMP to implement.
setName(String) - Method in class example.cmp.transaction.StudentJavaBean
 
setName(String) - Method in class example.cmp.transaction.StudentBean
Sets the name of the student.
setName(String) - Method in class example.cmp.transaction.CourseBean
SSets the name of this Course (CMP field).
setPoints(int) - Method in class example.cmp.id.QuidditchBean
Sets the number of points the student has earned.
setPoints(int) - Method in interface example.cmp.id.Quidditch
Sets the number of points the player has earned this season.
setPosition(String) - Method in class example.cmp.id.QuidditchBean
Sets the position the student plays on the team.
setPosition(String) - Method in interface example.cmp.id.Quidditch
Sets the player's position.
setSelectedCourses(Collection) - Method in class example.cmp.transaction.StudentJavaBean
 
setStudent(Student) - Method in class example.cmp.id.QuidditchBean
Sets the owning student.
setStudent(Student) - Method in class example.cmp.map.GradeBean
Sets the Grade's student.
student - Variable in class example.cmp.transaction.RegistrationSessionBean
The calling Principal.
student - Variable in class example.cmp.map.GradeKey
 
Student - interface example.cmp.one2many.Student.
Local interface for the Student bean.
Student - interface example.cmp.many2many.Student.
Local interface for the Student bean.
Student - interface example.cmp.ejbql.Student.
Local interface for the Student bean.
Student - interface example.cmp.select.Student.
Local interface for the Student bean.
Student - interface example.cmp.transaction.Student.
Local interface for the Student bean.
Student - interface example.cmp.id.Student.
Local interface for the Student bean.
Student - interface example.cmp.map.Student.
Local interface for the Student bean.
StudentBean - class example.cmp.one2many.StudentBean.
Implementation class for the Student bean.
StudentBean - class example.cmp.many2many.StudentBean.
Implementation class for the Student bean.
StudentBean - class example.cmp.ejbql.StudentBean.
Implementation class for the Student bean.
StudentBean - class example.cmp.select.StudentBean.
Implementation class for the Student bean.
StudentBean - class example.cmp.transaction.StudentBean.
Implementation class for the Student bean.
StudentBean - class example.cmp.id.StudentBean.
Implementation class for the Student bean.
StudentBean - class example.cmp.map.StudentBean.
Implementation class for the Student bean.
StudentBean() - Constructor for class example.cmp.one2many.StudentBean
 
StudentBean() - Constructor for class example.cmp.many2many.StudentBean
 
StudentBean() - Constructor for class example.cmp.ejbql.StudentBean
 
StudentBean() - Constructor for class example.cmp.select.StudentBean
 
StudentBean() - Constructor for class example.cmp.transaction.StudentBean
 
StudentBean() - Constructor for class example.cmp.id.StudentBean
 
StudentBean() - Constructor for class example.cmp.map.StudentBean
 
studentHome - Variable in class example.cmp.one2many.ClientServlet
 
studentHome - Variable in class example.cmp.many2many.CollectionServlet
 
studentHome - Variable in class example.cmp.many2many.FindServlet
 
studentHome - Variable in class example.cmp.ejbql.FindServlet
 
studentHome - Variable in class example.cmp.select.ClientServlet
 
studentHome - Variable in class example.cmp.transaction.CMPAuthenticator
Home Interface for the Student bean.
studentHome - Variable in class example.cmp.transaction.RegistrationSessionBean
Home Interface for the Student CMP bean.
studentHome - Variable in class example.cmp.id.ClientServlet
 
studentHome - Variable in class example.cmp.map.ClientServlet
 
StudentHome - interface example.cmp.one2many.StudentHome.
Home interface for the Student bean.
StudentHome - interface example.cmp.many2many.StudentHome.
Home interface for the Student bean.
StudentHome - interface example.cmp.ejbql.StudentHome.
Home interface for the Student bean.
StudentHome - interface example.cmp.select.StudentHome.
Home interface for the Student bean.
StudentHome - interface example.cmp.transaction.StudentHome.
Home interface for the Student bean.
StudentHome - interface example.cmp.id.StudentHome.
Home interface for the Student bean.
StudentHome - interface example.cmp.map.StudentHome.
Home interface for the Student bean.
StudentJavaBean - class example.cmp.transaction.StudentJavaBean.
Holds Student Information to be displayed on the presenation layer XTP page
StudentJavaBean(int, String, String) - Constructor for class example.cmp.transaction.StudentJavaBean
 
swap(Course) - Method in class example.cmp.basic.CourseBean
Swaps the instructors.
swap(Course) - Method in interface example.cmp.basic.Course
Swaps the instructor for a course.

T

Teacher - interface example.cmp.one2one.Teacher.
Local interface for the Teacher bean.
Teacher - interface example.cmp.ejbql.Teacher.
Local interface for the Teacher bean.
TeacherBean - class example.cmp.one2one.TeacherBean.
Implementation class for the Teacher bean.
TeacherBean - class example.cmp.ejbql.TeacherBean.
Implementation class for the Teacher bean.
TeacherBean() - Constructor for class example.cmp.one2one.TeacherBean
 
TeacherBean() - Constructor for class example.cmp.ejbql.TeacherBean
 
teacherHome - Variable in class example.cmp.one2one.ClientServlet
 
teacherHome - Variable in class example.cmp.ejbql.FindServlet
 
TeacherHome - interface example.cmp.one2one.TeacherHome.
Home interface for the Teacher bean.
TeacherHome - interface example.cmp.ejbql.TeacherHome.
Home interface for the Teacher bean.
TRANSACTION_COMMITTED - Static variable in class example.cmp.transaction.RegistrationSessionBean
 
TRANSACTION_ROLLEDBACK - Static variable in class example.cmp.transaction.RegistrationSessionBean
 

U

updateCookie(Principal, String) - Method in class example.cmp.transaction.CMPAuthenticator
If we were storing cookies, this would store the pair in some sort of persistent storage.
userTrans - Variable in class example.cmp.basic.CourseServlet
Cached reference to the UserTransaction.

A B C D E F G H I N Q R S T U