public String getSql() {
		StringBuffer sbSql = new StringBuffer();
		if (tableName != null && tableName.length() > 0) {
			sbSql.append(" " + tableName);
			if (tableNode != null) {
				switch (joinOperate) {
				case LeftJoin:
					sbSql.append(" left join ");
					break;
				case RightJoin:
					sbSql.append(" right join ");
					break;
				case CrossJoin:
					sbSql.append(" cross join ");
					break;
				case InnerJoin:
					sbSql.append(" inner join ");
					break;
				}
				sbSql.append(tableNode.getSql());
				if (onConditions != null) {
					sbSql.append(" on " + onConditions.getSql());
				}
			}
		}
		return sbSql.toString();
	}