private AccountDataBean getAccountDataFromResultSet(ResultSet rs) throws Exception { AccountDataBean accountData = null; if (!rs.next()) Log.error("TradeDirect:getAccountDataFromResultSet -- cannot find account data"); else accountData = new AccountDataBean(new Integer(rs.getInt("accountID")), rs.getInt("loginCount"), rs .getInt("logoutCount"), rs.getTimestamp("lastLogin"), rs.getTimestamp("creationDate"), rs .getBigDecimal("balance"), rs.getBigDecimal("openBalance"), rs.getString("profile_userID")); return accountData; }
private AccountDataBean getAccountDataFromResultSet(ResultSet rs) throws Exception { AccountDataBean accountData = null; if (!rs.next()) Log.error("TradeJDBCDirect:getAccountDataFromResultSet -- cannot find account data"); else accountData = new AccountDataBean(new Integer(rs.getInt("accountID")), rs.getInt("loginCount"), rs .getInt("logoutCount"), rs.getTimestamp("lastLogin"), rs.getTimestamp("creationDate"), rs .getBigDecimal("balance"), rs.getBigDecimal("openBalance"), rs.getString("profile_userID")); return accountData; }
private AccountDataBean getAccountDataFromResultSet(ResultSet rs) throws Exception { AccountDataBean accountData = null; if (!rs.next()) Log.error("TradeJDBCDirect:getAccountDataFromResultSet -- cannot find account data"); else accountData = new AccountDataBean(new Integer(rs.getInt("accountID")), rs.getInt("loginCount"), rs .getInt("logoutCount"), rs.getTimestamp("lastLogin"), rs.getTimestamp("creationDate"), rs .getBigDecimal("balance"), rs.getBigDecimal("openBalance"), rs.getString("profile_userID")); return accountData; }
private AccountDataBean getAccountDataFromResultSet(ResultSet rs) throws Exception { AccountDataBean accountData = null; if (!rs.next()) Log.error("TradeDirect:getAccountDataFromResultSet -- cannot find account data"); else accountData = new AccountDataBean(new Integer(rs.getInt("accountID")), rs.getInt("loginCount"), rs .getInt("logoutCount"), rs.getTimestamp("lastLogin"), rs.getTimestamp("creationDate"), rs .getBigDecimal("balance"), rs.getBigDecimal("openBalance"), rs.getString("profile_userID")); return accountData; }
public static AccountDataBean getRandomInstance() { return new AccountDataBean(new Integer(TradeConfig.rndInt(100000)), //accountID TradeConfig.rndInt(10000), //loginCount TradeConfig.rndInt(10000), //logoutCount new java.util.Date(), //lastLogin new java.util.Date(TradeConfig.rndInt(Integer.MAX_VALUE)), //creationDate TradeConfig.rndBigDecimal(1000000.0f), //balance TradeConfig.rndBigDecimal(1000000.0f), //openBalance TradeConfig.rndUserID() //profileID ); }
public static AccountDataBean getRandomInstance() { return new AccountDataBean(new Integer(TradeConfig.rndInt(100000)), //accountID TradeConfig.rndInt(10000), //loginCount TradeConfig.rndInt(10000), //logoutCount new java.util.Date(), //lastLogin new java.util.Date(TradeConfig.rndInt(Integer.MAX_VALUE)), //creationDate TradeConfig.rndBigDecimal(1000000.0f), //balance TradeConfig.rndBigDecimal(1000000.0f), //openBalance TradeConfig.rndUserID() //profileID ); }
public AccountDataBean register(String userID, String password, String fullname, String address, String email, String creditcard, BigDecimal openBalance) { AccountDataBean account = null; AccountProfileDataBean profile = null; if (Log.doTrace()) Log.trace("TradeSLSBBean:register", userID, password, fullname, address, email, creditcard, openBalance); // Check to see if a profile with the desired userID already exists profile = entityManager.find(AccountProfileDataBean.class, userID); if (profile != null) { Log.error("Failed to register new Account - AccountProfile with userID(" + userID + ") already exists"); return null; } else { profile = new AccountProfileDataBean(userID, password, fullname, address, email, creditcard); account = new AccountDataBean(0, 0, null, new Timestamp(System.currentTimeMillis()), openBalance, openBalance, userID); profile.setAccount(account); account.setProfile(profile); entityManager.persist(profile); entityManager.persist(account); } return account; }
profile = new AccountProfileDataBean(userID, password, fullname, address, email, creditcard); account = new AccountDataBean(0, 0, null, new Timestamp(System.currentTimeMillis()), openBalance, openBalance, userID); profile.setAccount(account); account.setProfile(profile);
profile = new AccountProfileDataBean(userID, password, fullname, address, email, creditcard); account = new AccountDataBean(0, 0, null, new Timestamp(System.currentTimeMillis()), openBalance, openBalance, userID); profile.setAccount(account); account.setProfile(profile);
public AccountDataBean register(String userID, String password, String fullname, String address, String email, String creditcard, BigDecimal openBalance) { AccountDataBean account = null; AccountProfileDataBean profile = null; if (Log.doTrace()) Log.trace("TradeSLSBBean:register", userID, password, fullname, address, email, creditcard, openBalance); // Check to see if a profile with the desired userID already exists profile = entityManager.find(AccountProfileDataBean.class, userID); if (profile != null) { Log.error("Failed to register new Account - AccountProfile with userID(" + userID + ") already exists"); return null; } else { profile = new AccountProfileDataBean(userID, password, fullname, address, email, creditcard); account = new AccountDataBean(0, 0, null, new Timestamp(System.currentTimeMillis()), openBalance, openBalance, userID); profile.setAccount(account); account.setProfile(profile); entityManager.persist(profile); entityManager.persist(account); } return account; }
public AccountDataBean register(String userID, String password, String fullname, String address, String email, String creditcard, BigDecimal openBalance) { AccountDataBean account = null; AccountProfileDataBean profile = null; if (Log.doTrace()) Log.trace("TradeJPADirect:register", userID, password, fullname, address, email, creditcard, openBalance); // Check to see if a profile with the desired userID already exists profile = entityManager.find(AccountProfileDataBean.class, userID); if (profile != null) { Log.error("Failed to register new Account - AccountProfile with userID(" + userID + ") already exists"); return null; } else { profile = new AccountProfileDataBean(userID, password, fullname, address, email, creditcard); account = new AccountDataBean(0, 0, null, new Timestamp(System.currentTimeMillis()), openBalance, openBalance, userID); profile.setAccount(account); account.setProfile(profile); /* * managed Transaction */ entityManager.persist(profile); entityManager.persist(account); } return account; }
public AccountDataBean register(String userID, String password, String fullname, String address, String email, String creditcard, BigDecimal openBalance) { AccountDataBean account = null; AccountProfileDataBean profile = null; if (Log.doTrace()) Log.trace("TradeJPADirect:register", userID, password, fullname, address, email, creditcard, openBalance); // Check to see if a profile with the desired userID already exists profile = entityManager.find(AccountProfileDataBean.class, userID); if (profile != null) { Log.error("Failed to register new Account - AccountProfile with userID(" + userID + ") already exists"); return null; } else { profile = new AccountProfileDataBean(userID, password, fullname, address, email, creditcard); account = new AccountDataBean(0, 0, null, new Timestamp(System.currentTimeMillis()), openBalance, openBalance, userID); profile.setAccount(account); account.setProfile(profile); /* * managed Transaction */ entityManager.persist(profile); entityManager.persist(account); } return account; }
new AccountDataBean(accountID, loginCount, logoutCount, lastLogin, creationDate, balance, openBalance, userID); if (Log.doTrace())
new AccountDataBean(accountID, loginCount, logoutCount, lastLogin, creationDate, balance, openBalance, userID); if (Log.doTrace())
new AccountDataBean(accountID, loginCount, logoutCount, lastLogin, creationDate, balance, openBalance, userID); if (Log.doTrace())
new AccountDataBean(accountID, loginCount, logoutCount, lastLogin, creationDate, balance, openBalance, userID); if (Log.doTrace())
private org.apache.geronimo.samples.daytrader.beans.AccountDataBean convertAccountDataBean(org.apache.geronimo.samples.daytrader.client.ws.AccountDataBean bean) { return new org.apache.geronimo.samples.daytrader.beans.AccountDataBean( bean.getAccountID(), bean.getLoginCount(), bean.getLogoutCount(), bean.getLastLogin().getTime(), bean.getCreationDate().getTime(), bean.getBalance(), bean.getOpenBalance(), bean.getProfileID()); }
private org.apache.geronimo.samples.daytrader.beans.AccountDataBean convertAccountDataBean(org.apache.geronimo.samples.daytrader.client.ws.AccountDataBean bean) { return new org.apache.geronimo.samples.daytrader.beans.AccountDataBean( bean.getAccountID(), bean.getLoginCount(), bean.getLogoutCount(), bean.getLastLogin().getTime(), bean.getCreationDate().getTime(), bean.getBalance(), bean.getOpenBalance(), bean.getProfileID()); }