|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.bouquet.jpa.persistence.AuthUserBean
public class AuthUserBean
CAS Enterprise Application Development mit Java EE (EADJ) - 2007
Modul: Data-Tier (JPA)
User admininstration (examination question)
Description:
This class encases the inquiries by JPQL on the table auth_user
Copyright (c) 2007 bouquet dot ch, 3032 Hinterkappelen. All rights reseved.
Field Summary | |
---|---|
private javax.persistence.EntityManager |
em
The entity manager |
private static org.apache.log4j.Logger |
LOG
constant for the logging |
private static long |
serialVersionUID
Default serial version uid |
Constructor Summary | |
---|---|
AuthUserBean(javax.persistence.EntityManager em)
Default constructor. |
Method Summary | |
---|---|
java.util.List<AuthUser> |
findList(java.lang.String sql)
This method returns all data records on the basis the SQL instruction. |
AuthUser |
findSingle(java.lang.String sql)
This method returns a data record on the basis the SQL instruction. |
long |
findSize(java.lang.String sql)
This method returns the number of data records on the basis the SQL instruction. |
boolean |
remove(int id)
Remove the authenticated user for the given key if available. |
AuthUser |
save(AuthUser authUser)
Insert new or update existing authenticated user using the given entity and return the persistet fields of the authenticated user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private static org.apache.log4j.Logger LOG
private javax.persistence.EntityManager em
Constructor Detail |
---|
public AuthUserBean(javax.persistence.EntityManager em)
em
- EntityManagerMethod Detail |
---|
public AuthUser findSingle(java.lang.String sql) throws javax.persistence.NoResultException
sql
- String SQL-Query
javax.persistence.NoResultException
public long findSize(java.lang.String sql)
sql
- String SQL-Query
public java.util.List<AuthUser> findList(java.lang.String sql)
sql
- String SQL-Query
public boolean remove(int id) throws javax.persistence.NoResultException
id
- primary key
javax.persistence.NoResultException
public AuthUser save(AuthUser authUser) throws javax.persistence.NoResultException
authUser
- to save
javax.persistence.NoResultException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |