1 16 package com.ibatis.sqlmap.engine.mapping.sql; 17 18 import com.ibatis.sqlmap.engine.mapping.parameter.ParameterMapping; 19 20 public class SqlText implements SqlChild { 21 22 private String text; 23 private boolean isWhiteSpace; 24 private boolean postParseRequired; 25 26 private ParameterMapping[] parameterMappings; 27 28 public String getText() { 29 return text; 30 } 31 32 public void setText(String text) { 33 this.text = text.replace('\r', ' ').replace('\n', ' '); 34 this.isWhiteSpace = text.trim().length() == 0; 35 } 36 37 public boolean isWhiteSpace() { 38 return isWhiteSpace; 39 } 40 41 public ParameterMapping[] getParameterMappings() { 42 return parameterMappings; 43 } 44 45 public void setParameterMappings(ParameterMapping[] parameterMappings) { 46 this.parameterMappings = parameterMappings; 47 } 48 49 public boolean isPostParseRequired() { 50 return postParseRequired; 51 } 52 53 public void setPostParseRequired(boolean postParseRequired) { 54 this.postParseRequired = postParseRequired; 55 } 56 57 } 58 59 | Popular Tags |