MetaInfo.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package org.dbsyncer.sdk.model;
  2. import java.util.List;
  3. /**
  4. * 连接器基本信息
  5. *
  6. * @author AE86
  7. * @ClassName: MetaInfo
  8. * @Description: 包括字段信息、总条数
  9. * @date: 2017年7月20日 下午3:37:59
  10. */
  11. public class MetaInfo {
  12. /**
  13. * 表类型
  14. */
  15. private String tableType;
  16. /**
  17. * 属性字段
  18. * 格式:[{"name":"ID","typeName":"INT","type":"4"},{"name":"NAME","typeName":"VARCHAR","type":"12"}]
  19. */
  20. private List<Field> column;
  21. /**
  22. * sql
  23. */
  24. private String sql;
  25. /**
  26. * 索引类型(ES)
  27. */
  28. private String indexType;
  29. public String getTableType() {
  30. return tableType;
  31. }
  32. public MetaInfo setTableType(String tableType) {
  33. this.tableType = tableType;
  34. return this;
  35. }
  36. public List<Field> getColumn() {
  37. return column;
  38. }
  39. public MetaInfo setColumn(List<Field> column) {
  40. this.column = column;
  41. return this;
  42. }
  43. public String getSql() {
  44. return sql;
  45. }
  46. public MetaInfo setSql(String sql) {
  47. this.sql = sql;
  48. return this;
  49. }
  50. public String getIndexType() {
  51. return indexType;
  52. }
  53. public MetaInfo setIndexType(String indexType) {
  54. this.indexType = indexType;
  55. return this;
  56. }
  57. @Override
  58. public String toString() {
  59. return new StringBuilder().append("MetaInfo{").append("tableType=").append(tableType).append(", ").append("column=").append(column).append('}').toString();
  60. }
  61. }