fix some valadoc
This commit is contained in:
parent
16cd1b4647
commit
5bd896b153
@ -127,6 +127,8 @@ JOIN region R2 ON (C2.id_region = R2.id_region)
|
|||||||
* Get all tuples and fields from database
|
* Get all tuples and fields from database
|
||||||
* @param conn The database connection to use
|
* @param conn The database connection to use
|
||||||
* @return Returns a list of Asociado based off a tour id
|
* @return Returns a list of Asociado based off a tour id
|
||||||
|
* @throws PostgresError Thrown if there is a problem with escaping strings
|
||||||
|
* @throws DBError Thrown if an invalid value is passed
|
||||||
*/
|
*/
|
||||||
public static List<Asociado> get_all_asociados_by_tour (Connection conn, Tour tour) throws PostgresError, DBError {
|
public static List<Asociado> get_all_asociados_by_tour (Connection conn, Tour tour) throws PostgresError, DBError {
|
||||||
if (tour.id_tour == 0) {
|
if (tour.id_tour == 0) {
|
||||||
|
@ -68,6 +68,7 @@ namespace LibSernatur {
|
|||||||
* Get all tuples and fields from database
|
* Get all tuples and fields from database
|
||||||
* @param conn The database connection to use
|
* @param conn The database connection to use
|
||||||
* @return Returns a list of Tour
|
* @return Returns a list of Tour
|
||||||
|
* @throws PostgresError If there is a problem with with escaping strings
|
||||||
*/
|
*/
|
||||||
public static List<Tour> get_all_tours (Connection conn) throws PostgresError {
|
public static List<Tour> get_all_tours (Connection conn) throws PostgresError {
|
||||||
var res = conn.db.exec (Query.get_query (conn, Query.Type.SELECT_ALL_TOURS, null));
|
var res = conn.db.exec (Query.get_query (conn, Query.Type.SELECT_ALL_TOURS, null));
|
||||||
@ -114,7 +115,8 @@ namespace LibSernatur {
|
|||||||
* Update a tour in the database
|
* Update a tour in the database
|
||||||
* @param conn The database connection
|
* @param conn The database connection
|
||||||
* @param tour The tour to update
|
* @param tour The tour to update
|
||||||
* @throws DBError Thrown if the data in the object is invalid
|
* @throws PostgresError Thrown if there is a problem with escaping strings
|
||||||
|
* @throws DBError Thrown if an invalid value is passed
|
||||||
*/
|
*/
|
||||||
public static void update_tour (Connection conn, Tour tour) throws PostgresError, DBError {
|
public static void update_tour (Connection conn, Tour tour) throws PostgresError, DBError {
|
||||||
if (tour.id_tour == 0) {
|
if (tour.id_tour == 0) {
|
||||||
@ -135,7 +137,8 @@ namespace LibSernatur {
|
|||||||
* @param conn The database connection
|
* @param conn The database connection
|
||||||
* @param tour The tour to insert
|
* @param tour The tour to insert
|
||||||
* @return Returns the id of the tuple inserted
|
* @return Returns the id of the tuple inserted
|
||||||
* @throws DBError Thrown if the data in the object is invalid
|
* @throws PostgresError Thrown if there is a problem with escaping strings
|
||||||
|
* @throws DBError Thrown if an invalid value is passed
|
||||||
*/
|
*/
|
||||||
public static uint insert_tour (Connection conn, Tour tour) throws PostgresError, DBError {
|
public static uint insert_tour (Connection conn, Tour tour) throws PostgresError, DBError {
|
||||||
if (tour.id_tour != 0) {
|
if (tour.id_tour != 0) {
|
||||||
@ -169,7 +172,8 @@ namespace LibSernatur {
|
|||||||
* Delete a tour in the database
|
* Delete a tour in the database
|
||||||
* @param conn The database connection
|
* @param conn The database connection
|
||||||
* @param tour The tour to update
|
* @param tour The tour to update
|
||||||
* @throws DBError Thrown if the data in the object is invalid
|
* @throws PostgresError Thrown if there is a problem with escaping strings
|
||||||
|
* @throws DBError Thrown if an invalid value is passed
|
||||||
*/
|
*/
|
||||||
public static void delete_tour (Connection conn, Tour tour) throws PostgresError, DBError {
|
public static void delete_tour (Connection conn, Tour tour) throws PostgresError, DBError {
|
||||||
if (tour.id_tour == 0) {
|
if (tour.id_tour == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user