
Customization Manager Coding Standards D-7
Standard Name Description
Mview Parallel Standard Materialized Views should not be created with parallel command
Mview prebuilt Standard Materialized Views must not be created with ON PREBUILT
TABLE option
Report Location
Standard
Report files must be located under one of following directories:
reports,admin/template,admin/template/*
Import stmt Check Java import statements must reference fully qualified Class names
Language check in
destination path
The destination path for a file entry in the package creation process
should not have the language code as a suffix. The language should
be specified separately.
JRAD XML file type During the package creation process, if an XML file is included
with the file type as 'JRAD XML' (File type ID is 1005), then the
destination path should start with 'mds'.
Control-M characters in
PLD files
If a PLD file contains a control-M character, then some issues may
arise while applying a patch containing this PLD file.
SQL whenever sqlerror
exit failure rollback
A SQL Script should contain "WHENEVER SQLERROR EXIT
FAILURE ROLLBACK;".
Java file empty catch
block
An empty catch Block finds instances where an exception is
caught, but nothing is done.
Avoid returning from a
finally block
In Java code, one should avoid returning from a finally block -
this can discard exceptions. There should be no return statement
from a finally block.
Avoid catching null
pointer exception
Java code should never catch a null pointer exception. A catch
block may hide the original error, resulting in other more subtle
errors.
Java throwing exception
in finally block
In Java, throwing exception in a finally block is confusing. It
may mask an exception or a defect in the code, and it can also make
code cleanup unstable.
Java catching throwable In Java, one should avoid catching throwable. This action is
dangerous because such a catch can catch other things like
OutOfMemoryError.
Comentários a estes Manuais