SQLJ - SQLJ Part 0 - Advantages and Disadvantages

Advantages and Disadvantages

Some advantages of SQLJ over JDBC include:

  • SQLJ commands tend to be shorter than equivalent JDBC programs.
  • SQL syntax can be checked at compile time. The returned query results can also be checked strictly.
  • Preprocessor might generate static SQL which performs better than dynamic SQL because query plan is created on program compile time, stored in database and reused at runtime. Static SQL can guarantee worst case reply time and access plan stability. IBM DB2 supports static SQL use in SQLJ programs.

Disadvantages include:

  • SQLJ requires a preprocessing step.
  • Many IDEs do not have SQLJ support.
  • SQLJ lacks support for most of the common persistence frameworks, such as Hibernate.

Read more about this topic:  SQLJ, SQLJ Part 0

Famous quotes containing the word advantages:

    To become aware in time when young of the advantages of age; to maintain the advantages of youth in old age: both are pure fortune.
    Johann Wolfgang Von Goethe (1749–1832)