Skip to content

Null values in registration #8

@alphaville

Description

@alphaville

The general format of a prepared statement does not allow for null values lookup using the equals (=) or LIKE operator. So, if one registers a null value in the database, it will not be ever returned using the method SearchEngine.search(DeciBell db).

The same happens with the numeric values. If one registers a value which is equal to the NumericNull value of a field, it will RUIN the whole database, as no other component will be able to be retrieved! Is such a case, an Exception should be thrown and users should be discouraged to use the value reserved for NumericNull in a registration.

The same schema can be exploited when registering string values in the database. We can introduce a Java Annotation, called @whatever which will generalize the annotation @NumericNull to both numerics (int, long etc) and Strings!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions