Merge pull request #12 from rbkmoney/ft/NEW-14/dmt_currency_obj

NEW-14: Added currency, calendar, provider, terminal
This commit is contained in:
Inal Arsanukaev 2018-09-18 19:53:37 +03:00 committed by GitHub
commit d2d90e0f12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
80 changed files with 11317 additions and 146 deletions

View File

@ -5,9 +5,9 @@ import com.rbkmoney.newway.domain.tables.pojos.Category;
import com.rbkmoney.newway.domain.tables.pojos.Invoice; import com.rbkmoney.newway.domain.tables.pojos.Invoice;
import com.rbkmoney.newway.exception.DaoException; import com.rbkmoney.newway.exception.DaoException;
public interface CategoryDao extends GenericDao { public interface DomainObjectDao<T, I> extends GenericDao {
Long save(Category category) throws DaoException; Long save(T domainObject) throws DaoException;
void updateNotCurrent(Integer categoryId) throws DaoException; void updateNotCurrent(I objectId) throws DaoException;
} }

View File

@ -0,0 +1,38 @@
package com.rbkmoney.newway.dao.dominant.impl;
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.domain.tables.pojos.Calendar;
import com.rbkmoney.newway.domain.tables.records.CalendarRecord;
import com.rbkmoney.newway.exception.DaoException;
import org.jooq.Query;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springframework.stereotype.Component;
import javax.sql.DataSource;
import static com.rbkmoney.newway.domain.Tables.CALENDAR;
@Component
public class CalendarDaoImpl extends AbstractGenericDao implements DomainObjectDao<Calendar, Integer> {
public CalendarDaoImpl(DataSource dataSource) {
super(dataSource);
}
@Override
public Long save(Calendar calendar) throws DaoException {
CalendarRecord calendarRecord = getDslContext().newRecord(CALENDAR, calendar);
Query query = getDslContext().insertInto(CALENDAR).set(calendarRecord).returning(CALENDAR.ID);
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
executeOneWithReturn(query, keyHolder);
return keyHolder.getKey().longValue();
}
@Override
public void updateNotCurrent(Integer calendarId) throws DaoException {
Query query = getDslContext().update(CALENDAR).set(CALENDAR.CURRENT, false)
.where(CALENDAR.CALENDAR_REF_ID.eq(calendarId).and(CALENDAR.CURRENT));
executeOne(query);
}
}

View File

@ -1,7 +1,7 @@
package com.rbkmoney.newway.dao.dominant.impl; package com.rbkmoney.newway.dao.dominant.impl;
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao; import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
import com.rbkmoney.newway.dao.dominant.iface.CategoryDao; import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.domain.tables.pojos.Category; import com.rbkmoney.newway.domain.tables.pojos.Category;
import com.rbkmoney.newway.domain.tables.records.CategoryRecord; import com.rbkmoney.newway.domain.tables.records.CategoryRecord;
import com.rbkmoney.newway.exception.DaoException; import com.rbkmoney.newway.exception.DaoException;
@ -14,7 +14,7 @@ import javax.sql.DataSource;
import static com.rbkmoney.newway.domain.Tables.CATEGORY; import static com.rbkmoney.newway.domain.Tables.CATEGORY;
@Component @Component
public class CategoryDaoImpl extends AbstractGenericDao implements CategoryDao { public class CategoryDaoImpl extends AbstractGenericDao implements DomainObjectDao<Category, Integer> {
public CategoryDaoImpl(DataSource dataSource) { public CategoryDaoImpl(DataSource dataSource) {
super(dataSource); super(dataSource);
@ -32,7 +32,7 @@ public class CategoryDaoImpl extends AbstractGenericDao implements CategoryDao {
@Override @Override
public void updateNotCurrent(Integer categoryId) throws DaoException { public void updateNotCurrent(Integer categoryId) throws DaoException {
Query query = getDslContext().update(CATEGORY).set(CATEGORY.CURRENT, false) Query query = getDslContext().update(CATEGORY).set(CATEGORY.CURRENT, false)
.where(CATEGORY.CATEGORY_ID.eq(categoryId).and(CATEGORY.CURRENT)); .where(CATEGORY.CATEGORY_REF_ID.eq(categoryId).and(CATEGORY.CURRENT));
executeOne(query); executeOne(query);
} }
} }

View File

@ -0,0 +1,38 @@
package com.rbkmoney.newway.dao.dominant.impl;
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.domain.tables.pojos.Currency;
import com.rbkmoney.newway.domain.tables.records.CurrencyRecord;
import com.rbkmoney.newway.exception.DaoException;
import org.jooq.Query;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springframework.stereotype.Component;
import javax.sql.DataSource;
import static com.rbkmoney.newway.domain.Tables.CURRENCY;
@Component
public class CurrencyDaoImpl extends AbstractGenericDao implements DomainObjectDao<Currency, String> {
public CurrencyDaoImpl(DataSource dataSource) {
super(dataSource);
}
@Override
public Long save(Currency currency) throws DaoException {
CurrencyRecord currencyRecord = getDslContext().newRecord(CURRENCY, currency);
Query query = getDslContext().insertInto(CURRENCY).set(currencyRecord).returning(CURRENCY.ID);
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
executeOneWithReturn(query, keyHolder);
return keyHolder.getKey().longValue();
}
@Override
public void updateNotCurrent(String currencyId) throws DaoException {
Query query = getDslContext().update(CURRENCY).set(CURRENCY.CURRENT, false)
.where(CURRENCY.CURRENCY_REF_ID.eq(currencyId).and(CURRENCY.CURRENT));
executeOne(query);
}
}

View File

@ -9,7 +9,7 @@ import org.springframework.stereotype.Component;
import javax.sql.DataSource; import javax.sql.DataSource;
import static com.rbkmoney.newway.domain.Tables.CATEGORY; import static com.rbkmoney.newway.domain.Tables.*;
@Component @Component
public class DominantDaoImpl extends AbstractGenericDao implements DominantDao { public class DominantDaoImpl extends AbstractGenericDao implements DominantDao {
@ -21,7 +21,18 @@ public class DominantDaoImpl extends AbstractGenericDao implements DominantDao {
@Override @Override
public Long getLastVersionId() throws DaoException { public Long getLastVersionId() throws DaoException {
Query query = getDslContext().select(DSL.max(DSL.field("version_id"))).from( Query query = getDslContext().select(DSL.max(DSL.field("version_id"))).from(
getDslContext().select(CATEGORY.VERSION_ID.max().as("version_id")).from(CATEGORY)); getDslContext().select(CALENDAR.VERSION_ID.max().as("version_id")).from(CALENDAR)
.unionAll(getDslContext().select(CATEGORY.VERSION_ID.max().as("version_id")).from(CATEGORY))
.unionAll(getDslContext().select(CURRENCY.VERSION_ID.max().as("version_id")).from(CURRENCY))
.unionAll(getDslContext().select(INSPECTOR.VERSION_ID.max().as("version_id")).from(INSPECTOR))
.unionAll(getDslContext().select(PAYMENT_INSTITUTION.VERSION_ID.max().as("version_id")).from(PAYMENT_INSTITUTION))
.unionAll(getDslContext().select(PAYMENT_METHOD.VERSION_ID.max().as("version_id")).from(PAYMENT_METHOD))
.unionAll(getDslContext().select(PAYOUT_METHOD.VERSION_ID.max().as("version_id")).from(PAYOUT_METHOD))
.unionAll(getDslContext().select(PROVIDER.VERSION_ID.max().as("version_id")).from(PROVIDER))
.unionAll(getDslContext().select(PROXY.VERSION_ID.max().as("version_id")).from(PROXY))
.unionAll(getDslContext().select(TERMINAL.VERSION_ID.max().as("version_id")).from(TERMINAL))
.unionAll(getDslContext().select(TERM_SET_HIERARCHY.VERSION_ID.max().as("version_id")).from(TERM_SET_HIERARCHY))
);
return fetchOne(query, Long.class); return fetchOne(query, Long.class);
} }
} }

View File

@ -0,0 +1,38 @@
package com.rbkmoney.newway.dao.dominant.impl;
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.domain.tables.pojos.Inspector;
import com.rbkmoney.newway.domain.tables.records.InspectorRecord;
import com.rbkmoney.newway.exception.DaoException;
import org.jooq.Query;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springframework.stereotype.Component;
import javax.sql.DataSource;
import static com.rbkmoney.newway.domain.Tables.INSPECTOR;
@Component
public class InspectorDaoImpl extends AbstractGenericDao implements DomainObjectDao<Inspector, Integer> {
public InspectorDaoImpl(DataSource dataSource) {
super(dataSource);
}
@Override
public Long save(Inspector inspector) throws DaoException {
InspectorRecord inspectorRecord = getDslContext().newRecord(INSPECTOR, inspector);
Query query = getDslContext().insertInto(INSPECTOR).set(inspectorRecord).returning(INSPECTOR.ID);
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
executeOneWithReturn(query, keyHolder);
return keyHolder.getKey().longValue();
}
@Override
public void updateNotCurrent(Integer inspectorId) throws DaoException {
Query query = getDslContext().update(INSPECTOR).set(INSPECTOR.CURRENT, false)
.where(INSPECTOR.INSPECTOR_REF_ID.eq(inspectorId).and(INSPECTOR.CURRENT));
executeOne(query);
}
}

View File

@ -0,0 +1,38 @@
package com.rbkmoney.newway.dao.dominant.impl;
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.domain.tables.pojos.PaymentInstitution;
import com.rbkmoney.newway.domain.tables.records.PaymentInstitutionRecord;
import com.rbkmoney.newway.exception.DaoException;
import org.jooq.Query;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springframework.stereotype.Component;
import javax.sql.DataSource;
import static com.rbkmoney.newway.domain.Tables.PAYMENT_INSTITUTION;
@Component
public class PaymentInstitutionDaoImpl extends AbstractGenericDao implements DomainObjectDao<PaymentInstitution, Integer> {
public PaymentInstitutionDaoImpl(DataSource dataSource) {
super(dataSource);
}
@Override
public Long save(PaymentInstitution paymentInstitution) throws DaoException {
PaymentInstitutionRecord paymentInstitutionRecord = getDslContext().newRecord(PAYMENT_INSTITUTION, paymentInstitution);
Query query = getDslContext().insertInto(PAYMENT_INSTITUTION).set(paymentInstitutionRecord).returning(PAYMENT_INSTITUTION.ID);
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
executeOneWithReturn(query, keyHolder);
return keyHolder.getKey().longValue();
}
@Override
public void updateNotCurrent(Integer paymentInstitutionId) throws DaoException {
Query query = getDslContext().update(PAYMENT_INSTITUTION).set(PAYMENT_INSTITUTION.CURRENT, false)
.where(PAYMENT_INSTITUTION.PAYMENT_INSTITUTION_REF_ID.eq(paymentInstitutionId).and(PAYMENT_INSTITUTION.CURRENT));
executeOne(query);
}
}

View File

@ -0,0 +1,38 @@
package com.rbkmoney.newway.dao.dominant.impl;
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.domain.tables.pojos.PaymentMethod;
import com.rbkmoney.newway.domain.tables.records.PaymentMethodRecord;
import com.rbkmoney.newway.exception.DaoException;
import org.jooq.Query;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springframework.stereotype.Component;
import javax.sql.DataSource;
import static com.rbkmoney.newway.domain.Tables.PAYMENT_METHOD;
@Component
public class PaymentMethodDaoImpl extends AbstractGenericDao implements DomainObjectDao<PaymentMethod, String> {
public PaymentMethodDaoImpl(DataSource dataSource) {
super(dataSource);
}
@Override
public Long save(PaymentMethod paymentMethod) throws DaoException {
PaymentMethodRecord paymentMethodRecord = getDslContext().newRecord(PAYMENT_METHOD, paymentMethod);
Query query = getDslContext().insertInto(PAYMENT_METHOD).set(paymentMethodRecord).returning(PAYMENT_METHOD.ID);
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
executeOneWithReturn(query, keyHolder);
return keyHolder.getKey().longValue();
}
@Override
public void updateNotCurrent(String paymentMethodId) throws DaoException {
Query query = getDslContext().update(PAYMENT_METHOD).set(PAYMENT_METHOD.CURRENT, false)
.where(PAYMENT_METHOD.PAYMENT_METHOD_REF_ID.eq(paymentMethodId).and(PAYMENT_METHOD.CURRENT));
executeOne(query);
}
}

View File

@ -0,0 +1,38 @@
package com.rbkmoney.newway.dao.dominant.impl;
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.domain.tables.pojos.PayoutMethod;
import com.rbkmoney.newway.domain.tables.records.PayoutMethodRecord;
import com.rbkmoney.newway.exception.DaoException;
import org.jooq.Query;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springframework.stereotype.Component;
import javax.sql.DataSource;
import static com.rbkmoney.newway.domain.Tables.PAYOUT_METHOD;
@Component
public class PayoutMethodDaoImpl extends AbstractGenericDao implements DomainObjectDao<PayoutMethod, String> {
public PayoutMethodDaoImpl(DataSource dataSource) {
super(dataSource);
}
@Override
public Long save(PayoutMethod payoutMethod) throws DaoException {
PayoutMethodRecord payoutMethodRecord = getDslContext().newRecord(PAYOUT_METHOD, payoutMethod);
Query query = getDslContext().insertInto(PAYOUT_METHOD).set(payoutMethodRecord).returning(PAYOUT_METHOD.ID);
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
executeOneWithReturn(query, keyHolder);
return keyHolder.getKey().longValue();
}
@Override
public void updateNotCurrent(String payoutMethodId) throws DaoException {
Query query = getDslContext().update(PAYOUT_METHOD).set(PAYOUT_METHOD.CURRENT, false)
.where(PAYOUT_METHOD.PAYOUT_METHOD_REF_ID.eq(payoutMethodId).and(PAYOUT_METHOD.CURRENT));
executeOne(query);
}
}

View File

@ -0,0 +1,38 @@
package com.rbkmoney.newway.dao.dominant.impl;
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.domain.tables.pojos.Provider;
import com.rbkmoney.newway.domain.tables.records.ProviderRecord;
import com.rbkmoney.newway.exception.DaoException;
import org.jooq.Query;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springframework.stereotype.Component;
import javax.sql.DataSource;
import static com.rbkmoney.newway.domain.Tables.PROVIDER;
@Component
public class ProviderDaoImpl extends AbstractGenericDao implements DomainObjectDao<Provider, Integer> {
public ProviderDaoImpl(DataSource dataSource) {
super(dataSource);
}
@Override
public Long save(Provider provider) throws DaoException {
ProviderRecord providerRecord = getDslContext().newRecord(PROVIDER, provider);
Query query = getDslContext().insertInto(PROVIDER).set(providerRecord).returning(PROVIDER.ID);
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
executeOneWithReturn(query, keyHolder);
return keyHolder.getKey().longValue();
}
@Override
public void updateNotCurrent(Integer providerId) throws DaoException {
Query query = getDslContext().update(PROVIDER).set(PROVIDER.CURRENT, false)
.where(PROVIDER.PROVIDER_REF_ID.eq(providerId).and(PROVIDER.CURRENT));
executeOne(query);
}
}

View File

@ -0,0 +1,38 @@
package com.rbkmoney.newway.dao.dominant.impl;
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.domain.tables.pojos.Proxy;
import com.rbkmoney.newway.domain.tables.records.ProxyRecord;
import com.rbkmoney.newway.exception.DaoException;
import org.jooq.Query;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springframework.stereotype.Component;
import javax.sql.DataSource;
import static com.rbkmoney.newway.domain.Tables.PROXY;
@Component
public class ProxyDaoImpl extends AbstractGenericDao implements DomainObjectDao<Proxy, Integer> {
public ProxyDaoImpl(DataSource dataSource) {
super(dataSource);
}
@Override
public Long save(Proxy proxy) throws DaoException {
ProxyRecord proxyRecord = getDslContext().newRecord(PROXY, proxy);
Query query = getDslContext().insertInto(PROXY).set(proxyRecord).returning(PROXY.ID);
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
executeOneWithReturn(query, keyHolder);
return keyHolder.getKey().longValue();
}
@Override
public void updateNotCurrent(Integer proxyId) throws DaoException {
Query query = getDslContext().update(PROXY).set(PROXY.CURRENT, false)
.where(PROXY.PROXY_REF_ID.eq(proxyId).and(PROXY.CURRENT));
executeOne(query);
}
}

View File

@ -0,0 +1,38 @@
package com.rbkmoney.newway.dao.dominant.impl;
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.domain.tables.pojos.TermSetHierarchy;
import com.rbkmoney.newway.domain.tables.records.TermSetHierarchyRecord;
import com.rbkmoney.newway.exception.DaoException;
import org.jooq.Query;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springframework.stereotype.Component;
import javax.sql.DataSource;
import static com.rbkmoney.newway.domain.Tables.TERM_SET_HIERARCHY;
@Component
public class TermSetHierarchyDaoImpl extends AbstractGenericDao implements DomainObjectDao<TermSetHierarchy, Integer> {
public TermSetHierarchyDaoImpl(DataSource dataSource) {
super(dataSource);
}
@Override
public Long save(TermSetHierarchy termSetHierarchy) throws DaoException {
TermSetHierarchyRecord termSetHierarchyRecord = getDslContext().newRecord(TERM_SET_HIERARCHY, termSetHierarchy);
Query query = getDslContext().insertInto(TERM_SET_HIERARCHY).set(termSetHierarchyRecord).returning(TERM_SET_HIERARCHY.ID);
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
executeOneWithReturn(query, keyHolder);
return keyHolder.getKey().longValue();
}
@Override
public void updateNotCurrent(Integer termSetHierarchyId) throws DaoException {
Query query = getDslContext().update(TERM_SET_HIERARCHY).set(TERM_SET_HIERARCHY.CURRENT, false)
.where(TERM_SET_HIERARCHY.TERM_SET_HIERARCHY_REF_ID.eq(termSetHierarchyId).and(TERM_SET_HIERARCHY.CURRENT));
executeOne(query);
}
}

View File

@ -0,0 +1,38 @@
package com.rbkmoney.newway.dao.dominant.impl;
import com.rbkmoney.newway.dao.common.impl.AbstractGenericDao;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.domain.tables.pojos.Terminal;
import com.rbkmoney.newway.domain.tables.records.TerminalRecord;
import com.rbkmoney.newway.exception.DaoException;
import org.jooq.Query;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springframework.stereotype.Component;
import javax.sql.DataSource;
import static com.rbkmoney.newway.domain.Tables.TERMINAL;
@Component
public class TerminalDaoImpl extends AbstractGenericDao implements DomainObjectDao<Terminal, Integer> {
public TerminalDaoImpl(DataSource dataSource) {
super(dataSource);
}
@Override
public Long save(Terminal terminal) throws DaoException {
TerminalRecord terminalRecord = getDslContext().newRecord(TERMINAL, terminal);
Query query = getDslContext().insertInto(TERMINAL).set(terminalRecord).returning(TERMINAL.ID);
GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();
executeOneWithReturn(query, keyHolder);
return keyHolder.getKey().longValue();
}
@Override
public void updateNotCurrent(Integer terminalId) throws DaoException {
Query query = getDslContext().update(TERMINAL).set(TERMINAL.CURRENT, false)
.where(TERMINAL.TERMINAL_REF_ID.eq(terminalId).and(TERMINAL.CURRENT));
executeOne(query);
}
}

View File

@ -5,35 +5,55 @@ package com.rbkmoney.newway.domain;
import com.rbkmoney.newway.domain.tables.Adjustment; import com.rbkmoney.newway.domain.tables.Adjustment;
import com.rbkmoney.newway.domain.tables.Calendar;
import com.rbkmoney.newway.domain.tables.CashFlow; import com.rbkmoney.newway.domain.tables.CashFlow;
import com.rbkmoney.newway.domain.tables.Category; import com.rbkmoney.newway.domain.tables.Category;
import com.rbkmoney.newway.domain.tables.Contract; import com.rbkmoney.newway.domain.tables.Contract;
import com.rbkmoney.newway.domain.tables.ContractAdjustment; import com.rbkmoney.newway.domain.tables.ContractAdjustment;
import com.rbkmoney.newway.domain.tables.Contractor; import com.rbkmoney.newway.domain.tables.Contractor;
import com.rbkmoney.newway.domain.tables.Currency;
import com.rbkmoney.newway.domain.tables.Inspector;
import com.rbkmoney.newway.domain.tables.Invoice; import com.rbkmoney.newway.domain.tables.Invoice;
import com.rbkmoney.newway.domain.tables.InvoiceCart; import com.rbkmoney.newway.domain.tables.InvoiceCart;
import com.rbkmoney.newway.domain.tables.Party; import com.rbkmoney.newway.domain.tables.Party;
import com.rbkmoney.newway.domain.tables.Payment; import com.rbkmoney.newway.domain.tables.Payment;
import com.rbkmoney.newway.domain.tables.PaymentInstitution;
import com.rbkmoney.newway.domain.tables.PaymentMethod;
import com.rbkmoney.newway.domain.tables.Payout; import com.rbkmoney.newway.domain.tables.Payout;
import com.rbkmoney.newway.domain.tables.PayoutMethod;
import com.rbkmoney.newway.domain.tables.PayoutSummary; import com.rbkmoney.newway.domain.tables.PayoutSummary;
import com.rbkmoney.newway.domain.tables.PayoutTool; import com.rbkmoney.newway.domain.tables.PayoutTool;
import com.rbkmoney.newway.domain.tables.Provider;
import com.rbkmoney.newway.domain.tables.Proxy;
import com.rbkmoney.newway.domain.tables.Refund; import com.rbkmoney.newway.domain.tables.Refund;
import com.rbkmoney.newway.domain.tables.Shop; import com.rbkmoney.newway.domain.tables.Shop;
import com.rbkmoney.newway.domain.tables.TermSetHierarchy;
import com.rbkmoney.newway.domain.tables.Terminal;
import com.rbkmoney.newway.domain.tables.records.AdjustmentRecord; import com.rbkmoney.newway.domain.tables.records.AdjustmentRecord;
import com.rbkmoney.newway.domain.tables.records.CalendarRecord;
import com.rbkmoney.newway.domain.tables.records.CashFlowRecord; import com.rbkmoney.newway.domain.tables.records.CashFlowRecord;
import com.rbkmoney.newway.domain.tables.records.CategoryRecord; import com.rbkmoney.newway.domain.tables.records.CategoryRecord;
import com.rbkmoney.newway.domain.tables.records.ContractAdjustmentRecord; import com.rbkmoney.newway.domain.tables.records.ContractAdjustmentRecord;
import com.rbkmoney.newway.domain.tables.records.ContractRecord; import com.rbkmoney.newway.domain.tables.records.ContractRecord;
import com.rbkmoney.newway.domain.tables.records.ContractorRecord; import com.rbkmoney.newway.domain.tables.records.ContractorRecord;
import com.rbkmoney.newway.domain.tables.records.CurrencyRecord;
import com.rbkmoney.newway.domain.tables.records.InspectorRecord;
import com.rbkmoney.newway.domain.tables.records.InvoiceCartRecord; import com.rbkmoney.newway.domain.tables.records.InvoiceCartRecord;
import com.rbkmoney.newway.domain.tables.records.InvoiceRecord; import com.rbkmoney.newway.domain.tables.records.InvoiceRecord;
import com.rbkmoney.newway.domain.tables.records.PartyRecord; import com.rbkmoney.newway.domain.tables.records.PartyRecord;
import com.rbkmoney.newway.domain.tables.records.PaymentInstitutionRecord;
import com.rbkmoney.newway.domain.tables.records.PaymentMethodRecord;
import com.rbkmoney.newway.domain.tables.records.PaymentRecord; import com.rbkmoney.newway.domain.tables.records.PaymentRecord;
import com.rbkmoney.newway.domain.tables.records.PayoutMethodRecord;
import com.rbkmoney.newway.domain.tables.records.PayoutRecord; import com.rbkmoney.newway.domain.tables.records.PayoutRecord;
import com.rbkmoney.newway.domain.tables.records.PayoutSummaryRecord; import com.rbkmoney.newway.domain.tables.records.PayoutSummaryRecord;
import com.rbkmoney.newway.domain.tables.records.PayoutToolRecord; import com.rbkmoney.newway.domain.tables.records.PayoutToolRecord;
import com.rbkmoney.newway.domain.tables.records.ProviderRecord;
import com.rbkmoney.newway.domain.tables.records.ProxyRecord;
import com.rbkmoney.newway.domain.tables.records.RefundRecord; import com.rbkmoney.newway.domain.tables.records.RefundRecord;
import com.rbkmoney.newway.domain.tables.records.ShopRecord; import com.rbkmoney.newway.domain.tables.records.ShopRecord;
import com.rbkmoney.newway.domain.tables.records.TermSetHierarchyRecord;
import com.rbkmoney.newway.domain.tables.records.TerminalRecord;
import javax.annotation.Generated; import javax.annotation.Generated;
@ -62,40 +82,60 @@ public class Keys {
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
public static final Identity<AdjustmentRecord, Long> IDENTITY_ADJUSTMENT = Identities0.IDENTITY_ADJUSTMENT; public static final Identity<AdjustmentRecord, Long> IDENTITY_ADJUSTMENT = Identities0.IDENTITY_ADJUSTMENT;
public static final Identity<CalendarRecord, Long> IDENTITY_CALENDAR = Identities0.IDENTITY_CALENDAR;
public static final Identity<CashFlowRecord, Long> IDENTITY_CASH_FLOW = Identities0.IDENTITY_CASH_FLOW; public static final Identity<CashFlowRecord, Long> IDENTITY_CASH_FLOW = Identities0.IDENTITY_CASH_FLOW;
public static final Identity<CategoryRecord, Long> IDENTITY_CATEGORY = Identities0.IDENTITY_CATEGORY; public static final Identity<CategoryRecord, Long> IDENTITY_CATEGORY = Identities0.IDENTITY_CATEGORY;
public static final Identity<ContractRecord, Long> IDENTITY_CONTRACT = Identities0.IDENTITY_CONTRACT; public static final Identity<ContractRecord, Long> IDENTITY_CONTRACT = Identities0.IDENTITY_CONTRACT;
public static final Identity<ContractAdjustmentRecord, Long> IDENTITY_CONTRACT_ADJUSTMENT = Identities0.IDENTITY_CONTRACT_ADJUSTMENT; public static final Identity<ContractAdjustmentRecord, Long> IDENTITY_CONTRACT_ADJUSTMENT = Identities0.IDENTITY_CONTRACT_ADJUSTMENT;
public static final Identity<ContractorRecord, Long> IDENTITY_CONTRACTOR = Identities0.IDENTITY_CONTRACTOR; public static final Identity<ContractorRecord, Long> IDENTITY_CONTRACTOR = Identities0.IDENTITY_CONTRACTOR;
public static final Identity<CurrencyRecord, Long> IDENTITY_CURRENCY = Identities0.IDENTITY_CURRENCY;
public static final Identity<InspectorRecord, Long> IDENTITY_INSPECTOR = Identities0.IDENTITY_INSPECTOR;
public static final Identity<InvoiceRecord, Long> IDENTITY_INVOICE = Identities0.IDENTITY_INVOICE; public static final Identity<InvoiceRecord, Long> IDENTITY_INVOICE = Identities0.IDENTITY_INVOICE;
public static final Identity<InvoiceCartRecord, Long> IDENTITY_INVOICE_CART = Identities0.IDENTITY_INVOICE_CART; public static final Identity<InvoiceCartRecord, Long> IDENTITY_INVOICE_CART = Identities0.IDENTITY_INVOICE_CART;
public static final Identity<PartyRecord, Long> IDENTITY_PARTY = Identities0.IDENTITY_PARTY; public static final Identity<PartyRecord, Long> IDENTITY_PARTY = Identities0.IDENTITY_PARTY;
public static final Identity<PaymentRecord, Long> IDENTITY_PAYMENT = Identities0.IDENTITY_PAYMENT; public static final Identity<PaymentRecord, Long> IDENTITY_PAYMENT = Identities0.IDENTITY_PAYMENT;
public static final Identity<PaymentInstitutionRecord, Long> IDENTITY_PAYMENT_INSTITUTION = Identities0.IDENTITY_PAYMENT_INSTITUTION;
public static final Identity<PaymentMethodRecord, Long> IDENTITY_PAYMENT_METHOD = Identities0.IDENTITY_PAYMENT_METHOD;
public static final Identity<PayoutRecord, Long> IDENTITY_PAYOUT = Identities0.IDENTITY_PAYOUT; public static final Identity<PayoutRecord, Long> IDENTITY_PAYOUT = Identities0.IDENTITY_PAYOUT;
public static final Identity<PayoutMethodRecord, Long> IDENTITY_PAYOUT_METHOD = Identities0.IDENTITY_PAYOUT_METHOD;
public static final Identity<PayoutSummaryRecord, Long> IDENTITY_PAYOUT_SUMMARY = Identities0.IDENTITY_PAYOUT_SUMMARY; public static final Identity<PayoutSummaryRecord, Long> IDENTITY_PAYOUT_SUMMARY = Identities0.IDENTITY_PAYOUT_SUMMARY;
public static final Identity<PayoutToolRecord, Long> IDENTITY_PAYOUT_TOOL = Identities0.IDENTITY_PAYOUT_TOOL; public static final Identity<PayoutToolRecord, Long> IDENTITY_PAYOUT_TOOL = Identities0.IDENTITY_PAYOUT_TOOL;
public static final Identity<ProviderRecord, Long> IDENTITY_PROVIDER = Identities0.IDENTITY_PROVIDER;
public static final Identity<ProxyRecord, Long> IDENTITY_PROXY = Identities0.IDENTITY_PROXY;
public static final Identity<RefundRecord, Long> IDENTITY_REFUND = Identities0.IDENTITY_REFUND; public static final Identity<RefundRecord, Long> IDENTITY_REFUND = Identities0.IDENTITY_REFUND;
public static final Identity<ShopRecord, Long> IDENTITY_SHOP = Identities0.IDENTITY_SHOP; public static final Identity<ShopRecord, Long> IDENTITY_SHOP = Identities0.IDENTITY_SHOP;
public static final Identity<TermSetHierarchyRecord, Long> IDENTITY_TERM_SET_HIERARCHY = Identities0.IDENTITY_TERM_SET_HIERARCHY;
public static final Identity<TerminalRecord, Long> IDENTITY_TERMINAL = Identities0.IDENTITY_TERMINAL;
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions // UNIQUE and PRIMARY KEY definitions
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
public static final UniqueKey<AdjustmentRecord> ADJUSTMENT_PKEY = UniqueKeys0.ADJUSTMENT_PKEY; public static final UniqueKey<AdjustmentRecord> ADJUSTMENT_PKEY = UniqueKeys0.ADJUSTMENT_PKEY;
public static final UniqueKey<CalendarRecord> CALENDAR_PKEY = UniqueKeys0.CALENDAR_PKEY;
public static final UniqueKey<CashFlowRecord> CASH_FLOW_PKEY = UniqueKeys0.CASH_FLOW_PKEY; public static final UniqueKey<CashFlowRecord> CASH_FLOW_PKEY = UniqueKeys0.CASH_FLOW_PKEY;
public static final UniqueKey<CategoryRecord> CATEGORY_PKEY = UniqueKeys0.CATEGORY_PKEY; public static final UniqueKey<CategoryRecord> CATEGORY_PKEY = UniqueKeys0.CATEGORY_PKEY;
public static final UniqueKey<ContractRecord> CONTRACT_PKEY = UniqueKeys0.CONTRACT_PKEY; public static final UniqueKey<ContractRecord> CONTRACT_PKEY = UniqueKeys0.CONTRACT_PKEY;
public static final UniqueKey<ContractAdjustmentRecord> CONTRACT_ADJUSTMENT_PKEY = UniqueKeys0.CONTRACT_ADJUSTMENT_PKEY; public static final UniqueKey<ContractAdjustmentRecord> CONTRACT_ADJUSTMENT_PKEY = UniqueKeys0.CONTRACT_ADJUSTMENT_PKEY;
public static final UniqueKey<ContractorRecord> CONTRACTOR_PKEY = UniqueKeys0.CONTRACTOR_PKEY; public static final UniqueKey<ContractorRecord> CONTRACTOR_PKEY = UniqueKeys0.CONTRACTOR_PKEY;
public static final UniqueKey<CurrencyRecord> CURRENCY_PKEY = UniqueKeys0.CURRENCY_PKEY;
public static final UniqueKey<InspectorRecord> INSPECTOR_PKEY = UniqueKeys0.INSPECTOR_PKEY;
public static final UniqueKey<InvoiceRecord> INVOICE_PKEY = UniqueKeys0.INVOICE_PKEY; public static final UniqueKey<InvoiceRecord> INVOICE_PKEY = UniqueKeys0.INVOICE_PKEY;
public static final UniqueKey<InvoiceCartRecord> INVOICE_CART_PKEY = UniqueKeys0.INVOICE_CART_PKEY; public static final UniqueKey<InvoiceCartRecord> INVOICE_CART_PKEY = UniqueKeys0.INVOICE_CART_PKEY;
public static final UniqueKey<PartyRecord> PARTY_PKEY = UniqueKeys0.PARTY_PKEY; public static final UniqueKey<PartyRecord> PARTY_PKEY = UniqueKeys0.PARTY_PKEY;
public static final UniqueKey<PaymentRecord> PAYMENT_PKEY = UniqueKeys0.PAYMENT_PKEY; public static final UniqueKey<PaymentRecord> PAYMENT_PKEY = UniqueKeys0.PAYMENT_PKEY;
public static final UniqueKey<PaymentInstitutionRecord> PAYMENT_INSTITUTION_PKEY = UniqueKeys0.PAYMENT_INSTITUTION_PKEY;
public static final UniqueKey<PaymentMethodRecord> PAYMENT_METHOD_PKEY = UniqueKeys0.PAYMENT_METHOD_PKEY;
public static final UniqueKey<PayoutRecord> PAYOUT_PKEY = UniqueKeys0.PAYOUT_PKEY; public static final UniqueKey<PayoutRecord> PAYOUT_PKEY = UniqueKeys0.PAYOUT_PKEY;
public static final UniqueKey<PayoutMethodRecord> PAYOUT_METHOD_PKEY = UniqueKeys0.PAYOUT_METHOD_PKEY;
public static final UniqueKey<PayoutSummaryRecord> PAYOUT_SUMMARY_PKEY = UniqueKeys0.PAYOUT_SUMMARY_PKEY; public static final UniqueKey<PayoutSummaryRecord> PAYOUT_SUMMARY_PKEY = UniqueKeys0.PAYOUT_SUMMARY_PKEY;
public static final UniqueKey<PayoutToolRecord> PAYOUT_TOOL_PKEY = UniqueKeys0.PAYOUT_TOOL_PKEY; public static final UniqueKey<PayoutToolRecord> PAYOUT_TOOL_PKEY = UniqueKeys0.PAYOUT_TOOL_PKEY;
public static final UniqueKey<ProviderRecord> PROVIDER_PKEY = UniqueKeys0.PROVIDER_PKEY;
public static final UniqueKey<ProxyRecord> PROXY_PKEY = UniqueKeys0.PROXY_PKEY;
public static final UniqueKey<RefundRecord> REFUND_PKEY = UniqueKeys0.REFUND_PKEY; public static final UniqueKey<RefundRecord> REFUND_PKEY = UniqueKeys0.REFUND_PKEY;
public static final UniqueKey<ShopRecord> SHOP_PKEY = UniqueKeys0.SHOP_PKEY; public static final UniqueKey<ShopRecord> SHOP_PKEY = UniqueKeys0.SHOP_PKEY;
public static final UniqueKey<TermSetHierarchyRecord> TERM_SET_HIERARCHY_PKEY = UniqueKeys0.TERM_SET_HIERARCHY_PKEY;
public static final UniqueKey<TerminalRecord> TERMINAL_PKEY = UniqueKeys0.TERMINAL_PKEY;
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
// FOREIGN KEY definitions // FOREIGN KEY definitions
@ -112,38 +152,58 @@ public class Keys {
private static class Identities0 extends AbstractKeys { private static class Identities0 extends AbstractKeys {
public static Identity<AdjustmentRecord, Long> IDENTITY_ADJUSTMENT = createIdentity(Adjustment.ADJUSTMENT, Adjustment.ADJUSTMENT.ID); public static Identity<AdjustmentRecord, Long> IDENTITY_ADJUSTMENT = createIdentity(Adjustment.ADJUSTMENT, Adjustment.ADJUSTMENT.ID);
public static Identity<CalendarRecord, Long> IDENTITY_CALENDAR = createIdentity(Calendar.CALENDAR, Calendar.CALENDAR.ID);
public static Identity<CashFlowRecord, Long> IDENTITY_CASH_FLOW = createIdentity(CashFlow.CASH_FLOW, CashFlow.CASH_FLOW.ID); public static Identity<CashFlowRecord, Long> IDENTITY_CASH_FLOW = createIdentity(CashFlow.CASH_FLOW, CashFlow.CASH_FLOW.ID);
public static Identity<CategoryRecord, Long> IDENTITY_CATEGORY = createIdentity(Category.CATEGORY, Category.CATEGORY.ID); public static Identity<CategoryRecord, Long> IDENTITY_CATEGORY = createIdentity(Category.CATEGORY, Category.CATEGORY.ID);
public static Identity<ContractRecord, Long> IDENTITY_CONTRACT = createIdentity(Contract.CONTRACT, Contract.CONTRACT.ID); public static Identity<ContractRecord, Long> IDENTITY_CONTRACT = createIdentity(Contract.CONTRACT, Contract.CONTRACT.ID);
public static Identity<ContractAdjustmentRecord, Long> IDENTITY_CONTRACT_ADJUSTMENT = createIdentity(ContractAdjustment.CONTRACT_ADJUSTMENT, ContractAdjustment.CONTRACT_ADJUSTMENT.ID); public static Identity<ContractAdjustmentRecord, Long> IDENTITY_CONTRACT_ADJUSTMENT = createIdentity(ContractAdjustment.CONTRACT_ADJUSTMENT, ContractAdjustment.CONTRACT_ADJUSTMENT.ID);
public static Identity<ContractorRecord, Long> IDENTITY_CONTRACTOR = createIdentity(Contractor.CONTRACTOR, Contractor.CONTRACTOR.ID); public static Identity<ContractorRecord, Long> IDENTITY_CONTRACTOR = createIdentity(Contractor.CONTRACTOR, Contractor.CONTRACTOR.ID);
public static Identity<CurrencyRecord, Long> IDENTITY_CURRENCY = createIdentity(Currency.CURRENCY, Currency.CURRENCY.ID);
public static Identity<InspectorRecord, Long> IDENTITY_INSPECTOR = createIdentity(Inspector.INSPECTOR, Inspector.INSPECTOR.ID);
public static Identity<InvoiceRecord, Long> IDENTITY_INVOICE = createIdentity(Invoice.INVOICE, Invoice.INVOICE.ID); public static Identity<InvoiceRecord, Long> IDENTITY_INVOICE = createIdentity(Invoice.INVOICE, Invoice.INVOICE.ID);
public static Identity<InvoiceCartRecord, Long> IDENTITY_INVOICE_CART = createIdentity(InvoiceCart.INVOICE_CART, InvoiceCart.INVOICE_CART.ID); public static Identity<InvoiceCartRecord, Long> IDENTITY_INVOICE_CART = createIdentity(InvoiceCart.INVOICE_CART, InvoiceCart.INVOICE_CART.ID);
public static Identity<PartyRecord, Long> IDENTITY_PARTY = createIdentity(Party.PARTY, Party.PARTY.ID); public static Identity<PartyRecord, Long> IDENTITY_PARTY = createIdentity(Party.PARTY, Party.PARTY.ID);
public static Identity<PaymentRecord, Long> IDENTITY_PAYMENT = createIdentity(Payment.PAYMENT, Payment.PAYMENT.ID); public static Identity<PaymentRecord, Long> IDENTITY_PAYMENT = createIdentity(Payment.PAYMENT, Payment.PAYMENT.ID);
public static Identity<PaymentInstitutionRecord, Long> IDENTITY_PAYMENT_INSTITUTION = createIdentity(PaymentInstitution.PAYMENT_INSTITUTION, PaymentInstitution.PAYMENT_INSTITUTION.ID);
public static Identity<PaymentMethodRecord, Long> IDENTITY_PAYMENT_METHOD = createIdentity(PaymentMethod.PAYMENT_METHOD, PaymentMethod.PAYMENT_METHOD.ID);
public static Identity<PayoutRecord, Long> IDENTITY_PAYOUT = createIdentity(Payout.PAYOUT, Payout.PAYOUT.ID); public static Identity<PayoutRecord, Long> IDENTITY_PAYOUT = createIdentity(Payout.PAYOUT, Payout.PAYOUT.ID);
public static Identity<PayoutMethodRecord, Long> IDENTITY_PAYOUT_METHOD = createIdentity(PayoutMethod.PAYOUT_METHOD, PayoutMethod.PAYOUT_METHOD.ID);
public static Identity<PayoutSummaryRecord, Long> IDENTITY_PAYOUT_SUMMARY = createIdentity(PayoutSummary.PAYOUT_SUMMARY, PayoutSummary.PAYOUT_SUMMARY.ID); public static Identity<PayoutSummaryRecord, Long> IDENTITY_PAYOUT_SUMMARY = createIdentity(PayoutSummary.PAYOUT_SUMMARY, PayoutSummary.PAYOUT_SUMMARY.ID);
public static Identity<PayoutToolRecord, Long> IDENTITY_PAYOUT_TOOL = createIdentity(PayoutTool.PAYOUT_TOOL, PayoutTool.PAYOUT_TOOL.ID); public static Identity<PayoutToolRecord, Long> IDENTITY_PAYOUT_TOOL = createIdentity(PayoutTool.PAYOUT_TOOL, PayoutTool.PAYOUT_TOOL.ID);
public static Identity<ProviderRecord, Long> IDENTITY_PROVIDER = createIdentity(Provider.PROVIDER, Provider.PROVIDER.ID);
public static Identity<ProxyRecord, Long> IDENTITY_PROXY = createIdentity(Proxy.PROXY, Proxy.PROXY.ID);
public static Identity<RefundRecord, Long> IDENTITY_REFUND = createIdentity(Refund.REFUND, Refund.REFUND.ID); public static Identity<RefundRecord, Long> IDENTITY_REFUND = createIdentity(Refund.REFUND, Refund.REFUND.ID);
public static Identity<ShopRecord, Long> IDENTITY_SHOP = createIdentity(Shop.SHOP, Shop.SHOP.ID); public static Identity<ShopRecord, Long> IDENTITY_SHOP = createIdentity(Shop.SHOP, Shop.SHOP.ID);
public static Identity<TermSetHierarchyRecord, Long> IDENTITY_TERM_SET_HIERARCHY = createIdentity(TermSetHierarchy.TERM_SET_HIERARCHY, TermSetHierarchy.TERM_SET_HIERARCHY.ID);
public static Identity<TerminalRecord, Long> IDENTITY_TERMINAL = createIdentity(Terminal.TERMINAL, Terminal.TERMINAL.ID);
} }
private static class UniqueKeys0 extends AbstractKeys { private static class UniqueKeys0 extends AbstractKeys {
public static final UniqueKey<AdjustmentRecord> ADJUSTMENT_PKEY = createUniqueKey(Adjustment.ADJUSTMENT, "adjustment_pkey", Adjustment.ADJUSTMENT.ID); public static final UniqueKey<AdjustmentRecord> ADJUSTMENT_PKEY = createUniqueKey(Adjustment.ADJUSTMENT, "adjustment_pkey", Adjustment.ADJUSTMENT.ID);
public static final UniqueKey<CalendarRecord> CALENDAR_PKEY = createUniqueKey(Calendar.CALENDAR, "calendar_pkey", Calendar.CALENDAR.ID);
public static final UniqueKey<CashFlowRecord> CASH_FLOW_PKEY = createUniqueKey(CashFlow.CASH_FLOW, "cash_flow_pkey", CashFlow.CASH_FLOW.ID); public static final UniqueKey<CashFlowRecord> CASH_FLOW_PKEY = createUniqueKey(CashFlow.CASH_FLOW, "cash_flow_pkey", CashFlow.CASH_FLOW.ID);
public static final UniqueKey<CategoryRecord> CATEGORY_PKEY = createUniqueKey(Category.CATEGORY, "category_pkey", Category.CATEGORY.ID); public static final UniqueKey<CategoryRecord> CATEGORY_PKEY = createUniqueKey(Category.CATEGORY, "category_pkey", Category.CATEGORY.ID);
public static final UniqueKey<ContractRecord> CONTRACT_PKEY = createUniqueKey(Contract.CONTRACT, "contract_pkey", Contract.CONTRACT.ID); public static final UniqueKey<ContractRecord> CONTRACT_PKEY = createUniqueKey(Contract.CONTRACT, "contract_pkey", Contract.CONTRACT.ID);
public static final UniqueKey<ContractAdjustmentRecord> CONTRACT_ADJUSTMENT_PKEY = createUniqueKey(ContractAdjustment.CONTRACT_ADJUSTMENT, "contract_adjustment_pkey", ContractAdjustment.CONTRACT_ADJUSTMENT.ID); public static final UniqueKey<ContractAdjustmentRecord> CONTRACT_ADJUSTMENT_PKEY = createUniqueKey(ContractAdjustment.CONTRACT_ADJUSTMENT, "contract_adjustment_pkey", ContractAdjustment.CONTRACT_ADJUSTMENT.ID);
public static final UniqueKey<ContractorRecord> CONTRACTOR_PKEY = createUniqueKey(Contractor.CONTRACTOR, "contractor_pkey", Contractor.CONTRACTOR.ID); public static final UniqueKey<ContractorRecord> CONTRACTOR_PKEY = createUniqueKey(Contractor.CONTRACTOR, "contractor_pkey", Contractor.CONTRACTOR.ID);
public static final UniqueKey<CurrencyRecord> CURRENCY_PKEY = createUniqueKey(Currency.CURRENCY, "currency_pkey", Currency.CURRENCY.ID);
public static final UniqueKey<InspectorRecord> INSPECTOR_PKEY = createUniqueKey(Inspector.INSPECTOR, "inspector_pkey", Inspector.INSPECTOR.ID);
public static final UniqueKey<InvoiceRecord> INVOICE_PKEY = createUniqueKey(Invoice.INVOICE, "invoice_pkey", Invoice.INVOICE.ID); public static final UniqueKey<InvoiceRecord> INVOICE_PKEY = createUniqueKey(Invoice.INVOICE, "invoice_pkey", Invoice.INVOICE.ID);
public static final UniqueKey<InvoiceCartRecord> INVOICE_CART_PKEY = createUniqueKey(InvoiceCart.INVOICE_CART, "invoice_cart_pkey", InvoiceCart.INVOICE_CART.ID); public static final UniqueKey<InvoiceCartRecord> INVOICE_CART_PKEY = createUniqueKey(InvoiceCart.INVOICE_CART, "invoice_cart_pkey", InvoiceCart.INVOICE_CART.ID);
public static final UniqueKey<PartyRecord> PARTY_PKEY = createUniqueKey(Party.PARTY, "party_pkey", Party.PARTY.ID); public static final UniqueKey<PartyRecord> PARTY_PKEY = createUniqueKey(Party.PARTY, "party_pkey", Party.PARTY.ID);
public static final UniqueKey<PaymentRecord> PAYMENT_PKEY = createUniqueKey(Payment.PAYMENT, "payment_pkey", Payment.PAYMENT.ID); public static final UniqueKey<PaymentRecord> PAYMENT_PKEY = createUniqueKey(Payment.PAYMENT, "payment_pkey", Payment.PAYMENT.ID);
public static final UniqueKey<PaymentInstitutionRecord> PAYMENT_INSTITUTION_PKEY = createUniqueKey(PaymentInstitution.PAYMENT_INSTITUTION, "payment_institution_pkey", PaymentInstitution.PAYMENT_INSTITUTION.ID);
public static final UniqueKey<PaymentMethodRecord> PAYMENT_METHOD_PKEY = createUniqueKey(PaymentMethod.PAYMENT_METHOD, "payment_method_pkey", PaymentMethod.PAYMENT_METHOD.ID);
public static final UniqueKey<PayoutRecord> PAYOUT_PKEY = createUniqueKey(Payout.PAYOUT, "payout_pkey", Payout.PAYOUT.ID); public static final UniqueKey<PayoutRecord> PAYOUT_PKEY = createUniqueKey(Payout.PAYOUT, "payout_pkey", Payout.PAYOUT.ID);
public static final UniqueKey<PayoutMethodRecord> PAYOUT_METHOD_PKEY = createUniqueKey(PayoutMethod.PAYOUT_METHOD, "payout_method_pkey", PayoutMethod.PAYOUT_METHOD.ID);
public static final UniqueKey<PayoutSummaryRecord> PAYOUT_SUMMARY_PKEY = createUniqueKey(PayoutSummary.PAYOUT_SUMMARY, "payout_summary_pkey", PayoutSummary.PAYOUT_SUMMARY.ID); public static final UniqueKey<PayoutSummaryRecord> PAYOUT_SUMMARY_PKEY = createUniqueKey(PayoutSummary.PAYOUT_SUMMARY, "payout_summary_pkey", PayoutSummary.PAYOUT_SUMMARY.ID);
public static final UniqueKey<PayoutToolRecord> PAYOUT_TOOL_PKEY = createUniqueKey(PayoutTool.PAYOUT_TOOL, "payout_tool_pkey", PayoutTool.PAYOUT_TOOL.ID); public static final UniqueKey<PayoutToolRecord> PAYOUT_TOOL_PKEY = createUniqueKey(PayoutTool.PAYOUT_TOOL, "payout_tool_pkey", PayoutTool.PAYOUT_TOOL.ID);
public static final UniqueKey<ProviderRecord> PROVIDER_PKEY = createUniqueKey(Provider.PROVIDER, "provider_pkey", Provider.PROVIDER.ID);
public static final UniqueKey<ProxyRecord> PROXY_PKEY = createUniqueKey(Proxy.PROXY, "proxy_pkey", Proxy.PROXY.ID);
public static final UniqueKey<RefundRecord> REFUND_PKEY = createUniqueKey(Refund.REFUND, "refund_pkey", Refund.REFUND.ID); public static final UniqueKey<RefundRecord> REFUND_PKEY = createUniqueKey(Refund.REFUND, "refund_pkey", Refund.REFUND.ID);
public static final UniqueKey<ShopRecord> SHOP_PKEY = createUniqueKey(Shop.SHOP, "shop_pkey", Shop.SHOP.ID); public static final UniqueKey<ShopRecord> SHOP_PKEY = createUniqueKey(Shop.SHOP, "shop_pkey", Shop.SHOP.ID);
public static final UniqueKey<TermSetHierarchyRecord> TERM_SET_HIERARCHY_PKEY = createUniqueKey(TermSetHierarchy.TERM_SET_HIERARCHY, "term_set_hierarchy_pkey", TermSetHierarchy.TERM_SET_HIERARCHY.ID);
public static final UniqueKey<TerminalRecord> TERMINAL_PKEY = createUniqueKey(Terminal.TERMINAL, "terminal_pkey", Terminal.TERMINAL.ID);
} }
private static class ForeignKeys0 extends AbstractKeys { private static class ForeignKeys0 extends AbstractKeys {

View File

@ -5,20 +5,30 @@ package com.rbkmoney.newway.domain;
import com.rbkmoney.newway.domain.tables.Adjustment; import com.rbkmoney.newway.domain.tables.Adjustment;
import com.rbkmoney.newway.domain.tables.Calendar;
import com.rbkmoney.newway.domain.tables.CashFlow; import com.rbkmoney.newway.domain.tables.CashFlow;
import com.rbkmoney.newway.domain.tables.Category; import com.rbkmoney.newway.domain.tables.Category;
import com.rbkmoney.newway.domain.tables.Contract; import com.rbkmoney.newway.domain.tables.Contract;
import com.rbkmoney.newway.domain.tables.ContractAdjustment; import com.rbkmoney.newway.domain.tables.ContractAdjustment;
import com.rbkmoney.newway.domain.tables.Contractor; import com.rbkmoney.newway.domain.tables.Contractor;
import com.rbkmoney.newway.domain.tables.Currency;
import com.rbkmoney.newway.domain.tables.Inspector;
import com.rbkmoney.newway.domain.tables.Invoice; import com.rbkmoney.newway.domain.tables.Invoice;
import com.rbkmoney.newway.domain.tables.InvoiceCart; import com.rbkmoney.newway.domain.tables.InvoiceCart;
import com.rbkmoney.newway.domain.tables.Party; import com.rbkmoney.newway.domain.tables.Party;
import com.rbkmoney.newway.domain.tables.Payment; import com.rbkmoney.newway.domain.tables.Payment;
import com.rbkmoney.newway.domain.tables.PaymentInstitution;
import com.rbkmoney.newway.domain.tables.PaymentMethod;
import com.rbkmoney.newway.domain.tables.Payout; import com.rbkmoney.newway.domain.tables.Payout;
import com.rbkmoney.newway.domain.tables.PayoutMethod;
import com.rbkmoney.newway.domain.tables.PayoutSummary; import com.rbkmoney.newway.domain.tables.PayoutSummary;
import com.rbkmoney.newway.domain.tables.PayoutTool; import com.rbkmoney.newway.domain.tables.PayoutTool;
import com.rbkmoney.newway.domain.tables.Provider;
import com.rbkmoney.newway.domain.tables.Proxy;
import com.rbkmoney.newway.domain.tables.Refund; import com.rbkmoney.newway.domain.tables.Refund;
import com.rbkmoney.newway.domain.tables.Shop; import com.rbkmoney.newway.domain.tables.Shop;
import com.rbkmoney.newway.domain.tables.TermSetHierarchy;
import com.rbkmoney.newway.domain.tables.Terminal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
@ -45,7 +55,7 @@ import org.jooq.impl.SchemaImpl;
@SuppressWarnings({ "all", "unchecked", "rawtypes" }) @SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Nw extends SchemaImpl { public class Nw extends SchemaImpl {
private static final long serialVersionUID = -471624831; private static final long serialVersionUID = 1650142434;
/** /**
* The reference instance of <code>nw</code> * The reference instance of <code>nw</code>
@ -57,6 +67,11 @@ public class Nw extends SchemaImpl {
*/ */
public final Adjustment ADJUSTMENT = com.rbkmoney.newway.domain.tables.Adjustment.ADJUSTMENT; public final Adjustment ADJUSTMENT = com.rbkmoney.newway.domain.tables.Adjustment.ADJUSTMENT;
/**
* The table <code>nw.calendar</code>.
*/
public final Calendar CALENDAR = com.rbkmoney.newway.domain.tables.Calendar.CALENDAR;
/** /**
* The table <code>nw.cash_flow</code>. * The table <code>nw.cash_flow</code>.
*/ */
@ -82,6 +97,16 @@ public class Nw extends SchemaImpl {
*/ */
public final Contractor CONTRACTOR = com.rbkmoney.newway.domain.tables.Contractor.CONTRACTOR; public final Contractor CONTRACTOR = com.rbkmoney.newway.domain.tables.Contractor.CONTRACTOR;
/**
* The table <code>nw.currency</code>.
*/
public final Currency CURRENCY = com.rbkmoney.newway.domain.tables.Currency.CURRENCY;
/**
* The table <code>nw.inspector</code>.
*/
public final Inspector INSPECTOR = com.rbkmoney.newway.domain.tables.Inspector.INSPECTOR;
/** /**
* The table <code>nw.invoice</code>. * The table <code>nw.invoice</code>.
*/ */
@ -102,11 +127,26 @@ public class Nw extends SchemaImpl {
*/ */
public final Payment PAYMENT = com.rbkmoney.newway.domain.tables.Payment.PAYMENT; public final Payment PAYMENT = com.rbkmoney.newway.domain.tables.Payment.PAYMENT;
/**
* The table <code>nw.payment_institution</code>.
*/
public final PaymentInstitution PAYMENT_INSTITUTION = com.rbkmoney.newway.domain.tables.PaymentInstitution.PAYMENT_INSTITUTION;
/**
* The table <code>nw.payment_method</code>.
*/
public final PaymentMethod PAYMENT_METHOD = com.rbkmoney.newway.domain.tables.PaymentMethod.PAYMENT_METHOD;
/** /**
* The table <code>nw.payout</code>. * The table <code>nw.payout</code>.
*/ */
public final Payout PAYOUT = com.rbkmoney.newway.domain.tables.Payout.PAYOUT; public final Payout PAYOUT = com.rbkmoney.newway.domain.tables.Payout.PAYOUT;
/**
* The table <code>nw.payout_method</code>.
*/
public final PayoutMethod PAYOUT_METHOD = com.rbkmoney.newway.domain.tables.PayoutMethod.PAYOUT_METHOD;
/** /**
* The table <code>nw.payout_summary</code>. * The table <code>nw.payout_summary</code>.
*/ */
@ -117,6 +157,16 @@ public class Nw extends SchemaImpl {
*/ */
public final PayoutTool PAYOUT_TOOL = com.rbkmoney.newway.domain.tables.PayoutTool.PAYOUT_TOOL; public final PayoutTool PAYOUT_TOOL = com.rbkmoney.newway.domain.tables.PayoutTool.PAYOUT_TOOL;
/**
* The table <code>nw.provider</code>.
*/
public final Provider PROVIDER = com.rbkmoney.newway.domain.tables.Provider.PROVIDER;
/**
* The table <code>nw.proxy</code>.
*/
public final Proxy PROXY = com.rbkmoney.newway.domain.tables.Proxy.PROXY;
/** /**
* The table <code>nw.refund</code>. * The table <code>nw.refund</code>.
*/ */
@ -127,6 +177,16 @@ public class Nw extends SchemaImpl {
*/ */
public final Shop SHOP = com.rbkmoney.newway.domain.tables.Shop.SHOP; public final Shop SHOP = com.rbkmoney.newway.domain.tables.Shop.SHOP;
/**
* The table <code>nw.term_set_hierarchy</code>.
*/
public final TermSetHierarchy TERM_SET_HIERARCHY = com.rbkmoney.newway.domain.tables.TermSetHierarchy.TERM_SET_HIERARCHY;
/**
* The table <code>nw.terminal</code>.
*/
public final Terminal TERMINAL = com.rbkmoney.newway.domain.tables.Terminal.TERMINAL;
/** /**
* No further instances allowed * No further instances allowed
*/ */
@ -153,20 +213,30 @@ public class Nw extends SchemaImpl {
private final List<Sequence<?>> getSequences0() { private final List<Sequence<?>> getSequences0() {
return Arrays.<Sequence<?>>asList( return Arrays.<Sequence<?>>asList(
Sequences.ADJUSTMENT_ID_SEQ, Sequences.ADJUSTMENT_ID_SEQ,
Sequences.CALENDAR_ID_SEQ,
Sequences.CASH_FLOW_ID_SEQ, Sequences.CASH_FLOW_ID_SEQ,
Sequences.CATEGORY_ID_SEQ, Sequences.CATEGORY_ID_SEQ,
Sequences.CONTRACT_ADJUSTMENT_ID_SEQ, Sequences.CONTRACT_ADJUSTMENT_ID_SEQ,
Sequences.CONTRACT_ID_SEQ, Sequences.CONTRACT_ID_SEQ,
Sequences.CONTRACTOR_ID_SEQ, Sequences.CONTRACTOR_ID_SEQ,
Sequences.CURRENCY_ID_SEQ,
Sequences.INSPECTOR_ID_SEQ,
Sequences.INVOICE_CART_ID_SEQ, Sequences.INVOICE_CART_ID_SEQ,
Sequences.INVOICE_ID_SEQ, Sequences.INVOICE_ID_SEQ,
Sequences.PARTY_ID_SEQ, Sequences.PARTY_ID_SEQ,
Sequences.PAYMENT_ID_SEQ, Sequences.PAYMENT_ID_SEQ,
Sequences.PAYMENT_INSTITUTION_ID_SEQ,
Sequences.PAYMENT_METHOD_ID_SEQ,
Sequences.PAYOUT_ID_SEQ, Sequences.PAYOUT_ID_SEQ,
Sequences.PAYOUT_METHOD_ID_SEQ,
Sequences.PAYOUT_SUMMARY_ID_SEQ, Sequences.PAYOUT_SUMMARY_ID_SEQ,
Sequences.PAYOUT_TOOL_ID_SEQ, Sequences.PAYOUT_TOOL_ID_SEQ,
Sequences.PROVIDER_ID_SEQ,
Sequences.PROXY_ID_SEQ,
Sequences.REFUND_ID_SEQ, Sequences.REFUND_ID_SEQ,
Sequences.SHOP_ID_SEQ); Sequences.SHOP_ID_SEQ,
Sequences.TERM_SET_HIERARCHY_ID_SEQ,
Sequences.TERMINAL_ID_SEQ);
} }
@Override @Override
@ -179,19 +249,29 @@ public class Nw extends SchemaImpl {
private final List<Table<?>> getTables0() { private final List<Table<?>> getTables0() {
return Arrays.<Table<?>>asList( return Arrays.<Table<?>>asList(
Adjustment.ADJUSTMENT, Adjustment.ADJUSTMENT,
Calendar.CALENDAR,
CashFlow.CASH_FLOW, CashFlow.CASH_FLOW,
Category.CATEGORY, Category.CATEGORY,
Contract.CONTRACT, Contract.CONTRACT,
ContractAdjustment.CONTRACT_ADJUSTMENT, ContractAdjustment.CONTRACT_ADJUSTMENT,
Contractor.CONTRACTOR, Contractor.CONTRACTOR,
Currency.CURRENCY,
Inspector.INSPECTOR,
Invoice.INVOICE, Invoice.INVOICE,
InvoiceCart.INVOICE_CART, InvoiceCart.INVOICE_CART,
Party.PARTY, Party.PARTY,
Payment.PAYMENT, Payment.PAYMENT,
PaymentInstitution.PAYMENT_INSTITUTION,
PaymentMethod.PAYMENT_METHOD,
Payout.PAYOUT, Payout.PAYOUT,
PayoutMethod.PAYOUT_METHOD,
PayoutSummary.PAYOUT_SUMMARY, PayoutSummary.PAYOUT_SUMMARY,
PayoutTool.PAYOUT_TOOL, PayoutTool.PAYOUT_TOOL,
Provider.PROVIDER,
Proxy.PROXY,
Refund.REFUND, Refund.REFUND,
Shop.SHOP); Shop.SHOP,
TermSetHierarchy.TERM_SET_HIERARCHY,
Terminal.TERMINAL);
} }
} }

View File

@ -28,6 +28,11 @@ public class Sequences {
*/ */
public static final Sequence<Long> ADJUSTMENT_ID_SEQ = new SequenceImpl<Long>("adjustment_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); public static final Sequence<Long> ADJUSTMENT_ID_SEQ = new SequenceImpl<Long>("adjustment_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
/**
* The sequence <code>nw.calendar_id_seq</code>
*/
public static final Sequence<Long> CALENDAR_ID_SEQ = new SequenceImpl<Long>("calendar_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
/** /**
* The sequence <code>nw.cash_flow_id_seq</code> * The sequence <code>nw.cash_flow_id_seq</code>
*/ */
@ -53,6 +58,16 @@ public class Sequences {
*/ */
public static final Sequence<Long> CONTRACTOR_ID_SEQ = new SequenceImpl<Long>("contractor_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); public static final Sequence<Long> CONTRACTOR_ID_SEQ = new SequenceImpl<Long>("contractor_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
/**
* The sequence <code>nw.currency_id_seq</code>
*/
public static final Sequence<Long> CURRENCY_ID_SEQ = new SequenceImpl<Long>("currency_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
/**
* The sequence <code>nw.inspector_id_seq</code>
*/
public static final Sequence<Long> INSPECTOR_ID_SEQ = new SequenceImpl<Long>("inspector_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
/** /**
* The sequence <code>nw.invoice_cart_id_seq</code> * The sequence <code>nw.invoice_cart_id_seq</code>
*/ */
@ -73,11 +88,26 @@ public class Sequences {
*/ */
public static final Sequence<Long> PAYMENT_ID_SEQ = new SequenceImpl<Long>("payment_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); public static final Sequence<Long> PAYMENT_ID_SEQ = new SequenceImpl<Long>("payment_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
/**
* The sequence <code>nw.payment_institution_id_seq</code>
*/
public static final Sequence<Long> PAYMENT_INSTITUTION_ID_SEQ = new SequenceImpl<Long>("payment_institution_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
/**
* The sequence <code>nw.payment_method_id_seq</code>
*/
public static final Sequence<Long> PAYMENT_METHOD_ID_SEQ = new SequenceImpl<Long>("payment_method_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
/** /**
* The sequence <code>nw.payout_id_seq</code> * The sequence <code>nw.payout_id_seq</code>
*/ */
public static final Sequence<Long> PAYOUT_ID_SEQ = new SequenceImpl<Long>("payout_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); public static final Sequence<Long> PAYOUT_ID_SEQ = new SequenceImpl<Long>("payout_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
/**
* The sequence <code>nw.payout_method_id_seq</code>
*/
public static final Sequence<Long> PAYOUT_METHOD_ID_SEQ = new SequenceImpl<Long>("payout_method_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
/** /**
* The sequence <code>nw.payout_summary_id_seq</code> * The sequence <code>nw.payout_summary_id_seq</code>
*/ */
@ -88,6 +118,16 @@ public class Sequences {
*/ */
public static final Sequence<Long> PAYOUT_TOOL_ID_SEQ = new SequenceImpl<Long>("payout_tool_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); public static final Sequence<Long> PAYOUT_TOOL_ID_SEQ = new SequenceImpl<Long>("payout_tool_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
/**
* The sequence <code>nw.provider_id_seq</code>
*/
public static final Sequence<Long> PROVIDER_ID_SEQ = new SequenceImpl<Long>("provider_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
/**
* The sequence <code>nw.proxy_id_seq</code>
*/
public static final Sequence<Long> PROXY_ID_SEQ = new SequenceImpl<Long>("proxy_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
/** /**
* The sequence <code>nw.refund_id_seq</code> * The sequence <code>nw.refund_id_seq</code>
*/ */
@ -97,4 +137,14 @@ public class Sequences {
* The sequence <code>nw.shop_id_seq</code> * The sequence <code>nw.shop_id_seq</code>
*/ */
public static final Sequence<Long> SHOP_ID_SEQ = new SequenceImpl<Long>("shop_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); public static final Sequence<Long> SHOP_ID_SEQ = new SequenceImpl<Long>("shop_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
/**
* The sequence <code>nw.term_set_hierarchy_id_seq</code>
*/
public static final Sequence<Long> TERM_SET_HIERARCHY_ID_SEQ = new SequenceImpl<Long>("term_set_hierarchy_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
/**
* The sequence <code>nw.terminal_id_seq</code>
*/
public static final Sequence<Long> TERMINAL_ID_SEQ = new SequenceImpl<Long>("terminal_id_seq", Nw.NW, org.jooq.impl.SQLDataType.BIGINT.nullable(false));
} }

View File

@ -5,20 +5,30 @@ package com.rbkmoney.newway.domain;
import com.rbkmoney.newway.domain.tables.Adjustment; import com.rbkmoney.newway.domain.tables.Adjustment;
import com.rbkmoney.newway.domain.tables.Calendar;
import com.rbkmoney.newway.domain.tables.CashFlow; import com.rbkmoney.newway.domain.tables.CashFlow;
import com.rbkmoney.newway.domain.tables.Category; import com.rbkmoney.newway.domain.tables.Category;
import com.rbkmoney.newway.domain.tables.Contract; import com.rbkmoney.newway.domain.tables.Contract;
import com.rbkmoney.newway.domain.tables.ContractAdjustment; import com.rbkmoney.newway.domain.tables.ContractAdjustment;
import com.rbkmoney.newway.domain.tables.Contractor; import com.rbkmoney.newway.domain.tables.Contractor;
import com.rbkmoney.newway.domain.tables.Currency;
import com.rbkmoney.newway.domain.tables.Inspector;
import com.rbkmoney.newway.domain.tables.Invoice; import com.rbkmoney.newway.domain.tables.Invoice;
import com.rbkmoney.newway.domain.tables.InvoiceCart; import com.rbkmoney.newway.domain.tables.InvoiceCart;
import com.rbkmoney.newway.domain.tables.Party; import com.rbkmoney.newway.domain.tables.Party;
import com.rbkmoney.newway.domain.tables.Payment; import com.rbkmoney.newway.domain.tables.Payment;
import com.rbkmoney.newway.domain.tables.PaymentInstitution;
import com.rbkmoney.newway.domain.tables.PaymentMethod;
import com.rbkmoney.newway.domain.tables.Payout; import com.rbkmoney.newway.domain.tables.Payout;
import com.rbkmoney.newway.domain.tables.PayoutMethod;
import com.rbkmoney.newway.domain.tables.PayoutSummary; import com.rbkmoney.newway.domain.tables.PayoutSummary;
import com.rbkmoney.newway.domain.tables.PayoutTool; import com.rbkmoney.newway.domain.tables.PayoutTool;
import com.rbkmoney.newway.domain.tables.Provider;
import com.rbkmoney.newway.domain.tables.Proxy;
import com.rbkmoney.newway.domain.tables.Refund; import com.rbkmoney.newway.domain.tables.Refund;
import com.rbkmoney.newway.domain.tables.Shop; import com.rbkmoney.newway.domain.tables.Shop;
import com.rbkmoney.newway.domain.tables.TermSetHierarchy;
import com.rbkmoney.newway.domain.tables.Terminal;
import javax.annotation.Generated; import javax.annotation.Generated;
@ -41,6 +51,11 @@ public class Tables {
*/ */
public static final Adjustment ADJUSTMENT = com.rbkmoney.newway.domain.tables.Adjustment.ADJUSTMENT; public static final Adjustment ADJUSTMENT = com.rbkmoney.newway.domain.tables.Adjustment.ADJUSTMENT;
/**
* The table <code>nw.calendar</code>.
*/
public static final Calendar CALENDAR = com.rbkmoney.newway.domain.tables.Calendar.CALENDAR;
/** /**
* The table <code>nw.cash_flow</code>. * The table <code>nw.cash_flow</code>.
*/ */
@ -66,6 +81,16 @@ public class Tables {
*/ */
public static final Contractor CONTRACTOR = com.rbkmoney.newway.domain.tables.Contractor.CONTRACTOR; public static final Contractor CONTRACTOR = com.rbkmoney.newway.domain.tables.Contractor.CONTRACTOR;
/**
* The table <code>nw.currency</code>.
*/
public static final Currency CURRENCY = com.rbkmoney.newway.domain.tables.Currency.CURRENCY;
/**
* The table <code>nw.inspector</code>.
*/
public static final Inspector INSPECTOR = com.rbkmoney.newway.domain.tables.Inspector.INSPECTOR;
/** /**
* The table <code>nw.invoice</code>. * The table <code>nw.invoice</code>.
*/ */
@ -86,11 +111,26 @@ public class Tables {
*/ */
public static final Payment PAYMENT = com.rbkmoney.newway.domain.tables.Payment.PAYMENT; public static final Payment PAYMENT = com.rbkmoney.newway.domain.tables.Payment.PAYMENT;
/**
* The table <code>nw.payment_institution</code>.
*/
public static final PaymentInstitution PAYMENT_INSTITUTION = com.rbkmoney.newway.domain.tables.PaymentInstitution.PAYMENT_INSTITUTION;
/**
* The table <code>nw.payment_method</code>.
*/
public static final PaymentMethod PAYMENT_METHOD = com.rbkmoney.newway.domain.tables.PaymentMethod.PAYMENT_METHOD;
/** /**
* The table <code>nw.payout</code>. * The table <code>nw.payout</code>.
*/ */
public static final Payout PAYOUT = com.rbkmoney.newway.domain.tables.Payout.PAYOUT; public static final Payout PAYOUT = com.rbkmoney.newway.domain.tables.Payout.PAYOUT;
/**
* The table <code>nw.payout_method</code>.
*/
public static final PayoutMethod PAYOUT_METHOD = com.rbkmoney.newway.domain.tables.PayoutMethod.PAYOUT_METHOD;
/** /**
* The table <code>nw.payout_summary</code>. * The table <code>nw.payout_summary</code>.
*/ */
@ -101,6 +141,16 @@ public class Tables {
*/ */
public static final PayoutTool PAYOUT_TOOL = com.rbkmoney.newway.domain.tables.PayoutTool.PAYOUT_TOOL; public static final PayoutTool PAYOUT_TOOL = com.rbkmoney.newway.domain.tables.PayoutTool.PAYOUT_TOOL;
/**
* The table <code>nw.provider</code>.
*/
public static final Provider PROVIDER = com.rbkmoney.newway.domain.tables.Provider.PROVIDER;
/**
* The table <code>nw.proxy</code>.
*/
public static final Proxy PROXY = com.rbkmoney.newway.domain.tables.Proxy.PROXY;
/** /**
* The table <code>nw.refund</code>. * The table <code>nw.refund</code>.
*/ */
@ -110,4 +160,14 @@ public class Tables {
* The table <code>nw.shop</code>. * The table <code>nw.shop</code>.
*/ */
public static final Shop SHOP = com.rbkmoney.newway.domain.tables.Shop.SHOP; public static final Shop SHOP = com.rbkmoney.newway.domain.tables.Shop.SHOP;
/**
* The table <code>nw.term_set_hierarchy</code>.
*/
public static final TermSetHierarchy TERM_SET_HIERARCHY = com.rbkmoney.newway.domain.tables.TermSetHierarchy.TERM_SET_HIERARCHY;
/**
* The table <code>nw.terminal</code>.
*/
public static final Terminal TERMINAL = com.rbkmoney.newway.domain.tables.Terminal.TERMINAL;
} }

View File

@ -0,0 +1,74 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.enums;
import com.rbkmoney.newway.domain.Nw;
import javax.annotation.Generated;
import org.jooq.Catalog;
import org.jooq.EnumType;
import org.jooq.Schema;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public enum PaymentMethodType implements EnumType {
bank_card("bank_card"),
payment_terminal("payment_terminal"),
digital_wallet("digital_wallet"),
tokenized_bank_card("tokenized_bank_card");
private final String literal;
private PaymentMethodType(String literal) {
this.literal = literal;
}
/**
* {@inheritDoc}
*/
@Override
public Catalog getCatalog() {
return getSchema() == null ? null : getSchema().getCatalog();
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Nw.NW;
}
/**
* {@inheritDoc}
*/
@Override
public String getName() {
return "payment_method_type";
}
/**
* {@inheritDoc}
*/
@Override
public String getLiteral() {
return literal;
}
}

View File

@ -0,0 +1,173 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables;
import com.rbkmoney.newway.domain.Keys;
import com.rbkmoney.newway.domain.Nw;
import com.rbkmoney.newway.domain.tables.records.CalendarRecord;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Calendar extends TableImpl<CalendarRecord> {
private static final long serialVersionUID = 1394869531;
/**
* The reference instance of <code>nw.calendar</code>
*/
public static final Calendar CALENDAR = new Calendar();
/**
* The class holding records for this type
*/
@Override
public Class<CalendarRecord> getRecordType() {
return CalendarRecord.class;
}
/**
* The column <code>nw.calendar.id</code>.
*/
public final TableField<CalendarRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.calendar_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
/**
* The column <code>nw.calendar.version_id</code>.
*/
public final TableField<CalendarRecord, Long> VERSION_ID = createField("version_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>nw.calendar.calendar_ref_id</code>.
*/
public final TableField<CalendarRecord, Integer> CALENDAR_REF_ID = createField("calendar_ref_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>nw.calendar.name</code>.
*/
public final TableField<CalendarRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.calendar.description</code>.
*/
public final TableField<CalendarRecord, String> DESCRIPTION = createField("description", org.jooq.impl.SQLDataType.VARCHAR, this, "");
/**
* The column <code>nw.calendar.timezone</code>.
*/
public final TableField<CalendarRecord, String> TIMEZONE = createField("timezone", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.calendar.holidays_json</code>.
*/
public final TableField<CalendarRecord, String> HOLIDAYS_JSON = createField("holidays_json", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.calendar.first_day_of_week</code>.
*/
public final TableField<CalendarRecord, Integer> FIRST_DAY_OF_WEEK = createField("first_day_of_week", org.jooq.impl.SQLDataType.INTEGER, this, "");
/**
* The column <code>nw.calendar.wtime</code>.
*/
public final TableField<CalendarRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("timezone('utc'::text, now())", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
/**
* The column <code>nw.calendar.current</code>.
*/
public final TableField<CalendarRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
/**
* Create a <code>nw.calendar</code> table reference
*/
public Calendar() {
this("calendar", null);
}
/**
* Create an aliased <code>nw.calendar</code> table reference
*/
public Calendar(String alias) {
this(alias, CALENDAR);
}
private Calendar(String alias, Table<CalendarRecord> aliased) {
this(alias, aliased, null);
}
private Calendar(String alias, Table<CalendarRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Nw.NW;
}
/**
* {@inheritDoc}
*/
@Override
public Identity<CalendarRecord, Long> getIdentity() {
return Keys.IDENTITY_CALENDAR;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<CalendarRecord> getPrimaryKey() {
return Keys.CALENDAR_PKEY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<CalendarRecord>> getKeys() {
return Arrays.<UniqueKey<CalendarRecord>>asList(Keys.CALENDAR_PKEY);
}
/**
* {@inheritDoc}
*/
@Override
public Calendar as(String alias) {
return new Calendar(alias, this);
}
/**
* Rename this table
*/
@Override
public Calendar rename(String name) {
return new Calendar(name, null);
}
}

View File

@ -36,7 +36,7 @@ import org.jooq.impl.TableImpl;
@SuppressWarnings({ "all", "unchecked", "rawtypes" }) @SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Category extends TableImpl<CategoryRecord> { public class Category extends TableImpl<CategoryRecord> {
private static final long serialVersionUID = 1729394875; private static final long serialVersionUID = -615286841;
/** /**
* The reference instance of <code>nw.category</code> * The reference instance of <code>nw.category</code>
@ -62,9 +62,9 @@ public class Category extends TableImpl<CategoryRecord> {
public final TableField<CategoryRecord, Long> VERSION_ID = createField("version_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); public final TableField<CategoryRecord, Long> VERSION_ID = createField("version_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
/** /**
* The column <code>nw.category.category_id</code>. * The column <code>nw.category.category_ref_id</code>.
*/ */
public final TableField<CategoryRecord, Integer> CATEGORY_ID = createField("category_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); public final TableField<CategoryRecord, Integer> CATEGORY_REF_ID = createField("category_ref_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/** /**
* The column <code>nw.category.name</code>. * The column <code>nw.category.name</code>.

View File

@ -0,0 +1,168 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables;
import com.rbkmoney.newway.domain.Keys;
import com.rbkmoney.newway.domain.Nw;
import com.rbkmoney.newway.domain.tables.records.CurrencyRecord;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Currency extends TableImpl<CurrencyRecord> {
private static final long serialVersionUID = 271333018;
/**
* The reference instance of <code>nw.currency</code>
*/
public static final Currency CURRENCY = new Currency();
/**
* The class holding records for this type
*/
@Override
public Class<CurrencyRecord> getRecordType() {
return CurrencyRecord.class;
}
/**
* The column <code>nw.currency.id</code>.
*/
public final TableField<CurrencyRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.currency_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
/**
* The column <code>nw.currency.version_id</code>.
*/
public final TableField<CurrencyRecord, Long> VERSION_ID = createField("version_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>nw.currency.currency_ref_id</code>.
*/
public final TableField<CurrencyRecord, String> CURRENCY_REF_ID = createField("currency_ref_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.currency.name</code>.
*/
public final TableField<CurrencyRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.currency.symbolic_code</code>.
*/
public final TableField<CurrencyRecord, String> SYMBOLIC_CODE = createField("symbolic_code", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.currency.numeric_code</code>.
*/
public final TableField<CurrencyRecord, Short> NUMERIC_CODE = createField("numeric_code", org.jooq.impl.SQLDataType.SMALLINT.nullable(false), this, "");
/**
* The column <code>nw.currency.exponent</code>.
*/
public final TableField<CurrencyRecord, Short> EXPONENT = createField("exponent", org.jooq.impl.SQLDataType.SMALLINT.nullable(false), this, "");
/**
* The column <code>nw.currency.wtime</code>.
*/
public final TableField<CurrencyRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("timezone('utc'::text, now())", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
/**
* The column <code>nw.currency.current</code>.
*/
public final TableField<CurrencyRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
/**
* Create a <code>nw.currency</code> table reference
*/
public Currency() {
this("currency", null);
}
/**
* Create an aliased <code>nw.currency</code> table reference
*/
public Currency(String alias) {
this(alias, CURRENCY);
}
private Currency(String alias, Table<CurrencyRecord> aliased) {
this(alias, aliased, null);
}
private Currency(String alias, Table<CurrencyRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Nw.NW;
}
/**
* {@inheritDoc}
*/
@Override
public Identity<CurrencyRecord, Long> getIdentity() {
return Keys.IDENTITY_CURRENCY;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<CurrencyRecord> getPrimaryKey() {
return Keys.CURRENCY_PKEY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<CurrencyRecord>> getKeys() {
return Arrays.<UniqueKey<CurrencyRecord>>asList(Keys.CURRENCY_PKEY);
}
/**
* {@inheritDoc}
*/
@Override
public Currency as(String alias) {
return new Currency(alias, this);
}
/**
* Rename this table
*/
@Override
public Currency rename(String name) {
return new Currency(name, null);
}
}

View File

@ -0,0 +1,173 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables;
import com.rbkmoney.newway.domain.Keys;
import com.rbkmoney.newway.domain.Nw;
import com.rbkmoney.newway.domain.tables.records.InspectorRecord;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Inspector extends TableImpl<InspectorRecord> {
private static final long serialVersionUID = 107561511;
/**
* The reference instance of <code>nw.inspector</code>
*/
public static final Inspector INSPECTOR = new Inspector();
/**
* The class holding records for this type
*/
@Override
public Class<InspectorRecord> getRecordType() {
return InspectorRecord.class;
}
/**
* The column <code>nw.inspector.id</code>.
*/
public final TableField<InspectorRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.inspector_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
/**
* The column <code>nw.inspector.version_id</code>.
*/
public final TableField<InspectorRecord, Long> VERSION_ID = createField("version_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>nw.inspector.inspector_ref_id</code>.
*/
public final TableField<InspectorRecord, Integer> INSPECTOR_REF_ID = createField("inspector_ref_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>nw.inspector.name</code>.
*/
public final TableField<InspectorRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.inspector.description</code>.
*/
public final TableField<InspectorRecord, String> DESCRIPTION = createField("description", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.inspector.proxy_ref_id</code>.
*/
public final TableField<InspectorRecord, Integer> PROXY_REF_ID = createField("proxy_ref_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>nw.inspector.proxy_additional_json</code>.
*/
public final TableField<InspectorRecord, String> PROXY_ADDITIONAL_JSON = createField("proxy_additional_json", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.inspector.fallback_risk_score</code>.
*/
public final TableField<InspectorRecord, String> FALLBACK_RISK_SCORE = createField("fallback_risk_score", org.jooq.impl.SQLDataType.VARCHAR, this, "");
/**
* The column <code>nw.inspector.wtime</code>.
*/
public final TableField<InspectorRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("timezone('utc'::text, now())", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
/**
* The column <code>nw.inspector.current</code>.
*/
public final TableField<InspectorRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
/**
* Create a <code>nw.inspector</code> table reference
*/
public Inspector() {
this("inspector", null);
}
/**
* Create an aliased <code>nw.inspector</code> table reference
*/
public Inspector(String alias) {
this(alias, INSPECTOR);
}
private Inspector(String alias, Table<InspectorRecord> aliased) {
this(alias, aliased, null);
}
private Inspector(String alias, Table<InspectorRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Nw.NW;
}
/**
* {@inheritDoc}
*/
@Override
public Identity<InspectorRecord, Long> getIdentity() {
return Keys.IDENTITY_INSPECTOR;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<InspectorRecord> getPrimaryKey() {
return Keys.INSPECTOR_PKEY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<InspectorRecord>> getKeys() {
return Arrays.<UniqueKey<InspectorRecord>>asList(Keys.INSPECTOR_PKEY);
}
/**
* {@inheritDoc}
*/
@Override
public Inspector as(String alias) {
return new Inspector(alias, this);
}
/**
* Rename this table
*/
@Override
public Inspector rename(String name) {
return new Inspector(name, null);
}
}

View File

@ -0,0 +1,198 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables;
import com.rbkmoney.newway.domain.Keys;
import com.rbkmoney.newway.domain.Nw;
import com.rbkmoney.newway.domain.tables.records.PaymentInstitutionRecord;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PaymentInstitution extends TableImpl<PaymentInstitutionRecord> {
private static final long serialVersionUID = 749356052;
/**
* The reference instance of <code>nw.payment_institution</code>
*/
public static final PaymentInstitution PAYMENT_INSTITUTION = new PaymentInstitution();
/**
* The class holding records for this type
*/
@Override
public Class<PaymentInstitutionRecord> getRecordType() {
return PaymentInstitutionRecord.class;
}
/**
* The column <code>nw.payment_institution.id</code>.
*/
public final TableField<PaymentInstitutionRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.payment_institution_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
/**
* The column <code>nw.payment_institution.version_id</code>.
*/
public final TableField<PaymentInstitutionRecord, Long> VERSION_ID = createField("version_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>nw.payment_institution.payment_institution_ref_id</code>.
*/
public final TableField<PaymentInstitutionRecord, Integer> PAYMENT_INSTITUTION_REF_ID = createField("payment_institution_ref_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>nw.payment_institution.name</code>.
*/
public final TableField<PaymentInstitutionRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.payment_institution.description</code>.
*/
public final TableField<PaymentInstitutionRecord, String> DESCRIPTION = createField("description", org.jooq.impl.SQLDataType.VARCHAR, this, "");
/**
* The column <code>nw.payment_institution.calendar_ref_id</code>.
*/
public final TableField<PaymentInstitutionRecord, Integer> CALENDAR_REF_ID = createField("calendar_ref_id", org.jooq.impl.SQLDataType.INTEGER, this, "");
/**
* The column <code>nw.payment_institution.system_account_set_json</code>.
*/
public final TableField<PaymentInstitutionRecord, String> SYSTEM_ACCOUNT_SET_JSON = createField("system_account_set_json", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.payment_institution.default_contract_template_json</code>.
*/
public final TableField<PaymentInstitutionRecord, String> DEFAULT_CONTRACT_TEMPLATE_JSON = createField("default_contract_template_json", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.payment_institution.default_wallet_contract_template_json</code>.
*/
public final TableField<PaymentInstitutionRecord, String> DEFAULT_WALLET_CONTRACT_TEMPLATE_JSON = createField("default_wallet_contract_template_json", org.jooq.impl.SQLDataType.VARCHAR, this, "");
/**
* The column <code>nw.payment_institution.providers_json</code>.
*/
public final TableField<PaymentInstitutionRecord, String> PROVIDERS_JSON = createField("providers_json", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.payment_institution.inspector_json</code>.
*/
public final TableField<PaymentInstitutionRecord, String> INSPECTOR_JSON = createField("inspector_json", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.payment_institution.realm</code>.
*/
public final TableField<PaymentInstitutionRecord, String> REALM = createField("realm", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.payment_institution.residences_json</code>.
*/
public final TableField<PaymentInstitutionRecord, String> RESIDENCES_JSON = createField("residences_json", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.payment_institution.wtime</code>.
*/
public final TableField<PaymentInstitutionRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("timezone('utc'::text, now())", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
/**
* The column <code>nw.payment_institution.current</code>.
*/
public final TableField<PaymentInstitutionRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
/**
* Create a <code>nw.payment_institution</code> table reference
*/
public PaymentInstitution() {
this("payment_institution", null);
}
/**
* Create an aliased <code>nw.payment_institution</code> table reference
*/
public PaymentInstitution(String alias) {
this(alias, PAYMENT_INSTITUTION);
}
private PaymentInstitution(String alias, Table<PaymentInstitutionRecord> aliased) {
this(alias, aliased, null);
}
private PaymentInstitution(String alias, Table<PaymentInstitutionRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Nw.NW;
}
/**
* {@inheritDoc}
*/
@Override
public Identity<PaymentInstitutionRecord, Long> getIdentity() {
return Keys.IDENTITY_PAYMENT_INSTITUTION;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<PaymentInstitutionRecord> getPrimaryKey() {
return Keys.PAYMENT_INSTITUTION_PKEY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<PaymentInstitutionRecord>> getKeys() {
return Arrays.<UniqueKey<PaymentInstitutionRecord>>asList(Keys.PAYMENT_INSTITUTION_PKEY);
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitution as(String alias) {
return new PaymentInstitution(alias, this);
}
/**
* Rename this table
*/
@Override
public PaymentInstitution rename(String name) {
return new PaymentInstitution(name, null);
}
}

View File

@ -0,0 +1,164 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables;
import com.rbkmoney.newway.domain.Keys;
import com.rbkmoney.newway.domain.Nw;
import com.rbkmoney.newway.domain.enums.PaymentMethodType;
import com.rbkmoney.newway.domain.tables.records.PaymentMethodRecord;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PaymentMethod extends TableImpl<PaymentMethodRecord> {
private static final long serialVersionUID = 1987681298;
/**
* The reference instance of <code>nw.payment_method</code>
*/
public static final PaymentMethod PAYMENT_METHOD = new PaymentMethod();
/**
* The class holding records for this type
*/
@Override
public Class<PaymentMethodRecord> getRecordType() {
return PaymentMethodRecord.class;
}
/**
* The column <code>nw.payment_method.id</code>.
*/
public final TableField<PaymentMethodRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.payment_method_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
/**
* The column <code>nw.payment_method.version_id</code>.
*/
public final TableField<PaymentMethodRecord, Long> VERSION_ID = createField("version_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>nw.payment_method.payment_method_ref_id</code>.
*/
public final TableField<PaymentMethodRecord, String> PAYMENT_METHOD_REF_ID = createField("payment_method_ref_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.payment_method.name</code>.
*/
public final TableField<PaymentMethodRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.payment_method.description</code>.
*/
public final TableField<PaymentMethodRecord, String> DESCRIPTION = createField("description", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.payment_method.type</code>.
*/
public final TableField<PaymentMethodRecord, PaymentMethodType> TYPE = createField("type", org.jooq.util.postgres.PostgresDataType.VARCHAR.asEnumDataType(com.rbkmoney.newway.domain.enums.PaymentMethodType.class), this, "");
/**
* The column <code>nw.payment_method.wtime</code>.
*/
public final TableField<PaymentMethodRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("timezone('utc'::text, now())", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
/**
* The column <code>nw.payment_method.current</code>.
*/
public final TableField<PaymentMethodRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
/**
* Create a <code>nw.payment_method</code> table reference
*/
public PaymentMethod() {
this("payment_method", null);
}
/**
* Create an aliased <code>nw.payment_method</code> table reference
*/
public PaymentMethod(String alias) {
this(alias, PAYMENT_METHOD);
}
private PaymentMethod(String alias, Table<PaymentMethodRecord> aliased) {
this(alias, aliased, null);
}
private PaymentMethod(String alias, Table<PaymentMethodRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Nw.NW;
}
/**
* {@inheritDoc}
*/
@Override
public Identity<PaymentMethodRecord, Long> getIdentity() {
return Keys.IDENTITY_PAYMENT_METHOD;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<PaymentMethodRecord> getPrimaryKey() {
return Keys.PAYMENT_METHOD_PKEY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<PaymentMethodRecord>> getKeys() {
return Arrays.<UniqueKey<PaymentMethodRecord>>asList(Keys.PAYMENT_METHOD_PKEY);
}
/**
* {@inheritDoc}
*/
@Override
public PaymentMethod as(String alias) {
return new PaymentMethod(alias, this);
}
/**
* Rename this table
*/
@Override
public PaymentMethod rename(String name) {
return new PaymentMethod(name, null);
}
}

View File

@ -0,0 +1,158 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables;
import com.rbkmoney.newway.domain.Keys;
import com.rbkmoney.newway.domain.Nw;
import com.rbkmoney.newway.domain.tables.records.PayoutMethodRecord;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PayoutMethod extends TableImpl<PayoutMethodRecord> {
private static final long serialVersionUID = 1827051660;
/**
* The reference instance of <code>nw.payout_method</code>
*/
public static final PayoutMethod PAYOUT_METHOD = new PayoutMethod();
/**
* The class holding records for this type
*/
@Override
public Class<PayoutMethodRecord> getRecordType() {
return PayoutMethodRecord.class;
}
/**
* The column <code>nw.payout_method.id</code>.
*/
public final TableField<PayoutMethodRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.payout_method_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
/**
* The column <code>nw.payout_method.version_id</code>.
*/
public final TableField<PayoutMethodRecord, Long> VERSION_ID = createField("version_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>nw.payout_method.payout_method_ref_id</code>.
*/
public final TableField<PayoutMethodRecord, String> PAYOUT_METHOD_REF_ID = createField("payout_method_ref_id", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.payout_method.name</code>.
*/
public final TableField<PayoutMethodRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.payout_method.description</code>.
*/
public final TableField<PayoutMethodRecord, String> DESCRIPTION = createField("description", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.payout_method.wtime</code>.
*/
public final TableField<PayoutMethodRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("timezone('utc'::text, now())", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
/**
* The column <code>nw.payout_method.current</code>.
*/
public final TableField<PayoutMethodRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
/**
* Create a <code>nw.payout_method</code> table reference
*/
public PayoutMethod() {
this("payout_method", null);
}
/**
* Create an aliased <code>nw.payout_method</code> table reference
*/
public PayoutMethod(String alias) {
this(alias, PAYOUT_METHOD);
}
private PayoutMethod(String alias, Table<PayoutMethodRecord> aliased) {
this(alias, aliased, null);
}
private PayoutMethod(String alias, Table<PayoutMethodRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Nw.NW;
}
/**
* {@inheritDoc}
*/
@Override
public Identity<PayoutMethodRecord, Long> getIdentity() {
return Keys.IDENTITY_PAYOUT_METHOD;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<PayoutMethodRecord> getPrimaryKey() {
return Keys.PAYOUT_METHOD_PKEY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<PayoutMethodRecord>> getKeys() {
return Arrays.<UniqueKey<PayoutMethodRecord>>asList(Keys.PAYOUT_METHOD_PKEY);
}
/**
* {@inheritDoc}
*/
@Override
public PayoutMethod as(String alias) {
return new PayoutMethod(alias, this);
}
/**
* Rename this table
*/
@Override
public PayoutMethod rename(String name) {
return new PayoutMethod(name, null);
}
}

View File

@ -0,0 +1,193 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables;
import com.rbkmoney.newway.domain.Keys;
import com.rbkmoney.newway.domain.Nw;
import com.rbkmoney.newway.domain.tables.records.ProviderRecord;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Provider extends TableImpl<ProviderRecord> {
private static final long serialVersionUID = 1423500565;
/**
* The reference instance of <code>nw.provider</code>
*/
public static final Provider PROVIDER = new Provider();
/**
* The class holding records for this type
*/
@Override
public Class<ProviderRecord> getRecordType() {
return ProviderRecord.class;
}
/**
* The column <code>nw.provider.id</code>.
*/
public final TableField<ProviderRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.provider_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
/**
* The column <code>nw.provider.version_id</code>.
*/
public final TableField<ProviderRecord, Long> VERSION_ID = createField("version_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>nw.provider.provider_ref_id</code>.
*/
public final TableField<ProviderRecord, Integer> PROVIDER_REF_ID = createField("provider_ref_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>nw.provider.name</code>.
*/
public final TableField<ProviderRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.provider.description</code>.
*/
public final TableField<ProviderRecord, String> DESCRIPTION = createField("description", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.provider.proxy_ref_id</code>.
*/
public final TableField<ProviderRecord, Integer> PROXY_REF_ID = createField("proxy_ref_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>nw.provider.proxy_additional_json</code>.
*/
public final TableField<ProviderRecord, String> PROXY_ADDITIONAL_JSON = createField("proxy_additional_json", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.provider.terminal_json</code>.
*/
public final TableField<ProviderRecord, String> TERMINAL_JSON = createField("terminal_json", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.provider.abs_account</code>.
*/
public final TableField<ProviderRecord, String> ABS_ACCOUNT = createField("abs_account", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.provider.payment_terms_json</code>.
*/
public final TableField<ProviderRecord, String> PAYMENT_TERMS_JSON = createField("payment_terms_json", org.jooq.impl.SQLDataType.VARCHAR, this, "");
/**
* The column <code>nw.provider.recurrent_paytool_terms_json</code>.
*/
public final TableField<ProviderRecord, String> RECURRENT_PAYTOOL_TERMS_JSON = createField("recurrent_paytool_terms_json", org.jooq.impl.SQLDataType.VARCHAR, this, "");
/**
* The column <code>nw.provider.accounts_json</code>.
*/
public final TableField<ProviderRecord, String> ACCOUNTS_JSON = createField("accounts_json", org.jooq.impl.SQLDataType.VARCHAR, this, "");
/**
* The column <code>nw.provider.wtime</code>.
*/
public final TableField<ProviderRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("timezone('utc'::text, now())", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
/**
* The column <code>nw.provider.current</code>.
*/
public final TableField<ProviderRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
/**
* Create a <code>nw.provider</code> table reference
*/
public Provider() {
this("provider", null);
}
/**
* Create an aliased <code>nw.provider</code> table reference
*/
public Provider(String alias) {
this(alias, PROVIDER);
}
private Provider(String alias, Table<ProviderRecord> aliased) {
this(alias, aliased, null);
}
private Provider(String alias, Table<ProviderRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Nw.NW;
}
/**
* {@inheritDoc}
*/
@Override
public Identity<ProviderRecord, Long> getIdentity() {
return Keys.IDENTITY_PROVIDER;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<ProviderRecord> getPrimaryKey() {
return Keys.PROVIDER_PKEY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<ProviderRecord>> getKeys() {
return Arrays.<UniqueKey<ProviderRecord>>asList(Keys.PROVIDER_PKEY);
}
/**
* {@inheritDoc}
*/
@Override
public Provider as(String alias) {
return new Provider(alias, this);
}
/**
* Rename this table
*/
@Override
public Provider rename(String name) {
return new Provider(name, null);
}
}

View File

@ -0,0 +1,168 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables;
import com.rbkmoney.newway.domain.Keys;
import com.rbkmoney.newway.domain.Nw;
import com.rbkmoney.newway.domain.tables.records.ProxyRecord;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Proxy extends TableImpl<ProxyRecord> {
private static final long serialVersionUID = -2718684;
/**
* The reference instance of <code>nw.proxy</code>
*/
public static final Proxy PROXY = new Proxy();
/**
* The class holding records for this type
*/
@Override
public Class<ProxyRecord> getRecordType() {
return ProxyRecord.class;
}
/**
* The column <code>nw.proxy.id</code>.
*/
public final TableField<ProxyRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.proxy_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
/**
* The column <code>nw.proxy.version_id</code>.
*/
public final TableField<ProxyRecord, Long> VERSION_ID = createField("version_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>nw.proxy.proxy_ref_id</code>.
*/
public final TableField<ProxyRecord, Integer> PROXY_REF_ID = createField("proxy_ref_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>nw.proxy.name</code>.
*/
public final TableField<ProxyRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.proxy.description</code>.
*/
public final TableField<ProxyRecord, String> DESCRIPTION = createField("description", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.proxy.url</code>.
*/
public final TableField<ProxyRecord, String> URL = createField("url", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.proxy.options_json</code>.
*/
public final TableField<ProxyRecord, String> OPTIONS_JSON = createField("options_json", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.proxy.wtime</code>.
*/
public final TableField<ProxyRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("timezone('utc'::text, now())", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
/**
* The column <code>nw.proxy.current</code>.
*/
public final TableField<ProxyRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
/**
* Create a <code>nw.proxy</code> table reference
*/
public Proxy() {
this("proxy", null);
}
/**
* Create an aliased <code>nw.proxy</code> table reference
*/
public Proxy(String alias) {
this(alias, PROXY);
}
private Proxy(String alias, Table<ProxyRecord> aliased) {
this(alias, aliased, null);
}
private Proxy(String alias, Table<ProxyRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Nw.NW;
}
/**
* {@inheritDoc}
*/
@Override
public Identity<ProxyRecord, Long> getIdentity() {
return Keys.IDENTITY_PROXY;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<ProxyRecord> getPrimaryKey() {
return Keys.PROXY_PKEY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<ProxyRecord>> getKeys() {
return Arrays.<UniqueKey<ProxyRecord>>asList(Keys.PROXY_PKEY);
}
/**
* {@inheritDoc}
*/
@Override
public Proxy as(String alias) {
return new Proxy(alias, this);
}
/**
* Rename this table
*/
@Override
public Proxy rename(String name) {
return new Proxy(name, null);
}
}

View File

@ -0,0 +1,168 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables;
import com.rbkmoney.newway.domain.Keys;
import com.rbkmoney.newway.domain.Nw;
import com.rbkmoney.newway.domain.tables.records.TermSetHierarchyRecord;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TermSetHierarchy extends TableImpl<TermSetHierarchyRecord> {
private static final long serialVersionUID = -1332091628;
/**
* The reference instance of <code>nw.term_set_hierarchy</code>
*/
public static final TermSetHierarchy TERM_SET_HIERARCHY = new TermSetHierarchy();
/**
* The class holding records for this type
*/
@Override
public Class<TermSetHierarchyRecord> getRecordType() {
return TermSetHierarchyRecord.class;
}
/**
* The column <code>nw.term_set_hierarchy.id</code>.
*/
public final TableField<TermSetHierarchyRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.term_set_hierarchy_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
/**
* The column <code>nw.term_set_hierarchy.version_id</code>.
*/
public final TableField<TermSetHierarchyRecord, Long> VERSION_ID = createField("version_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>nw.term_set_hierarchy.term_set_hierarchy_ref_id</code>.
*/
public final TableField<TermSetHierarchyRecord, Integer> TERM_SET_HIERARCHY_REF_ID = createField("term_set_hierarchy_ref_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>nw.term_set_hierarchy.name</code>.
*/
public final TableField<TermSetHierarchyRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR, this, "");
/**
* The column <code>nw.term_set_hierarchy.description</code>.
*/
public final TableField<TermSetHierarchyRecord, String> DESCRIPTION = createField("description", org.jooq.impl.SQLDataType.VARCHAR, this, "");
/**
* The column <code>nw.term_set_hierarchy.parent_terms_ref_id</code>.
*/
public final TableField<TermSetHierarchyRecord, Integer> PARENT_TERMS_REF_ID = createField("parent_terms_ref_id", org.jooq.impl.SQLDataType.INTEGER, this, "");
/**
* The column <code>nw.term_set_hierarchy.term_sets_json</code>.
*/
public final TableField<TermSetHierarchyRecord, String> TERM_SETS_JSON = createField("term_sets_json", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.term_set_hierarchy.wtime</code>.
*/
public final TableField<TermSetHierarchyRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("timezone('utc'::text, now())", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
/**
* The column <code>nw.term_set_hierarchy.current</code>.
*/
public final TableField<TermSetHierarchyRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
/**
* Create a <code>nw.term_set_hierarchy</code> table reference
*/
public TermSetHierarchy() {
this("term_set_hierarchy", null);
}
/**
* Create an aliased <code>nw.term_set_hierarchy</code> table reference
*/
public TermSetHierarchy(String alias) {
this(alias, TERM_SET_HIERARCHY);
}
private TermSetHierarchy(String alias, Table<TermSetHierarchyRecord> aliased) {
this(alias, aliased, null);
}
private TermSetHierarchy(String alias, Table<TermSetHierarchyRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Nw.NW;
}
/**
* {@inheritDoc}
*/
@Override
public Identity<TermSetHierarchyRecord, Long> getIdentity() {
return Keys.IDENTITY_TERM_SET_HIERARCHY;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<TermSetHierarchyRecord> getPrimaryKey() {
return Keys.TERM_SET_HIERARCHY_PKEY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<TermSetHierarchyRecord>> getKeys() {
return Arrays.<UniqueKey<TermSetHierarchyRecord>>asList(Keys.TERM_SET_HIERARCHY_PKEY);
}
/**
* {@inheritDoc}
*/
@Override
public TermSetHierarchy as(String alias) {
return new TermSetHierarchy(alias, this);
}
/**
* Rename this table
*/
@Override
public TermSetHierarchy rename(String name) {
return new TermSetHierarchy(name, null);
}
}

View File

@ -0,0 +1,173 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables;
import com.rbkmoney.newway.domain.Keys;
import com.rbkmoney.newway.domain.Nw;
import com.rbkmoney.newway.domain.tables.records.TerminalRecord;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Terminal extends TableImpl<TerminalRecord> {
private static final long serialVersionUID = 727001877;
/**
* The reference instance of <code>nw.terminal</code>
*/
public static final Terminal TERMINAL = new Terminal();
/**
* The class holding records for this type
*/
@Override
public Class<TerminalRecord> getRecordType() {
return TerminalRecord.class;
}
/**
* The column <code>nw.terminal.id</code>.
*/
public final TableField<TerminalRecord, Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('nw.terminal_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, "");
/**
* The column <code>nw.terminal.version_id</code>.
*/
public final TableField<TerminalRecord, Long> VERSION_ID = createField("version_id", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>nw.terminal.terminal_ref_id</code>.
*/
public final TableField<TerminalRecord, Integer> TERMINAL_REF_ID = createField("terminal_ref_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>nw.terminal.name</code>.
*/
public final TableField<TerminalRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.terminal.description</code>.
*/
public final TableField<TerminalRecord, String> DESCRIPTION = createField("description", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.terminal.options_json</code>.
*/
public final TableField<TerminalRecord, String> OPTIONS_JSON = createField("options_json", org.jooq.impl.SQLDataType.VARCHAR, this, "");
/**
* The column <code>nw.terminal.risk_coverage</code>.
*/
public final TableField<TerminalRecord, String> RISK_COVERAGE = createField("risk_coverage", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
/**
* The column <code>nw.terminal.terms_json</code>.
*/
public final TableField<TerminalRecord, String> TERMS_JSON = createField("terms_json", org.jooq.impl.SQLDataType.VARCHAR, this, "");
/**
* The column <code>nw.terminal.wtime</code>.
*/
public final TableField<TerminalRecord, LocalDateTime> WTIME = createField("wtime", org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("timezone('utc'::text, now())", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "");
/**
* The column <code>nw.terminal.current</code>.
*/
public final TableField<TerminalRecord, Boolean> CURRENT = createField("current", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, "");
/**
* Create a <code>nw.terminal</code> table reference
*/
public Terminal() {
this("terminal", null);
}
/**
* Create an aliased <code>nw.terminal</code> table reference
*/
public Terminal(String alias) {
this(alias, TERMINAL);
}
private Terminal(String alias, Table<TerminalRecord> aliased) {
this(alias, aliased, null);
}
private Terminal(String alias, Table<TerminalRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Nw.NW;
}
/**
* {@inheritDoc}
*/
@Override
public Identity<TerminalRecord, Long> getIdentity() {
return Keys.IDENTITY_TERMINAL;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<TerminalRecord> getPrimaryKey() {
return Keys.TERMINAL_PKEY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<TerminalRecord>> getKeys() {
return Arrays.<UniqueKey<TerminalRecord>>asList(Keys.TERMINAL_PKEY);
}
/**
* {@inheritDoc}
*/
@Override
public Terminal as(String alias) {
return new Terminal(alias, this);
}
/**
* Rename this table
*/
@Override
public Terminal rename(String name) {
return new Terminal(name, null);
}
}

View File

@ -0,0 +1,265 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.pojos;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.annotation.Generated;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Calendar implements Serializable {
private static final long serialVersionUID = 430035616;
private Long id;
private Long versionId;
private Integer calendarRefId;
private String name;
private String description;
private String timezone;
private String holidaysJson;
private Integer firstDayOfWeek;
private LocalDateTime wtime;
private Boolean current;
public Calendar() {}
public Calendar(Calendar value) {
this.id = value.id;
this.versionId = value.versionId;
this.calendarRefId = value.calendarRefId;
this.name = value.name;
this.description = value.description;
this.timezone = value.timezone;
this.holidaysJson = value.holidaysJson;
this.firstDayOfWeek = value.firstDayOfWeek;
this.wtime = value.wtime;
this.current = value.current;
}
public Calendar(
Long id,
Long versionId,
Integer calendarRefId,
String name,
String description,
String timezone,
String holidaysJson,
Integer firstDayOfWeek,
LocalDateTime wtime,
Boolean current
) {
this.id = id;
this.versionId = versionId;
this.calendarRefId = calendarRefId;
this.name = name;
this.description = description;
this.timezone = timezone;
this.holidaysJson = holidaysJson;
this.firstDayOfWeek = firstDayOfWeek;
this.wtime = wtime;
this.current = current;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public Long getVersionId() {
return this.versionId;
}
public void setVersionId(Long versionId) {
this.versionId = versionId;
}
public Integer getCalendarRefId() {
return this.calendarRefId;
}
public void setCalendarRefId(Integer calendarRefId) {
this.calendarRefId = calendarRefId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public String getTimezone() {
return this.timezone;
}
public void setTimezone(String timezone) {
this.timezone = timezone;
}
public String getHolidaysJson() {
return this.holidaysJson;
}
public void setHolidaysJson(String holidaysJson) {
this.holidaysJson = holidaysJson;
}
public Integer getFirstDayOfWeek() {
return this.firstDayOfWeek;
}
public void setFirstDayOfWeek(Integer firstDayOfWeek) {
this.firstDayOfWeek = firstDayOfWeek;
}
public LocalDateTime getWtime() {
return this.wtime;
}
public void setWtime(LocalDateTime wtime) {
this.wtime = wtime;
}
public Boolean getCurrent() {
return this.current;
}
public void setCurrent(Boolean current) {
this.current = current;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final Calendar other = (Calendar) obj;
if (id == null) {
if (other.id != null)
return false;
}
else if (!id.equals(other.id))
return false;
if (versionId == null) {
if (other.versionId != null)
return false;
}
else if (!versionId.equals(other.versionId))
return false;
if (calendarRefId == null) {
if (other.calendarRefId != null)
return false;
}
else if (!calendarRefId.equals(other.calendarRefId))
return false;
if (name == null) {
if (other.name != null)
return false;
}
else if (!name.equals(other.name))
return false;
if (description == null) {
if (other.description != null)
return false;
}
else if (!description.equals(other.description))
return false;
if (timezone == null) {
if (other.timezone != null)
return false;
}
else if (!timezone.equals(other.timezone))
return false;
if (holidaysJson == null) {
if (other.holidaysJson != null)
return false;
}
else if (!holidaysJson.equals(other.holidaysJson))
return false;
if (firstDayOfWeek == null) {
if (other.firstDayOfWeek != null)
return false;
}
else if (!firstDayOfWeek.equals(other.firstDayOfWeek))
return false;
if (wtime == null) {
if (other.wtime != null)
return false;
}
else if (!wtime.equals(other.wtime))
return false;
if (current == null) {
if (other.current != null)
return false;
}
else if (!current.equals(other.current))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
result = prime * result + ((this.versionId == null) ? 0 : this.versionId.hashCode());
result = prime * result + ((this.calendarRefId == null) ? 0 : this.calendarRefId.hashCode());
result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
result = prime * result + ((this.description == null) ? 0 : this.description.hashCode());
result = prime * result + ((this.timezone == null) ? 0 : this.timezone.hashCode());
result = prime * result + ((this.holidaysJson == null) ? 0 : this.holidaysJson.hashCode());
result = prime * result + ((this.firstDayOfWeek == null) ? 0 : this.firstDayOfWeek.hashCode());
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("Calendar (");
sb.append(id);
sb.append(", ").append(versionId);
sb.append(", ").append(calendarRefId);
sb.append(", ").append(name);
sb.append(", ").append(description);
sb.append(", ").append(timezone);
sb.append(", ").append(holidaysJson);
sb.append(", ").append(firstDayOfWeek);
sb.append(", ").append(wtime);
sb.append(", ").append(current);
sb.append(")");
return sb.toString();
}
}

View File

@ -23,11 +23,11 @@ import javax.annotation.Generated;
@SuppressWarnings({ "all", "unchecked", "rawtypes" }) @SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Category implements Serializable { public class Category implements Serializable {
private static final long serialVersionUID = -1860168428; private static final long serialVersionUID = 552512453;
private Long id; private Long id;
private Long versionId; private Long versionId;
private Integer categoryId; private Integer categoryRefId;
private String name; private String name;
private String description; private String description;
private String type; private String type;
@ -39,7 +39,7 @@ public class Category implements Serializable {
public Category(Category value) { public Category(Category value) {
this.id = value.id; this.id = value.id;
this.versionId = value.versionId; this.versionId = value.versionId;
this.categoryId = value.categoryId; this.categoryRefId = value.categoryRefId;
this.name = value.name; this.name = value.name;
this.description = value.description; this.description = value.description;
this.type = value.type; this.type = value.type;
@ -50,7 +50,7 @@ public class Category implements Serializable {
public Category( public Category(
Long id, Long id,
Long versionId, Long versionId,
Integer categoryId, Integer categoryRefId,
String name, String name,
String description, String description,
String type, String type,
@ -59,7 +59,7 @@ public class Category implements Serializable {
) { ) {
this.id = id; this.id = id;
this.versionId = versionId; this.versionId = versionId;
this.categoryId = categoryId; this.categoryRefId = categoryRefId;
this.name = name; this.name = name;
this.description = description; this.description = description;
this.type = type; this.type = type;
@ -83,12 +83,12 @@ public class Category implements Serializable {
this.versionId = versionId; this.versionId = versionId;
} }
public Integer getCategoryId() { public Integer getCategoryRefId() {
return this.categoryId; return this.categoryRefId;
} }
public void setCategoryId(Integer categoryId) { public void setCategoryRefId(Integer categoryRefId) {
this.categoryId = categoryId; this.categoryRefId = categoryRefId;
} }
public String getName() { public String getName() {
@ -152,11 +152,11 @@ public class Category implements Serializable {
} }
else if (!versionId.equals(other.versionId)) else if (!versionId.equals(other.versionId))
return false; return false;
if (categoryId == null) { if (categoryRefId == null) {
if (other.categoryId != null) if (other.categoryRefId != null)
return false; return false;
} }
else if (!categoryId.equals(other.categoryId)) else if (!categoryRefId.equals(other.categoryRefId))
return false; return false;
if (name == null) { if (name == null) {
if (other.name != null) if (other.name != null)
@ -197,7 +197,7 @@ public class Category implements Serializable {
int result = 1; int result = 1;
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
result = prime * result + ((this.versionId == null) ? 0 : this.versionId.hashCode()); result = prime * result + ((this.versionId == null) ? 0 : this.versionId.hashCode());
result = prime * result + ((this.categoryId == null) ? 0 : this.categoryId.hashCode()); result = prime * result + ((this.categoryRefId == null) ? 0 : this.categoryRefId.hashCode());
result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
result = prime * result + ((this.description == null) ? 0 : this.description.hashCode()); result = prime * result + ((this.description == null) ? 0 : this.description.hashCode());
result = prime * result + ((this.type == null) ? 0 : this.type.hashCode()); result = prime * result + ((this.type == null) ? 0 : this.type.hashCode());
@ -212,7 +212,7 @@ public class Category implements Serializable {
sb.append(id); sb.append(id);
sb.append(", ").append(versionId); sb.append(", ").append(versionId);
sb.append(", ").append(categoryId); sb.append(", ").append(categoryRefId);
sb.append(", ").append(name); sb.append(", ").append(name);
sb.append(", ").append(description); sb.append(", ").append(description);
sb.append(", ").append(type); sb.append(", ").append(type);

View File

@ -0,0 +1,245 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.pojos;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.annotation.Generated;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Currency implements Serializable {
private static final long serialVersionUID = -2082108362;
private Long id;
private Long versionId;
private String currencyRefId;
private String name;
private String symbolicCode;
private Short numericCode;
private Short exponent;
private LocalDateTime wtime;
private Boolean current;
public Currency() {}
public Currency(Currency value) {
this.id = value.id;
this.versionId = value.versionId;
this.currencyRefId = value.currencyRefId;
this.name = value.name;
this.symbolicCode = value.symbolicCode;
this.numericCode = value.numericCode;
this.exponent = value.exponent;
this.wtime = value.wtime;
this.current = value.current;
}
public Currency(
Long id,
Long versionId,
String currencyRefId,
String name,
String symbolicCode,
Short numericCode,
Short exponent,
LocalDateTime wtime,
Boolean current
) {
this.id = id;
this.versionId = versionId;
this.currencyRefId = currencyRefId;
this.name = name;
this.symbolicCode = symbolicCode;
this.numericCode = numericCode;
this.exponent = exponent;
this.wtime = wtime;
this.current = current;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public Long getVersionId() {
return this.versionId;
}
public void setVersionId(Long versionId) {
this.versionId = versionId;
}
public String getCurrencyRefId() {
return this.currencyRefId;
}
public void setCurrencyRefId(String currencyRefId) {
this.currencyRefId = currencyRefId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getSymbolicCode() {
return this.symbolicCode;
}
public void setSymbolicCode(String symbolicCode) {
this.symbolicCode = symbolicCode;
}
public Short getNumericCode() {
return this.numericCode;
}
public void setNumericCode(Short numericCode) {
this.numericCode = numericCode;
}
public Short getExponent() {
return this.exponent;
}
public void setExponent(Short exponent) {
this.exponent = exponent;
}
public LocalDateTime getWtime() {
return this.wtime;
}
public void setWtime(LocalDateTime wtime) {
this.wtime = wtime;
}
public Boolean getCurrent() {
return this.current;
}
public void setCurrent(Boolean current) {
this.current = current;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final Currency other = (Currency) obj;
if (id == null) {
if (other.id != null)
return false;
}
else if (!id.equals(other.id))
return false;
if (versionId == null) {
if (other.versionId != null)
return false;
}
else if (!versionId.equals(other.versionId))
return false;
if (currencyRefId == null) {
if (other.currencyRefId != null)
return false;
}
else if (!currencyRefId.equals(other.currencyRefId))
return false;
if (name == null) {
if (other.name != null)
return false;
}
else if (!name.equals(other.name))
return false;
if (symbolicCode == null) {
if (other.symbolicCode != null)
return false;
}
else if (!symbolicCode.equals(other.symbolicCode))
return false;
if (numericCode == null) {
if (other.numericCode != null)
return false;
}
else if (!numericCode.equals(other.numericCode))
return false;
if (exponent == null) {
if (other.exponent != null)
return false;
}
else if (!exponent.equals(other.exponent))
return false;
if (wtime == null) {
if (other.wtime != null)
return false;
}
else if (!wtime.equals(other.wtime))
return false;
if (current == null) {
if (other.current != null)
return false;
}
else if (!current.equals(other.current))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
result = prime * result + ((this.versionId == null) ? 0 : this.versionId.hashCode());
result = prime * result + ((this.currencyRefId == null) ? 0 : this.currencyRefId.hashCode());
result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
result = prime * result + ((this.symbolicCode == null) ? 0 : this.symbolicCode.hashCode());
result = prime * result + ((this.numericCode == null) ? 0 : this.numericCode.hashCode());
result = prime * result + ((this.exponent == null) ? 0 : this.exponent.hashCode());
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("Currency (");
sb.append(id);
sb.append(", ").append(versionId);
sb.append(", ").append(currencyRefId);
sb.append(", ").append(name);
sb.append(", ").append(symbolicCode);
sb.append(", ").append(numericCode);
sb.append(", ").append(exponent);
sb.append(", ").append(wtime);
sb.append(", ").append(current);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,265 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.pojos;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.annotation.Generated;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Inspector implements Serializable {
private static final long serialVersionUID = -888308570;
private Long id;
private Long versionId;
private Integer inspectorRefId;
private String name;
private String description;
private Integer proxyRefId;
private String proxyAdditionalJson;
private String fallbackRiskScore;
private LocalDateTime wtime;
private Boolean current;
public Inspector() {}
public Inspector(Inspector value) {
this.id = value.id;
this.versionId = value.versionId;
this.inspectorRefId = value.inspectorRefId;
this.name = value.name;
this.description = value.description;
this.proxyRefId = value.proxyRefId;
this.proxyAdditionalJson = value.proxyAdditionalJson;
this.fallbackRiskScore = value.fallbackRiskScore;
this.wtime = value.wtime;
this.current = value.current;
}
public Inspector(
Long id,
Long versionId,
Integer inspectorRefId,
String name,
String description,
Integer proxyRefId,
String proxyAdditionalJson,
String fallbackRiskScore,
LocalDateTime wtime,
Boolean current
) {
this.id = id;
this.versionId = versionId;
this.inspectorRefId = inspectorRefId;
this.name = name;
this.description = description;
this.proxyRefId = proxyRefId;
this.proxyAdditionalJson = proxyAdditionalJson;
this.fallbackRiskScore = fallbackRiskScore;
this.wtime = wtime;
this.current = current;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public Long getVersionId() {
return this.versionId;
}
public void setVersionId(Long versionId) {
this.versionId = versionId;
}
public Integer getInspectorRefId() {
return this.inspectorRefId;
}
public void setInspectorRefId(Integer inspectorRefId) {
this.inspectorRefId = inspectorRefId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public Integer getProxyRefId() {
return this.proxyRefId;
}
public void setProxyRefId(Integer proxyRefId) {
this.proxyRefId = proxyRefId;
}
public String getProxyAdditionalJson() {
return this.proxyAdditionalJson;
}
public void setProxyAdditionalJson(String proxyAdditionalJson) {
this.proxyAdditionalJson = proxyAdditionalJson;
}
public String getFallbackRiskScore() {
return this.fallbackRiskScore;
}
public void setFallbackRiskScore(String fallbackRiskScore) {
this.fallbackRiskScore = fallbackRiskScore;
}
public LocalDateTime getWtime() {
return this.wtime;
}
public void setWtime(LocalDateTime wtime) {
this.wtime = wtime;
}
public Boolean getCurrent() {
return this.current;
}
public void setCurrent(Boolean current) {
this.current = current;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final Inspector other = (Inspector) obj;
if (id == null) {
if (other.id != null)
return false;
}
else if (!id.equals(other.id))
return false;
if (versionId == null) {
if (other.versionId != null)
return false;
}
else if (!versionId.equals(other.versionId))
return false;
if (inspectorRefId == null) {
if (other.inspectorRefId != null)
return false;
}
else if (!inspectorRefId.equals(other.inspectorRefId))
return false;
if (name == null) {
if (other.name != null)
return false;
}
else if (!name.equals(other.name))
return false;
if (description == null) {
if (other.description != null)
return false;
}
else if (!description.equals(other.description))
return false;
if (proxyRefId == null) {
if (other.proxyRefId != null)
return false;
}
else if (!proxyRefId.equals(other.proxyRefId))
return false;
if (proxyAdditionalJson == null) {
if (other.proxyAdditionalJson != null)
return false;
}
else if (!proxyAdditionalJson.equals(other.proxyAdditionalJson))
return false;
if (fallbackRiskScore == null) {
if (other.fallbackRiskScore != null)
return false;
}
else if (!fallbackRiskScore.equals(other.fallbackRiskScore))
return false;
if (wtime == null) {
if (other.wtime != null)
return false;
}
else if (!wtime.equals(other.wtime))
return false;
if (current == null) {
if (other.current != null)
return false;
}
else if (!current.equals(other.current))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
result = prime * result + ((this.versionId == null) ? 0 : this.versionId.hashCode());
result = prime * result + ((this.inspectorRefId == null) ? 0 : this.inspectorRefId.hashCode());
result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
result = prime * result + ((this.description == null) ? 0 : this.description.hashCode());
result = prime * result + ((this.proxyRefId == null) ? 0 : this.proxyRefId.hashCode());
result = prime * result + ((this.proxyAdditionalJson == null) ? 0 : this.proxyAdditionalJson.hashCode());
result = prime * result + ((this.fallbackRiskScore == null) ? 0 : this.fallbackRiskScore.hashCode());
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("Inspector (");
sb.append(id);
sb.append(", ").append(versionId);
sb.append(", ").append(inspectorRefId);
sb.append(", ").append(name);
sb.append(", ").append(description);
sb.append(", ").append(proxyRefId);
sb.append(", ").append(proxyAdditionalJson);
sb.append(", ").append(fallbackRiskScore);
sb.append(", ").append(wtime);
sb.append(", ").append(current);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,365 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.pojos;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.annotation.Generated;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PaymentInstitution implements Serializable {
private static final long serialVersionUID = -777039423;
private Long id;
private Long versionId;
private Integer paymentInstitutionRefId;
private String name;
private String description;
private Integer calendarRefId;
private String systemAccountSetJson;
private String defaultContractTemplateJson;
private String defaultWalletContractTemplateJson;
private String providersJson;
private String inspectorJson;
private String realm;
private String residencesJson;
private LocalDateTime wtime;
private Boolean current;
public PaymentInstitution() {}
public PaymentInstitution(PaymentInstitution value) {
this.id = value.id;
this.versionId = value.versionId;
this.paymentInstitutionRefId = value.paymentInstitutionRefId;
this.name = value.name;
this.description = value.description;
this.calendarRefId = value.calendarRefId;
this.systemAccountSetJson = value.systemAccountSetJson;
this.defaultContractTemplateJson = value.defaultContractTemplateJson;
this.defaultWalletContractTemplateJson = value.defaultWalletContractTemplateJson;
this.providersJson = value.providersJson;
this.inspectorJson = value.inspectorJson;
this.realm = value.realm;
this.residencesJson = value.residencesJson;
this.wtime = value.wtime;
this.current = value.current;
}
public PaymentInstitution(
Long id,
Long versionId,
Integer paymentInstitutionRefId,
String name,
String description,
Integer calendarRefId,
String systemAccountSetJson,
String defaultContractTemplateJson,
String defaultWalletContractTemplateJson,
String providersJson,
String inspectorJson,
String realm,
String residencesJson,
LocalDateTime wtime,
Boolean current
) {
this.id = id;
this.versionId = versionId;
this.paymentInstitutionRefId = paymentInstitutionRefId;
this.name = name;
this.description = description;
this.calendarRefId = calendarRefId;
this.systemAccountSetJson = systemAccountSetJson;
this.defaultContractTemplateJson = defaultContractTemplateJson;
this.defaultWalletContractTemplateJson = defaultWalletContractTemplateJson;
this.providersJson = providersJson;
this.inspectorJson = inspectorJson;
this.realm = realm;
this.residencesJson = residencesJson;
this.wtime = wtime;
this.current = current;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public Long getVersionId() {
return this.versionId;
}
public void setVersionId(Long versionId) {
this.versionId = versionId;
}
public Integer getPaymentInstitutionRefId() {
return this.paymentInstitutionRefId;
}
public void setPaymentInstitutionRefId(Integer paymentInstitutionRefId) {
this.paymentInstitutionRefId = paymentInstitutionRefId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public Integer getCalendarRefId() {
return this.calendarRefId;
}
public void setCalendarRefId(Integer calendarRefId) {
this.calendarRefId = calendarRefId;
}
public String getSystemAccountSetJson() {
return this.systemAccountSetJson;
}
public void setSystemAccountSetJson(String systemAccountSetJson) {
this.systemAccountSetJson = systemAccountSetJson;
}
public String getDefaultContractTemplateJson() {
return this.defaultContractTemplateJson;
}
public void setDefaultContractTemplateJson(String defaultContractTemplateJson) {
this.defaultContractTemplateJson = defaultContractTemplateJson;
}
public String getDefaultWalletContractTemplateJson() {
return this.defaultWalletContractTemplateJson;
}
public void setDefaultWalletContractTemplateJson(String defaultWalletContractTemplateJson) {
this.defaultWalletContractTemplateJson = defaultWalletContractTemplateJson;
}
public String getProvidersJson() {
return this.providersJson;
}
public void setProvidersJson(String providersJson) {
this.providersJson = providersJson;
}
public String getInspectorJson() {
return this.inspectorJson;
}
public void setInspectorJson(String inspectorJson) {
this.inspectorJson = inspectorJson;
}
public String getRealm() {
return this.realm;
}
public void setRealm(String realm) {
this.realm = realm;
}
public String getResidencesJson() {
return this.residencesJson;
}
public void setResidencesJson(String residencesJson) {
this.residencesJson = residencesJson;
}
public LocalDateTime getWtime() {
return this.wtime;
}
public void setWtime(LocalDateTime wtime) {
this.wtime = wtime;
}
public Boolean getCurrent() {
return this.current;
}
public void setCurrent(Boolean current) {
this.current = current;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final PaymentInstitution other = (PaymentInstitution) obj;
if (id == null) {
if (other.id != null)
return false;
}
else if (!id.equals(other.id))
return false;
if (versionId == null) {
if (other.versionId != null)
return false;
}
else if (!versionId.equals(other.versionId))
return false;
if (paymentInstitutionRefId == null) {
if (other.paymentInstitutionRefId != null)
return false;
}
else if (!paymentInstitutionRefId.equals(other.paymentInstitutionRefId))
return false;
if (name == null) {
if (other.name != null)
return false;
}
else if (!name.equals(other.name))
return false;
if (description == null) {
if (other.description != null)
return false;
}
else if (!description.equals(other.description))
return false;
if (calendarRefId == null) {
if (other.calendarRefId != null)
return false;
}
else if (!calendarRefId.equals(other.calendarRefId))
return false;
if (systemAccountSetJson == null) {
if (other.systemAccountSetJson != null)
return false;
}
else if (!systemAccountSetJson.equals(other.systemAccountSetJson))
return false;
if (defaultContractTemplateJson == null) {
if (other.defaultContractTemplateJson != null)
return false;
}
else if (!defaultContractTemplateJson.equals(other.defaultContractTemplateJson))
return false;
if (defaultWalletContractTemplateJson == null) {
if (other.defaultWalletContractTemplateJson != null)
return false;
}
else if (!defaultWalletContractTemplateJson.equals(other.defaultWalletContractTemplateJson))
return false;
if (providersJson == null) {
if (other.providersJson != null)
return false;
}
else if (!providersJson.equals(other.providersJson))
return false;
if (inspectorJson == null) {
if (other.inspectorJson != null)
return false;
}
else if (!inspectorJson.equals(other.inspectorJson))
return false;
if (realm == null) {
if (other.realm != null)
return false;
}
else if (!realm.equals(other.realm))
return false;
if (residencesJson == null) {
if (other.residencesJson != null)
return false;
}
else if (!residencesJson.equals(other.residencesJson))
return false;
if (wtime == null) {
if (other.wtime != null)
return false;
}
else if (!wtime.equals(other.wtime))
return false;
if (current == null) {
if (other.current != null)
return false;
}
else if (!current.equals(other.current))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
result = prime * result + ((this.versionId == null) ? 0 : this.versionId.hashCode());
result = prime * result + ((this.paymentInstitutionRefId == null) ? 0 : this.paymentInstitutionRefId.hashCode());
result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
result = prime * result + ((this.description == null) ? 0 : this.description.hashCode());
result = prime * result + ((this.calendarRefId == null) ? 0 : this.calendarRefId.hashCode());
result = prime * result + ((this.systemAccountSetJson == null) ? 0 : this.systemAccountSetJson.hashCode());
result = prime * result + ((this.defaultContractTemplateJson == null) ? 0 : this.defaultContractTemplateJson.hashCode());
result = prime * result + ((this.defaultWalletContractTemplateJson == null) ? 0 : this.defaultWalletContractTemplateJson.hashCode());
result = prime * result + ((this.providersJson == null) ? 0 : this.providersJson.hashCode());
result = prime * result + ((this.inspectorJson == null) ? 0 : this.inspectorJson.hashCode());
result = prime * result + ((this.realm == null) ? 0 : this.realm.hashCode());
result = prime * result + ((this.residencesJson == null) ? 0 : this.residencesJson.hashCode());
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("PaymentInstitution (");
sb.append(id);
sb.append(", ").append(versionId);
sb.append(", ").append(paymentInstitutionRefId);
sb.append(", ").append(name);
sb.append(", ").append(description);
sb.append(", ").append(calendarRefId);
sb.append(", ").append(systemAccountSetJson);
sb.append(", ").append(defaultContractTemplateJson);
sb.append(", ").append(defaultWalletContractTemplateJson);
sb.append(", ").append(providersJson);
sb.append(", ").append(inspectorJson);
sb.append(", ").append(realm);
sb.append(", ").append(residencesJson);
sb.append(", ").append(wtime);
sb.append(", ").append(current);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,227 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.pojos;
import com.rbkmoney.newway.domain.enums.PaymentMethodType;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.annotation.Generated;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PaymentMethod implements Serializable {
private static final long serialVersionUID = -312573086;
private Long id;
private Long versionId;
private String paymentMethodRefId;
private String name;
private String description;
private PaymentMethodType type;
private LocalDateTime wtime;
private Boolean current;
public PaymentMethod() {}
public PaymentMethod(PaymentMethod value) {
this.id = value.id;
this.versionId = value.versionId;
this.paymentMethodRefId = value.paymentMethodRefId;
this.name = value.name;
this.description = value.description;
this.type = value.type;
this.wtime = value.wtime;
this.current = value.current;
}
public PaymentMethod(
Long id,
Long versionId,
String paymentMethodRefId,
String name,
String description,
PaymentMethodType type,
LocalDateTime wtime,
Boolean current
) {
this.id = id;
this.versionId = versionId;
this.paymentMethodRefId = paymentMethodRefId;
this.name = name;
this.description = description;
this.type = type;
this.wtime = wtime;
this.current = current;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public Long getVersionId() {
return this.versionId;
}
public void setVersionId(Long versionId) {
this.versionId = versionId;
}
public String getPaymentMethodRefId() {
return this.paymentMethodRefId;
}
public void setPaymentMethodRefId(String paymentMethodRefId) {
this.paymentMethodRefId = paymentMethodRefId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public PaymentMethodType getType() {
return this.type;
}
public void setType(PaymentMethodType type) {
this.type = type;
}
public LocalDateTime getWtime() {
return this.wtime;
}
public void setWtime(LocalDateTime wtime) {
this.wtime = wtime;
}
public Boolean getCurrent() {
return this.current;
}
public void setCurrent(Boolean current) {
this.current = current;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final PaymentMethod other = (PaymentMethod) obj;
if (id == null) {
if (other.id != null)
return false;
}
else if (!id.equals(other.id))
return false;
if (versionId == null) {
if (other.versionId != null)
return false;
}
else if (!versionId.equals(other.versionId))
return false;
if (paymentMethodRefId == null) {
if (other.paymentMethodRefId != null)
return false;
}
else if (!paymentMethodRefId.equals(other.paymentMethodRefId))
return false;
if (name == null) {
if (other.name != null)
return false;
}
else if (!name.equals(other.name))
return false;
if (description == null) {
if (other.description != null)
return false;
}
else if (!description.equals(other.description))
return false;
if (type == null) {
if (other.type != null)
return false;
}
else if (!type.equals(other.type))
return false;
if (wtime == null) {
if (other.wtime != null)
return false;
}
else if (!wtime.equals(other.wtime))
return false;
if (current == null) {
if (other.current != null)
return false;
}
else if (!current.equals(other.current))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
result = prime * result + ((this.versionId == null) ? 0 : this.versionId.hashCode());
result = prime * result + ((this.paymentMethodRefId == null) ? 0 : this.paymentMethodRefId.hashCode());
result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
result = prime * result + ((this.description == null) ? 0 : this.description.hashCode());
result = prime * result + ((this.type == null) ? 0 : this.type.hashCode());
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("PaymentMethod (");
sb.append(id);
sb.append(", ").append(versionId);
sb.append(", ").append(paymentMethodRefId);
sb.append(", ").append(name);
sb.append(", ").append(description);
sb.append(", ").append(type);
sb.append(", ").append(wtime);
sb.append(", ").append(current);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,205 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.pojos;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.annotation.Generated;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PayoutMethod implements Serializable {
private static final long serialVersionUID = -1843167948;
private Long id;
private Long versionId;
private String payoutMethodRefId;
private String name;
private String description;
private LocalDateTime wtime;
private Boolean current;
public PayoutMethod() {}
public PayoutMethod(PayoutMethod value) {
this.id = value.id;
this.versionId = value.versionId;
this.payoutMethodRefId = value.payoutMethodRefId;
this.name = value.name;
this.description = value.description;
this.wtime = value.wtime;
this.current = value.current;
}
public PayoutMethod(
Long id,
Long versionId,
String payoutMethodRefId,
String name,
String description,
LocalDateTime wtime,
Boolean current
) {
this.id = id;
this.versionId = versionId;
this.payoutMethodRefId = payoutMethodRefId;
this.name = name;
this.description = description;
this.wtime = wtime;
this.current = current;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public Long getVersionId() {
return this.versionId;
}
public void setVersionId(Long versionId) {
this.versionId = versionId;
}
public String getPayoutMethodRefId() {
return this.payoutMethodRefId;
}
public void setPayoutMethodRefId(String payoutMethodRefId) {
this.payoutMethodRefId = payoutMethodRefId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public LocalDateTime getWtime() {
return this.wtime;
}
public void setWtime(LocalDateTime wtime) {
this.wtime = wtime;
}
public Boolean getCurrent() {
return this.current;
}
public void setCurrent(Boolean current) {
this.current = current;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final PayoutMethod other = (PayoutMethod) obj;
if (id == null) {
if (other.id != null)
return false;
}
else if (!id.equals(other.id))
return false;
if (versionId == null) {
if (other.versionId != null)
return false;
}
else if (!versionId.equals(other.versionId))
return false;
if (payoutMethodRefId == null) {
if (other.payoutMethodRefId != null)
return false;
}
else if (!payoutMethodRefId.equals(other.payoutMethodRefId))
return false;
if (name == null) {
if (other.name != null)
return false;
}
else if (!name.equals(other.name))
return false;
if (description == null) {
if (other.description != null)
return false;
}
else if (!description.equals(other.description))
return false;
if (wtime == null) {
if (other.wtime != null)
return false;
}
else if (!wtime.equals(other.wtime))
return false;
if (current == null) {
if (other.current != null)
return false;
}
else if (!current.equals(other.current))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
result = prime * result + ((this.versionId == null) ? 0 : this.versionId.hashCode());
result = prime * result + ((this.payoutMethodRefId == null) ? 0 : this.payoutMethodRefId.hashCode());
result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
result = prime * result + ((this.description == null) ? 0 : this.description.hashCode());
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("PayoutMethod (");
sb.append(id);
sb.append(", ").append(versionId);
sb.append(", ").append(payoutMethodRefId);
sb.append(", ").append(name);
sb.append(", ").append(description);
sb.append(", ").append(wtime);
sb.append(", ").append(current);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,345 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.pojos;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.annotation.Generated;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Provider implements Serializable {
private static final long serialVersionUID = -382510950;
private Long id;
private Long versionId;
private Integer providerRefId;
private String name;
private String description;
private Integer proxyRefId;
private String proxyAdditionalJson;
private String terminalJson;
private String absAccount;
private String paymentTermsJson;
private String recurrentPaytoolTermsJson;
private String accountsJson;
private LocalDateTime wtime;
private Boolean current;
public Provider() {}
public Provider(Provider value) {
this.id = value.id;
this.versionId = value.versionId;
this.providerRefId = value.providerRefId;
this.name = value.name;
this.description = value.description;
this.proxyRefId = value.proxyRefId;
this.proxyAdditionalJson = value.proxyAdditionalJson;
this.terminalJson = value.terminalJson;
this.absAccount = value.absAccount;
this.paymentTermsJson = value.paymentTermsJson;
this.recurrentPaytoolTermsJson = value.recurrentPaytoolTermsJson;
this.accountsJson = value.accountsJson;
this.wtime = value.wtime;
this.current = value.current;
}
public Provider(
Long id,
Long versionId,
Integer providerRefId,
String name,
String description,
Integer proxyRefId,
String proxyAdditionalJson,
String terminalJson,
String absAccount,
String paymentTermsJson,
String recurrentPaytoolTermsJson,
String accountsJson,
LocalDateTime wtime,
Boolean current
) {
this.id = id;
this.versionId = versionId;
this.providerRefId = providerRefId;
this.name = name;
this.description = description;
this.proxyRefId = proxyRefId;
this.proxyAdditionalJson = proxyAdditionalJson;
this.terminalJson = terminalJson;
this.absAccount = absAccount;
this.paymentTermsJson = paymentTermsJson;
this.recurrentPaytoolTermsJson = recurrentPaytoolTermsJson;
this.accountsJson = accountsJson;
this.wtime = wtime;
this.current = current;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public Long getVersionId() {
return this.versionId;
}
public void setVersionId(Long versionId) {
this.versionId = versionId;
}
public Integer getProviderRefId() {
return this.providerRefId;
}
public void setProviderRefId(Integer providerRefId) {
this.providerRefId = providerRefId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public Integer getProxyRefId() {
return this.proxyRefId;
}
public void setProxyRefId(Integer proxyRefId) {
this.proxyRefId = proxyRefId;
}
public String getProxyAdditionalJson() {
return this.proxyAdditionalJson;
}
public void setProxyAdditionalJson(String proxyAdditionalJson) {
this.proxyAdditionalJson = proxyAdditionalJson;
}
public String getTerminalJson() {
return this.terminalJson;
}
public void setTerminalJson(String terminalJson) {
this.terminalJson = terminalJson;
}
public String getAbsAccount() {
return this.absAccount;
}
public void setAbsAccount(String absAccount) {
this.absAccount = absAccount;
}
public String getPaymentTermsJson() {
return this.paymentTermsJson;
}
public void setPaymentTermsJson(String paymentTermsJson) {
this.paymentTermsJson = paymentTermsJson;
}
public String getRecurrentPaytoolTermsJson() {
return this.recurrentPaytoolTermsJson;
}
public void setRecurrentPaytoolTermsJson(String recurrentPaytoolTermsJson) {
this.recurrentPaytoolTermsJson = recurrentPaytoolTermsJson;
}
public String getAccountsJson() {
return this.accountsJson;
}
public void setAccountsJson(String accountsJson) {
this.accountsJson = accountsJson;
}
public LocalDateTime getWtime() {
return this.wtime;
}
public void setWtime(LocalDateTime wtime) {
this.wtime = wtime;
}
public Boolean getCurrent() {
return this.current;
}
public void setCurrent(Boolean current) {
this.current = current;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final Provider other = (Provider) obj;
if (id == null) {
if (other.id != null)
return false;
}
else if (!id.equals(other.id))
return false;
if (versionId == null) {
if (other.versionId != null)
return false;
}
else if (!versionId.equals(other.versionId))
return false;
if (providerRefId == null) {
if (other.providerRefId != null)
return false;
}
else if (!providerRefId.equals(other.providerRefId))
return false;
if (name == null) {
if (other.name != null)
return false;
}
else if (!name.equals(other.name))
return false;
if (description == null) {
if (other.description != null)
return false;
}
else if (!description.equals(other.description))
return false;
if (proxyRefId == null) {
if (other.proxyRefId != null)
return false;
}
else if (!proxyRefId.equals(other.proxyRefId))
return false;
if (proxyAdditionalJson == null) {
if (other.proxyAdditionalJson != null)
return false;
}
else if (!proxyAdditionalJson.equals(other.proxyAdditionalJson))
return false;
if (terminalJson == null) {
if (other.terminalJson != null)
return false;
}
else if (!terminalJson.equals(other.terminalJson))
return false;
if (absAccount == null) {
if (other.absAccount != null)
return false;
}
else if (!absAccount.equals(other.absAccount))
return false;
if (paymentTermsJson == null) {
if (other.paymentTermsJson != null)
return false;
}
else if (!paymentTermsJson.equals(other.paymentTermsJson))
return false;
if (recurrentPaytoolTermsJson == null) {
if (other.recurrentPaytoolTermsJson != null)
return false;
}
else if (!recurrentPaytoolTermsJson.equals(other.recurrentPaytoolTermsJson))
return false;
if (accountsJson == null) {
if (other.accountsJson != null)
return false;
}
else if (!accountsJson.equals(other.accountsJson))
return false;
if (wtime == null) {
if (other.wtime != null)
return false;
}
else if (!wtime.equals(other.wtime))
return false;
if (current == null) {
if (other.current != null)
return false;
}
else if (!current.equals(other.current))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
result = prime * result + ((this.versionId == null) ? 0 : this.versionId.hashCode());
result = prime * result + ((this.providerRefId == null) ? 0 : this.providerRefId.hashCode());
result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
result = prime * result + ((this.description == null) ? 0 : this.description.hashCode());
result = prime * result + ((this.proxyRefId == null) ? 0 : this.proxyRefId.hashCode());
result = prime * result + ((this.proxyAdditionalJson == null) ? 0 : this.proxyAdditionalJson.hashCode());
result = prime * result + ((this.terminalJson == null) ? 0 : this.terminalJson.hashCode());
result = prime * result + ((this.absAccount == null) ? 0 : this.absAccount.hashCode());
result = prime * result + ((this.paymentTermsJson == null) ? 0 : this.paymentTermsJson.hashCode());
result = prime * result + ((this.recurrentPaytoolTermsJson == null) ? 0 : this.recurrentPaytoolTermsJson.hashCode());
result = prime * result + ((this.accountsJson == null) ? 0 : this.accountsJson.hashCode());
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("Provider (");
sb.append(id);
sb.append(", ").append(versionId);
sb.append(", ").append(providerRefId);
sb.append(", ").append(name);
sb.append(", ").append(description);
sb.append(", ").append(proxyRefId);
sb.append(", ").append(proxyAdditionalJson);
sb.append(", ").append(terminalJson);
sb.append(", ").append(absAccount);
sb.append(", ").append(paymentTermsJson);
sb.append(", ").append(recurrentPaytoolTermsJson);
sb.append(", ").append(accountsJson);
sb.append(", ").append(wtime);
sb.append(", ").append(current);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,245 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.pojos;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.annotation.Generated;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Proxy implements Serializable {
private static final long serialVersionUID = 542956464;
private Long id;
private Long versionId;
private Integer proxyRefId;
private String name;
private String description;
private String url;
private String optionsJson;
private LocalDateTime wtime;
private Boolean current;
public Proxy() {}
public Proxy(Proxy value) {
this.id = value.id;
this.versionId = value.versionId;
this.proxyRefId = value.proxyRefId;
this.name = value.name;
this.description = value.description;
this.url = value.url;
this.optionsJson = value.optionsJson;
this.wtime = value.wtime;
this.current = value.current;
}
public Proxy(
Long id,
Long versionId,
Integer proxyRefId,
String name,
String description,
String url,
String optionsJson,
LocalDateTime wtime,
Boolean current
) {
this.id = id;
this.versionId = versionId;
this.proxyRefId = proxyRefId;
this.name = name;
this.description = description;
this.url = url;
this.optionsJson = optionsJson;
this.wtime = wtime;
this.current = current;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public Long getVersionId() {
return this.versionId;
}
public void setVersionId(Long versionId) {
this.versionId = versionId;
}
public Integer getProxyRefId() {
return this.proxyRefId;
}
public void setProxyRefId(Integer proxyRefId) {
this.proxyRefId = proxyRefId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public String getUrl() {
return this.url;
}
public void setUrl(String url) {
this.url = url;
}
public String getOptionsJson() {
return this.optionsJson;
}
public void setOptionsJson(String optionsJson) {
this.optionsJson = optionsJson;
}
public LocalDateTime getWtime() {
return this.wtime;
}
public void setWtime(LocalDateTime wtime) {
this.wtime = wtime;
}
public Boolean getCurrent() {
return this.current;
}
public void setCurrent(Boolean current) {
this.current = current;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final Proxy other = (Proxy) obj;
if (id == null) {
if (other.id != null)
return false;
}
else if (!id.equals(other.id))
return false;
if (versionId == null) {
if (other.versionId != null)
return false;
}
else if (!versionId.equals(other.versionId))
return false;
if (proxyRefId == null) {
if (other.proxyRefId != null)
return false;
}
else if (!proxyRefId.equals(other.proxyRefId))
return false;
if (name == null) {
if (other.name != null)
return false;
}
else if (!name.equals(other.name))
return false;
if (description == null) {
if (other.description != null)
return false;
}
else if (!description.equals(other.description))
return false;
if (url == null) {
if (other.url != null)
return false;
}
else if (!url.equals(other.url))
return false;
if (optionsJson == null) {
if (other.optionsJson != null)
return false;
}
else if (!optionsJson.equals(other.optionsJson))
return false;
if (wtime == null) {
if (other.wtime != null)
return false;
}
else if (!wtime.equals(other.wtime))
return false;
if (current == null) {
if (other.current != null)
return false;
}
else if (!current.equals(other.current))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
result = prime * result + ((this.versionId == null) ? 0 : this.versionId.hashCode());
result = prime * result + ((this.proxyRefId == null) ? 0 : this.proxyRefId.hashCode());
result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
result = prime * result + ((this.description == null) ? 0 : this.description.hashCode());
result = prime * result + ((this.url == null) ? 0 : this.url.hashCode());
result = prime * result + ((this.optionsJson == null) ? 0 : this.optionsJson.hashCode());
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("Proxy (");
sb.append(id);
sb.append(", ").append(versionId);
sb.append(", ").append(proxyRefId);
sb.append(", ").append(name);
sb.append(", ").append(description);
sb.append(", ").append(url);
sb.append(", ").append(optionsJson);
sb.append(", ").append(wtime);
sb.append(", ").append(current);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,245 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.pojos;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.annotation.Generated;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TermSetHierarchy implements Serializable {
private static final long serialVersionUID = 1389600306;
private Long id;
private Long versionId;
private Integer termSetHierarchyRefId;
private String name;
private String description;
private Integer parentTermsRefId;
private String termSetsJson;
private LocalDateTime wtime;
private Boolean current;
public TermSetHierarchy() {}
public TermSetHierarchy(TermSetHierarchy value) {
this.id = value.id;
this.versionId = value.versionId;
this.termSetHierarchyRefId = value.termSetHierarchyRefId;
this.name = value.name;
this.description = value.description;
this.parentTermsRefId = value.parentTermsRefId;
this.termSetsJson = value.termSetsJson;
this.wtime = value.wtime;
this.current = value.current;
}
public TermSetHierarchy(
Long id,
Long versionId,
Integer termSetHierarchyRefId,
String name,
String description,
Integer parentTermsRefId,
String termSetsJson,
LocalDateTime wtime,
Boolean current
) {
this.id = id;
this.versionId = versionId;
this.termSetHierarchyRefId = termSetHierarchyRefId;
this.name = name;
this.description = description;
this.parentTermsRefId = parentTermsRefId;
this.termSetsJson = termSetsJson;
this.wtime = wtime;
this.current = current;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public Long getVersionId() {
return this.versionId;
}
public void setVersionId(Long versionId) {
this.versionId = versionId;
}
public Integer getTermSetHierarchyRefId() {
return this.termSetHierarchyRefId;
}
public void setTermSetHierarchyRefId(Integer termSetHierarchyRefId) {
this.termSetHierarchyRefId = termSetHierarchyRefId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public Integer getParentTermsRefId() {
return this.parentTermsRefId;
}
public void setParentTermsRefId(Integer parentTermsRefId) {
this.parentTermsRefId = parentTermsRefId;
}
public String getTermSetsJson() {
return this.termSetsJson;
}
public void setTermSetsJson(String termSetsJson) {
this.termSetsJson = termSetsJson;
}
public LocalDateTime getWtime() {
return this.wtime;
}
public void setWtime(LocalDateTime wtime) {
this.wtime = wtime;
}
public Boolean getCurrent() {
return this.current;
}
public void setCurrent(Boolean current) {
this.current = current;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final TermSetHierarchy other = (TermSetHierarchy) obj;
if (id == null) {
if (other.id != null)
return false;
}
else if (!id.equals(other.id))
return false;
if (versionId == null) {
if (other.versionId != null)
return false;
}
else if (!versionId.equals(other.versionId))
return false;
if (termSetHierarchyRefId == null) {
if (other.termSetHierarchyRefId != null)
return false;
}
else if (!termSetHierarchyRefId.equals(other.termSetHierarchyRefId))
return false;
if (name == null) {
if (other.name != null)
return false;
}
else if (!name.equals(other.name))
return false;
if (description == null) {
if (other.description != null)
return false;
}
else if (!description.equals(other.description))
return false;
if (parentTermsRefId == null) {
if (other.parentTermsRefId != null)
return false;
}
else if (!parentTermsRefId.equals(other.parentTermsRefId))
return false;
if (termSetsJson == null) {
if (other.termSetsJson != null)
return false;
}
else if (!termSetsJson.equals(other.termSetsJson))
return false;
if (wtime == null) {
if (other.wtime != null)
return false;
}
else if (!wtime.equals(other.wtime))
return false;
if (current == null) {
if (other.current != null)
return false;
}
else if (!current.equals(other.current))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
result = prime * result + ((this.versionId == null) ? 0 : this.versionId.hashCode());
result = prime * result + ((this.termSetHierarchyRefId == null) ? 0 : this.termSetHierarchyRefId.hashCode());
result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
result = prime * result + ((this.description == null) ? 0 : this.description.hashCode());
result = prime * result + ((this.parentTermsRefId == null) ? 0 : this.parentTermsRefId.hashCode());
result = prime * result + ((this.termSetsJson == null) ? 0 : this.termSetsJson.hashCode());
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("TermSetHierarchy (");
sb.append(id);
sb.append(", ").append(versionId);
sb.append(", ").append(termSetHierarchyRefId);
sb.append(", ").append(name);
sb.append(", ").append(description);
sb.append(", ").append(parentTermsRefId);
sb.append(", ").append(termSetsJson);
sb.append(", ").append(wtime);
sb.append(", ").append(current);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,265 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.pojos;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.annotation.Generated;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Terminal implements Serializable {
private static final long serialVersionUID = 419118177;
private Long id;
private Long versionId;
private Integer terminalRefId;
private String name;
private String description;
private String optionsJson;
private String riskCoverage;
private String termsJson;
private LocalDateTime wtime;
private Boolean current;
public Terminal() {}
public Terminal(Terminal value) {
this.id = value.id;
this.versionId = value.versionId;
this.terminalRefId = value.terminalRefId;
this.name = value.name;
this.description = value.description;
this.optionsJson = value.optionsJson;
this.riskCoverage = value.riskCoverage;
this.termsJson = value.termsJson;
this.wtime = value.wtime;
this.current = value.current;
}
public Terminal(
Long id,
Long versionId,
Integer terminalRefId,
String name,
String description,
String optionsJson,
String riskCoverage,
String termsJson,
LocalDateTime wtime,
Boolean current
) {
this.id = id;
this.versionId = versionId;
this.terminalRefId = terminalRefId;
this.name = name;
this.description = description;
this.optionsJson = optionsJson;
this.riskCoverage = riskCoverage;
this.termsJson = termsJson;
this.wtime = wtime;
this.current = current;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public Long getVersionId() {
return this.versionId;
}
public void setVersionId(Long versionId) {
this.versionId = versionId;
}
public Integer getTerminalRefId() {
return this.terminalRefId;
}
public void setTerminalRefId(Integer terminalRefId) {
this.terminalRefId = terminalRefId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public String getOptionsJson() {
return this.optionsJson;
}
public void setOptionsJson(String optionsJson) {
this.optionsJson = optionsJson;
}
public String getRiskCoverage() {
return this.riskCoverage;
}
public void setRiskCoverage(String riskCoverage) {
this.riskCoverage = riskCoverage;
}
public String getTermsJson() {
return this.termsJson;
}
public void setTermsJson(String termsJson) {
this.termsJson = termsJson;
}
public LocalDateTime getWtime() {
return this.wtime;
}
public void setWtime(LocalDateTime wtime) {
this.wtime = wtime;
}
public Boolean getCurrent() {
return this.current;
}
public void setCurrent(Boolean current) {
this.current = current;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final Terminal other = (Terminal) obj;
if (id == null) {
if (other.id != null)
return false;
}
else if (!id.equals(other.id))
return false;
if (versionId == null) {
if (other.versionId != null)
return false;
}
else if (!versionId.equals(other.versionId))
return false;
if (terminalRefId == null) {
if (other.terminalRefId != null)
return false;
}
else if (!terminalRefId.equals(other.terminalRefId))
return false;
if (name == null) {
if (other.name != null)
return false;
}
else if (!name.equals(other.name))
return false;
if (description == null) {
if (other.description != null)
return false;
}
else if (!description.equals(other.description))
return false;
if (optionsJson == null) {
if (other.optionsJson != null)
return false;
}
else if (!optionsJson.equals(other.optionsJson))
return false;
if (riskCoverage == null) {
if (other.riskCoverage != null)
return false;
}
else if (!riskCoverage.equals(other.riskCoverage))
return false;
if (termsJson == null) {
if (other.termsJson != null)
return false;
}
else if (!termsJson.equals(other.termsJson))
return false;
if (wtime == null) {
if (other.wtime != null)
return false;
}
else if (!wtime.equals(other.wtime))
return false;
if (current == null) {
if (other.current != null)
return false;
}
else if (!current.equals(other.current))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
result = prime * result + ((this.versionId == null) ? 0 : this.versionId.hashCode());
result = prime * result + ((this.terminalRefId == null) ? 0 : this.terminalRefId.hashCode());
result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
result = prime * result + ((this.description == null) ? 0 : this.description.hashCode());
result = prime * result + ((this.optionsJson == null) ? 0 : this.optionsJson.hashCode());
result = prime * result + ((this.riskCoverage == null) ? 0 : this.riskCoverage.hashCode());
result = prime * result + ((this.termsJson == null) ? 0 : this.termsJson.hashCode());
result = prime * result + ((this.wtime == null) ? 0 : this.wtime.hashCode());
result = prime * result + ((this.current == null) ? 0 : this.current.hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("Terminal (");
sb.append(id);
sb.append(", ").append(versionId);
sb.append(", ").append(terminalRefId);
sb.append(", ").append(name);
sb.append(", ").append(description);
sb.append(", ").append(optionsJson);
sb.append(", ").append(riskCoverage);
sb.append(", ").append(termsJson);
sb.append(", ").append(wtime);
sb.append(", ").append(current);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,503 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.records;
import com.rbkmoney.newway.domain.tables.Calendar;
import java.time.LocalDateTime;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record10;
import org.jooq.Row10;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CalendarRecord extends UpdatableRecordImpl<CalendarRecord> implements Record10<Long, Long, Integer, String, String, String, String, Integer, LocalDateTime, Boolean> {
private static final long serialVersionUID = -485067967;
/**
* Setter for <code>nw.calendar.id</code>.
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>nw.calendar.id</code>.
*/
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>nw.calendar.version_id</code>.
*/
public void setVersionId(Long value) {
set(1, value);
}
/**
* Getter for <code>nw.calendar.version_id</code>.
*/
public Long getVersionId() {
return (Long) get(1);
}
/**
* Setter for <code>nw.calendar.calendar_ref_id</code>.
*/
public void setCalendarRefId(Integer value) {
set(2, value);
}
/**
* Getter for <code>nw.calendar.calendar_ref_id</code>.
*/
public Integer getCalendarRefId() {
return (Integer) get(2);
}
/**
* Setter for <code>nw.calendar.name</code>.
*/
public void setName(String value) {
set(3, value);
}
/**
* Getter for <code>nw.calendar.name</code>.
*/
public String getName() {
return (String) get(3);
}
/**
* Setter for <code>nw.calendar.description</code>.
*/
public void setDescription(String value) {
set(4, value);
}
/**
* Getter for <code>nw.calendar.description</code>.
*/
public String getDescription() {
return (String) get(4);
}
/**
* Setter for <code>nw.calendar.timezone</code>.
*/
public void setTimezone(String value) {
set(5, value);
}
/**
* Getter for <code>nw.calendar.timezone</code>.
*/
public String getTimezone() {
return (String) get(5);
}
/**
* Setter for <code>nw.calendar.holidays_json</code>.
*/
public void setHolidaysJson(String value) {
set(6, value);
}
/**
* Getter for <code>nw.calendar.holidays_json</code>.
*/
public String getHolidaysJson() {
return (String) get(6);
}
/**
* Setter for <code>nw.calendar.first_day_of_week</code>.
*/
public void setFirstDayOfWeek(Integer value) {
set(7, value);
}
/**
* Getter for <code>nw.calendar.first_day_of_week</code>.
*/
public Integer getFirstDayOfWeek() {
return (Integer) get(7);
}
/**
* Setter for <code>nw.calendar.wtime</code>.
*/
public void setWtime(LocalDateTime value) {
set(8, value);
}
/**
* Getter for <code>nw.calendar.wtime</code>.
*/
public LocalDateTime getWtime() {
return (LocalDateTime) get(8);
}
/**
* Setter for <code>nw.calendar.current</code>.
*/
public void setCurrent(Boolean value) {
set(9, value);
}
/**
* Getter for <code>nw.calendar.current</code>.
*/
public Boolean getCurrent() {
return (Boolean) get(9);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record10 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Row10<Long, Long, Integer, String, String, String, String, Integer, LocalDateTime, Boolean> fieldsRow() {
return (Row10) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public Row10<Long, Long, Integer, String, String, String, String, Integer, LocalDateTime, Boolean> valuesRow() {
return (Row10) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field1() {
return Calendar.CALENDAR.ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field2() {
return Calendar.CALENDAR.VERSION_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Integer> field3() {
return Calendar.CALENDAR.CALENDAR_REF_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field4() {
return Calendar.CALENDAR.NAME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field5() {
return Calendar.CALENDAR.DESCRIPTION;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field6() {
return Calendar.CALENDAR.TIMEZONE;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field7() {
return Calendar.CALENDAR.HOLIDAYS_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Integer> field8() {
return Calendar.CALENDAR.FIRST_DAY_OF_WEEK;
}
/**
* {@inheritDoc}
*/
@Override
public Field<LocalDateTime> field9() {
return Calendar.CALENDAR.WTIME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Boolean> field10() {
return Calendar.CALENDAR.CURRENT;
}
/**
* {@inheritDoc}
*/
@Override
public Long value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public Long value2() {
return getVersionId();
}
/**
* {@inheritDoc}
*/
@Override
public Integer value3() {
return getCalendarRefId();
}
/**
* {@inheritDoc}
*/
@Override
public String value4() {
return getName();
}
/**
* {@inheritDoc}
*/
@Override
public String value5() {
return getDescription();
}
/**
* {@inheritDoc}
*/
@Override
public String value6() {
return getTimezone();
}
/**
* {@inheritDoc}
*/
@Override
public String value7() {
return getHolidaysJson();
}
/**
* {@inheritDoc}
*/
@Override
public Integer value8() {
return getFirstDayOfWeek();
}
/**
* {@inheritDoc}
*/
@Override
public LocalDateTime value9() {
return getWtime();
}
/**
* {@inheritDoc}
*/
@Override
public Boolean value10() {
return getCurrent();
}
/**
* {@inheritDoc}
*/
@Override
public CalendarRecord value1(Long value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CalendarRecord value2(Long value) {
setVersionId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CalendarRecord value3(Integer value) {
setCalendarRefId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CalendarRecord value4(String value) {
setName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CalendarRecord value5(String value) {
setDescription(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CalendarRecord value6(String value) {
setTimezone(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CalendarRecord value7(String value) {
setHolidaysJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CalendarRecord value8(Integer value) {
setFirstDayOfWeek(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CalendarRecord value9(LocalDateTime value) {
setWtime(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CalendarRecord value10(Boolean value) {
setCurrent(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CalendarRecord values(Long value1, Long value2, Integer value3, String value4, String value5, String value6, String value7, Integer value8, LocalDateTime value9, Boolean value10) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
value8(value8);
value9(value9);
value10(value10);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached CalendarRecord
*/
public CalendarRecord() {
super(Calendar.CALENDAR);
}
/**
* Create a detached, initialised CalendarRecord
*/
public CalendarRecord(Long id, Long versionId, Integer calendarRefId, String name, String description, String timezone, String holidaysJson, Integer firstDayOfWeek, LocalDateTime wtime, Boolean current) {
super(Calendar.CALENDAR);
set(0, id);
set(1, versionId);
set(2, calendarRefId);
set(3, name);
set(4, description);
set(5, timezone);
set(6, holidaysJson);
set(7, firstDayOfWeek);
set(8, wtime);
set(9, current);
}
}

View File

@ -30,7 +30,7 @@ import org.jooq.impl.UpdatableRecordImpl;
@SuppressWarnings({ "all", "unchecked", "rawtypes" }) @SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CategoryRecord extends UpdatableRecordImpl<CategoryRecord> implements Record8<Long, Long, Integer, String, String, String, LocalDateTime, Boolean> { public class CategoryRecord extends UpdatableRecordImpl<CategoryRecord> implements Record8<Long, Long, Integer, String, String, String, LocalDateTime, Boolean> {
private static final long serialVersionUID = 1401274706; private static final long serialVersionUID = -1496330550;
/** /**
* Setter for <code>nw.category.id</code>. * Setter for <code>nw.category.id</code>.
@ -61,16 +61,16 @@ public class CategoryRecord extends UpdatableRecordImpl<CategoryRecord> implemen
} }
/** /**
* Setter for <code>nw.category.category_id</code>. * Setter for <code>nw.category.category_ref_id</code>.
*/ */
public void setCategoryId(Integer value) { public void setCategoryRefId(Integer value) {
set(2, value); set(2, value);
} }
/** /**
* Getter for <code>nw.category.category_id</code>. * Getter for <code>nw.category.category_ref_id</code>.
*/ */
public Integer getCategoryId() { public Integer getCategoryRefId() {
return (Integer) get(2); return (Integer) get(2);
} }
@ -197,7 +197,7 @@ public class CategoryRecord extends UpdatableRecordImpl<CategoryRecord> implemen
*/ */
@Override @Override
public Field<Integer> field3() { public Field<Integer> field3() {
return Category.CATEGORY.CATEGORY_ID; return Category.CATEGORY.CATEGORY_REF_ID;
} }
/** /**
@ -261,7 +261,7 @@ public class CategoryRecord extends UpdatableRecordImpl<CategoryRecord> implemen
*/ */
@Override @Override
public Integer value3() { public Integer value3() {
return getCategoryId(); return getCategoryRefId();
} }
/** /**
@ -327,7 +327,7 @@ public class CategoryRecord extends UpdatableRecordImpl<CategoryRecord> implemen
*/ */
@Override @Override
public CategoryRecord value3(Integer value) { public CategoryRecord value3(Integer value) {
setCategoryId(value); setCategoryRefId(value);
return this; return this;
} }
@ -406,12 +406,12 @@ public class CategoryRecord extends UpdatableRecordImpl<CategoryRecord> implemen
/** /**
* Create a detached, initialised CategoryRecord * Create a detached, initialised CategoryRecord
*/ */
public CategoryRecord(Long id, Long versionId, Integer categoryId, String name, String description, String type, LocalDateTime wtime, Boolean current) { public CategoryRecord(Long id, Long versionId, Integer categoryRefId, String name, String description, String type, LocalDateTime wtime, Boolean current) {
super(Category.CATEGORY); super(Category.CATEGORY);
set(0, id); set(0, id);
set(1, versionId); set(1, versionId);
set(2, categoryId); set(2, categoryRefId);
set(3, name); set(3, name);
set(4, description); set(4, description);
set(5, type); set(5, type);

View File

@ -0,0 +1,462 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.records;
import com.rbkmoney.newway.domain.tables.Currency;
import java.time.LocalDateTime;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record9;
import org.jooq.Row9;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CurrencyRecord extends UpdatableRecordImpl<CurrencyRecord> implements Record9<Long, Long, String, String, String, Short, Short, LocalDateTime, Boolean> {
private static final long serialVersionUID = 1372269750;
/**
* Setter for <code>nw.currency.id</code>.
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>nw.currency.id</code>.
*/
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>nw.currency.version_id</code>.
*/
public void setVersionId(Long value) {
set(1, value);
}
/**
* Getter for <code>nw.currency.version_id</code>.
*/
public Long getVersionId() {
return (Long) get(1);
}
/**
* Setter for <code>nw.currency.currency_ref_id</code>.
*/
public void setCurrencyRefId(String value) {
set(2, value);
}
/**
* Getter for <code>nw.currency.currency_ref_id</code>.
*/
public String getCurrencyRefId() {
return (String) get(2);
}
/**
* Setter for <code>nw.currency.name</code>.
*/
public void setName(String value) {
set(3, value);
}
/**
* Getter for <code>nw.currency.name</code>.
*/
public String getName() {
return (String) get(3);
}
/**
* Setter for <code>nw.currency.symbolic_code</code>.
*/
public void setSymbolicCode(String value) {
set(4, value);
}
/**
* Getter for <code>nw.currency.symbolic_code</code>.
*/
public String getSymbolicCode() {
return (String) get(4);
}
/**
* Setter for <code>nw.currency.numeric_code</code>.
*/
public void setNumericCode(Short value) {
set(5, value);
}
/**
* Getter for <code>nw.currency.numeric_code</code>.
*/
public Short getNumericCode() {
return (Short) get(5);
}
/**
* Setter for <code>nw.currency.exponent</code>.
*/
public void setExponent(Short value) {
set(6, value);
}
/**
* Getter for <code>nw.currency.exponent</code>.
*/
public Short getExponent() {
return (Short) get(6);
}
/**
* Setter for <code>nw.currency.wtime</code>.
*/
public void setWtime(LocalDateTime value) {
set(7, value);
}
/**
* Getter for <code>nw.currency.wtime</code>.
*/
public LocalDateTime getWtime() {
return (LocalDateTime) get(7);
}
/**
* Setter for <code>nw.currency.current</code>.
*/
public void setCurrent(Boolean value) {
set(8, value);
}
/**
* Getter for <code>nw.currency.current</code>.
*/
public Boolean getCurrent() {
return (Boolean) get(8);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record9 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Row9<Long, Long, String, String, String, Short, Short, LocalDateTime, Boolean> fieldsRow() {
return (Row9) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public Row9<Long, Long, String, String, String, Short, Short, LocalDateTime, Boolean> valuesRow() {
return (Row9) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field1() {
return Currency.CURRENCY.ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field2() {
return Currency.CURRENCY.VERSION_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field3() {
return Currency.CURRENCY.CURRENCY_REF_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field4() {
return Currency.CURRENCY.NAME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field5() {
return Currency.CURRENCY.SYMBOLIC_CODE;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Short> field6() {
return Currency.CURRENCY.NUMERIC_CODE;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Short> field7() {
return Currency.CURRENCY.EXPONENT;
}
/**
* {@inheritDoc}
*/
@Override
public Field<LocalDateTime> field8() {
return Currency.CURRENCY.WTIME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Boolean> field9() {
return Currency.CURRENCY.CURRENT;
}
/**
* {@inheritDoc}
*/
@Override
public Long value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public Long value2() {
return getVersionId();
}
/**
* {@inheritDoc}
*/
@Override
public String value3() {
return getCurrencyRefId();
}
/**
* {@inheritDoc}
*/
@Override
public String value4() {
return getName();
}
/**
* {@inheritDoc}
*/
@Override
public String value5() {
return getSymbolicCode();
}
/**
* {@inheritDoc}
*/
@Override
public Short value6() {
return getNumericCode();
}
/**
* {@inheritDoc}
*/
@Override
public Short value7() {
return getExponent();
}
/**
* {@inheritDoc}
*/
@Override
public LocalDateTime value8() {
return getWtime();
}
/**
* {@inheritDoc}
*/
@Override
public Boolean value9() {
return getCurrent();
}
/**
* {@inheritDoc}
*/
@Override
public CurrencyRecord value1(Long value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CurrencyRecord value2(Long value) {
setVersionId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CurrencyRecord value3(String value) {
setCurrencyRefId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CurrencyRecord value4(String value) {
setName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CurrencyRecord value5(String value) {
setSymbolicCode(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CurrencyRecord value6(Short value) {
setNumericCode(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CurrencyRecord value7(Short value) {
setExponent(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CurrencyRecord value8(LocalDateTime value) {
setWtime(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CurrencyRecord value9(Boolean value) {
setCurrent(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CurrencyRecord values(Long value1, Long value2, String value3, String value4, String value5, Short value6, Short value7, LocalDateTime value8, Boolean value9) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
value8(value8);
value9(value9);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached CurrencyRecord
*/
public CurrencyRecord() {
super(Currency.CURRENCY);
}
/**
* Create a detached, initialised CurrencyRecord
*/
public CurrencyRecord(Long id, Long versionId, String currencyRefId, String name, String symbolicCode, Short numericCode, Short exponent, LocalDateTime wtime, Boolean current) {
super(Currency.CURRENCY);
set(0, id);
set(1, versionId);
set(2, currencyRefId);
set(3, name);
set(4, symbolicCode);
set(5, numericCode);
set(6, exponent);
set(7, wtime);
set(8, current);
}
}

View File

@ -0,0 +1,503 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.records;
import com.rbkmoney.newway.domain.tables.Inspector;
import java.time.LocalDateTime;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record10;
import org.jooq.Row10;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class InspectorRecord extends UpdatableRecordImpl<InspectorRecord> implements Record10<Long, Long, Integer, String, String, Integer, String, String, LocalDateTime, Boolean> {
private static final long serialVersionUID = -1857978299;
/**
* Setter for <code>nw.inspector.id</code>.
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>nw.inspector.id</code>.
*/
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>nw.inspector.version_id</code>.
*/
public void setVersionId(Long value) {
set(1, value);
}
/**
* Getter for <code>nw.inspector.version_id</code>.
*/
public Long getVersionId() {
return (Long) get(1);
}
/**
* Setter for <code>nw.inspector.inspector_ref_id</code>.
*/
public void setInspectorRefId(Integer value) {
set(2, value);
}
/**
* Getter for <code>nw.inspector.inspector_ref_id</code>.
*/
public Integer getInspectorRefId() {
return (Integer) get(2);
}
/**
* Setter for <code>nw.inspector.name</code>.
*/
public void setName(String value) {
set(3, value);
}
/**
* Getter for <code>nw.inspector.name</code>.
*/
public String getName() {
return (String) get(3);
}
/**
* Setter for <code>nw.inspector.description</code>.
*/
public void setDescription(String value) {
set(4, value);
}
/**
* Getter for <code>nw.inspector.description</code>.
*/
public String getDescription() {
return (String) get(4);
}
/**
* Setter for <code>nw.inspector.proxy_ref_id</code>.
*/
public void setProxyRefId(Integer value) {
set(5, value);
}
/**
* Getter for <code>nw.inspector.proxy_ref_id</code>.
*/
public Integer getProxyRefId() {
return (Integer) get(5);
}
/**
* Setter for <code>nw.inspector.proxy_additional_json</code>.
*/
public void setProxyAdditionalJson(String value) {
set(6, value);
}
/**
* Getter for <code>nw.inspector.proxy_additional_json</code>.
*/
public String getProxyAdditionalJson() {
return (String) get(6);
}
/**
* Setter for <code>nw.inspector.fallback_risk_score</code>.
*/
public void setFallbackRiskScore(String value) {
set(7, value);
}
/**
* Getter for <code>nw.inspector.fallback_risk_score</code>.
*/
public String getFallbackRiskScore() {
return (String) get(7);
}
/**
* Setter for <code>nw.inspector.wtime</code>.
*/
public void setWtime(LocalDateTime value) {
set(8, value);
}
/**
* Getter for <code>nw.inspector.wtime</code>.
*/
public LocalDateTime getWtime() {
return (LocalDateTime) get(8);
}
/**
* Setter for <code>nw.inspector.current</code>.
*/
public void setCurrent(Boolean value) {
set(9, value);
}
/**
* Getter for <code>nw.inspector.current</code>.
*/
public Boolean getCurrent() {
return (Boolean) get(9);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record10 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Row10<Long, Long, Integer, String, String, Integer, String, String, LocalDateTime, Boolean> fieldsRow() {
return (Row10) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public Row10<Long, Long, Integer, String, String, Integer, String, String, LocalDateTime, Boolean> valuesRow() {
return (Row10) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field1() {
return Inspector.INSPECTOR.ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field2() {
return Inspector.INSPECTOR.VERSION_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Integer> field3() {
return Inspector.INSPECTOR.INSPECTOR_REF_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field4() {
return Inspector.INSPECTOR.NAME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field5() {
return Inspector.INSPECTOR.DESCRIPTION;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Integer> field6() {
return Inspector.INSPECTOR.PROXY_REF_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field7() {
return Inspector.INSPECTOR.PROXY_ADDITIONAL_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field8() {
return Inspector.INSPECTOR.FALLBACK_RISK_SCORE;
}
/**
* {@inheritDoc}
*/
@Override
public Field<LocalDateTime> field9() {
return Inspector.INSPECTOR.WTIME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Boolean> field10() {
return Inspector.INSPECTOR.CURRENT;
}
/**
* {@inheritDoc}
*/
@Override
public Long value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public Long value2() {
return getVersionId();
}
/**
* {@inheritDoc}
*/
@Override
public Integer value3() {
return getInspectorRefId();
}
/**
* {@inheritDoc}
*/
@Override
public String value4() {
return getName();
}
/**
* {@inheritDoc}
*/
@Override
public String value5() {
return getDescription();
}
/**
* {@inheritDoc}
*/
@Override
public Integer value6() {
return getProxyRefId();
}
/**
* {@inheritDoc}
*/
@Override
public String value7() {
return getProxyAdditionalJson();
}
/**
* {@inheritDoc}
*/
@Override
public String value8() {
return getFallbackRiskScore();
}
/**
* {@inheritDoc}
*/
@Override
public LocalDateTime value9() {
return getWtime();
}
/**
* {@inheritDoc}
*/
@Override
public Boolean value10() {
return getCurrent();
}
/**
* {@inheritDoc}
*/
@Override
public InspectorRecord value1(Long value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public InspectorRecord value2(Long value) {
setVersionId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public InspectorRecord value3(Integer value) {
setInspectorRefId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public InspectorRecord value4(String value) {
setName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public InspectorRecord value5(String value) {
setDescription(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public InspectorRecord value6(Integer value) {
setProxyRefId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public InspectorRecord value7(String value) {
setProxyAdditionalJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public InspectorRecord value8(String value) {
setFallbackRiskScore(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public InspectorRecord value9(LocalDateTime value) {
setWtime(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public InspectorRecord value10(Boolean value) {
setCurrent(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public InspectorRecord values(Long value1, Long value2, Integer value3, String value4, String value5, Integer value6, String value7, String value8, LocalDateTime value9, Boolean value10) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
value8(value8);
value9(value9);
value10(value10);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached InspectorRecord
*/
public InspectorRecord() {
super(Inspector.INSPECTOR);
}
/**
* Create a detached, initialised InspectorRecord
*/
public InspectorRecord(Long id, Long versionId, Integer inspectorRefId, String name, String description, Integer proxyRefId, String proxyAdditionalJson, String fallbackRiskScore, LocalDateTime wtime, Boolean current) {
super(Inspector.INSPECTOR);
set(0, id);
set(1, versionId);
set(2, inspectorRefId);
set(3, name);
set(4, description);
set(5, proxyRefId);
set(6, proxyAdditionalJson);
set(7, fallbackRiskScore);
set(8, wtime);
set(9, current);
}
}

View File

@ -0,0 +1,708 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.records;
import com.rbkmoney.newway.domain.tables.PaymentInstitution;
import java.time.LocalDateTime;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record15;
import org.jooq.Row15;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PaymentInstitutionRecord extends UpdatableRecordImpl<PaymentInstitutionRecord> implements Record15<Long, Long, Integer, String, String, Integer, String, String, String, String, String, String, String, LocalDateTime, Boolean> {
private static final long serialVersionUID = -624536677;
/**
* Setter for <code>nw.payment_institution.id</code>.
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>nw.payment_institution.id</code>.
*/
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>nw.payment_institution.version_id</code>.
*/
public void setVersionId(Long value) {
set(1, value);
}
/**
* Getter for <code>nw.payment_institution.version_id</code>.
*/
public Long getVersionId() {
return (Long) get(1);
}
/**
* Setter for <code>nw.payment_institution.payment_institution_ref_id</code>.
*/
public void setPaymentInstitutionRefId(Integer value) {
set(2, value);
}
/**
* Getter for <code>nw.payment_institution.payment_institution_ref_id</code>.
*/
public Integer getPaymentInstitutionRefId() {
return (Integer) get(2);
}
/**
* Setter for <code>nw.payment_institution.name</code>.
*/
public void setName(String value) {
set(3, value);
}
/**
* Getter for <code>nw.payment_institution.name</code>.
*/
public String getName() {
return (String) get(3);
}
/**
* Setter for <code>nw.payment_institution.description</code>.
*/
public void setDescription(String value) {
set(4, value);
}
/**
* Getter for <code>nw.payment_institution.description</code>.
*/
public String getDescription() {
return (String) get(4);
}
/**
* Setter for <code>nw.payment_institution.calendar_ref_id</code>.
*/
public void setCalendarRefId(Integer value) {
set(5, value);
}
/**
* Getter for <code>nw.payment_institution.calendar_ref_id</code>.
*/
public Integer getCalendarRefId() {
return (Integer) get(5);
}
/**
* Setter for <code>nw.payment_institution.system_account_set_json</code>.
*/
public void setSystemAccountSetJson(String value) {
set(6, value);
}
/**
* Getter for <code>nw.payment_institution.system_account_set_json</code>.
*/
public String getSystemAccountSetJson() {
return (String) get(6);
}
/**
* Setter for <code>nw.payment_institution.default_contract_template_json</code>.
*/
public void setDefaultContractTemplateJson(String value) {
set(7, value);
}
/**
* Getter for <code>nw.payment_institution.default_contract_template_json</code>.
*/
public String getDefaultContractTemplateJson() {
return (String) get(7);
}
/**
* Setter for <code>nw.payment_institution.default_wallet_contract_template_json</code>.
*/
public void setDefaultWalletContractTemplateJson(String value) {
set(8, value);
}
/**
* Getter for <code>nw.payment_institution.default_wallet_contract_template_json</code>.
*/
public String getDefaultWalletContractTemplateJson() {
return (String) get(8);
}
/**
* Setter for <code>nw.payment_institution.providers_json</code>.
*/
public void setProvidersJson(String value) {
set(9, value);
}
/**
* Getter for <code>nw.payment_institution.providers_json</code>.
*/
public String getProvidersJson() {
return (String) get(9);
}
/**
* Setter for <code>nw.payment_institution.inspector_json</code>.
*/
public void setInspectorJson(String value) {
set(10, value);
}
/**
* Getter for <code>nw.payment_institution.inspector_json</code>.
*/
public String getInspectorJson() {
return (String) get(10);
}
/**
* Setter for <code>nw.payment_institution.realm</code>.
*/
public void setRealm(String value) {
set(11, value);
}
/**
* Getter for <code>nw.payment_institution.realm</code>.
*/
public String getRealm() {
return (String) get(11);
}
/**
* Setter for <code>nw.payment_institution.residences_json</code>.
*/
public void setResidencesJson(String value) {
set(12, value);
}
/**
* Getter for <code>nw.payment_institution.residences_json</code>.
*/
public String getResidencesJson() {
return (String) get(12);
}
/**
* Setter for <code>nw.payment_institution.wtime</code>.
*/
public void setWtime(LocalDateTime value) {
set(13, value);
}
/**
* Getter for <code>nw.payment_institution.wtime</code>.
*/
public LocalDateTime getWtime() {
return (LocalDateTime) get(13);
}
/**
* Setter for <code>nw.payment_institution.current</code>.
*/
public void setCurrent(Boolean value) {
set(14, value);
}
/**
* Getter for <code>nw.payment_institution.current</code>.
*/
public Boolean getCurrent() {
return (Boolean) get(14);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record15 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Row15<Long, Long, Integer, String, String, Integer, String, String, String, String, String, String, String, LocalDateTime, Boolean> fieldsRow() {
return (Row15) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public Row15<Long, Long, Integer, String, String, Integer, String, String, String, String, String, String, String, LocalDateTime, Boolean> valuesRow() {
return (Row15) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field1() {
return PaymentInstitution.PAYMENT_INSTITUTION.ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field2() {
return PaymentInstitution.PAYMENT_INSTITUTION.VERSION_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Integer> field3() {
return PaymentInstitution.PAYMENT_INSTITUTION.PAYMENT_INSTITUTION_REF_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field4() {
return PaymentInstitution.PAYMENT_INSTITUTION.NAME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field5() {
return PaymentInstitution.PAYMENT_INSTITUTION.DESCRIPTION;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Integer> field6() {
return PaymentInstitution.PAYMENT_INSTITUTION.CALENDAR_REF_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field7() {
return PaymentInstitution.PAYMENT_INSTITUTION.SYSTEM_ACCOUNT_SET_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field8() {
return PaymentInstitution.PAYMENT_INSTITUTION.DEFAULT_CONTRACT_TEMPLATE_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field9() {
return PaymentInstitution.PAYMENT_INSTITUTION.DEFAULT_WALLET_CONTRACT_TEMPLATE_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field10() {
return PaymentInstitution.PAYMENT_INSTITUTION.PROVIDERS_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field11() {
return PaymentInstitution.PAYMENT_INSTITUTION.INSPECTOR_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field12() {
return PaymentInstitution.PAYMENT_INSTITUTION.REALM;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field13() {
return PaymentInstitution.PAYMENT_INSTITUTION.RESIDENCES_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<LocalDateTime> field14() {
return PaymentInstitution.PAYMENT_INSTITUTION.WTIME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Boolean> field15() {
return PaymentInstitution.PAYMENT_INSTITUTION.CURRENT;
}
/**
* {@inheritDoc}
*/
@Override
public Long value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public Long value2() {
return getVersionId();
}
/**
* {@inheritDoc}
*/
@Override
public Integer value3() {
return getPaymentInstitutionRefId();
}
/**
* {@inheritDoc}
*/
@Override
public String value4() {
return getName();
}
/**
* {@inheritDoc}
*/
@Override
public String value5() {
return getDescription();
}
/**
* {@inheritDoc}
*/
@Override
public Integer value6() {
return getCalendarRefId();
}
/**
* {@inheritDoc}
*/
@Override
public String value7() {
return getSystemAccountSetJson();
}
/**
* {@inheritDoc}
*/
@Override
public String value8() {
return getDefaultContractTemplateJson();
}
/**
* {@inheritDoc}
*/
@Override
public String value9() {
return getDefaultWalletContractTemplateJson();
}
/**
* {@inheritDoc}
*/
@Override
public String value10() {
return getProvidersJson();
}
/**
* {@inheritDoc}
*/
@Override
public String value11() {
return getInspectorJson();
}
/**
* {@inheritDoc}
*/
@Override
public String value12() {
return getRealm();
}
/**
* {@inheritDoc}
*/
@Override
public String value13() {
return getResidencesJson();
}
/**
* {@inheritDoc}
*/
@Override
public LocalDateTime value14() {
return getWtime();
}
/**
* {@inheritDoc}
*/
@Override
public Boolean value15() {
return getCurrent();
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord value1(Long value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord value2(Long value) {
setVersionId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord value3(Integer value) {
setPaymentInstitutionRefId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord value4(String value) {
setName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord value5(String value) {
setDescription(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord value6(Integer value) {
setCalendarRefId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord value7(String value) {
setSystemAccountSetJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord value8(String value) {
setDefaultContractTemplateJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord value9(String value) {
setDefaultWalletContractTemplateJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord value10(String value) {
setProvidersJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord value11(String value) {
setInspectorJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord value12(String value) {
setRealm(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord value13(String value) {
setResidencesJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord value14(LocalDateTime value) {
setWtime(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord value15(Boolean value) {
setCurrent(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentInstitutionRecord values(Long value1, Long value2, Integer value3, String value4, String value5, Integer value6, String value7, String value8, String value9, String value10, String value11, String value12, String value13, LocalDateTime value14, Boolean value15) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
value8(value8);
value9(value9);
value10(value10);
value11(value11);
value12(value12);
value13(value13);
value14(value14);
value15(value15);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached PaymentInstitutionRecord
*/
public PaymentInstitutionRecord() {
super(PaymentInstitution.PAYMENT_INSTITUTION);
}
/**
* Create a detached, initialised PaymentInstitutionRecord
*/
public PaymentInstitutionRecord(Long id, Long versionId, Integer paymentInstitutionRefId, String name, String description, Integer calendarRefId, String systemAccountSetJson, String defaultContractTemplateJson, String defaultWalletContractTemplateJson, String providersJson, String inspectorJson, String realm, String residencesJson, LocalDateTime wtime, Boolean current) {
super(PaymentInstitution.PAYMENT_INSTITUTION);
set(0, id);
set(1, versionId);
set(2, paymentInstitutionRefId);
set(3, name);
set(4, description);
set(5, calendarRefId);
set(6, systemAccountSetJson);
set(7, defaultContractTemplateJson);
set(8, defaultWalletContractTemplateJson);
set(9, providersJson);
set(10, inspectorJson);
set(11, realm);
set(12, residencesJson);
set(13, wtime);
set(14, current);
}
}

View File

@ -0,0 +1,422 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.records;
import com.rbkmoney.newway.domain.enums.PaymentMethodType;
import com.rbkmoney.newway.domain.tables.PaymentMethod;
import java.time.LocalDateTime;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record8;
import org.jooq.Row8;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PaymentMethodRecord extends UpdatableRecordImpl<PaymentMethodRecord> implements Record8<Long, Long, String, String, String, PaymentMethodType, LocalDateTime, Boolean> {
private static final long serialVersionUID = 1881615875;
/**
* Setter for <code>nw.payment_method.id</code>.
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>nw.payment_method.id</code>.
*/
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>nw.payment_method.version_id</code>.
*/
public void setVersionId(Long value) {
set(1, value);
}
/**
* Getter for <code>nw.payment_method.version_id</code>.
*/
public Long getVersionId() {
return (Long) get(1);
}
/**
* Setter for <code>nw.payment_method.payment_method_ref_id</code>.
*/
public void setPaymentMethodRefId(String value) {
set(2, value);
}
/**
* Getter for <code>nw.payment_method.payment_method_ref_id</code>.
*/
public String getPaymentMethodRefId() {
return (String) get(2);
}
/**
* Setter for <code>nw.payment_method.name</code>.
*/
public void setName(String value) {
set(3, value);
}
/**
* Getter for <code>nw.payment_method.name</code>.
*/
public String getName() {
return (String) get(3);
}
/**
* Setter for <code>nw.payment_method.description</code>.
*/
public void setDescription(String value) {
set(4, value);
}
/**
* Getter for <code>nw.payment_method.description</code>.
*/
public String getDescription() {
return (String) get(4);
}
/**
* Setter for <code>nw.payment_method.type</code>.
*/
public void setType(PaymentMethodType value) {
set(5, value);
}
/**
* Getter for <code>nw.payment_method.type</code>.
*/
public PaymentMethodType getType() {
return (PaymentMethodType) get(5);
}
/**
* Setter for <code>nw.payment_method.wtime</code>.
*/
public void setWtime(LocalDateTime value) {
set(6, value);
}
/**
* Getter for <code>nw.payment_method.wtime</code>.
*/
public LocalDateTime getWtime() {
return (LocalDateTime) get(6);
}
/**
* Setter for <code>nw.payment_method.current</code>.
*/
public void setCurrent(Boolean value) {
set(7, value);
}
/**
* Getter for <code>nw.payment_method.current</code>.
*/
public Boolean getCurrent() {
return (Boolean) get(7);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record8 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Row8<Long, Long, String, String, String, PaymentMethodType, LocalDateTime, Boolean> fieldsRow() {
return (Row8) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public Row8<Long, Long, String, String, String, PaymentMethodType, LocalDateTime, Boolean> valuesRow() {
return (Row8) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field1() {
return PaymentMethod.PAYMENT_METHOD.ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field2() {
return PaymentMethod.PAYMENT_METHOD.VERSION_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field3() {
return PaymentMethod.PAYMENT_METHOD.PAYMENT_METHOD_REF_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field4() {
return PaymentMethod.PAYMENT_METHOD.NAME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field5() {
return PaymentMethod.PAYMENT_METHOD.DESCRIPTION;
}
/**
* {@inheritDoc}
*/
@Override
public Field<PaymentMethodType> field6() {
return PaymentMethod.PAYMENT_METHOD.TYPE;
}
/**
* {@inheritDoc}
*/
@Override
public Field<LocalDateTime> field7() {
return PaymentMethod.PAYMENT_METHOD.WTIME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Boolean> field8() {
return PaymentMethod.PAYMENT_METHOD.CURRENT;
}
/**
* {@inheritDoc}
*/
@Override
public Long value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public Long value2() {
return getVersionId();
}
/**
* {@inheritDoc}
*/
@Override
public String value3() {
return getPaymentMethodRefId();
}
/**
* {@inheritDoc}
*/
@Override
public String value4() {
return getName();
}
/**
* {@inheritDoc}
*/
@Override
public String value5() {
return getDescription();
}
/**
* {@inheritDoc}
*/
@Override
public PaymentMethodType value6() {
return getType();
}
/**
* {@inheritDoc}
*/
@Override
public LocalDateTime value7() {
return getWtime();
}
/**
* {@inheritDoc}
*/
@Override
public Boolean value8() {
return getCurrent();
}
/**
* {@inheritDoc}
*/
@Override
public PaymentMethodRecord value1(Long value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentMethodRecord value2(Long value) {
setVersionId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentMethodRecord value3(String value) {
setPaymentMethodRefId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentMethodRecord value4(String value) {
setName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentMethodRecord value5(String value) {
setDescription(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentMethodRecord value6(PaymentMethodType value) {
setType(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentMethodRecord value7(LocalDateTime value) {
setWtime(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentMethodRecord value8(Boolean value) {
setCurrent(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PaymentMethodRecord values(Long value1, Long value2, String value3, String value4, String value5, PaymentMethodType value6, LocalDateTime value7, Boolean value8) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
value8(value8);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached PaymentMethodRecord
*/
public PaymentMethodRecord() {
super(PaymentMethod.PAYMENT_METHOD);
}
/**
* Create a detached, initialised PaymentMethodRecord
*/
public PaymentMethodRecord(Long id, Long versionId, String paymentMethodRefId, String name, String description, PaymentMethodType type, LocalDateTime wtime, Boolean current) {
super(PaymentMethod.PAYMENT_METHOD);
set(0, id);
set(1, versionId);
set(2, paymentMethodRefId);
set(3, name);
set(4, description);
set(5, type);
set(6, wtime);
set(7, current);
}
}

View File

@ -0,0 +1,380 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.records;
import com.rbkmoney.newway.domain.tables.PayoutMethod;
import java.time.LocalDateTime;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record7;
import org.jooq.Row7;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PayoutMethodRecord extends UpdatableRecordImpl<PayoutMethodRecord> implements Record7<Long, Long, String, String, String, LocalDateTime, Boolean> {
private static final long serialVersionUID = 769530831;
/**
* Setter for <code>nw.payout_method.id</code>.
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>nw.payout_method.id</code>.
*/
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>nw.payout_method.version_id</code>.
*/
public void setVersionId(Long value) {
set(1, value);
}
/**
* Getter for <code>nw.payout_method.version_id</code>.
*/
public Long getVersionId() {
return (Long) get(1);
}
/**
* Setter for <code>nw.payout_method.payout_method_ref_id</code>.
*/
public void setPayoutMethodRefId(String value) {
set(2, value);
}
/**
* Getter for <code>nw.payout_method.payout_method_ref_id</code>.
*/
public String getPayoutMethodRefId() {
return (String) get(2);
}
/**
* Setter for <code>nw.payout_method.name</code>.
*/
public void setName(String value) {
set(3, value);
}
/**
* Getter for <code>nw.payout_method.name</code>.
*/
public String getName() {
return (String) get(3);
}
/**
* Setter for <code>nw.payout_method.description</code>.
*/
public void setDescription(String value) {
set(4, value);
}
/**
* Getter for <code>nw.payout_method.description</code>.
*/
public String getDescription() {
return (String) get(4);
}
/**
* Setter for <code>nw.payout_method.wtime</code>.
*/
public void setWtime(LocalDateTime value) {
set(5, value);
}
/**
* Getter for <code>nw.payout_method.wtime</code>.
*/
public LocalDateTime getWtime() {
return (LocalDateTime) get(5);
}
/**
* Setter for <code>nw.payout_method.current</code>.
*/
public void setCurrent(Boolean value) {
set(6, value);
}
/**
* Getter for <code>nw.payout_method.current</code>.
*/
public Boolean getCurrent() {
return (Boolean) get(6);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record7 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Row7<Long, Long, String, String, String, LocalDateTime, Boolean> fieldsRow() {
return (Row7) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public Row7<Long, Long, String, String, String, LocalDateTime, Boolean> valuesRow() {
return (Row7) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field1() {
return PayoutMethod.PAYOUT_METHOD.ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field2() {
return PayoutMethod.PAYOUT_METHOD.VERSION_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field3() {
return PayoutMethod.PAYOUT_METHOD.PAYOUT_METHOD_REF_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field4() {
return PayoutMethod.PAYOUT_METHOD.NAME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field5() {
return PayoutMethod.PAYOUT_METHOD.DESCRIPTION;
}
/**
* {@inheritDoc}
*/
@Override
public Field<LocalDateTime> field6() {
return PayoutMethod.PAYOUT_METHOD.WTIME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Boolean> field7() {
return PayoutMethod.PAYOUT_METHOD.CURRENT;
}
/**
* {@inheritDoc}
*/
@Override
public Long value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public Long value2() {
return getVersionId();
}
/**
* {@inheritDoc}
*/
@Override
public String value3() {
return getPayoutMethodRefId();
}
/**
* {@inheritDoc}
*/
@Override
public String value4() {
return getName();
}
/**
* {@inheritDoc}
*/
@Override
public String value5() {
return getDescription();
}
/**
* {@inheritDoc}
*/
@Override
public LocalDateTime value6() {
return getWtime();
}
/**
* {@inheritDoc}
*/
@Override
public Boolean value7() {
return getCurrent();
}
/**
* {@inheritDoc}
*/
@Override
public PayoutMethodRecord value1(Long value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PayoutMethodRecord value2(Long value) {
setVersionId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PayoutMethodRecord value3(String value) {
setPayoutMethodRefId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PayoutMethodRecord value4(String value) {
setName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PayoutMethodRecord value5(String value) {
setDescription(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PayoutMethodRecord value6(LocalDateTime value) {
setWtime(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PayoutMethodRecord value7(Boolean value) {
setCurrent(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PayoutMethodRecord values(Long value1, Long value2, String value3, String value4, String value5, LocalDateTime value6, Boolean value7) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached PayoutMethodRecord
*/
public PayoutMethodRecord() {
super(PayoutMethod.PAYOUT_METHOD);
}
/**
* Create a detached, initialised PayoutMethodRecord
*/
public PayoutMethodRecord(Long id, Long versionId, String payoutMethodRefId, String name, String description, LocalDateTime wtime, Boolean current) {
super(PayoutMethod.PAYOUT_METHOD);
set(0, id);
set(1, versionId);
set(2, payoutMethodRefId);
set(3, name);
set(4, description);
set(5, wtime);
set(6, current);
}
}

View File

@ -0,0 +1,667 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.records;
import com.rbkmoney.newway.domain.tables.Provider;
import java.time.LocalDateTime;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record14;
import org.jooq.Row14;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class ProviderRecord extends UpdatableRecordImpl<ProviderRecord> implements Record14<Long, Long, Integer, String, String, Integer, String, String, String, String, String, String, LocalDateTime, Boolean> {
private static final long serialVersionUID = 173529955;
/**
* Setter for <code>nw.provider.id</code>.
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>nw.provider.id</code>.
*/
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>nw.provider.version_id</code>.
*/
public void setVersionId(Long value) {
set(1, value);
}
/**
* Getter for <code>nw.provider.version_id</code>.
*/
public Long getVersionId() {
return (Long) get(1);
}
/**
* Setter for <code>nw.provider.provider_ref_id</code>.
*/
public void setProviderRefId(Integer value) {
set(2, value);
}
/**
* Getter for <code>nw.provider.provider_ref_id</code>.
*/
public Integer getProviderRefId() {
return (Integer) get(2);
}
/**
* Setter for <code>nw.provider.name</code>.
*/
public void setName(String value) {
set(3, value);
}
/**
* Getter for <code>nw.provider.name</code>.
*/
public String getName() {
return (String) get(3);
}
/**
* Setter for <code>nw.provider.description</code>.
*/
public void setDescription(String value) {
set(4, value);
}
/**
* Getter for <code>nw.provider.description</code>.
*/
public String getDescription() {
return (String) get(4);
}
/**
* Setter for <code>nw.provider.proxy_ref_id</code>.
*/
public void setProxyRefId(Integer value) {
set(5, value);
}
/**
* Getter for <code>nw.provider.proxy_ref_id</code>.
*/
public Integer getProxyRefId() {
return (Integer) get(5);
}
/**
* Setter for <code>nw.provider.proxy_additional_json</code>.
*/
public void setProxyAdditionalJson(String value) {
set(6, value);
}
/**
* Getter for <code>nw.provider.proxy_additional_json</code>.
*/
public String getProxyAdditionalJson() {
return (String) get(6);
}
/**
* Setter for <code>nw.provider.terminal_json</code>.
*/
public void setTerminalJson(String value) {
set(7, value);
}
/**
* Getter for <code>nw.provider.terminal_json</code>.
*/
public String getTerminalJson() {
return (String) get(7);
}
/**
* Setter for <code>nw.provider.abs_account</code>.
*/
public void setAbsAccount(String value) {
set(8, value);
}
/**
* Getter for <code>nw.provider.abs_account</code>.
*/
public String getAbsAccount() {
return (String) get(8);
}
/**
* Setter for <code>nw.provider.payment_terms_json</code>.
*/
public void setPaymentTermsJson(String value) {
set(9, value);
}
/**
* Getter for <code>nw.provider.payment_terms_json</code>.
*/
public String getPaymentTermsJson() {
return (String) get(9);
}
/**
* Setter for <code>nw.provider.recurrent_paytool_terms_json</code>.
*/
public void setRecurrentPaytoolTermsJson(String value) {
set(10, value);
}
/**
* Getter for <code>nw.provider.recurrent_paytool_terms_json</code>.
*/
public String getRecurrentPaytoolTermsJson() {
return (String) get(10);
}
/**
* Setter for <code>nw.provider.accounts_json</code>.
*/
public void setAccountsJson(String value) {
set(11, value);
}
/**
* Getter for <code>nw.provider.accounts_json</code>.
*/
public String getAccountsJson() {
return (String) get(11);
}
/**
* Setter for <code>nw.provider.wtime</code>.
*/
public void setWtime(LocalDateTime value) {
set(12, value);
}
/**
* Getter for <code>nw.provider.wtime</code>.
*/
public LocalDateTime getWtime() {
return (LocalDateTime) get(12);
}
/**
* Setter for <code>nw.provider.current</code>.
*/
public void setCurrent(Boolean value) {
set(13, value);
}
/**
* Getter for <code>nw.provider.current</code>.
*/
public Boolean getCurrent() {
return (Boolean) get(13);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record14 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Row14<Long, Long, Integer, String, String, Integer, String, String, String, String, String, String, LocalDateTime, Boolean> fieldsRow() {
return (Row14) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public Row14<Long, Long, Integer, String, String, Integer, String, String, String, String, String, String, LocalDateTime, Boolean> valuesRow() {
return (Row14) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field1() {
return Provider.PROVIDER.ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field2() {
return Provider.PROVIDER.VERSION_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Integer> field3() {
return Provider.PROVIDER.PROVIDER_REF_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field4() {
return Provider.PROVIDER.NAME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field5() {
return Provider.PROVIDER.DESCRIPTION;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Integer> field6() {
return Provider.PROVIDER.PROXY_REF_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field7() {
return Provider.PROVIDER.PROXY_ADDITIONAL_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field8() {
return Provider.PROVIDER.TERMINAL_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field9() {
return Provider.PROVIDER.ABS_ACCOUNT;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field10() {
return Provider.PROVIDER.PAYMENT_TERMS_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field11() {
return Provider.PROVIDER.RECURRENT_PAYTOOL_TERMS_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field12() {
return Provider.PROVIDER.ACCOUNTS_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<LocalDateTime> field13() {
return Provider.PROVIDER.WTIME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Boolean> field14() {
return Provider.PROVIDER.CURRENT;
}
/**
* {@inheritDoc}
*/
@Override
public Long value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public Long value2() {
return getVersionId();
}
/**
* {@inheritDoc}
*/
@Override
public Integer value3() {
return getProviderRefId();
}
/**
* {@inheritDoc}
*/
@Override
public String value4() {
return getName();
}
/**
* {@inheritDoc}
*/
@Override
public String value5() {
return getDescription();
}
/**
* {@inheritDoc}
*/
@Override
public Integer value6() {
return getProxyRefId();
}
/**
* {@inheritDoc}
*/
@Override
public String value7() {
return getProxyAdditionalJson();
}
/**
* {@inheritDoc}
*/
@Override
public String value8() {
return getTerminalJson();
}
/**
* {@inheritDoc}
*/
@Override
public String value9() {
return getAbsAccount();
}
/**
* {@inheritDoc}
*/
@Override
public String value10() {
return getPaymentTermsJson();
}
/**
* {@inheritDoc}
*/
@Override
public String value11() {
return getRecurrentPaytoolTermsJson();
}
/**
* {@inheritDoc}
*/
@Override
public String value12() {
return getAccountsJson();
}
/**
* {@inheritDoc}
*/
@Override
public LocalDateTime value13() {
return getWtime();
}
/**
* {@inheritDoc}
*/
@Override
public Boolean value14() {
return getCurrent();
}
/**
* {@inheritDoc}
*/
@Override
public ProviderRecord value1(Long value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProviderRecord value2(Long value) {
setVersionId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProviderRecord value3(Integer value) {
setProviderRefId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProviderRecord value4(String value) {
setName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProviderRecord value5(String value) {
setDescription(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProviderRecord value6(Integer value) {
setProxyRefId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProviderRecord value7(String value) {
setProxyAdditionalJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProviderRecord value8(String value) {
setTerminalJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProviderRecord value9(String value) {
setAbsAccount(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProviderRecord value10(String value) {
setPaymentTermsJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProviderRecord value11(String value) {
setRecurrentPaytoolTermsJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProviderRecord value12(String value) {
setAccountsJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProviderRecord value13(LocalDateTime value) {
setWtime(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProviderRecord value14(Boolean value) {
setCurrent(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProviderRecord values(Long value1, Long value2, Integer value3, String value4, String value5, Integer value6, String value7, String value8, String value9, String value10, String value11, String value12, LocalDateTime value13, Boolean value14) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
value8(value8);
value9(value9);
value10(value10);
value11(value11);
value12(value12);
value13(value13);
value14(value14);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached ProviderRecord
*/
public ProviderRecord() {
super(Provider.PROVIDER);
}
/**
* Create a detached, initialised ProviderRecord
*/
public ProviderRecord(Long id, Long versionId, Integer providerRefId, String name, String description, Integer proxyRefId, String proxyAdditionalJson, String terminalJson, String absAccount, String paymentTermsJson, String recurrentPaytoolTermsJson, String accountsJson, LocalDateTime wtime, Boolean current) {
super(Provider.PROVIDER);
set(0, id);
set(1, versionId);
set(2, providerRefId);
set(3, name);
set(4, description);
set(5, proxyRefId);
set(6, proxyAdditionalJson);
set(7, terminalJson);
set(8, absAccount);
set(9, paymentTermsJson);
set(10, recurrentPaytoolTermsJson);
set(11, accountsJson);
set(12, wtime);
set(13, current);
}
}

View File

@ -0,0 +1,462 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.records;
import com.rbkmoney.newway.domain.tables.Proxy;
import java.time.LocalDateTime;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record9;
import org.jooq.Row9;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class ProxyRecord extends UpdatableRecordImpl<ProxyRecord> implements Record9<Long, Long, Integer, String, String, String, String, LocalDateTime, Boolean> {
private static final long serialVersionUID = 420065551;
/**
* Setter for <code>nw.proxy.id</code>.
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>nw.proxy.id</code>.
*/
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>nw.proxy.version_id</code>.
*/
public void setVersionId(Long value) {
set(1, value);
}
/**
* Getter for <code>nw.proxy.version_id</code>.
*/
public Long getVersionId() {
return (Long) get(1);
}
/**
* Setter for <code>nw.proxy.proxy_ref_id</code>.
*/
public void setProxyRefId(Integer value) {
set(2, value);
}
/**
* Getter for <code>nw.proxy.proxy_ref_id</code>.
*/
public Integer getProxyRefId() {
return (Integer) get(2);
}
/**
* Setter for <code>nw.proxy.name</code>.
*/
public void setName(String value) {
set(3, value);
}
/**
* Getter for <code>nw.proxy.name</code>.
*/
public String getName() {
return (String) get(3);
}
/**
* Setter for <code>nw.proxy.description</code>.
*/
public void setDescription(String value) {
set(4, value);
}
/**
* Getter for <code>nw.proxy.description</code>.
*/
public String getDescription() {
return (String) get(4);
}
/**
* Setter for <code>nw.proxy.url</code>.
*/
public void setUrl(String value) {
set(5, value);
}
/**
* Getter for <code>nw.proxy.url</code>.
*/
public String getUrl() {
return (String) get(5);
}
/**
* Setter for <code>nw.proxy.options_json</code>.
*/
public void setOptionsJson(String value) {
set(6, value);
}
/**
* Getter for <code>nw.proxy.options_json</code>.
*/
public String getOptionsJson() {
return (String) get(6);
}
/**
* Setter for <code>nw.proxy.wtime</code>.
*/
public void setWtime(LocalDateTime value) {
set(7, value);
}
/**
* Getter for <code>nw.proxy.wtime</code>.
*/
public LocalDateTime getWtime() {
return (LocalDateTime) get(7);
}
/**
* Setter for <code>nw.proxy.current</code>.
*/
public void setCurrent(Boolean value) {
set(8, value);
}
/**
* Getter for <code>nw.proxy.current</code>.
*/
public Boolean getCurrent() {
return (Boolean) get(8);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record9 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Row9<Long, Long, Integer, String, String, String, String, LocalDateTime, Boolean> fieldsRow() {
return (Row9) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public Row9<Long, Long, Integer, String, String, String, String, LocalDateTime, Boolean> valuesRow() {
return (Row9) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field1() {
return Proxy.PROXY.ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field2() {
return Proxy.PROXY.VERSION_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Integer> field3() {
return Proxy.PROXY.PROXY_REF_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field4() {
return Proxy.PROXY.NAME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field5() {
return Proxy.PROXY.DESCRIPTION;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field6() {
return Proxy.PROXY.URL;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field7() {
return Proxy.PROXY.OPTIONS_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<LocalDateTime> field8() {
return Proxy.PROXY.WTIME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Boolean> field9() {
return Proxy.PROXY.CURRENT;
}
/**
* {@inheritDoc}
*/
@Override
public Long value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public Long value2() {
return getVersionId();
}
/**
* {@inheritDoc}
*/
@Override
public Integer value3() {
return getProxyRefId();
}
/**
* {@inheritDoc}
*/
@Override
public String value4() {
return getName();
}
/**
* {@inheritDoc}
*/
@Override
public String value5() {
return getDescription();
}
/**
* {@inheritDoc}
*/
@Override
public String value6() {
return getUrl();
}
/**
* {@inheritDoc}
*/
@Override
public String value7() {
return getOptionsJson();
}
/**
* {@inheritDoc}
*/
@Override
public LocalDateTime value8() {
return getWtime();
}
/**
* {@inheritDoc}
*/
@Override
public Boolean value9() {
return getCurrent();
}
/**
* {@inheritDoc}
*/
@Override
public ProxyRecord value1(Long value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProxyRecord value2(Long value) {
setVersionId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProxyRecord value3(Integer value) {
setProxyRefId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProxyRecord value4(String value) {
setName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProxyRecord value5(String value) {
setDescription(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProxyRecord value6(String value) {
setUrl(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProxyRecord value7(String value) {
setOptionsJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProxyRecord value8(LocalDateTime value) {
setWtime(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProxyRecord value9(Boolean value) {
setCurrent(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ProxyRecord values(Long value1, Long value2, Integer value3, String value4, String value5, String value6, String value7, LocalDateTime value8, Boolean value9) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
value8(value8);
value9(value9);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached ProxyRecord
*/
public ProxyRecord() {
super(Proxy.PROXY);
}
/**
* Create a detached, initialised ProxyRecord
*/
public ProxyRecord(Long id, Long versionId, Integer proxyRefId, String name, String description, String url, String optionsJson, LocalDateTime wtime, Boolean current) {
super(Proxy.PROXY);
set(0, id);
set(1, versionId);
set(2, proxyRefId);
set(3, name);
set(4, description);
set(5, url);
set(6, optionsJson);
set(7, wtime);
set(8, current);
}
}

View File

@ -0,0 +1,462 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.records;
import com.rbkmoney.newway.domain.tables.TermSetHierarchy;
import java.time.LocalDateTime;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record9;
import org.jooq.Row9;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TermSetHierarchyRecord extends UpdatableRecordImpl<TermSetHierarchyRecord> implements Record9<Long, Long, Integer, String, String, Integer, String, LocalDateTime, Boolean> {
private static final long serialVersionUID = -431717923;
/**
* Setter for <code>nw.term_set_hierarchy.id</code>.
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>nw.term_set_hierarchy.id</code>.
*/
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>nw.term_set_hierarchy.version_id</code>.
*/
public void setVersionId(Long value) {
set(1, value);
}
/**
* Getter for <code>nw.term_set_hierarchy.version_id</code>.
*/
public Long getVersionId() {
return (Long) get(1);
}
/**
* Setter for <code>nw.term_set_hierarchy.term_set_hierarchy_ref_id</code>.
*/
public void setTermSetHierarchyRefId(Integer value) {
set(2, value);
}
/**
* Getter for <code>nw.term_set_hierarchy.term_set_hierarchy_ref_id</code>.
*/
public Integer getTermSetHierarchyRefId() {
return (Integer) get(2);
}
/**
* Setter for <code>nw.term_set_hierarchy.name</code>.
*/
public void setName(String value) {
set(3, value);
}
/**
* Getter for <code>nw.term_set_hierarchy.name</code>.
*/
public String getName() {
return (String) get(3);
}
/**
* Setter for <code>nw.term_set_hierarchy.description</code>.
*/
public void setDescription(String value) {
set(4, value);
}
/**
* Getter for <code>nw.term_set_hierarchy.description</code>.
*/
public String getDescription() {
return (String) get(4);
}
/**
* Setter for <code>nw.term_set_hierarchy.parent_terms_ref_id</code>.
*/
public void setParentTermsRefId(Integer value) {
set(5, value);
}
/**
* Getter for <code>nw.term_set_hierarchy.parent_terms_ref_id</code>.
*/
public Integer getParentTermsRefId() {
return (Integer) get(5);
}
/**
* Setter for <code>nw.term_set_hierarchy.term_sets_json</code>.
*/
public void setTermSetsJson(String value) {
set(6, value);
}
/**
* Getter for <code>nw.term_set_hierarchy.term_sets_json</code>.
*/
public String getTermSetsJson() {
return (String) get(6);
}
/**
* Setter for <code>nw.term_set_hierarchy.wtime</code>.
*/
public void setWtime(LocalDateTime value) {
set(7, value);
}
/**
* Getter for <code>nw.term_set_hierarchy.wtime</code>.
*/
public LocalDateTime getWtime() {
return (LocalDateTime) get(7);
}
/**
* Setter for <code>nw.term_set_hierarchy.current</code>.
*/
public void setCurrent(Boolean value) {
set(8, value);
}
/**
* Getter for <code>nw.term_set_hierarchy.current</code>.
*/
public Boolean getCurrent() {
return (Boolean) get(8);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record9 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Row9<Long, Long, Integer, String, String, Integer, String, LocalDateTime, Boolean> fieldsRow() {
return (Row9) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public Row9<Long, Long, Integer, String, String, Integer, String, LocalDateTime, Boolean> valuesRow() {
return (Row9) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field1() {
return TermSetHierarchy.TERM_SET_HIERARCHY.ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field2() {
return TermSetHierarchy.TERM_SET_HIERARCHY.VERSION_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Integer> field3() {
return TermSetHierarchy.TERM_SET_HIERARCHY.TERM_SET_HIERARCHY_REF_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field4() {
return TermSetHierarchy.TERM_SET_HIERARCHY.NAME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field5() {
return TermSetHierarchy.TERM_SET_HIERARCHY.DESCRIPTION;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Integer> field6() {
return TermSetHierarchy.TERM_SET_HIERARCHY.PARENT_TERMS_REF_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field7() {
return TermSetHierarchy.TERM_SET_HIERARCHY.TERM_SETS_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<LocalDateTime> field8() {
return TermSetHierarchy.TERM_SET_HIERARCHY.WTIME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Boolean> field9() {
return TermSetHierarchy.TERM_SET_HIERARCHY.CURRENT;
}
/**
* {@inheritDoc}
*/
@Override
public Long value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public Long value2() {
return getVersionId();
}
/**
* {@inheritDoc}
*/
@Override
public Integer value3() {
return getTermSetHierarchyRefId();
}
/**
* {@inheritDoc}
*/
@Override
public String value4() {
return getName();
}
/**
* {@inheritDoc}
*/
@Override
public String value5() {
return getDescription();
}
/**
* {@inheritDoc}
*/
@Override
public Integer value6() {
return getParentTermsRefId();
}
/**
* {@inheritDoc}
*/
@Override
public String value7() {
return getTermSetsJson();
}
/**
* {@inheritDoc}
*/
@Override
public LocalDateTime value8() {
return getWtime();
}
/**
* {@inheritDoc}
*/
@Override
public Boolean value9() {
return getCurrent();
}
/**
* {@inheritDoc}
*/
@Override
public TermSetHierarchyRecord value1(Long value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TermSetHierarchyRecord value2(Long value) {
setVersionId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TermSetHierarchyRecord value3(Integer value) {
setTermSetHierarchyRefId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TermSetHierarchyRecord value4(String value) {
setName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TermSetHierarchyRecord value5(String value) {
setDescription(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TermSetHierarchyRecord value6(Integer value) {
setParentTermsRefId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TermSetHierarchyRecord value7(String value) {
setTermSetsJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TermSetHierarchyRecord value8(LocalDateTime value) {
setWtime(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TermSetHierarchyRecord value9(Boolean value) {
setCurrent(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TermSetHierarchyRecord values(Long value1, Long value2, Integer value3, String value4, String value5, Integer value6, String value7, LocalDateTime value8, Boolean value9) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
value8(value8);
value9(value9);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached TermSetHierarchyRecord
*/
public TermSetHierarchyRecord() {
super(TermSetHierarchy.TERM_SET_HIERARCHY);
}
/**
* Create a detached, initialised TermSetHierarchyRecord
*/
public TermSetHierarchyRecord(Long id, Long versionId, Integer termSetHierarchyRefId, String name, String description, Integer parentTermsRefId, String termSetsJson, LocalDateTime wtime, Boolean current) {
super(TermSetHierarchy.TERM_SET_HIERARCHY);
set(0, id);
set(1, versionId);
set(2, termSetHierarchyRefId);
set(3, name);
set(4, description);
set(5, parentTermsRefId);
set(6, termSetsJson);
set(7, wtime);
set(8, current);
}
}

View File

@ -0,0 +1,503 @@
/*
* This file is generated by jOOQ.
*/
package com.rbkmoney.newway.domain.tables.records;
import com.rbkmoney.newway.domain.tables.Terminal;
import java.time.LocalDateTime;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record10;
import org.jooq.Row10;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TerminalRecord extends UpdatableRecordImpl<TerminalRecord> implements Record10<Long, Long, Integer, String, String, String, String, String, LocalDateTime, Boolean> {
private static final long serialVersionUID = 174090348;
/**
* Setter for <code>nw.terminal.id</code>.
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>nw.terminal.id</code>.
*/
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>nw.terminal.version_id</code>.
*/
public void setVersionId(Long value) {
set(1, value);
}
/**
* Getter for <code>nw.terminal.version_id</code>.
*/
public Long getVersionId() {
return (Long) get(1);
}
/**
* Setter for <code>nw.terminal.terminal_ref_id</code>.
*/
public void setTerminalRefId(Integer value) {
set(2, value);
}
/**
* Getter for <code>nw.terminal.terminal_ref_id</code>.
*/
public Integer getTerminalRefId() {
return (Integer) get(2);
}
/**
* Setter for <code>nw.terminal.name</code>.
*/
public void setName(String value) {
set(3, value);
}
/**
* Getter for <code>nw.terminal.name</code>.
*/
public String getName() {
return (String) get(3);
}
/**
* Setter for <code>nw.terminal.description</code>.
*/
public void setDescription(String value) {
set(4, value);
}
/**
* Getter for <code>nw.terminal.description</code>.
*/
public String getDescription() {
return (String) get(4);
}
/**
* Setter for <code>nw.terminal.options_json</code>.
*/
public void setOptionsJson(String value) {
set(5, value);
}
/**
* Getter for <code>nw.terminal.options_json</code>.
*/
public String getOptionsJson() {
return (String) get(5);
}
/**
* Setter for <code>nw.terminal.risk_coverage</code>.
*/
public void setRiskCoverage(String value) {
set(6, value);
}
/**
* Getter for <code>nw.terminal.risk_coverage</code>.
*/
public String getRiskCoverage() {
return (String) get(6);
}
/**
* Setter for <code>nw.terminal.terms_json</code>.
*/
public void setTermsJson(String value) {
set(7, value);
}
/**
* Getter for <code>nw.terminal.terms_json</code>.
*/
public String getTermsJson() {
return (String) get(7);
}
/**
* Setter for <code>nw.terminal.wtime</code>.
*/
public void setWtime(LocalDateTime value) {
set(8, value);
}
/**
* Getter for <code>nw.terminal.wtime</code>.
*/
public LocalDateTime getWtime() {
return (LocalDateTime) get(8);
}
/**
* Setter for <code>nw.terminal.current</code>.
*/
public void setCurrent(Boolean value) {
set(9, value);
}
/**
* Getter for <code>nw.terminal.current</code>.
*/
public Boolean getCurrent() {
return (Boolean) get(9);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record10 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Row10<Long, Long, Integer, String, String, String, String, String, LocalDateTime, Boolean> fieldsRow() {
return (Row10) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public Row10<Long, Long, Integer, String, String, String, String, String, LocalDateTime, Boolean> valuesRow() {
return (Row10) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field1() {
return Terminal.TERMINAL.ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Long> field2() {
return Terminal.TERMINAL.VERSION_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Integer> field3() {
return Terminal.TERMINAL.TERMINAL_REF_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field4() {
return Terminal.TERMINAL.NAME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field5() {
return Terminal.TERMINAL.DESCRIPTION;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field6() {
return Terminal.TERMINAL.OPTIONS_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field7() {
return Terminal.TERMINAL.RISK_COVERAGE;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field8() {
return Terminal.TERMINAL.TERMS_JSON;
}
/**
* {@inheritDoc}
*/
@Override
public Field<LocalDateTime> field9() {
return Terminal.TERMINAL.WTIME;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Boolean> field10() {
return Terminal.TERMINAL.CURRENT;
}
/**
* {@inheritDoc}
*/
@Override
public Long value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public Long value2() {
return getVersionId();
}
/**
* {@inheritDoc}
*/
@Override
public Integer value3() {
return getTerminalRefId();
}
/**
* {@inheritDoc}
*/
@Override
public String value4() {
return getName();
}
/**
* {@inheritDoc}
*/
@Override
public String value5() {
return getDescription();
}
/**
* {@inheritDoc}
*/
@Override
public String value6() {
return getOptionsJson();
}
/**
* {@inheritDoc}
*/
@Override
public String value7() {
return getRiskCoverage();
}
/**
* {@inheritDoc}
*/
@Override
public String value8() {
return getTermsJson();
}
/**
* {@inheritDoc}
*/
@Override
public LocalDateTime value9() {
return getWtime();
}
/**
* {@inheritDoc}
*/
@Override
public Boolean value10() {
return getCurrent();
}
/**
* {@inheritDoc}
*/
@Override
public TerminalRecord value1(Long value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TerminalRecord value2(Long value) {
setVersionId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TerminalRecord value3(Integer value) {
setTerminalRefId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TerminalRecord value4(String value) {
setName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TerminalRecord value5(String value) {
setDescription(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TerminalRecord value6(String value) {
setOptionsJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TerminalRecord value7(String value) {
setRiskCoverage(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TerminalRecord value8(String value) {
setTermsJson(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TerminalRecord value9(LocalDateTime value) {
setWtime(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TerminalRecord value10(Boolean value) {
setCurrent(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TerminalRecord values(Long value1, Long value2, Integer value3, String value4, String value5, String value6, String value7, String value8, LocalDateTime value9, Boolean value10) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
value8(value8);
value9(value9);
value10(value10);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached TerminalRecord
*/
public TerminalRecord() {
super(Terminal.TERMINAL);
}
/**
* Create a detached, initialised TerminalRecord
*/
public TerminalRecord(Long id, Long versionId, Integer terminalRefId, String name, String description, String optionsJson, String riskCoverage, String termsJson, LocalDateTime wtime, Boolean current) {
super(Terminal.TERMINAL);
set(0, id);
set(1, versionId);
set(2, terminalRefId);
set(3, name);
set(4, description);
set(5, optionsJson);
set(6, riskCoverage);
set(7, termsJson);
set(8, wtime);
set(9, current);
}
}

View File

@ -2,19 +2,43 @@ package com.rbkmoney.newway.poller.dominant;
import com.rbkmoney.damsel.domain.DomainObject; import com.rbkmoney.damsel.domain.DomainObject;
import com.rbkmoney.damsel.domain_config.Operation; import com.rbkmoney.damsel.domain_config.Operation;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
public abstract class AbstractDominantHandler implements DominantHandler<Operation> { /**
*
* @param <T> - damsel object class (CategoryObject, CurrencyObject etc.)
* @param <C> - jooq object class (Category, Currency etc.)
* @param <I> - object reference id class (Integer, String etc.)
*/
public abstract class AbstractDominantHandler<T, C, I> implements DominantHandler<Operation> {
private final Logger log = LoggerFactory.getLogger(this.getClass());
private DomainObject domainObject; private DomainObject domainObject;
protected DomainObject getDomainObject() {
return domainObject;
}
protected abstract DomainObjectDao<C, I> getDomainObjectDao();
protected abstract T getObject();
protected abstract I getObjectRefId();
protected abstract boolean acceptDomainObject();
public abstract C convertToDatabaseObject(T object, Long versionId, boolean current);
@Override @Override
public void handle(Operation operation, Long versionId) { public void handle(Operation operation, Long versionId) {
T object = getObject();
if (operation.isSetInsert()) { if (operation.isSetInsert()) {
insertDomainObject(domainObject, versionId); insertDomainObject(object, versionId);
} else if (operation.isSetUpdate()) { } else if (operation.isSetUpdate()) {
updateDomainObject(domainObject, versionId); updateDomainObject(object, versionId);
} else if (operation.isSetRemove()) { } else if (operation.isSetRemove()) {
removeDomainObject(domainObject, versionId); removeDomainObject(object, versionId);
} else { } else {
throw new IllegalStateException("Unknown type of operation. Only insert/update/remove supports. Operation: " + operation); throw new IllegalStateException("Unknown type of operation. Only insert/update/remove supports. Operation: " + operation);
} }
@ -31,11 +55,27 @@ public abstract class AbstractDominantHandler implements DominantHandler<Operati
} else { } else {
throw new IllegalStateException("Unknown type of operation. Only insert/update/remove supports. Operation: " + operation); throw new IllegalStateException("Unknown type of operation. Only insert/update/remove supports. Operation: " + operation);
} }
return acceptDomainObject(domainObject); return acceptDomainObject();
} }
protected abstract boolean acceptDomainObject(DomainObject domainObject); @Transactional(propagation = Propagation.REQUIRED)
protected abstract void insertDomainObject(DomainObject domainObject, Long versionId); public void insertDomainObject(T object, Long versionId) {
protected abstract void updateDomainObject(DomainObject domainObject, Long versionId); log.info("Start to insert '{}' with id={}, versionId={}", object.getClass().getSimpleName(), getObjectRefId(), versionId);
protected abstract void removeDomainObject(DomainObject domainObject, Long versionId); getDomainObjectDao().save(convertToDatabaseObject(object, versionId, true));
log.info("End to insert '{}' with id={}, versionId={}", object.getClass().getSimpleName(), getObjectRefId(), versionId);
}
@Transactional(propagation = Propagation.REQUIRED)
public void updateDomainObject(T object, Long versionId) {
log.info("Start to update '{}' with id={}, versionId={}", object.getClass().getSimpleName(), getObjectRefId(), versionId);
getDomainObjectDao().updateNotCurrent(getObjectRefId());
getDomainObjectDao().save(convertToDatabaseObject(object, versionId, true));
log.info("End to update '{}' with id={}, versionId={}", object.getClass().getSimpleName(), getObjectRefId(), versionId);
}
@Transactional(propagation = Propagation.REQUIRED)
public void removeDomainObject(T object, Long versionId) {
log.info("Start to remove '{}' with id={}, versionId={}", object.getClass().getSimpleName(), getObjectRefId(), versionId);
getDomainObjectDao().updateNotCurrent(getObjectRefId());
getDomainObjectDao().save(convertToDatabaseObject(object, versionId, false));
log.info("End to remove '{}' with id={}, versionId={}", object.getClass().getSimpleName(), getObjectRefId(), versionId);
}
} }

View File

@ -4,45 +4,59 @@ import com.rbkmoney.damsel.domain_config.Commit;
import com.rbkmoney.damsel.domain_config.Operation; import com.rbkmoney.damsel.domain_config.Operation;
import com.rbkmoney.damsel.domain_config.RepositorySrv; import com.rbkmoney.damsel.domain_config.RepositorySrv;
import com.rbkmoney.newway.service.DominantService; import com.rbkmoney.newway.service.DominantService;
import com.rbkmoney.newway.util.JsonUtil;
import org.apache.thrift.TException; import org.apache.thrift.TException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.DependsOn; import org.springframework.context.annotation.DependsOn;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.Comparator; import java.util.Comparator;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.concurrent.atomic.AtomicLong;
@Service @Component
@DependsOn("dbInitializer") @DependsOn("dbInitializer")
public class DominantPoller { public class DominantPoller {
private final List<DominantHandler> handlers; private final Logger log = LoggerFactory.getLogger(this.getClass());
private final RepositorySrv.Iface dominantClient; private final RepositorySrv.Iface dominantClient;
private final DominantProcessor dominantProcessor;
private final int maxQuerySize; private final int maxQuerySize;
private long after; private long after;
public DominantPoller(List<DominantHandler> handlers, RepositorySrv.Iface dominantClient, public DominantPoller(RepositorySrv.Iface dominantClient, DominantProcessor dominantProcessor,
DominantService dominantService, @Value("${dmt.polling.maxQuerySize}") int maxQuerySize) { DominantService dominantService, @Value("${dmt.polling.maxQuerySize}") int maxQuerySize) {
this.handlers = handlers;
this.dominantClient = dominantClient; this.dominantClient = dominantClient;
this.dominantProcessor = dominantProcessor;
this.after = dominantService.getLastVersionId().orElse(0L); this.after = dominantService.getLastVersionId().orElse(0L);
this.maxQuerySize = maxQuerySize; this.maxQuerySize = maxQuerySize;
} }
@Scheduled(fixedDelayString = "${dmt.polling.delay}") @Scheduled(fixedDelayString = "${dmt.polling.delay}")
public void process() throws TException { public void process() {
Map<Long, Commit> pullRange = dominantClient.pullRange(after, maxQuerySize); Map<Long, Commit> pullRange;
pullRange.entrySet().stream().sorted(Comparator.comparing(Map.Entry::getKey)).forEach(e -> { final AtomicLong versionId = new AtomicLong();
List<Operation> operations = e.getValue().getOps(); try {
Long versionId = e.getKey(); pullRange = dominantClient.pullRange(after, maxQuerySize);
operations.forEach(op -> handlers.forEach(h -> { pullRange.entrySet().stream().sorted(Comparator.comparing(Map.Entry::getKey)).forEach(e -> {
if (h.accept(op)) { try {
h.handle(op, versionId); versionId.set(e.getKey());
dominantProcessor.processCommit(versionId.get(), e);
after = versionId.get();
} catch (RuntimeException ex) {
throw new RuntimeException(String.format("Unexpected error when polling dominant, versionId=%d, pullRange=%s",
versionId.get(), pullRange.toString()), ex);
} }
})); });
after = versionId; } catch (TException e) {
}); log.warn("Error to polling dominant, after={}", after, e);
}
} }
} }

View File

@ -0,0 +1,38 @@
package com.rbkmoney.newway.poller.dominant;
import com.rbkmoney.damsel.domain_config.Commit;
import com.rbkmoney.damsel.domain_config.Operation;
import com.rbkmoney.newway.util.JsonUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Map;
@Component
public class DominantProcessor {
private final Logger log = LoggerFactory.getLogger(this.getClass());
private final List<DominantHandler> handlers;
public DominantProcessor(List<DominantHandler> handlers) {
this.handlers = handlers;
}
@Transactional(propagation = Propagation.REQUIRED)
public void processCommit(long versionId, Map.Entry<Long, Commit> e) {
List<Operation> operations = e.getValue().getOps();
operations.forEach(op -> handlers.forEach(h -> {
if (h.accept(op)) {
log.info("Start to process commit with versionId={} operation={} ", versionId, JsonUtil.tBaseToJsonString(op));
h.handle(op, versionId);
log.info("End to process commit with versionId={}", versionId);
}
}));
}
}

View File

@ -0,0 +1,69 @@
package com.rbkmoney.newway.poller.dominant.impl;
import com.fasterxml.jackson.databind.JsonNode;
import com.rbkmoney.damsel.domain.CalendarObject;
import com.rbkmoney.geck.common.util.TypeUtil;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.dao.dominant.impl.CalendarDaoImpl;
import com.rbkmoney.newway.domain.tables.pojos.Calendar;
import com.rbkmoney.newway.poller.dominant.AbstractDominantHandler;
import com.rbkmoney.newway.util.JsonUtil;
import org.springframework.stereotype.Component;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
@Component
public class CalendarHandler extends AbstractDominantHandler<CalendarObject, Calendar, Integer> {
private final CalendarDaoImpl calendarDao;
public CalendarHandler(CalendarDaoImpl calendarDao) {
this.calendarDao = calendarDao;
}
@Override
protected DomainObjectDao<Calendar, Integer> getDomainObjectDao() {
return calendarDao;
}
@Override
protected CalendarObject getObject() {
return getDomainObject().getCalendar();
}
@Override
protected Integer getObjectRefId() {
return getObject().getRef().getId();
}
@Override
protected boolean acceptDomainObject() {
return getDomainObject().isSetCalendar();
}
@Override
public Calendar convertToDatabaseObject(CalendarObject calendarObject, Long versionId, boolean current) {
Calendar calendar = new Calendar();
calendar.setVersionId(versionId);
calendar.setCalendarRefId(getObjectRefId());
com.rbkmoney.damsel.domain.Calendar data = calendarObject.getData();
calendar.setName(data.getName());
calendar.setDescription(data.getDescription());
calendar.setTimezone(data.getTimezone());
if (data.isSetFirstDayOfWeek()) {
calendar.setFirstDayOfWeek(data.getFirstDayOfWeek().getValue());
}
Map<Integer, Set<JsonNode>> holidaysJsonNodeMap = data.getHolidays().entrySet()
.stream()
.collect(Collectors.toMap(Map.Entry::getKey,
e -> e.getValue()
.stream()
.map(JsonUtil::tBaseToJsonNode)
.collect(Collectors.toSet())));
calendar.setHolidaysJson(JsonUtil.objectToJsonString(holidaysJsonNodeMap));
calendar.setCurrent(current);
return calendar;
}
}

View File

@ -1,58 +1,53 @@
package com.rbkmoney.newway.poller.dominant.impl; package com.rbkmoney.newway.poller.dominant.impl;
import com.rbkmoney.damsel.domain.DomainObject; import com.rbkmoney.damsel.domain.CategoryObject;
import com.rbkmoney.newway.dao.dominant.iface.CategoryDao; import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.dao.dominant.impl.CategoryDaoImpl;
import com.rbkmoney.newway.domain.tables.pojos.Category; import com.rbkmoney.newway.domain.tables.pojos.Category;
import com.rbkmoney.newway.poller.dominant.AbstractDominantHandler; import com.rbkmoney.newway.poller.dominant.AbstractDominantHandler;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
@Component @Component
public class CategoryHandler extends AbstractDominantHandler { public class CategoryHandler extends AbstractDominantHandler<CategoryObject, Category, Integer> {
private final CategoryDao categoryDao; private final CategoryDaoImpl categoryDao;
public CategoryHandler(CategoryDao categoryDao) { public CategoryHandler(CategoryDaoImpl categoryDao) {
this.categoryDao = categoryDao; this.categoryDao = categoryDao;
} }
@Override @Override
protected boolean acceptDomainObject(DomainObject domainObject) { protected DomainObjectDao<Category, Integer> getDomainObjectDao() {
return domainObject.isSetCategory(); return categoryDao;
} }
@Override @Override
@Transactional(propagation = Propagation.REQUIRED) protected CategoryObject getObject() {
protected void insertDomainObject(DomainObject domainObject, Long versionId) { return getDomainObject().getCategory();
saveNewCategory(domainObject, versionId, true);
} }
@Override @Override
@Transactional(propagation = Propagation.REQUIRED) protected Integer getObjectRefId() {
protected void updateDomainObject(DomainObject domainObject, Long versionId) { return getObject().getRef().getId();
categoryDao.updateNotCurrent(domainObject.getCategory().getRef().getId());
saveNewCategory(domainObject, versionId, true);
} }
@Override @Override
@Transactional(propagation = Propagation.REQUIRED) protected boolean acceptDomainObject() {
protected void removeDomainObject(DomainObject domainObject, Long versionId) { return getDomainObject().isSetCategory();
categoryDao.updateNotCurrent(domainObject.getCategory().getRef().getId());
saveNewCategory(domainObject, versionId, false);
} }
private void saveNewCategory(DomainObject domainObject, Long versionId, boolean current) { @Override
public Category convertToDatabaseObject(CategoryObject categoryObject, Long versionId, boolean current) {
Category category = new Category(); Category category = new Category();
category.setVersionId(versionId); category.setVersionId(versionId);
category.setCategoryId(domainObject.getCategory().getRef().getId()); category.setCategoryRefId(getObjectRefId());
com.rbkmoney.damsel.domain.Category data = domainObject.getCategory().getData(); com.rbkmoney.damsel.domain.Category data = categoryObject.getData();
category.setName(data.getName()); category.setName(data.getName());
category.setDescription(data.getDescription()); category.setDescription(data.getDescription());
if (data.isSetType()) { if (data.isSetType()) {
category.setType(data.getType().name()); category.setType(data.getType().name());
} }
category.setCurrent(current); category.setCurrent(current);
categoryDao.save(category); return category;
} }
} }

View File

@ -0,0 +1,52 @@
package com.rbkmoney.newway.poller.dominant.impl;
import com.rbkmoney.damsel.domain.CurrencyObject;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.dao.dominant.impl.CurrencyDaoImpl;
import com.rbkmoney.newway.domain.tables.pojos.Currency;
import com.rbkmoney.newway.poller.dominant.AbstractDominantHandler;
import org.springframework.stereotype.Component;
@Component
public class CurrencyHandler extends AbstractDominantHandler<CurrencyObject, Currency, String> {
private final CurrencyDaoImpl currencyDao;
public CurrencyHandler(CurrencyDaoImpl currencyDao) {
this.currencyDao = currencyDao;
}
@Override
protected DomainObjectDao<Currency, String> getDomainObjectDao() {
return currencyDao;
}
@Override
protected CurrencyObject getObject() {
return getDomainObject().getCurrency();
}
@Override
protected String getObjectRefId() {
return getObject().getRef().getSymbolicCode();
}
@Override
protected boolean acceptDomainObject() {
return getDomainObject().isSetCurrency();
}
@Override
public Currency convertToDatabaseObject(CurrencyObject currencyObject, Long versionId, boolean current) {
Currency currency = new Currency();
currency.setVersionId(versionId);
currency.setCurrencyRefId(getObjectRefId());
com.rbkmoney.damsel.domain.Currency data = currencyObject.getData();
currency.setName(data.getName());
currency.setSymbolicCode(data.getSymbolicCode());
currency.setNumericCode(data.getNumericCode());
currency.setExponent(data.getExponent());
currency.setCurrent(current);
return currency;
}
}

View File

@ -0,0 +1,62 @@
package com.rbkmoney.newway.poller.dominant.impl;
import com.fasterxml.jackson.databind.JsonNode;
import com.rbkmoney.damsel.domain.InspectorObject;
import com.rbkmoney.geck.common.util.TypeUtil;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.dao.dominant.impl.InspectorDaoImpl;
import com.rbkmoney.newway.domain.tables.pojos.Inspector;
import com.rbkmoney.newway.poller.dominant.AbstractDominantHandler;
import com.rbkmoney.newway.util.JsonUtil;
import org.springframework.stereotype.Component;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
@Component
public class InspectorHandler extends AbstractDominantHandler<InspectorObject, Inspector, Integer> {
private final InspectorDaoImpl inspectorDao;
public InspectorHandler(InspectorDaoImpl inspectorDao) {
this.inspectorDao = inspectorDao;
}
@Override
protected DomainObjectDao<Inspector, Integer> getDomainObjectDao() {
return inspectorDao;
}
@Override
protected InspectorObject getObject() {
return getDomainObject().getInspector();
}
@Override
protected Integer getObjectRefId() {
return getObject().getRef().getId();
}
@Override
protected boolean acceptDomainObject() {
return getDomainObject().isSetInspector();
}
@Override
public Inspector convertToDatabaseObject(InspectorObject inspectorObject, Long versionId, boolean current) {
Inspector inspector = new Inspector();
inspector.setVersionId(versionId);
inspector.setInspectorRefId(getObjectRefId());
com.rbkmoney.damsel.domain.Inspector data = inspectorObject.getData();
inspector.setName(data.getName());
inspector.setDescription(data.getDescription());
inspector.setProxyRefId(data.getProxy().getRef().getId());
inspector.setProxyAdditionalJson(JsonUtil.objectToJsonString(data.getProxy().getAdditional()));
if (data.isSetFallbackRiskScore()) {
inspector.setFallbackRiskScore(data.getFallbackRiskScore().name());
}
inspector.setCurrent(current);
return inspector;
}
}

View File

@ -0,0 +1,65 @@
package com.rbkmoney.newway.poller.dominant.impl;
import com.rbkmoney.damsel.domain.PaymentInstitutionObject;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.dao.dominant.impl.PaymentInstitutionDaoImpl;
import com.rbkmoney.newway.domain.tables.pojos.PaymentInstitution;
import com.rbkmoney.newway.poller.dominant.AbstractDominantHandler;
import com.rbkmoney.newway.util.JsonUtil;
import org.springframework.stereotype.Component;
import java.util.stream.Collectors;
@Component
public class PaymentInstitutionHandler extends AbstractDominantHandler<PaymentInstitutionObject, PaymentInstitution, Integer> {
private final PaymentInstitutionDaoImpl paymentInstitutionDao;
public PaymentInstitutionHandler(PaymentInstitutionDaoImpl paymentInstitutionDao) {
this.paymentInstitutionDao = paymentInstitutionDao;
}
@Override
protected DomainObjectDao<PaymentInstitution, Integer> getDomainObjectDao() {
return paymentInstitutionDao;
}
@Override
protected PaymentInstitutionObject getObject() {
return getDomainObject().getPaymentInstitution();
}
@Override
protected Integer getObjectRefId() {
return getObject().getRef().getId();
}
@Override
protected boolean acceptDomainObject() {
return getDomainObject().isSetPaymentInstitution();
}
@Override
public PaymentInstitution convertToDatabaseObject(PaymentInstitutionObject paymentInstitutionObject, Long versionId, boolean current) {
PaymentInstitution paymentInstitution = new PaymentInstitution();
paymentInstitution.setVersionId(versionId);
paymentInstitution.setPaymentInstitutionRefId(getObjectRefId());
com.rbkmoney.damsel.domain.PaymentInstitution data = paymentInstitutionObject.getData();
paymentInstitution.setName(data.getName());
paymentInstitution.setDescription(data.getDescription());
if (data.isSetCalendar()) {
paymentInstitution.setCalendarRefId(data.getCalendar().getId());
}
paymentInstitution.setSystemAccountSetJson(JsonUtil.tBaseToJsonString(data.getSystemAccountSet()));
paymentInstitution.setDefaultContractTemplateJson(JsonUtil.tBaseToJsonString(data.getDefaultContractTemplate()));
if (data.isSetDefaultWalletContractTemplate()) {
paymentInstitution.setDefaultWalletContractTemplateJson(JsonUtil.tBaseToJsonString(data.getDefaultWalletContractTemplate()));
}
paymentInstitution.setProvidersJson(JsonUtil.tBaseToJsonString(data.getProviders()));
paymentInstitution.setInspectorJson(JsonUtil.tBaseToJsonString(data.getInspector()));
paymentInstitution.setRealm(data.getRealm().name());
paymentInstitution.setResidencesJson(JsonUtil.objectToJsonString(data.getResidences().stream().map(Enum::name).collect(Collectors.toSet())));
paymentInstitution.setCurrent(current);
return paymentInstitution;
}
}

View File

@ -0,0 +1,68 @@
package com.rbkmoney.newway.poller.dominant.impl;
import com.rbkmoney.damsel.domain.PaymentMethodObject;
import com.rbkmoney.damsel.domain.TokenizedBankCard;
import com.rbkmoney.geck.common.util.TBaseUtil;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.dao.dominant.impl.PaymentMethodDaoImpl;
import com.rbkmoney.newway.domain.enums.PaymentMethodType;
import com.rbkmoney.newway.domain.tables.pojos.PaymentMethod;
import com.rbkmoney.newway.poller.dominant.AbstractDominantHandler;
import org.springframework.stereotype.Component;
@Component
public class PaymentMethodHandler extends AbstractDominantHandler<PaymentMethodObject, PaymentMethod, String> {
private final PaymentMethodDaoImpl paymentMethodDao;
public PaymentMethodHandler(PaymentMethodDaoImpl paymentMethodDao) {
this.paymentMethodDao = paymentMethodDao;
}
@Override
protected DomainObjectDao<PaymentMethod, String> getDomainObjectDao() {
return paymentMethodDao;
}
@Override
protected PaymentMethodObject getObject() {
return getDomainObject().getPaymentMethod();
}
@Override
protected String getObjectRefId() {
com.rbkmoney.damsel.domain.PaymentMethod paymentMethodObjectRefId = getObject().getRef().getId();
String paymentMethodRefId;
if (paymentMethodObjectRefId.isSetBankCard()) {
paymentMethodRefId = paymentMethodObjectRefId.getBankCard().name();
} else if (paymentMethodObjectRefId.isSetPaymentTerminal()) {
paymentMethodRefId = paymentMethodObjectRefId.getPaymentTerminal().name();
} else if (paymentMethodObjectRefId.isSetDigitalWallet()) {
paymentMethodRefId = paymentMethodObjectRefId.getDigitalWallet().name();
} else if (paymentMethodObjectRefId.isSetTokenizedBankCard()) {
TokenizedBankCard tokenizedBankCard = paymentMethodObjectRefId.getTokenizedBankCard();
paymentMethodRefId = tokenizedBankCard.getPaymentSystem().name() + "_" + tokenizedBankCard.getTokenProvider().name();
} else {
throw new IllegalArgumentException("Unknown payment method: " + paymentMethodObjectRefId);
}
return paymentMethodRefId;
}
@Override
protected boolean acceptDomainObject() {
return getDomainObject().isSetPaymentMethod();
}
@Override
public PaymentMethod convertToDatabaseObject(PaymentMethodObject paymentMethodObject, Long versionId, boolean current) {
PaymentMethod paymentMethod = new PaymentMethod();
paymentMethod.setVersionId(versionId);
paymentMethod.setPaymentMethodRefId(getObjectRefId());
com.rbkmoney.damsel.domain.PaymentMethodDefinition data = paymentMethodObject.getData();
paymentMethod.setName(data.getName());
paymentMethod.setDescription(data.getDescription());
paymentMethod.setType(TBaseUtil.unionFieldToEnum(paymentMethodObject.getRef().getId(), PaymentMethodType.class));
paymentMethod.setCurrent(current);
return paymentMethod;
}
}

View File

@ -0,0 +1,51 @@
package com.rbkmoney.newway.poller.dominant.impl;
import com.rbkmoney.damsel.domain.PayoutMethodDefinition;
import com.rbkmoney.damsel.domain.PayoutMethodObject;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.dao.dominant.impl.PayoutMethodDaoImpl;
import com.rbkmoney.newway.domain.tables.pojos.PayoutMethod;
import com.rbkmoney.newway.poller.dominant.AbstractDominantHandler;
import org.springframework.stereotype.Component;
@Component
public class PayoutMethodHandler extends AbstractDominantHandler<PayoutMethodObject, PayoutMethod, String> {
private final PayoutMethodDaoImpl payoutMethodDao;
public PayoutMethodHandler(PayoutMethodDaoImpl payoutMethodDao) {
this.payoutMethodDao = payoutMethodDao;
}
@Override
protected DomainObjectDao<PayoutMethod, String> getDomainObjectDao() {
return payoutMethodDao;
}
@Override
protected PayoutMethodObject getObject() {
return getDomainObject().getPayoutMethod();
}
@Override
protected String getObjectRefId() {
return getObject().getRef().getId().name();
}
@Override
protected boolean acceptDomainObject() {
return getDomainObject().isSetPayoutMethod();
}
@Override
public PayoutMethod convertToDatabaseObject(PayoutMethodObject payoutMethodObject, Long versionId, boolean current) {
PayoutMethod payoutMethod = new PayoutMethod();
payoutMethod.setVersionId(versionId);
payoutMethod.setPayoutMethodRefId(getObjectRefId());
PayoutMethodDefinition data = payoutMethodObject.getData();
payoutMethod.setName(data.getName());
payoutMethod.setDescription(data.getDescription());
payoutMethod.setCurrent(current);
return payoutMethod;
}
}

View File

@ -0,0 +1,70 @@
package com.rbkmoney.newway.poller.dominant.impl;
import com.rbkmoney.damsel.domain.ProviderObject;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.dao.dominant.impl.ProviderDaoImpl;
import com.rbkmoney.newway.domain.tables.pojos.Provider;
import com.rbkmoney.newway.poller.dominant.AbstractDominantHandler;
import com.rbkmoney.newway.util.JsonUtil;
import org.springframework.stereotype.Component;
import java.util.Map;
import java.util.stream.Collectors;
@Component
public class ProviderHandler extends AbstractDominantHandler<ProviderObject, Provider, Integer> {
private final ProviderDaoImpl providerDao;
public ProviderHandler(ProviderDaoImpl providerDao) {
this.providerDao = providerDao;
}
@Override
protected DomainObjectDao<Provider, Integer> getDomainObjectDao() {
return providerDao;
}
@Override
protected ProviderObject getObject() {
return getDomainObject().getProvider();
}
@Override
protected Integer getObjectRefId() {
return getObject().getRef().getId();
}
@Override
protected boolean acceptDomainObject() {
return getDomainObject().isSetProvider();
}
@Override
public Provider convertToDatabaseObject(ProviderObject providerObject, Long versionId, boolean current) {
Provider provider = new Provider();
provider.setVersionId(versionId);
provider.setProviderRefId(getObjectRefId());
com.rbkmoney.damsel.domain.Provider data = providerObject.getData();
provider.setName(data.getName());
provider.setDescription(data.getDescription());
provider.setProxyRefId(data.getProxy().getRef().getId());
provider.setProxyAdditionalJson(JsonUtil.objectToJsonString(data.getProxy().getAdditional()));
provider.setTerminalJson(JsonUtil.tBaseToJsonString(data.getTerminal()));
provider.setAbsAccount(data.getAbsAccount());
if (data.isSetPaymentTerms()) {
provider.setPaymentTermsJson(JsonUtil.tBaseToJsonString(data.getPaymentTerms()));
}
if (data.isSetRecurrentPaytoolTerms()) {
provider.setRecurrentPaytoolTermsJson(JsonUtil.tBaseToJsonString(data.getRecurrentPaytoolTerms()));
}
if (data.isSetAbsAccount()) {
Map<String, Long> accountsMap = data.getAccounts().entrySet()
.stream()
.collect(Collectors.toMap(e -> e.getKey().getSymbolicCode(), e -> e.getValue().getSettlement()));
provider.setAccountsJson(JsonUtil.objectToJsonString(accountsMap));
}
provider.setCurrent(current);
return provider;
}
}

View File

@ -0,0 +1,54 @@
package com.rbkmoney.newway.poller.dominant.impl;
import com.rbkmoney.damsel.domain.ProxyDefinition;
import com.rbkmoney.damsel.domain.ProxyObject;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.dao.dominant.impl.ProxyDaoImpl;
import com.rbkmoney.newway.domain.tables.pojos.Proxy;
import com.rbkmoney.newway.poller.dominant.AbstractDominantHandler;
import com.rbkmoney.newway.util.JsonUtil;
import org.springframework.stereotype.Component;
@Component
public class ProxyHandler extends AbstractDominantHandler<ProxyObject, Proxy, Integer> {
private final ProxyDaoImpl proxyDao;
public ProxyHandler(ProxyDaoImpl proxyDao) {
this.proxyDao = proxyDao;
}
@Override
protected DomainObjectDao<Proxy, Integer> getDomainObjectDao() {
return proxyDao;
}
@Override
protected ProxyObject getObject() {
return getDomainObject().getProxy();
}
@Override
protected Integer getObjectRefId() {
return getObject().getRef().getId();
}
@Override
protected boolean acceptDomainObject() {
return getDomainObject().isSetProxy();
}
@Override
public Proxy convertToDatabaseObject(ProxyObject proxyObject, Long versionId, boolean current) {
Proxy proxy = new Proxy();
proxy.setVersionId(versionId);
proxy.setProxyRefId(getObjectRefId());
ProxyDefinition data = proxyObject.getData();
proxy.setName(data.getName());
proxy.setDescription(data.getDescription());
proxy.setUrl(data.getUrl());
proxy.setOptionsJson(JsonUtil.objectToJsonString(data.getOptions()));
proxy.setCurrent(current);
return proxy;
}
}

View File

@ -0,0 +1,57 @@
package com.rbkmoney.newway.poller.dominant.impl;
import com.rbkmoney.damsel.domain.TermSetHierarchyObject;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.dao.dominant.impl.TermSetHierarchyDaoImpl;
import com.rbkmoney.newway.domain.tables.pojos.TermSetHierarchy;
import com.rbkmoney.newway.poller.dominant.AbstractDominantHandler;
import com.rbkmoney.newway.util.JsonUtil;
import org.springframework.stereotype.Component;
import java.util.stream.Collectors;
@Component
public class TermSetHierarchyHandler extends AbstractDominantHandler<TermSetHierarchyObject, TermSetHierarchy, Integer> {
private final TermSetHierarchyDaoImpl termSetHierarchyDao;
public TermSetHierarchyHandler(TermSetHierarchyDaoImpl termSetHierarchyDao) {
this.termSetHierarchyDao = termSetHierarchyDao;
}
@Override
protected DomainObjectDao<TermSetHierarchy, Integer> getDomainObjectDao() {
return termSetHierarchyDao;
}
@Override
protected TermSetHierarchyObject getObject() {
return getDomainObject().getTermSetHierarchy();
}
@Override
protected Integer getObjectRefId() {
return getObject().getRef().getId();
}
@Override
protected boolean acceptDomainObject() {
return getDomainObject().isSetTermSetHierarchy();
}
@Override
public TermSetHierarchy convertToDatabaseObject(TermSetHierarchyObject termSetHierarchyObject, Long versionId, boolean current) {
TermSetHierarchy termSetHierarchy = new TermSetHierarchy();
termSetHierarchy.setVersionId(versionId);
termSetHierarchy.setTermSetHierarchyRefId(getObjectRefId());
com.rbkmoney.damsel.domain.TermSetHierarchy data = termSetHierarchyObject.getData();
termSetHierarchy.setName(data.getName());
termSetHierarchy.setDescription(data.getDescription());
if (data.isSetParentTerms()) {
termSetHierarchy.setParentTermsRefId(data.getParentTerms().getId());
}
termSetHierarchy.setTermSetsJson(JsonUtil.objectToJsonString(data.getTermSets().stream().map(JsonUtil::tBaseToJsonNode).collect(Collectors.toList())));
termSetHierarchy.setCurrent(current);
return termSetHierarchy;
}
}

View File

@ -0,0 +1,58 @@
package com.rbkmoney.newway.poller.dominant.impl;
import com.rbkmoney.damsel.domain.TerminalObject;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.dao.dominant.impl.TerminalDaoImpl;
import com.rbkmoney.newway.domain.tables.pojos.Terminal;
import com.rbkmoney.newway.poller.dominant.AbstractDominantHandler;
import com.rbkmoney.newway.util.JsonUtil;
import org.springframework.stereotype.Component;
@Component
public class TerminalHandler extends AbstractDominantHandler<TerminalObject, Terminal, Integer> {
private final TerminalDaoImpl terminalDao;
public TerminalHandler(TerminalDaoImpl terminalDao) {
this.terminalDao = terminalDao;
}
@Override
protected DomainObjectDao<Terminal, Integer> getDomainObjectDao() {
return terminalDao;
}
@Override
protected TerminalObject getObject() {
return getDomainObject().getTerminal();
}
@Override
protected Integer getObjectRefId() {
return getObject().getRef().getId();
}
@Override
protected boolean acceptDomainObject() {
return getDomainObject().isSetTerminal();
}
@Override
public Terminal convertToDatabaseObject(TerminalObject terminalObject, Long versionId, boolean current) {
Terminal terminal = new Terminal();
terminal.setVersionId(versionId);
terminal.setTerminalRefId(getObjectRefId());
com.rbkmoney.damsel.domain.Terminal data = terminalObject.getData();
terminal.setName(data.getName());
terminal.setDescription(data.getDescription());
if (data.isSetOptions()) {
terminal.setOptionsJson(JsonUtil.objectToJsonString(data.getOptions()));
}
terminal.setRiskCoverage(data.getRiskCoverage().name());
if (data.isSetTerms()) {
terminal.setTermsJson(JsonUtil.tBaseToJsonString(data.getTerms()));
}
terminal.setCurrent(current);
return terminal;
}
}

View File

@ -9,7 +9,6 @@ import com.rbkmoney.eventstock.client.EventHandler;
import com.rbkmoney.newway.poller.event_stock.impl.payout.AbstractPayoutHandler; import com.rbkmoney.newway.poller.event_stock.impl.payout.AbstractPayoutHandler;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -21,8 +20,11 @@ public class PayoutEventStockHandler implements EventHandler<StockEvent> {
private final Logger log = LoggerFactory.getLogger(this.getClass()); private final Logger log = LoggerFactory.getLogger(this.getClass());
@Autowired private final List<AbstractPayoutHandler> payoutHandlers;
private List<AbstractPayoutHandler> payoutHandlers;
public PayoutEventStockHandler(List<AbstractPayoutHandler> payoutHandlers) {
this.payoutHandlers = payoutHandlers;
}
@Override @Override
public EventAction handle(StockEvent stockEvent, String subsKey) { public EventAction handle(StockEvent stockEvent, String subsKey) {

View File

@ -29,6 +29,7 @@ import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.time.Instant;
import java.util.List; import java.util.List;
@Component @Component

View File

@ -1,8 +1,6 @@
package com.rbkmoney.newway.poller.event_stock.impl.invoicing.invoice; package com.rbkmoney.newway.poller.event_stock.impl.invoicing.invoice;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.rbkmoney.damsel.domain.Invoice; import com.rbkmoney.damsel.domain.Invoice;
import com.rbkmoney.damsel.payment_processing.Event; import com.rbkmoney.damsel.payment_processing.Event;
import com.rbkmoney.damsel.payment_processing.InvoiceChange; import com.rbkmoney.damsel.payment_processing.InvoiceChange;
@ -38,8 +36,6 @@ public class InvoiceCreatedHandler extends AbstractInvoicingHandler {
private final InvoiceCartDao invoiceCartDao; private final InvoiceCartDao invoiceCartDao;
private final ObjectMapper objectMapper = new ObjectMapper();
private final Filter filter; private final Filter filter;
@Autowired @Autowired
@ -94,12 +90,8 @@ public class InvoiceCreatedHandler extends AbstractInvoicingHandler {
ic.setAmount(il.getPrice().getAmount()); ic.setAmount(il.getPrice().getAmount());
ic.setCurrencyCode(il.getPrice().getCurrency().getSymbolicCode()); ic.setCurrencyCode(il.getPrice().getCurrency().getSymbolicCode());
Map<String, JsonNode> jsonNodeMap = il.getMetadata().entrySet().stream() Map<String, JsonNode> jsonNodeMap = il.getMetadata().entrySet().stream()
.collect(Collectors.toMap(Map.Entry::getKey, e -> JsonUtil.toJsonNode(e.getValue()))); .collect(Collectors.toMap(Map.Entry::getKey, e -> JsonUtil.tBaseToJsonNode(e.getValue())));
try { ic.setMetadataJson(JsonUtil.objectToJsonString(jsonNodeMap));
ic.setMetadataJson(objectMapper.writeValueAsString(jsonNodeMap));
} catch (JsonProcessingException e) {
throw new RuntimeException("Couldn't convert map to json string: " + jsonNodeMap, e);
}
return ic; return ic;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
invoiceCartDao.save(invoiceCarts); invoiceCartDao.save(invoiceCarts);

View File

@ -1,6 +1,5 @@
package com.rbkmoney.newway.poller.event_stock.impl.invoicing.payment; package com.rbkmoney.newway.poller.event_stock.impl.invoicing.payment;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.rbkmoney.damsel.domain.ContactInfo; import com.rbkmoney.damsel.domain.ContactInfo;
import com.rbkmoney.damsel.domain.CustomerPayer; import com.rbkmoney.damsel.domain.CustomerPayer;
import com.rbkmoney.damsel.domain.InvoicePayment; import com.rbkmoney.damsel.domain.InvoicePayment;
@ -44,8 +43,6 @@ public class InvoicePaymentCreatedHandler extends AbstractInvoicingHandler {
private final CashFlowDao cashFlowDao; private final CashFlowDao cashFlowDao;
private final ObjectMapper objectMapper = new ObjectMapper();
private final Filter filter; private final Filter filter;
@Autowired @Autowired
@ -101,7 +98,7 @@ public class InvoicePaymentCreatedHandler extends AbstractInvoicingHandler {
} else if (invoicePayment.getStatus().isSetCaptured()) { } else if (invoicePayment.getStatus().isSetCaptured()) {
payment.setStatusCapturedReason(invoicePayment.getStatus().getCaptured().getReason()); payment.setStatusCapturedReason(invoicePayment.getStatus().getCaptured().getReason());
} else if (invoicePayment.getStatus().isSetFailed()) { } else if (invoicePayment.getStatus().isSetFailed()) {
payment.setStatusFailedFailure(JsonUtil.toJsonString(invoicePayment.getStatus().getFailed())); payment.setStatusFailedFailure(JsonUtil.tBaseToJsonString(invoicePayment.getStatus().getFailed()));
} }
payment.setAmount(invoicePayment.getCost().getAmount()); payment.setAmount(invoicePayment.getCost().getAmount());
payment.setCurrencyCode(invoicePayment.getCost().getCurrency().getSymbolicCode()); payment.setCurrencyCode(invoicePayment.getCost().getCurrency().getSymbolicCode());

View File

@ -80,7 +80,7 @@ public class InvoicePaymentStatusChangedHandler extends AbstractInvoicingHandler
} else if (invoicePaymentStatus.isSetFailed()) { } else if (invoicePaymentStatus.isSetFailed()) {
paymentSource.setStatusCancelledReason(null); paymentSource.setStatusCancelledReason(null);
paymentSource.setStatusCapturedReason(null); paymentSource.setStatusCapturedReason(null);
paymentSource.setStatusFailedFailure(JsonUtil.toJsonString(invoicePaymentStatus.getFailed())); paymentSource.setStatusFailedFailure(JsonUtil.tBaseToJsonString(invoicePaymentStatus.getFailed()));
} }
paymentDao.updateNotCurrent(invoiceId, paymentId); paymentDao.updateNotCurrent(invoiceId, paymentId);

View File

@ -93,7 +93,7 @@ public class InvoicePaymentRefundCreatedHandler extends AbstractInvoicingHandler
} }
refund.setStatus(status); refund.setStatus(status);
if (invoicePaymentRefund.getStatus().isSetFailed()) { if (invoicePaymentRefund.getStatus().isSetFailed()) {
refund.setStatusFailedFailure(JsonUtil.toJsonString(invoicePaymentRefund.getStatus().getFailed())); refund.setStatusFailedFailure(JsonUtil.tBaseToJsonString(invoicePaymentRefund.getStatus().getFailed()));
} }
if (invoicePaymentRefund.isSetCash()) { if (invoicePaymentRefund.isSetCash()) {

View File

@ -78,7 +78,7 @@ public class InvoicePaymentRefundStatusChangedHandler extends AbstractInvoicingH
} }
refundSource.setStatus(status); refundSource.setStatus(status);
if (invoicePaymentRefundStatus.isSetFailed()) { if (invoicePaymentRefundStatus.isSetFailed()) {
refundSource.setStatusFailedFailure(JsonUtil.toJsonString(invoicePaymentRefundStatus.getFailed())); refundSource.setStatusFailedFailure(JsonUtil.tBaseToJsonString(invoicePaymentRefundStatus.getFailed()));
} else { } else {
refundSource.setStatusFailedFailure(null); refundSource.setStatusFailedFailure(null);
} }

View File

@ -51,7 +51,7 @@ public class PartyMetaSetHandler extends AbstractPartyManagementHandler {
partySource.setEventId(eventId); partySource.setEventId(eventId);
partySource.setEventCreatedAt(TypeUtil.stringToLocalDateTime(event.getCreatedAt())); partySource.setEventCreatedAt(TypeUtil.stringToLocalDateTime(event.getCreatedAt()));
partySource.setPartyMetaSetNs(partyMetaSet.getNs()); partySource.setPartyMetaSetNs(partyMetaSet.getNs());
partySource.setPartyMetaSetDataJson(JsonUtil.toJsonString(partyMetaSet.getData())); partySource.setPartyMetaSetDataJson(JsonUtil.tBaseToJsonString(partyMetaSet.getData()));
partyDao.updateNotCurrent(partyId); partyDao.updateNotCurrent(partyId);
partyDao.save(partySource); partyDao.save(partySource);
log.info("Party metaset has been saved, eventId={}, partyId={}", eventId, partyId); log.info("Party metaset has been saved, eventId={}, partyId={}", eventId, partyId);

View File

@ -1,6 +1,8 @@
package com.rbkmoney.newway.util; package com.rbkmoney.newway.util;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.rbkmoney.geck.serializer.kit.json.JsonHandler; import com.rbkmoney.geck.serializer.kit.json.JsonHandler;
import com.rbkmoney.geck.serializer.kit.tbase.TBaseProcessor; import com.rbkmoney.geck.serializer.kit.tbase.TBaseProcessor;
import org.apache.thrift.TBase; import org.apache.thrift.TBase;
@ -8,7 +10,9 @@ import org.apache.thrift.TBase;
import java.io.IOException; import java.io.IOException;
public class JsonUtil { public class JsonUtil {
public static String toJsonString(TBase tBase) { private static final ObjectMapper objectMapper = new ObjectMapper();
public static String tBaseToJsonString(TBase tBase) {
try { try {
return new TBaseProcessor().process(tBase, new JsonHandler()).toString(); return new TBaseProcessor().process(tBase, new JsonHandler()).toString();
} catch (IOException e) { } catch (IOException e) {
@ -16,11 +20,19 @@ public class JsonUtil {
} }
} }
public static JsonNode toJsonNode(TBase tBase) { public static JsonNode tBaseToJsonNode(TBase tBase) {
try { try {
return new TBaseProcessor().process(tBase, new JsonHandler()); return new TBaseProcessor().process(tBase, new JsonHandler());
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException("Couldn't convert to json node: " + tBase, e); throw new RuntimeException("Couldn't convert to json node: " + tBase, e);
} }
} }
public static String objectToJsonString(Object o) {
try {
return objectMapper.writeValueAsString(o);
} catch (JsonProcessingException e) {
throw new RuntimeException("Couldn't convert object to json string: " + o, e);
}
}
} }

View File

@ -33,6 +33,6 @@ dmt:
url: http://dominant:8022/v1/domain/repository url: http://dominant:8022/v1/domain/repository
networkTimeout: 5000 networkTimeout: 5000
polling: polling:
delay: 10000 delay: 3000
maxQuerySize: 10 maxQuerySize: 10

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 107 KiB

View File

@ -1,12 +0,0 @@
CREATE TABLE nw.category(
id BIGSERIAL NOT NULL,
version_id BIGINT NOT NULL,
category_id INT NOT NULL,
name CHARACTER VARYING NOT NULL,
description CHARACTER VARYING NOT NULL,
type CHARACTER VARYING,
wtime TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT (now() at time zone 'utc'),
current BOOLEAN NOT NULL DEFAULT TRUE,
CONSTRAINT category_pkey PRIMARY KEY (id)
);

View File

@ -0,0 +1,198 @@
--category--
CREATE TABLE nw.category(
id BIGSERIAL NOT NULL,
version_id BIGINT NOT NULL,
category_ref_id INT NOT NULL,
name CHARACTER VARYING NOT NULL,
description CHARACTER VARYING NOT NULL,
type CHARACTER VARYING,
wtime TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT (now() at time zone 'utc'),
current BOOLEAN NOT NULL DEFAULT TRUE,
CONSTRAINT category_pkey PRIMARY KEY (id)
);
CREATE INDEX category_version_id on nw.category(version_id);
CREATE INDEX category_idx on nw.category(category_ref_id);
--currency--
CREATE TABLE nw.currency(
id BIGSERIAL NOT NULL,
version_id BIGINT NOT NULL,
currency_ref_id CHARACTER VARYING NOT NULL,
name CHARACTER VARYING NOT NULL,
symbolic_code CHARACTER VARYING NOT NULL,
numeric_code SMALLINT NOT NULL,
exponent SMALLINT NOT NULL,
wtime TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT (now() at time zone 'utc'),
current BOOLEAN NOT NULL DEFAULT TRUE,
CONSTRAINT currency_pkey PRIMARY KEY (id)
);
CREATE INDEX currency_version_id on nw.currency(version_id);
CREATE INDEX currency_idx on nw.currency(currency_ref_id);
--calendar--
CREATE TABLE nw.calendar(
id BIGSERIAL NOT NULL,
version_id BIGINT NOT NULL,
calendar_ref_id INT NOT NULL,
name CHARACTER VARYING NOT NULL,
description CHARACTER VARYING,
timezone CHARACTER VARYING NOT NULL,
holidays_json CHARACTER VARYING NOT NULL,
first_day_of_week INT,
wtime TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT (now() at time zone 'utc'),
current BOOLEAN NOT NULL DEFAULT TRUE,
CONSTRAINT calendar_pkey PRIMARY KEY (id)
);
CREATE INDEX calendar_version_id on nw.calendar(version_id);
CREATE INDEX calendar_idx on nw.calendar(calendar_ref_id);
--provider--
CREATE TABLE nw.provider(
id BIGSERIAL NOT NULL,
version_id BIGINT NOT NULL,
provider_ref_id INT NOT NULL,
name CHARACTER VARYING NOT NULL,
description CHARACTER VARYING NOT NULL,
proxy_ref_id INT NOT NULL,
proxy_additional_json CHARACTER VARYING NOT NULL,
terminal_json CHARACTER VARYING NOT NULL,
abs_account CHARACTER VARYING NOT NULL,
payment_terms_json CHARACTER VARYING,
recurrent_paytool_terms_json CHARACTER VARYING,
accounts_json CHARACTER VARYING,
wtime TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT (now() at time zone 'utc'),
current BOOLEAN NOT NULL DEFAULT TRUE,
CONSTRAINT provider_pkey PRIMARY KEY (id)
);
CREATE INDEX provider_version_id on nw.provider(version_id);
CREATE INDEX provider_idx on nw.provider(provider_ref_id);
--terminal--
CREATE TABLE nw.terminal(
id BIGSERIAL NOT NULL,
version_id BIGINT NOT NULL,
terminal_ref_id INT NOT NULL,
name CHARACTER VARYING NOT NULL,
description CHARACTER VARYING NOT NULL,
options_json CHARACTER VARYING,
risk_coverage CHARACTER VARYING NOT NULL,
terms_json CHARACTER VARYING,
wtime TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT (now() at time zone 'utc'),
current BOOLEAN NOT NULL DEFAULT TRUE,
CONSTRAINT terminal_pkey PRIMARY KEY (id)
);
CREATE INDEX terminal_version_id on nw.terminal(version_id);
CREATE INDEX terminal_idx on nw.terminal(terminal_ref_id);
--payment_method--
CREATE TYPE nw.payment_method_type AS ENUM('bank_card', 'payment_terminal', 'digital_wallet', 'tokenized_bank_card');
CREATE TABLE nw.payment_method(
id BIGSERIAL NOT NULL,
version_id BIGINT NOT NULL,
payment_method_ref_id CHARACTER VARYING NOT NULL,
name CHARACTER VARYING NOT NULL,
description CHARACTER VARYING NOT NULL,
type nw.payment_method_type NOT NULL,
wtime TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT (now() at time zone 'utc'),
current BOOLEAN NOT NULL DEFAULT TRUE,
CONSTRAINT payment_method_pkey PRIMARY KEY (id)
);
CREATE INDEX payment_method_version_id on nw.payment_method(version_id);
CREATE INDEX payment_method_idx on nw.payment_method(payment_method_ref_id);
--payout_method--
CREATE TABLE nw.payout_method(
id BIGSERIAL NOT NULL,
version_id BIGINT NOT NULL,
payout_method_ref_id CHARACTER VARYING NOT NULL,
name CHARACTER VARYING NOT NULL,
description CHARACTER VARYING NOT NULL,
wtime TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT (now() at time zone 'utc'),
current BOOLEAN NOT NULL DEFAULT TRUE,
CONSTRAINT payout_method_pkey PRIMARY KEY (id)
);
CREATE INDEX payout_method_version_id on nw.payout_method(version_id);
CREATE INDEX payout_method_idx on nw.payout_method(payout_method_ref_id);
--payment_institution--
CREATE TABLE nw.payment_institution(
id BIGSERIAL NOT NULL,
version_id BIGINT NOT NULL,
payment_institution_ref_id INT NOT NULL,
name CHARACTER VARYING NOT NULL,
description CHARACTER VARYING,
calendar_ref_id INT,
system_account_set_json CHARACTER VARYING NOT NULL,
default_contract_template_json CHARACTER VARYING NOT NULL,
default_wallet_contract_template_json CHARACTER VARYING,
providers_json CHARACTER VARYING NOT NULL,
inspector_json CHARACTER VARYING NOT NULL,
realm CHARACTER VARYING NOT NULL,
residences_json CHARACTER VARYING NOT NULL,
wtime TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT (now() at time zone 'utc'),
current BOOLEAN NOT NULL DEFAULT TRUE,
CONSTRAINT payment_institution_pkey PRIMARY KEY (id)
);
CREATE INDEX payment_institution_version_id on nw.payment_institution(version_id);
CREATE INDEX payment_institution_idx on nw.payment_institution(payment_institution_ref_id);
--inspector--
CREATE TABLE nw.inspector(
id BIGSERIAL NOT NULL,
version_id BIGINT NOT NULL,
inspector_ref_id INT NOT NULL,
name CHARACTER VARYING NOT NULL,
description CHARACTER VARYING NOT NULL,
proxy_ref_id INT NOT NULL,
proxy_additional_json CHARACTER VARYING NOT NULL,
fallback_risk_score CHARACTER VARYING,
wtime TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT (now() at time zone 'utc'),
current BOOLEAN NOT NULL DEFAULT TRUE,
CONSTRAINT inspector_pkey PRIMARY KEY (id)
);
CREATE INDEX inspector_version_id on nw.inspector(version_id);
CREATE INDEX inspector_idx on nw.inspector(inspector_ref_id);
--proxy--
CREATE TABLE nw.proxy(
id BIGSERIAL NOT NULL,
version_id BIGINT NOT NULL,
proxy_ref_id INT NOT NULL,
name CHARACTER VARYING NOT NULL,
description CHARACTER VARYING NOT NULL,
url CHARACTER VARYING NOT NULL,
options_json CHARACTER VARYING NOT NULL,
wtime TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT (now() at time zone 'utc'),
current BOOLEAN NOT NULL DEFAULT TRUE,
CONSTRAINT proxy_pkey PRIMARY KEY (id)
);
CREATE INDEX proxy_version_id on nw.proxy(version_id);
CREATE INDEX proxy_idx on nw.proxy(proxy_ref_id);
--term_set_hierarchy--
CREATE TABLE nw.term_set_hierarchy(
id BIGSERIAL NOT NULL,
version_id BIGINT NOT NULL,
term_set_hierarchy_ref_id INT NOT NULL,
name CHARACTER VARYING,
description CHARACTER VARYING,
parent_terms_ref_id INT,
term_sets_json CHARACTER VARYING NOT NULL,
wtime TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT (now() at time zone 'utc'),
current BOOLEAN NOT NULL DEFAULT TRUE,
CONSTRAINT term_set_hierarchy_pkey PRIMARY KEY (id)
);
CREATE INDEX term_set_hierarchy_version_id on nw.term_set_hierarchy(version_id);
CREATE INDEX term_set_hierarchy_idx on nw.term_set_hierarchy(term_set_hierarchy_ref_id);

View File

@ -0,0 +1,116 @@
package com.rbkmoney.newway.dao.dominant.iface;
import com.rbkmoney.newway.AbstractIntegrationTest;
import com.rbkmoney.newway.dao.dominant.impl.*;
import com.rbkmoney.newway.domain.tables.pojos.*;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.OptionalLong;
import java.util.stream.LongStream;
import static io.github.benas.randombeans.api.EnhancedRandom.random;
import static org.junit.Assert.*;
public class DomainObjectDaoTest extends AbstractIntegrationTest {
@Autowired
private CalendarDaoImpl calendarDao;
@Autowired
private CategoryDaoImpl categoryDao;
@Autowired
private CurrencyDaoImpl currencyDao;
@Autowired
private InspectorDaoImpl inspectorDao;
@Autowired
private PaymentInstitutionDaoImpl paymentInstitutionDao;
@Autowired
private PaymentMethodDaoImpl paymentMethodDao;
@Autowired
private PayoutMethodDaoImpl payoutMethodDao;
@Autowired
private ProviderDaoImpl providerDao;
@Autowired
private ProxyDaoImpl proxyDao;
@Autowired
private TerminalDaoImpl terminalDao;
@Autowired
private TermSetHierarchyDaoImpl termSetHierarchyDao;
@Autowired
private DominantDao dominantDao;
@Test
public void test() {
Calendar calendar = random(Calendar.class);
calendar.setCurrent(true);
calendarDao.save(calendar);
calendarDao.updateNotCurrent(calendar.getCalendarRefId());
Category category = random(Category.class);
category.setCurrent(true);
categoryDao.save(category);
categoryDao.updateNotCurrent(category.getCategoryRefId());
Currency currency = random(Currency.class);
currency.setCurrent(true);
currencyDao.save(currency);
currencyDao.updateNotCurrent(currency.getCurrencyRefId());
Inspector inspector = random(Inspector.class);
inspector.setCurrent(true);
inspectorDao.save(inspector);
inspectorDao.updateNotCurrent(inspector.getInspectorRefId());
PaymentInstitution paymentInstitution = random(PaymentInstitution.class);
paymentInstitution.setCurrent(true);
paymentInstitutionDao.save(paymentInstitution);
paymentInstitutionDao.updateNotCurrent(paymentInstitution.getPaymentInstitutionRefId());
PaymentMethod paymentMethod = random(PaymentMethod.class);
paymentMethod.setCurrent(true);
paymentMethodDao.save(paymentMethod);
paymentMethodDao.updateNotCurrent(paymentMethod.getPaymentMethodRefId());
PayoutMethod payoutMethod = random(PayoutMethod.class);
payoutMethod.setCurrent(true);
payoutMethodDao.save(payoutMethod);
payoutMethodDao.updateNotCurrent(payoutMethod.getPayoutMethodRefId());
Provider provider = random(Provider.class);
provider.setCurrent(true);
providerDao.save(provider);
providerDao.updateNotCurrent(provider.getProviderRefId());
Proxy proxy = random(Proxy.class);
proxy.setCurrent(true);
proxyDao.save(proxy);
proxyDao.updateNotCurrent(proxy.getProxyRefId());
Terminal terminal = random(Terminal.class);
terminal.setCurrent(true);
terminalDao.save(terminal);
terminalDao.updateNotCurrent(terminal.getTerminalRefId());
TermSetHierarchy termSetHierarchy = random(TermSetHierarchy.class);
termSetHierarchy.setCurrent(true);
termSetHierarchyDao.save(termSetHierarchy);
termSetHierarchyDao.updateNotCurrent(termSetHierarchy.getTermSetHierarchyRefId());
Long lastVersionId = dominantDao.getLastVersionId();
OptionalLong maxVersionId = LongStream.of(
calendar.getVersionId(),
category.getVersionId(),
currency.getVersionId(),
inspector.getVersionId(),
paymentInstitution.getVersionId(),
paymentMethod.getVersionId(),
payoutMethod.getVersionId(),
provider.getVersionId(),
proxy.getVersionId(),
terminal.getVersionId(),
termSetHierarchy.getVersionId()).max();
assertEquals(maxVersionId.getAsLong(), lastVersionId.longValue());
}
}

View File

@ -1,23 +0,0 @@
package com.rbkmoney.newway.poller.dominant.impl;
import com.rbkmoney.newway.AbstractIntegrationTest;
import com.rbkmoney.newway.dao.dominant.iface.CategoryDao;
import com.rbkmoney.newway.domain.tables.pojos.Category;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import static io.github.benas.randombeans.api.EnhancedRandom.random;
public class CategoryHandlerTest extends AbstractIntegrationTest {
@Autowired
private CategoryDao categoryDao;
@Test
public void test() {
Category category = random(Category.class);
category.setCurrent(true);
categoryDao.save(category);
categoryDao.updateNotCurrent(category.getCategoryId());
}
}