public class Registration{ public Login l; public void doEdit(){ l = new Login(); l.setUserName(""); // setUserName is the Method in Login class to set Username. } }
/** * PUBLIC: * Connect to the database using the given user name and password. * The additional login information must have been preset in the session's login attribute. * This is the login that should be used if each user has their own id, * but all users share the same database configuration. */ public void login(String userName, String password) throws DatabaseException { getDatasourceLogin().setUserName(userName); getDatasourceLogin().setPassword(password); login(); }
/** * PUBLIC: * Connect to the database using the given user name and password. * The additional login information must have been preset in the session's login attribute. * This is the login that should be used if each user has their own id, * but all users share the same database configuration. */ public void login(String userName, String password) throws DatabaseException { getDatasourceLogin().setUserName(userName); getDatasourceLogin().setPassword(password); login(); }
/** * PUBLIC: * Connect to the database using the given user name and password. * The additional login information must have been preset in the session's login attribute. * This is the login that should be used if each user has their own id, * but all users share the same database configuration. */ @Override public void login(String userName, String password) throws DatabaseException { getDatasourceLogin().setUserName(userName); getDatasourceLogin().setPassword(password); login(); }
/** * PUBLIC: * Connect to the database using the predefined login. * This connects all of the child sessions and expects that they are in a valid state to be connected. */ public void login(String userName, String password) throws DatabaseException { preConnectDatasource(); // Connection all sessions and initialize for (Iterator sessionEnum = getSessionsByName().values().iterator(); sessionEnum.hasNext();) { DatabaseSessionImpl session = (DatabaseSessionImpl)sessionEnum.next(); session.getDatasourceLogin().setUserName(userName); session.getDatasourceLogin().setPassword(password); if (!session.isConnected()) { session.login(); } } postConnectDatasource(); }
/** * PUBLIC: * Connect to the database using the predefined login. * This connects all of the child sessions and expects that they are in a valid state to be connected. */ public void login(String userName, String password) throws DatabaseException { preConnectDatasource(); // Connection all sessions and initialize for (Iterator sessionEnum = getSessionsByName().values().iterator(); sessionEnum.hasNext();) { DatabaseSessionImpl session = (DatabaseSessionImpl)sessionEnum.next(); session.getDatasourceLogin().setUserName(userName); session.getDatasourceLogin().setPassword(password); if (!session.isConnected()) { session.login(); } } postConnectDatasource(); }
session.getEventManager().preLogin(session); session.getDatasourceLogin().setUserName(userName); session.getDatasourceLogin().setPassword(password);