The alternative code using PEAR DB is shown below.
使用PEARDB的替代代码如下所示。
Asking users to type in the IATA code is a reasonable alternative to forcing them to scroll through hundreds of possible airports.
与要求用户滚动查找数百个可能的机场相比,要求他们输入IATA编码一个不错的替代方法。
An SOA offers the ability to leverage existing legacy applications, which is usually a cost-effective alternative to rewriting code.
SOA提供利用现有遗留应用程序的功能,通常是在重写代码时划算的选择。
One alternative was redoing all the code auditing and clearing of encumbrances on the 6 update workspaces.
一种选择是在OpenJDK6的升级工作空间内重做所有的代码审核和障碍清理工作。
Figure 2 illustrates a more robust alternative that relies on an application-defined object model to isolate the code that deals with XML in a Serialization package.
图2示范了一种更健壮的替代方案,它依靠应用程序定义的对象模型,将处理XML的代码隔离在Serialization包中。
Recommendation: We used Rational Performance Tester's Custom Code feature to create an alternative to the data pool method that wouldn't force all data to be loaded at once.
推荐:我们使用RationalPerformance Tester的定制代码特性,为数据池方法创建另一个选择,不强制一次性加载所有数据。
Another alternative is to write wrapper code around the APIs that use Date.
另外一个可供选择的办法就是编写使用Date的API的包装器代码。
As this article has shown, Castor provides a sophisticated alternative to in-house solutions, which generally require you to maintain different SQL and JDBC code for each database you support.
如本文所显示的那样,Castor为内部解决方案提供了完善的替代方案,内部解决方案通常需要您为您支持的每个数据库维护不同的SQL和JDBC代码。
At least for now, wrapped operation methods are the only way to use JAXB with Axis2 code generation (but see the JAX-WS discussion, shortly, for an alternative approach).
至少在目前,封装操作方法是惟一可以将JAXB用于Axis2代码生成的方法(但请立刻参考一下JAX - WS讨论了解另一种替代方法)。
It may also be possible to manipulate the graphical notation as an alternative to editing the text-based code, so that the visual rendering becomes a direct representation of the code.
作为一种编辑基于文本代码的可选方式利用图形化的符号也是可能的,所以可视化的描写变成了一种代码的直接表示。
That is, if the application code itself is inefficient, then changing to an alternative application server will likely only offer marginal (if any) gain.
就是说,如果应用程序代码本身是低效的,那么迁移到替代应用服务器将很可能只会贡献边际收益(如果有的话)。
When the system crashes regularly or a virus hijacks the network, there's no easy alternative: you need to upgrade the whole system, maybe even rewrite the code from the bottom up.
当系统定期崩溃或是一种病毒劫持了网络,你别无选择:你需要升级整个系统,也许甚至要从下到上重写代码。
The alternative is to create and code them as you go along.
另一种方法是按说明创建和编写这些文件。
Any time a built-in primitive function is available, that will be a better design alternative than creating custom code.
如果内置基本函数在任何时间都可用,则与创建自定义代码相比,它是较好的设计备选方案。
For an alternative solution, I could have created an invocation handler that looks more like the one from Listing 2, where the validation code is run directly in the invocation handler.
作为替代解决方案,我建立一个看起来很像清单2的调用处理程序,而验证代码直接在调用处理程序里运行。
The alternative is to generate code that always checks to see if the field is resolved before finding out where the field is and then loading the value.
另外一种方法是生成一些代码,用于在查明字段的位置以前一直检查是否已经解析字段,然后加载该值。
In this approach, the diagrams are tightly coupled representations of the code and provide an alternative way to view and possibly edit at the code level.
在这种方法中,图与代码表示紧紧的联系在一起,并提供了在代码级别上观看和编辑的可选方法。
I'll present two versions of example code, one for each alternative.
本文提供了示例代码的两个版本,分别对应上面的两种方法。
These changes include a complete rewrite of the binding compiler code generation, with an added option for using source code enhancement as an alternative to bytecode enhancement.
这些变化包括:对编译器代码生成进行完全重写,添加用源代码增强代替字节码增强的选项。
An alternative approach is to use a lookup table strategy that relies on code tables.
另一种方法是使用查询表策略,这依赖于编码表。
Taxpayers could either stick with the present code or switch to a massively simplified alternative, with much lower rates but few exemptions or deductions.
纳税人可以选择沿用原有系统,或是改用另一个大幅简化的系统,后者税率较低,但几乎没有任何免税额和可抵消的部分。
Fortunately there's an alternative form of code generation that applies to many common services.
幸运的是,还有适用于很多常见服务的备用代码生成形式。
A publisher offering these techniques must also maintain code that generates each alternative representation from the underlying original data source (often data in a relational database).
提供这些技术的发布者还必须维护从底层初始数据源(通常是关系数据库中的数据)生成每种备选表示的代码。
So you will be able to design full-page layouts on screen as an alternative to writing ERb (embedded Ruby) templates in code.
有了它,你能够在屏幕上设计全页面的布局,而不用去写ERb(嵌入的Ruby)模板代码了。
For example, as an alternative to calling some GetQuote method on an object instance, the client code might post a GetQuote message to an input queue.
例如,作为对对象实例调用某个GetQuote方法的备选方案,客户机代码可以将GetQuote消息传递到输入队列中。
I chose to go with the older alternative because of some follow-up work I'm going to do with this code next column, but it's worth keeping StringBuilder in mind for your own J2SE 5.0-specific code.
我之所以选择使用以前的方案,是因为下一篇文章中我将使用该代码进行一些后续工作,但是您应该记住StringBuilder以便用于您自己的特定于J2SE 5.0的代码。
An alternative to the report framework would be to add validation code to the AccessibleUtils.output methods.
报告框架的另一种方案是将验证代码添加到AccessibleUtils .out put方法。
As an alternative, you can catch this exception directly in your code and handle it some other way (perhaps printing out the actual error message along with usage information, for instance).
一个替代的方法是,您也可以在代码中直接捕捉这个异常,并且用其他方式处理异常(例如,可能会与使用信息一起输出真正的错误消息)。
Just as in the UsernameToken example, you can configure the security parameters in your client code as an alternative to using a cxf-client.xml file.
与usernametoken示例一样,可以不使用cxf - client . xml文件,而是在客户机代码中配置安全参数。
As an alternative to using ActiveMQ-specific classes, you can write the code to use JNDI.
除了用active MQ特定类,你还可以使用JNDI来写代码。
应用推荐