public void verify() { if (this.Name.isNullOrEmpty()) { BizException.throwError("user name is invaliable ."); } }
public void store(Order order) { OrderEntity entity = toEntity(order); if (0 >= records.store(entity)) { BizException.throwError("fail to store specify order ."); } }
public void store(User user) { UserEntity entity = toEntity(user); if (0 >= records.store(entity)) { BizException.throwError("fail to store specify user ."); } }
public User lookup(UserName name) { UserEntity entity = records.lookup(name.Name); if (entity.isNull()) { BizException.throwError("specify user name no found ."); } return(toModel(entity)); }