1 21 22 package org.apache.derby.iapi.types; 23 24 import org.apache.derby.iapi.types.RowLocation; 25 26 import org.apache.derby.iapi.error.StandardException; 27 28 import java.sql.Date ; 29 import java.sql.Time ; 30 import java.sql.Timestamp ; 31 32 33 36 37 public interface DataValueFactory 38 { 39 45 NumberDataValue getDataValue(Integer value); 46 NumberDataValue getDataValue(Integer value, NumberDataValue previous) 47 throws StandardException; 48 49 55 public NumberDataValue getDataValue(char value); 56 public NumberDataValue getDataValue(char value, NumberDataValue previous) 57 throws StandardException; 58 59 65 NumberDataValue getDataValue(Short value); 66 NumberDataValue getDataValue(Short value, NumberDataValue previous) 67 throws StandardException; 68 69 75 NumberDataValue getDataValue(Byte value); 76 NumberDataValue getDataValue(Byte value, NumberDataValue previous) 77 throws StandardException; 78 79 85 NumberDataValue getDataValue(Long value); 86 NumberDataValue getDataValue(Long value, NumberDataValue previous) 87 throws StandardException; 88 89 95 NumberDataValue getDataValue(Float value) throws StandardException; 96 NumberDataValue getDataValue(Float value, NumberDataValue previous) 97 throws StandardException; 98 99 106 NumberDataValue getDataValue(Double value) throws StandardException; 107 NumberDataValue getDataValue(Double value, NumberDataValue previous) 108 throws StandardException; 109 110 116 BooleanDataValue getDataValue(Boolean value); 117 BooleanDataValue getDataValue(Boolean value, BooleanDataValue previous) 118 throws StandardException; 119 120 122 129 BitDataValue getLongVarbitDataValue(byte[] value) throws StandardException; 130 BitDataValue getLongVarbitDataValue(byte[] value, 131 BitDataValue previous) 132 throws StandardException; 133 134 136 143 BitDataValue getBlobDataValue(byte[] value) throws StandardException; 144 BitDataValue getBlobDataValue(byte[] value, 145 BitDataValue previous) 146 throws StandardException; 147 155 BooleanDataValue getDataValue(BooleanDataValue value) throws StandardException; 156 157 163 StringDataValue getVarcharDataValue(String value); 164 StringDataValue getVarcharDataValue(String value, 165 StringDataValue previous) 166 throws StandardException; 167 168 174 StringDataValue getLongvarcharDataValue(String value); 175 StringDataValue getLongvarcharDataValue(String value, StringDataValue previous) throws StandardException; 176 177 183 StringDataValue getClobDataValue(String value); 184 StringDataValue getClobDataValue(String value, StringDataValue previous) throws StandardException; 185 186 191 StringDataValue getNationalVarcharDataValue(String value); 192 StringDataValue getNationalVarcharDataValue(String value, 193 StringDataValue previous) 194 throws StandardException; 195 196 201 StringDataValue getNationalLongvarcharDataValue(String value); 202 StringDataValue getNationalLongvarcharDataValue(String value, 203 StringDataValue previous) 204 throws StandardException; 205 206 211 StringDataValue getNClobDataValue(String value); 212 StringDataValue getNClobDataValue(String value, StringDataValue previous) 213 throws StandardException; 214 215 221 UserDataValue getDataValue(Object value); 222 UserDataValue getDataValue(Object value, 223 UserDataValue previous); 224 225 231 RefDataValue getDataValue(RowLocation value); 232 RefDataValue getDataValue(RowLocation value, RefDataValue previous); 233 234 239 NumberDataValue getDataValue(int value); 240 NumberDataValue getDataValue(int value, NumberDataValue previous) 241 throws StandardException; 242 243 248 NumberDataValue getDataValue(long value); 249 NumberDataValue getDataValue(long value, NumberDataValue previous) 250 throws StandardException; 251 252 258 NumberDataValue getDataValue(float value) throws StandardException; 259 NumberDataValue getDataValue(float value, NumberDataValue previous) 260 throws StandardException; 261 262 268 NumberDataValue getDataValue(double value) throws StandardException; 269 NumberDataValue getDataValue(double value, NumberDataValue previous) 270 throws StandardException; 271 272 277 NumberDataValue getDataValue(short value); 278 NumberDataValue getDataValue(short value, NumberDataValue previous) 279 throws StandardException; 280 281 286 NumberDataValue getDataValue(byte value); 287 NumberDataValue getDataValue(byte value, NumberDataValue previous) 288 throws StandardException; 289 290 296 NumberDataValue getDecimalDataValue(Number value) throws StandardException; 297 NumberDataValue getDecimalDataValue(Number value, NumberDataValue previous) 298 throws StandardException; 299 300 301 306 NumberDataValue getDecimalDataValue(Long value, NumberDataValue previous) 307 throws StandardException; 308 309 310 316 NumberDataValue getDecimalDataValue(String value) throws StandardException; 317 NumberDataValue getDecimalDataValue(String value, 318 NumberDataValue previous) 319 throws StandardException; 320 321 326 BooleanDataValue getDataValue(boolean value); 327 BooleanDataValue getDataValue(boolean value, BooleanDataValue previous) 328 throws StandardException; 329 330 336 BitDataValue getBitDataValue(byte[] value) throws StandardException; 337 BitDataValue getBitDataValue(byte[] value, BitDataValue previous) 338 throws StandardException; 339 340 346 BitDataValue getVarbitDataValue(byte[] value) throws StandardException; 347 BitDataValue getVarbitDataValue(byte[] value, BitDataValue previous) 348 throws StandardException; 349 350 356 StringDataValue getCharDataValue(String value); 357 StringDataValue getCharDataValue(String value, StringDataValue previous) 358 throws StandardException; 359 360 365 StringDataValue getNationalCharDataValue(String value); 366 StringDataValue getNationalCharDataValue(String value, StringDataValue previous) 367 throws StandardException; 368 369 375 DateTimeDataValue getDataValue(Date value) throws StandardException; 376 DateTimeDataValue getDataValue(Date value, DateTimeDataValue previous) 377 throws StandardException; 378 379 385 DateTimeDataValue getDataValue(Time value) throws StandardException; 386 DateTimeDataValue getDataValue(Time value, DateTimeDataValue previous) 387 throws StandardException; 388 389 395 DateTimeDataValue getDataValue(Timestamp value) throws StandardException; 396 DateTimeDataValue getDataValue(Timestamp value, 397 DateTimeDataValue previous) 398 throws StandardException; 399 400 405 DateTimeDataValue getTimestamp( DataValueDescriptor operand) throws StandardException; 406 407 413 DateTimeDataValue getTimestamp( DataValueDescriptor date, DataValueDescriptor time) throws StandardException; 414 415 424 public DateTimeDataValue getDate( DataValueDescriptor operand) throws StandardException; 425 426 434 public DateTimeDataValue getDateValue( String dateStr, boolean isJdbcEscape) throws StandardException; 435 436 444 public DateTimeDataValue getTimeValue( String timeStr, boolean isJdbcEscape) throws StandardException; 445 446 454 public DateTimeDataValue getTimestampValue( String timestampStr, boolean isJdbcEscape) throws StandardException; 455 456 460 XMLDataValue getXMLDataValue(); 461 XMLDataValue getXMLDataValue(XMLDataValue previous) 462 throws StandardException; 463 464 470 NumberDataValue getNullInteger(NumberDataValue dataValue); 471 472 477 NumberDataValue getNullShort(NumberDataValue dataValue); 478 479 485 NumberDataValue getNullByte(NumberDataValue dataValue); 486 487 493 NumberDataValue getNullLong(NumberDataValue dataValue); 494 495 501 NumberDataValue getNullFloat(NumberDataValue dataValue); 502 503 509 NumberDataValue getNullDouble(NumberDataValue dataValue); 510 511 517 NumberDataValue getNullDecimal(NumberDataValue dataValue); 518 519 524 BooleanDataValue getNullBoolean(BooleanDataValue dataValue); 525 526 533 BitDataValue getNullBit(BitDataValue dataValue) throws StandardException; 534 535 542 BitDataValue getNullVarbit(BitDataValue dataValue) throws StandardException; 543 544 552 BitDataValue getNullLongVarbit( 553 BitDataValue dataValue) 554 throws StandardException; 555 563 BitDataValue getNullBlob(BitDataValue dataValue) 564 throws StandardException; 565 566 572 StringDataValue getNullChar(StringDataValue dataValue); 573 574 580 StringDataValue getNullVarchar(StringDataValue dataValue); 581 582 588 StringDataValue getNullLongvarchar(StringDataValue dataValue); 589 590 596 StringDataValue getNullClob(StringDataValue dataValue); 597 598 603 StringDataValue getNullNationalChar(StringDataValue dataValue); 604 605 611 StringDataValue getNullNationalVarchar(StringDataValue dataValue); 612 613 619 StringDataValue getNullNationalLongvarchar(StringDataValue dataValue); 620 621 627 StringDataValue getNullNClob(StringDataValue dataValue); 628 629 635 UserDataValue getNullObject(UserDataValue dataValue); 636 637 643 RefDataValue getNullRef(RefDataValue dataValue); 644 645 651 DateTimeDataValue getNullDate(DateTimeDataValue dataValue); 652 653 659 DateTimeDataValue getNullTime(DateTimeDataValue dataValue); 660 661 666 DateTimeDataValue getNullTimestamp(DateTimeDataValue dataValue); 667 668 673 XMLDataValue getNullXML(XMLDataValue dataValue); 674 } 675 | Popular Tags |