This document provides a summary of the BTG naming standards used in Java code. These standards help us to achieve consistency between developers and they provide a mechanism for improving over time by capturing lessons-learned about this topic in one centralized location.

Data Access Objects

Any class which accesses a database directly through JDBC is suffixed with the acronym 'DAO'. For example:

Class: UserDAO

Interfaces

All Java interface classes should be prefixed with the character 'I'. For example:

Class: IUser

Implementations

The common characters 'Impl' should not be used. A class with the same name as an interface is known to be an implementation of the interface by implication of its name similarity. Since the prefix of the interface is 'I', the two are differentiated. It is usually best to put both interfaces and implementations in the same package. For example:

Package: com.burlesontech.web
– Class 'IUser' is the interface.
– Class 'User' is the implementation.

There are currently no attachments on this page.

Labels:

Enter labels to add to this page:
Wait Image 
Tip: Looking for a label? Just start typing.