1 64 65 package com.jcorporate.expresso.core.dataobjects; 66 67 import java.io.InputStream ; 68 import java.math.BigDecimal ; 69 import java.util.Date ; 70 import java.util.Map ; 71 72 80 81 public interface DataField { 82 83 88 public Object getValue(); 89 90 95 public String asString(); 96 97 98 103 public Boolean asBoolean(); 104 105 110 public Integer asInteger(); 111 112 118 public Date asDate(); 119 120 126 public BigDecimal asBigDecimal(); 127 128 134 public Double asDouble(); 135 136 142 public Object getOriginalValue(); 143 144 145 150 public InputStream asStream(); 151 152 157 public boolean isChanged(); 158 159 164 public boolean isValueSet(); 165 166 171 public void checkValue() throws DataException; 172 173 176 public void resetChanged(); 177 178 183 public void setValue(Object newValue); 184 185 190 public boolean isNull(); 191 192 198 public void setAttribute(String attributeName, Object value); 199 200 206 public Object getAttribute(String attributeName); 207 208 209 215 public Map getAllAttributes(); 216 217 223 public DataObject getOwner(); 224 225 230 public void setOwner(DataObject newOwner); 231 232 233 238 public DataFieldMetaData getFieldMetaData(); 239 240 245 public void setFieldMetaData(DataFieldMetaData newMetadata); 246 247 250 public void cacheIsChangedComparison(); 251 } 252 | Popular Tags |