1 14 package commonj.sdo; 15 16 import java.io.Serializable ; 17 import java.math.BigDecimal ; 18 import java.math.BigInteger ; 19 import java.util.Date ; 20 import java.util.List ; 21 22 52 public interface DataObject extends Serializable 53 { 54 61 Object get(String path); 62 63 70 void set(String path, Object value); 71 72 78 boolean isSet(String path); 79 80 85 void unset(String path); 86 87 93 boolean getBoolean(String path); 94 95 101 byte getByte(String path); 102 103 109 char getChar(String path); 110 111 117 double getDouble(String path); 118 119 125 float getFloat(String path); 126 127 133 int getInt(String path); 134 135 141 long getLong(String path); 142 143 149 short getShort(String path); 150 151 157 byte[] getBytes(String path); 158 159 165 BigDecimal getBigDecimal(String path); 166 167 173 BigInteger getBigInteger(String path); 174 175 181 DataObject getDataObject(String path); 182 183 189 Date getDate(String path); 190 191 197 String getString(String path); 198 199 205 List getList(String path); 206 207 213 Sequence getSequence(String path); 214 215 221 void setBoolean(String path, boolean value); 222 223 229 void setByte(String path, byte value); 230 231 237 void setChar(String path, char value); 238 239 245 void setDouble(String path, double value); 246 247 253 void setFloat(String path, float value); 254 255 261 void setInt(String path, int value); 262 263 269 void setLong(String path, long value); 270 271 277 void setShort(String path, short value); 278 279 285 void setBytes(String path, byte[] value); 286 287 293 void setBigDecimal(String path, BigDecimal value); 294 295 301 void setBigInteger(String path, BigInteger value); 302 303 309 void setDataObject(String path, DataObject value); 310 311 317 void setDate(String path, Date value); 318 319 325 void setString(String path, String value); 326 327 333 void setList(String path, List value); 334 335 342 Object get(int propertyIndex); 343 344 351 void set(int propertyIndex, Object value); 352 353 360 boolean isSet(int propertyIndex); 361 362 367 void unset(int propertyIndex); 368 369 375 boolean getBoolean(int propertyIndex); 376 377 383 byte getByte(int propertyIndex); 384 385 391 char getChar(int propertyIndex); 392 393 399 double getDouble(int propertyIndex); 400 401 407 float getFloat(int propertyIndex); 408 409 415 int getInt(int propertyIndex); 416 417 423 long getLong(int propertyIndex); 424 425 431 short getShort(int propertyIndex); 432 433 439 byte[] getBytes(int propertyIndex); 440 441 447 BigDecimal getBigDecimal(int propertyIndex); 448 449 455 BigInteger getBigInteger(int propertyIndex); 456 457 463 DataObject getDataObject(int propertyIndex); 464 465 471 Date getDate(int propertyIndex); 472 473 479 String getString(int propertyIndex); 480 481 487 List getList(int propertyIndex); 488 489 495 Sequence getSequence(int propertyIndex); 496 497 503 void setBoolean(int propertyIndex, boolean value); 504 505 511 void setByte(int propertyIndex, byte value); 512 513 519 void setChar(int propertyIndex, char value); 520 521 527 void setDouble(int propertyIndex, double value); 528 529 535 void setFloat(int propertyIndex, float value); 536 537 543 void setInt(int propertyIndex, int value); 544 545 551 void setLong(int propertyIndex, long value); 552 553 559 void setShort(int propertyIndex, short value); 560 561 567 void setBytes(int propertyIndex, byte[] value); 568 569 575 void setBigDecimal(int propertyIndex, BigDecimal value); 576 577 583 void setBigInteger(int propertyIndex, BigInteger value); 584 585 591 void setDataObject(int propertyIndex, DataObject value); 592 593 599 void setDate(int propertyIndex, Date value); 600 601 607 void setString(int propertyIndex, String value); 608 609 615 void setList(int propertyIndex, List value); 616 617 631 Object get(Property property); 632 633 649 void set(Property property, Object value); 650 651 668 boolean isSet(Property property); 669 670 685 void unset(Property property); 686 687 693 boolean getBoolean(Property property); 694 695 701 byte getByte(Property property); 702 703 709 char getChar(Property property); 710 711 717 double getDouble(Property property); 718 719 725 float getFloat(Property property); 726 727 733 int getInt(Property property); 734 735 741 long getLong(Property property); 742 743 749 short getShort(Property property); 750 751 757 byte[] getBytes(Property property); 758 759 765 BigDecimal getBigDecimal(Property property); 766 767 773 BigInteger getBigInteger(Property property); 774 775 781 DataObject getDataObject(Property property); 782 783 789 Date getDate(Property property); 790 791 797 String getString(Property property); 798 799 805 List getList(Property property); 806 807 813 Sequence getSequence(Property property); 814 815 821 void setBoolean(Property property, boolean value); 822 823 829 void setByte(Property property, byte value); 830 831 837 void setChar(Property property, char value); 838 839 845 void setDouble(Property property, double value); 846 847 853 void setFloat(Property property, float value); 854 855 861 void setInt(Property property, int value); 862 863 869 void setLong(Property property, long value); 870 871 877 void setShort(Property property, short value); 878 879 885 void setBytes(Property property, byte[] value); 886 887 893 void setBigDecimal(Property property, BigDecimal value); 894 895 901 void setBigInteger(Property property, BigInteger value); 902 903 909 void setDataObject(Property property, DataObject value); 910 911 917 void setDate(Property property, Date value); 918 919 925 void setString(Property property, String value); 926 927 933 void setList(Property property, List value); 934 935 943 DataObject createDataObject(String propertyName); 944 945 953 DataObject createDataObject(int propertyIndex); 954 955 963 DataObject createDataObject(Property property); 964 965 977 DataObject createDataObject(String propertyName, String namespaceURI, String typeName); 978 979 991 DataObject createDataObject(int propertyIndex, String namespaceURI, String typeName); 992 993 1003 DataObject createDataObject(Property property, Type type); 1004 1005 1008 void delete(); 1009 1010 1015 DataObject getContainer(); 1016 1017 1022 Property getContainmentProperty(); 1023 1024 1028 DataGraph getDataGraph(); 1029 1030 1036 Type getType(); 1037} 1038 | Popular Tags |