package com.idega.core.user.data;
public class OldUserHomeImpl extends com.idega.data.IDOFactory implements UserHome
{
protected Class getEntityInterfaceClass(){
return User.class;
}
public User create() throws javax.ejb.CreateException{
return (User) super.createIDO();
}
public User createLegacy(){
try{
return create();
}
catch(javax.ejb.CreateException ce){
throw new RuntimeException("CreateException:"+ce.getMessage());
}
}
public User findUserFromEmail(java.lang.String p0)throws javax.ejb.FinderException,java.rmi.RemoteException{
com.idega.data.IDOEntity entity = this.idoCheckOutPooledEntity();
Object pk = ((OldUserBMPBean)entity).ejbFindUserFromEmail(p0);
this.idoCheckInPooledEntity(entity);
return this.findByPrimaryKey(pk);
}
public User findByPersonalID(java.lang.String p0)throws javax.ejb.FinderException,java.rmi.RemoteException{
com.idega.data.IDOEntity entity = this.idoCheckOutPooledEntity();
Object pk = ((OldUserBMPBean)entity).ejbFindByPersonalID(p0);
this.idoCheckInPooledEntity(entity);
return this.findByPrimaryKey(pk);
}
public User findByPrimaryKey(Object pk) throws javax.ejb.FinderException{
return (User) super.findByPrimaryKeyIDO(pk);
}
public User findByPrimaryKey(int id) throws javax.ejb.FinderException{
return (User) super.findByPrimaryKeyIDO(id);
}
public User findByPrimaryKeyLegacy(int id) throws java.sql.SQLException{
try{
return findByPrimaryKey(id);
}
catch(javax.ejb.FinderException fe){
throw new java.sql.SQLException(fe.getMessage());
}
}
}