mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fix for sql wall
This commit is contained in:
@@ -28,6 +28,7 @@ public interface SQLObject {
|
||||
void setParent(SQLObject parent);
|
||||
|
||||
Map<String, Object> getAttributes();
|
||||
boolean containsAttribute(String name);
|
||||
Object getAttribute(String name);
|
||||
void putAttribute(String name, Object value);
|
||||
Map<String, Object> getAttributesDirect();
|
||||
|
||||
@@ -88,6 +88,14 @@ public abstract class SQLObjectImpl implements SQLObject {
|
||||
return attributes;
|
||||
}
|
||||
|
||||
public boolean containsAttribute(String name) {
|
||||
if (attributes == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return attributes.containsKey(name);
|
||||
}
|
||||
|
||||
public Object getAttribute(String name) {
|
||||
if (attributes == null) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user