/**
* This class is generated by jOOQ
*/
package classes;
import classes.routines.AddPerson;
import classes.routines.AddPosition;
import classes.routines.AddPositionSalary;
import classes.routines.AddProduct1;
import classes.routines.AddProduct2;
import classes.routines.AddProductAmount;
import classes.routines.AddProductPrice;
import classes.routines.AddProductType;
import classes.routines.AddSellLog;
import classes.routines.AddShop;
import classes.routines.DeletePerson;
import classes.routines.Test;
import classes.routines.TfAddLog;
import classes.routines.TfAddPerson;
import classes.routines.TfAddPosition;
import classes.routines.TfAddProduct;
import classes.routines.TfAddProductType;
import classes.routines.TfAddScheduleId;
import classes.routines.TfAddShop;
import classes.routines.TfUpdateLog;
import classes.routines.TfUpdatePerson;
import classes.routines.TfUpdatePositionSalary;
import classes.routines.TfUpdateProductPrice;
import classes.routines.UpdatePerson;
import classes.routines.UpdatePosition;
import classes.routines.UpdatePositionSalary;
import classes.routines.UpdateProduct;
import classes.routines.UpdateProductAmount;
import classes.routines.UpdateProductPrice;
import classes.routines.UpdateProductType;
import classes.routines.UpdateSellLog;
import classes.routines.UpdateShop;
import java.math.BigDecimal;
import java.sql.Date;
import javax.annotation.Generated;
import org.jooq.Configuration;
import org.jooq.Field;
/**
* Convenience access to all stored procedures and functions in public
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Routines {
/**
* Call public.add_person
*/
public static AddPerson addPerson(Configuration configuration, String lastName, String firstName, String secondName, Date dateOfBirth, String sex, String placeOfBirth, String address, String phone, byte[] photo, Integer passportSerial, Integer passportId, String[] timetable, String positionName) {
AddPerson p = new AddPerson();
p.setLastName(lastName);
p.setFirstName(firstName);
p.setSecondName(secondName);
p.setDateOfBirth(dateOfBirth);
p.setSex(sex);
p.setPlaceOfBirth(placeOfBirth);
p.setAddress(address);
p.setPhone(phone);
p.setPhoto(photo);
p.setPassportSerial(passportSerial);
p.setPassportId(passportId);
p.setTimetable(timetable);
p.setPositionName(positionName);
p.execute(configuration);
return p;
}
/**
* Call public.add_position
*/
public static Integer addPosition(Configuration configuration, String name, String description) {
AddPosition f = new AddPosition();
f.setName_(name);
f.setDescription(description);
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get public.add_position as a field.
*/
public static Field addPosition(String name, String description) {
AddPosition f = new AddPosition();
f.setName_(name);
f.setDescription(description);
return f.asField();
}
/**
* Get public.add_position as a field.
*/
public static Field addPosition(Field name, Field description) {
AddPosition f = new AddPosition();
f.setName_(name);
f.setDescription(description);
return f.asField();
}
/**
* Call public.add_position_salary
*/
public static Integer addPositionSalary(Configuration configuration, Integer posId, Integer shId, BigDecimal salary) {
AddPositionSalary f = new AddPositionSalary();
f.setPosId(posId);
f.setShId(shId);
f.setSalary(salary);
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get public.add_position_salary as a field.
*/
public static Field addPositionSalary(Integer posId, Integer shId, BigDecimal salary) {
AddPositionSalary f = new AddPositionSalary();
f.setPosId(posId);
f.setShId(shId);
f.setSalary(salary);
return f.asField();
}
/**
* Get public.add_position_salary as a field.
*/
public static Field addPositionSalary(Field posId, Field shId, Field salary) {
AddPositionSalary f = new AddPositionSalary();
f.setPosId(posId);
f.setShId(shId);
f.setSalary(salary);
return f.asField();
}
/**
* Call public.add_product
*/
public static Integer addProduct1(Configuration configuration, String name, String typeName) {
AddProduct1 f = new AddProduct1();
f.setName_(name);
f.setTypeName(typeName);
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get public.add_product as a field.
*/
public static Field addProduct1(String name, String typeName) {
AddProduct1 f = new AddProduct1();
f.setName_(name);
f.setTypeName(typeName);
return f.asField();
}
/**
* Get public.add_product as a field.
*/
public static Field addProduct1(Field name, Field typeName) {
AddProduct1 f = new AddProduct1();
f.setName_(name);
f.setTypeName(typeName);
return f.asField();
}
/**
* Call public.add_product
*/
public static Integer addProduct2(Configuration configuration, String name, Integer typeId) {
AddProduct2 f = new AddProduct2();
f.setName_(name);
f.setTypeId(typeId);
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get public.add_product as a field.
*/
public static Field addProduct2(String name, Integer typeId) {
AddProduct2 f = new AddProduct2();
f.setName_(name);
f.setTypeId(typeId);
return f.asField();
}
/**
* Get public.add_product as a field.
*/
public static Field addProduct2(Field name, Field typeId) {
AddProduct2 f = new AddProduct2();
f.setName_(name);
f.setTypeId(typeId);
return f.asField();
}
/**
* Call public.add_product_amount
*/
public static Integer addProductAmount(Configuration configuration, Integer prId, Integer shId, Integer amount) {
AddProductAmount f = new AddProductAmount();
f.setPrId(prId);
f.setShId(shId);
f.setAmount(amount);
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get public.add_product_amount as a field.
*/
public static Field addProductAmount(Integer prId, Integer shId, Integer amount) {
AddProductAmount f = new AddProductAmount();
f.setPrId(prId);
f.setShId(shId);
f.setAmount(amount);
return f.asField();
}
/**
* Get public.add_product_amount as a field.
*/
public static Field addProductAmount(Field prId, Field shId, Field amount) {
AddProductAmount f = new AddProductAmount();
f.setPrId(prId);
f.setShId(shId);
f.setAmount(amount);
return f.asField();
}
/**
* Call public.add_product_price
*/
public static Integer addProductPrice(Configuration configuration, Integer prId, Integer shId, BigDecimal price) {
AddProductPrice f = new AddProductPrice();
f.setPrId(prId);
f.setShId(shId);
f.setPrice(price);
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get public.add_product_price as a field.
*/
public static Field addProductPrice(Integer prId, Integer shId, BigDecimal price) {
AddProductPrice f = new AddProductPrice();
f.setPrId(prId);
f.setShId(shId);
f.setPrice(price);
return f.asField();
}
/**
* Get public.add_product_price as a field.
*/
public static Field addProductPrice(Field prId, Field shId, Field price) {
AddProductPrice f = new AddProductPrice();
f.setPrId(prId);
f.setShId(shId);
f.setPrice(price);
return f.asField();
}
/**
* Call public.add_product_type
*/
public static Integer addProductType(Configuration configuration, String title, String description) {
AddProductType f = new AddProductType();
f.setTitle(title);
f.setDescription(description);
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get public.add_product_type as a field.
*/
public static Field addProductType(String title, String description) {
AddProductType f = new AddProductType();
f.setTitle(title);
f.setDescription(description);
return f.asField();
}
/**
* Get public.add_product_type as a field.
*/
public static Field addProductType(Field title, Field description) {
AddProductType f = new AddProductType();
f.setTitle(title);
f.setDescription(description);
return f.asField();
}
/**
* Call public.add_sell_log
*/
public static Integer addSellLog(Configuration configuration, Integer pId, Integer shId, Integer inAmount, Date date) {
AddSellLog f = new AddSellLog();
f.setPId(pId);
f.setShId(shId);
f.setInAmount(inAmount);
f.setDate(date);
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get public.add_sell_log as a field.
*/
public static Field addSellLog(Integer pId, Integer shId, Integer inAmount, Date date) {
AddSellLog f = new AddSellLog();
f.setPId(pId);
f.setShId(shId);
f.setInAmount(inAmount);
f.setDate(date);
return f.asField();
}
/**
* Get public.add_sell_log as a field.
*/
public static Field addSellLog(Field pId, Field shId, Field inAmount, Field date) {
AddSellLog f = new AddSellLog();
f.setPId(pId);
f.setShId(shId);
f.setInAmount(inAmount);
f.setDate(date);
return f.asField();
}
/**
* Call public.add_shop
*/
public static Integer addShop(Configuration configuration, String street) {
AddShop f = new AddShop();
f.setStreet(street);
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get public.add_shop as a field.
*/
public static Field addShop(String street) {
AddShop f = new AddShop();
f.setStreet(street);
return f.asField();
}
/**
* Get public.add_shop as a field.
*/
public static Field addShop(Field street) {
AddShop f = new AddShop();
f.setStreet(street);
return f.asField();
}
/**
* Call public.delete_person
*/
public static void deletePerson(Configuration configuration, Integer pId) {
DeletePerson p = new DeletePerson();
p.setPId(pId);
p.execute(configuration);
}
/**
* Call public.test
*/
public static Integer test(Configuration configuration, String one) {
Test f = new Test();
f.setOne(one);
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get public.test as a field.
*/
public static Field test(String one) {
Test f = new Test();
f.setOne(one);
return f.asField();
}
/**
* Get public.test as a field.
*/
public static Field test(Field one) {
Test f = new Test();
f.setOne(one);
return f.asField();
}
/**
* Call public.tf_add_log
*/
public static Object tfAddLog(Configuration configuration) {
TfAddLog f = new TfAddLog();
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get public.tf_add_log as a field.
*/
public static Field