PredicateJoin.java 991 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package com.jtgh.yjpt.common;
  2. import javax.persistence.criteria.JoinType;
  3. /**
  4. * Predicate模型对象表连接
  5. *
  6. * @author 袁晓冬
  7. *
  8. */
  9. public class PredicateJoin {
  10. private String field = null;
  11. private Class<?> clazz = null;
  12. private JoinType type = null;
  13. public PredicateJoin() {
  14. }
  15. public PredicateJoin(String field, Class<?> clazz, JoinType type) {
  16. super();
  17. this.field = field;
  18. this.clazz = clazz;
  19. this.type = type;
  20. }
  21. /**
  22. * 对象类型
  23. *
  24. * @return
  25. */
  26. public Class<?> getClazz() {
  27. return clazz;
  28. }
  29. /**
  30. * join字段名称
  31. *
  32. * @return
  33. */
  34. public String getField() {
  35. return field;
  36. }
  37. /**
  38. * join类型
  39. *
  40. * @return
  41. */
  42. public JoinType getType() {
  43. return type;
  44. }
  45. public void setClazz(Class<?> clazz) {
  46. this.clazz = clazz;
  47. }
  48. public void setField(String field) {
  49. this.field = field;
  50. }
  51. public void setType(JoinType type) {
  52. this.type = type;
  53. }
  54. }