class ServerService {

    public ServiceResult insertServer(Server server) throws SQLException {
        Long id = serverDao.insertServer(server);
        if (id > 0) {
            server.setId(id);
            return ServiceResult.success();
        }
        return ServiceResult.fail(message.db_message_add_operation_failed);
    }

}