Column |
Column is an annotation for a field that corresponds with a column in a table
|
Dao |
This annotation indicates that the annotated interface is a Dao
Note: a Dao must be always an interface
which will be initialized by the library
|
Delete |
The delete annotation is used to indicate that a method will perform
delete operation on the database.
|
Entity |
This annotation indicates that this is an entity stored in the database.
|
Handler |
The annotation indicates the class is the access point for the DAOs
the annotated class must be instantiated by calling DBHandler.build()
|
Insert |
The annotation indicates the given method is a method that performs an insert operation
the method signature must be void/int/MyObject "methodName"(Connection, Object)
where return type is if it's void then it returns nothing
if it's MyObject it returns the inserted object with the auto generated id (if the primary key is auto increment)
else if int then it would return the generated id or the number of affected rows
|
Query |
The annotation indicates that the method performs a SELECTION query
the method signature must be MyObject/List of MyObject "methodName"(Connection, Object)
be aware that if the return type was a single object and the query returns a list
then the method will return the first object from the selected rows
|
Update |
The update annotation is used to indicate that a method will perform
update operation on the database.
|