001/** 002 * Copyright (c) 2015-2022, Michael Yang 杨福海 (fuhai999@gmail.com). 003 * <p> 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * <p> 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * <p> 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package io.jboot.db.model; 017 018import java.io.Serializable; 019 020/** 021 * @author michael yang (fuhai999@gmail.com) 022 * @Date: 2020/1/14 023 */ 024public class Join implements Serializable { 025 026 private static final long serialVersionUID = 1L; 027 028 static final String TYPE_LEFT = " LEFT JOIN "; 029 static final String TYPE_RIGHT = " RIGHT JOIN "; 030 static final String TYPE_INNER = " INNER JOIN "; 031 static final String TYPE_FULL = " FULL JOIN "; 032 033 private String type; 034 private String table; 035 private String as; 036 private String on; 037 private boolean effective; 038 039 public Join(String type,String table,boolean effective) { 040 this.type = type; 041 this.table = table; 042 this.effective = effective; 043 } 044 045 public String getType() { 046 return type; 047 } 048 049 public void setType(String type) { 050 this.type = type; 051 } 052 053 public String getTable() { 054 return table; 055 } 056 057 public void setTable(String table) { 058 this.table = table; 059 } 060 061 062 public String getAs() { 063 return as; 064 } 065 066 public void setAs(String as) { 067 this.as = as; 068 } 069 070 public String getOn() { 071 return on; 072 } 073 074 public void setOn(String on) { 075 this.on = on; 076 } 077 078 public boolean isEffective() { 079 return effective; 080 } 081 082 public void setEffective(boolean effective) { 083 this.effective = effective; 084 } 085}