mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser.
This commit is contained in:
@@ -22,6 +22,14 @@ public class PGBoxExpr extends PGExprImpl {
|
||||
|
||||
private SQLExpr value;
|
||||
|
||||
public PGBoxExpr clone() {
|
||||
PGBoxExpr x = new PGBoxExpr();
|
||||
if (value != null) {
|
||||
x.setValue(value.clone());
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
public SQLExpr getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -22,6 +22,14 @@ public class PGCidrExpr extends PGExprImpl {
|
||||
|
||||
private SQLExpr value;
|
||||
|
||||
public PGCidrExpr clone() {
|
||||
PGCidrExpr x = new PGCidrExpr();
|
||||
if (value != null) {
|
||||
x.setValue(value.clone());
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
public SQLExpr getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -22,6 +22,14 @@ public class PGCircleExpr extends PGExprImpl {
|
||||
|
||||
private SQLExpr value;
|
||||
|
||||
public PGCircleExpr clone() {
|
||||
PGCircleExpr x = new PGCircleExpr();
|
||||
if (value != null) {
|
||||
x.setValue(value.clone());
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
public SQLExpr getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,15 @@ public class PGExtractExpr extends PGExprImpl {
|
||||
private PGDateField field;
|
||||
private SQLExpr source;
|
||||
|
||||
public PGExtractExpr clone() {
|
||||
PGExtractExpr x = new PGExtractExpr();
|
||||
x.field = field;
|
||||
if (source != null) {
|
||||
x.setSource(source.clone());
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
public PGDateField getField() {
|
||||
return field;
|
||||
}
|
||||
@@ -36,6 +45,9 @@ public class PGExtractExpr extends PGExprImpl {
|
||||
}
|
||||
|
||||
public void setSource(SQLExpr source) {
|
||||
if (source != null) {
|
||||
source.setParent(this);
|
||||
}
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,14 @@ public class PGInetExpr extends PGExprImpl {
|
||||
|
||||
private SQLExpr value;
|
||||
|
||||
public PGInetExpr clone() {
|
||||
PGInetExpr x = new PGInetExpr();
|
||||
if (value != null) {
|
||||
x.setValue(value.clone());
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
public SQLExpr getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
+8
@@ -22,6 +22,14 @@ public class PGLineSegmentsExpr extends PGExprImpl {
|
||||
|
||||
private SQLExpr value;
|
||||
|
||||
public PGLineSegmentsExpr clone() {
|
||||
PGLineSegmentsExpr x = new PGLineSegmentsExpr();
|
||||
if (value != null) {
|
||||
x.setValue(value.clone());
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
public SQLExpr getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,14 @@ public class PGMacAddrExpr extends PGExprImpl {
|
||||
|
||||
private SQLExpr value;
|
||||
|
||||
public PGMacAddrExpr clone() {
|
||||
PGMacAddrExpr x = new PGMacAddrExpr();
|
||||
if (value != null) {
|
||||
x.setValue(value.clone());
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
public SQLExpr getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -22,6 +22,14 @@ public class PGPointExpr extends PGExprImpl {
|
||||
|
||||
private SQLExpr value;
|
||||
|
||||
public PGPointExpr clone() {
|
||||
PGPointExpr x = new PGPointExpr();
|
||||
if (value != null) {
|
||||
x.setValue(value.clone());
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
public SQLExpr getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,14 @@ public class PGPolygonExpr extends PGExprImpl {
|
||||
|
||||
private SQLExpr value;
|
||||
|
||||
public PGPolygonExpr clone() {
|
||||
PGPolygonExpr x = new PGPolygonExpr();
|
||||
if (value != null) {
|
||||
x.setValue(value.clone());
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
public SQLExpr getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user