From f7b8f2871fc367c8fc58b4f59f84f6953a64bd75 Mon Sep 17 00:00:00 2001 From: Richard Kareko Date: Mon, 6 Sep 2021 08:44:26 +0300 Subject: [PATCH 01/47] Add mybatis artifacts for template table --- .../org/opensrp/domain/postgres/Template.java | 236 ++++++ .../domain/postgres/TemplateExample.java | 732 ++++++++++++++++++ .../postgres/mapper/TemplateMapper.java | 96 +++ .../postgres/mapper/xml/TemplateMapper.xml | 318 ++++++++ 4 files changed, 1382 insertions(+) create mode 100644 src/main/java/org/opensrp/domain/postgres/Template.java create mode 100644 src/main/java/org/opensrp/domain/postgres/TemplateExample.java create mode 100644 src/main/java/org/opensrp/repository/postgres/mapper/TemplateMapper.java create mode 100644 src/main/java/org/opensrp/repository/postgres/mapper/xml/TemplateMapper.xml diff --git a/src/main/java/org/opensrp/domain/postgres/Template.java b/src/main/java/org/opensrp/domain/postgres/Template.java new file mode 100644 index 000000000..2b3a3558d --- /dev/null +++ b/src/main/java/org/opensrp/domain/postgres/Template.java @@ -0,0 +1,236 @@ +package org.opensrp.domain.postgres; + +import java.util.Date; + +public class Template { + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column core.template.id + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + private Long id; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column core.template.template_id + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + private Integer templateId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column core.template.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + private Object template; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column core.template.type + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + private String type; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column core.template.version + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + private Integer version; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column core.template.date_created + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + private Date dateCreated; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column core.template.date_edited + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + private Date dateEdited; + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column core.template.id + * + * @return the value of core.template.id + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public Long getId() { + return id; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column core.template.id + * + * @param id the value for core.template.id + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public void setId(Long id) { + this.id = id; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column core.template.template_id + * + * @return the value of core.template.template_id + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public Integer getTemplateId() { + return templateId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column core.template.template_id + * + * @param templateId the value for core.template.template_id + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public void setTemplateId(Integer templateId) { + this.templateId = templateId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column core.template.template + * + * @return the value of core.template.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public Object getTemplate() { + return template; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column core.template.template + * + * @param template the value for core.template.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public void setTemplate(Object template) { + this.template = template; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column core.template.type + * + * @return the value of core.template.type + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public String getType() { + return type; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column core.template.type + * + * @param type the value for core.template.type + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public void setType(String type) { + this.type = type; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column core.template.version + * + * @return the value of core.template.version + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public Integer getVersion() { + return version; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column core.template.version + * + * @param version the value for core.template.version + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public void setVersion(Integer version) { + this.version = version; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column core.template.date_created + * + * @return the value of core.template.date_created + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public Date getDateCreated() { + return dateCreated; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column core.template.date_created + * + * @param dateCreated the value for core.template.date_created + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public void setDateCreated(Date dateCreated) { + this.dateCreated = dateCreated; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column core.template.date_edited + * + * @return the value of core.template.date_edited + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public Date getDateEdited() { + return dateEdited; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column core.template.date_edited + * + * @param dateEdited the value for core.template.date_edited + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public void setDateEdited(Date dateEdited) { + this.dateEdited = dateEdited; + } +} \ No newline at end of file diff --git a/src/main/java/org/opensrp/domain/postgres/TemplateExample.java b/src/main/java/org/opensrp/domain/postgres/TemplateExample.java new file mode 100644 index 000000000..7ae778ce1 --- /dev/null +++ b/src/main/java/org/opensrp/domain/postgres/TemplateExample.java @@ -0,0 +1,732 @@ +package org.opensrp.domain.postgres; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TemplateExample { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + protected String orderByClause; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + protected boolean distinct; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public TemplateExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTemplateIdIsNull() { + addCriterion("template_id is null"); + return (Criteria) this; + } + + public Criteria andTemplateIdIsNotNull() { + addCriterion("template_id is not null"); + return (Criteria) this; + } + + public Criteria andTemplateIdEqualTo(Integer value) { + addCriterion("template_id =", value, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdNotEqualTo(Integer value) { + addCriterion("template_id <>", value, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdGreaterThan(Integer value) { + addCriterion("template_id >", value, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdGreaterThanOrEqualTo(Integer value) { + addCriterion("template_id >=", value, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdLessThan(Integer value) { + addCriterion("template_id <", value, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdLessThanOrEqualTo(Integer value) { + addCriterion("template_id <=", value, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdIn(List values) { + addCriterion("template_id in", values, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdNotIn(List values) { + addCriterion("template_id not in", values, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdBetween(Integer value1, Integer value2) { + addCriterion("template_id between", value1, value2, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdNotBetween(Integer value1, Integer value2) { + addCriterion("template_id not between", value1, value2, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIsNull() { + addCriterion("template is null"); + return (Criteria) this; + } + + public Criteria andTemplateIsNotNull() { + addCriterion("template is not null"); + return (Criteria) this; + } + + public Criteria andTemplateEqualTo(Object value) { + addCriterion("template =", value, "template"); + return (Criteria) this; + } + + public Criteria andTemplateNotEqualTo(Object value) { + addCriterion("template <>", value, "template"); + return (Criteria) this; + } + + public Criteria andTemplateGreaterThan(Object value) { + addCriterion("template >", value, "template"); + return (Criteria) this; + } + + public Criteria andTemplateGreaterThanOrEqualTo(Object value) { + addCriterion("template >=", value, "template"); + return (Criteria) this; + } + + public Criteria andTemplateLessThan(Object value) { + addCriterion("template <", value, "template"); + return (Criteria) this; + } + + public Criteria andTemplateLessThanOrEqualTo(Object value) { + addCriterion("template <=", value, "template"); + return (Criteria) this; + } + + public Criteria andTemplateIn(List values) { + addCriterion("template in", values, "template"); + return (Criteria) this; + } + + public Criteria andTemplateNotIn(List values) { + addCriterion("template not in", values, "template"); + return (Criteria) this; + } + + public Criteria andTemplateBetween(Object value1, Object value2) { + addCriterion("template between", value1, value2, "template"); + return (Criteria) this; + } + + public Criteria andTemplateNotBetween(Object value1, Object value2) { + addCriterion("template not between", value1, value2, "template"); + return (Criteria) this; + } + + public Criteria andTypeIsNull() { + addCriterion("type is null"); + return (Criteria) this; + } + + public Criteria andTypeIsNotNull() { + addCriterion("type is not null"); + return (Criteria) this; + } + + public Criteria andTypeEqualTo(String value) { + addCriterion("type =", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotEqualTo(String value) { + addCriterion("type <>", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThan(String value) { + addCriterion("type >", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThanOrEqualTo(String value) { + addCriterion("type >=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThan(String value) { + addCriterion("type <", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThanOrEqualTo(String value) { + addCriterion("type <=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLike(String value) { + addCriterion("type like", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotLike(String value) { + addCriterion("type not like", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeIn(List values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List values) { + addCriterion("type not in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeBetween(String value1, String value2) { + addCriterion("type between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotBetween(String value1, String value2) { + addCriterion("type not between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andVersionIsNull() { + addCriterion("version is null"); + return (Criteria) this; + } + + public Criteria andVersionIsNotNull() { + addCriterion("version is not null"); + return (Criteria) this; + } + + public Criteria andVersionEqualTo(Integer value) { + addCriterion("version =", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotEqualTo(Integer value) { + addCriterion("version <>", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionGreaterThan(Integer value) { + addCriterion("version >", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionGreaterThanOrEqualTo(Integer value) { + addCriterion("version >=", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionLessThan(Integer value) { + addCriterion("version <", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionLessThanOrEqualTo(Integer value) { + addCriterion("version <=", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionIn(List values) { + addCriterion("version in", values, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotIn(List values) { + addCriterion("version not in", values, "version"); + return (Criteria) this; + } + + public Criteria andVersionBetween(Integer value1, Integer value2) { + addCriterion("version between", value1, value2, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotBetween(Integer value1, Integer value2) { + addCriterion("version not between", value1, value2, "version"); + return (Criteria) this; + } + + public Criteria andDateCreatedIsNull() { + addCriterion("date_created is null"); + return (Criteria) this; + } + + public Criteria andDateCreatedIsNotNull() { + addCriterion("date_created is not null"); + return (Criteria) this; + } + + public Criteria andDateCreatedEqualTo(Date value) { + addCriterion("date_created =", value, "dateCreated"); + return (Criteria) this; + } + + public Criteria andDateCreatedNotEqualTo(Date value) { + addCriterion("date_created <>", value, "dateCreated"); + return (Criteria) this; + } + + public Criteria andDateCreatedGreaterThan(Date value) { + addCriterion("date_created >", value, "dateCreated"); + return (Criteria) this; + } + + public Criteria andDateCreatedGreaterThanOrEqualTo(Date value) { + addCriterion("date_created >=", value, "dateCreated"); + return (Criteria) this; + } + + public Criteria andDateCreatedLessThan(Date value) { + addCriterion("date_created <", value, "dateCreated"); + return (Criteria) this; + } + + public Criteria andDateCreatedLessThanOrEqualTo(Date value) { + addCriterion("date_created <=", value, "dateCreated"); + return (Criteria) this; + } + + public Criteria andDateCreatedIn(List values) { + addCriterion("date_created in", values, "dateCreated"); + return (Criteria) this; + } + + public Criteria andDateCreatedNotIn(List values) { + addCriterion("date_created not in", values, "dateCreated"); + return (Criteria) this; + } + + public Criteria andDateCreatedBetween(Date value1, Date value2) { + addCriterion("date_created between", value1, value2, "dateCreated"); + return (Criteria) this; + } + + public Criteria andDateCreatedNotBetween(Date value1, Date value2) { + addCriterion("date_created not between", value1, value2, "dateCreated"); + return (Criteria) this; + } + + public Criteria andDateEditedIsNull() { + addCriterion("date_edited is null"); + return (Criteria) this; + } + + public Criteria andDateEditedIsNotNull() { + addCriterion("date_edited is not null"); + return (Criteria) this; + } + + public Criteria andDateEditedEqualTo(Date value) { + addCriterion("date_edited =", value, "dateEdited"); + return (Criteria) this; + } + + public Criteria andDateEditedNotEqualTo(Date value) { + addCriterion("date_edited <>", value, "dateEdited"); + return (Criteria) this; + } + + public Criteria andDateEditedGreaterThan(Date value) { + addCriterion("date_edited >", value, "dateEdited"); + return (Criteria) this; + } + + public Criteria andDateEditedGreaterThanOrEqualTo(Date value) { + addCriterion("date_edited >=", value, "dateEdited"); + return (Criteria) this; + } + + public Criteria andDateEditedLessThan(Date value) { + addCriterion("date_edited <", value, "dateEdited"); + return (Criteria) this; + } + + public Criteria andDateEditedLessThanOrEqualTo(Date value) { + addCriterion("date_edited <=", value, "dateEdited"); + return (Criteria) this; + } + + public Criteria andDateEditedIn(List values) { + addCriterion("date_edited in", values, "dateEdited"); + return (Criteria) this; + } + + public Criteria andDateEditedNotIn(List values) { + addCriterion("date_edited not in", values, "dateEdited"); + return (Criteria) this; + } + + public Criteria andDateEditedBetween(Date value1, Date value2) { + addCriterion("date_edited between", value1, value2, "dateEdited"); + return (Criteria) this; + } + + public Criteria andDateEditedNotBetween(Date value1, Date value2) { + addCriterion("date_edited not between", value1, value2, "dateEdited"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table core.template + * + * @mbg.generated do_not_delete_during_merge Mon Sep 06 08:33:43 EAT 2021 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/src/main/java/org/opensrp/repository/postgres/mapper/TemplateMapper.java b/src/main/java/org/opensrp/repository/postgres/mapper/TemplateMapper.java new file mode 100644 index 000000000..68147990a --- /dev/null +++ b/src/main/java/org/opensrp/repository/postgres/mapper/TemplateMapper.java @@ -0,0 +1,96 @@ +package org.opensrp.repository.postgres.mapper; + +import java.util.List; +import org.apache.ibatis.annotations.Param; +import org.opensrp.domain.postgres.Template; +import org.opensrp.domain.postgres.TemplateExample; + +public interface TemplateMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + long countByExample(TemplateExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + int deleteByExample(TemplateExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + int deleteByPrimaryKey(Long id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + int insert(Template record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + int insertSelective(Template record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table core.template + * + * @mbg.generated Mon Sep 06 08:33:43 EAT 2021 + */ + List