`
天使的左手
  • 浏览: 56158 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Use the appropriate getXXX and setXXX methods for the type

    博客分类:
  • jdbc
阅读更多
For performance reasons, use the recommended getXXX method when retrieving values, and use the recommended setXXX method when setting values for parameters. JDBC is permissive. It lets you use java.sql.ResultSet.getFloat to retrieve an int, java.sql.ResultSet.getObject to retrieve any type, and so on. (java.sql.ResultSet and java.sql.CallableStatement provide getXXX methods, and java .sql.PreparedStatement and java.sql.CallableStatement provide setXXX methods.) This permissiveness is convenient but expensive in terms of performance. The following table shows the recommended getXXX methods for given java.sql (JDBC) types, and their corresponding SQL types.


http://db.apache.org/derby/docs/10.8/tuning/ctunperf98197.html
分享到:
评论

相关推荐

    java实验7.2(Auto.java Ford.java)

    Create two suclasses for individual automobile makers (for example, Ford and Chevy) and include appropriate setPrice() methods in each subclass. Finally, write a program that uses the Auto class and ...

    Python for Probability Statistics and Machine Learning

    appropriate if you have this basic background and want to learn how to use the scientific Python toolchain to investigate these topics. On the other hand, if you are comfortable with Python, perhaps ...

    Proportions, Odds, and Risk.pdf

    Perhaps the most common and familiar way that the results of medical ...with guidelines for use and interpretation of these statistics appropriate to the type of study that gives rise to the data.

    Introduction_to_Optimum_Design.pdf

    This chapter focuses on graphical methods for solving optimization problems, which are particularly useful for visualizing and understanding the behavior of the objective function and constraints....

    Data.Science.and.Big.Data.Analytics

    The book covers the breadth of activities and methods and tools that Data Scientists use. The content focuses on concepts, principles and practical applications that are applicable to any industry ...

    IPv6.Address.Planning.Designing.an.Address.Plan.for.the.Future

    Determine the appropriate size and type of the IPv6 allocation you require Apply current network management tools to IPv6 Use IPv6 renumbering methods that enable greater network scale and easier ...

    Microsoft .NET - Architecting Applications for the Enterprise, Second Edition

    But the principles and practices of software architecting–what the authors call the “science of hard decisions”–have been evolving for cloud, mobile, and other shifts. Now fully revised and ...

    Data Mining: The Textbook (Springer 原版超清)

    Appropriate for both introductory and advanced data mining courses, Data Mining: The Textbook balances mathematical details and intuition. It contains the necessary mathematical details for professors...

    IPv6.Address.Planning.Designing.an.Address.Plan.for.the.Future.epub

    Determine the appropriate size and type of the IPv6 allocation you require Apply current network management tools to IPv6 Use IPv6 renumbering methods that enable greater network scale and easier ...

    solutions for applied linear regression

    To facilitate quick learning, this Third Edition stresses using graphical methods to find appropriate models and to better understand them. In that spirit, most analyses and homework problems use ...

    SIMULINK_Dynamic System Simulation for MATLAB

    Chapter 6 discusses methods for creating your own blocks and using masks to customize their appearance and use. Chapter 7 describes subsystems whose execution depends on triggering signals. Chapter 8 ...

    CIE 15.3 COLORIMETRY

    Specifically, it includes the use of the standard illuminants and the standard colorimetric observers; the reference standard for reflectance; the illuminating and viewing conditions; the ...

    Statistical Shape Analysis I. L. DRYDEN and K. V. MARDIA

    Careful consideration of the similarity invariances requires methods appropriate for non-Euclidean data analysis. In particular, multivariate statistical procedures cannot be applied directly, but ...

    Java邮件开发Fundamentals of the JavaMail API

    things like the last mail received and calculate how many are new for you. So, when using the JavaMail API, if you want this type of information, you have to calculate it yourself. IMAP IMAP is a...

Global site tag (gtag.js) - Google Analytics