1 17 package org.eclipse.emf.ecore.sdo.impl; 18 19 20 import java.io.ObjectStreamException ; 21 import java.math.BigDecimal ; 22 import java.math.BigInteger ; 23 import java.util.Date ; 24 import java.util.List ; 25 26 import org.eclipse.emf.ecore.EClass; 27 import org.eclipse.emf.ecore.EObject; 28 import org.eclipse.emf.ecore.impl.DynamicEObjectImpl; 29 import org.eclipse.emf.ecore.impl.EFactoryImpl; 30 import org.eclipse.emf.ecore.sdo.EDataObject; 31 import org.eclipse.emf.ecore.sdo.InternalEDataObject; 32 import org.eclipse.emf.ecore.sdo.SDOPackage; 33 import org.eclipse.emf.ecore.sdo.util.SDOUtil; 34 35 import commonj.sdo.DataGraph; 36 import commonj.sdo.DataObject; 37 import commonj.sdo.Property; 38 import commonj.sdo.Sequence; 39 import commonj.sdo.Type; 40 41 42 51 public class DynamicEDataObjectImpl extends DynamicEObjectImpl implements EDataObject, InternalEDataObject 52 { 53 56 public static class FactoryImpl extends EFactoryImpl 57 { 58 public FactoryImpl() 59 { 60 } 61 62 public EObject basicCreate(EClass eClass) 63 { 64 return new DynamicEDataObjectImpl(eClass); 65 } 66 } 67 68 73 public DynamicEDataObjectImpl(EClass eClass) 74 { 75 super(eClass); 76 } 77 78 83 protected EClass eStaticClass() 84 { 85 return SDOPackage.eINSTANCE.getEDataObject(); 86 } 87 88 93 public Object get(String path) 94 { 95 return SDOUtil.get(this, path); 96 } 97 98 103 public void set(String path, Object value) 104 { 105 SDOUtil.set(this, path, value); 106 } 107 108 113 public boolean isSet(String path) 114 { 115 return SDOUtil.isSet(this, path); 116 } 117 118 123 public void unset(String path) 124 { 125 SDOUtil.unset(this, path); 126 } 127 128 133 public Object get(int propertyIndex) 134 { 135 return SDOUtil.get(this, propertyIndex); 136 } 137 138 143 public void set(int propertyIndex, Object value) 144 { 145 SDOUtil.set(this, propertyIndex, value); 146 } 147 148 153 public boolean isSet(int propertyIndex) 154 { 155 return SDOUtil.isSet(this, propertyIndex); 156 } 157 158 163 public void unset(int propertyIndex) 164 { 165 SDOUtil.unset(this, propertyIndex); 166 } 167 168 173 public Object get(Property property) 174 { 175 return SDOUtil.get(this, property); 176 } 177 178 183 public void set(Property property, Object value) 184 { 185 SDOUtil.set(this, property, value); 186 } 187 188 193 public boolean isSet(Property property) 194 { 195 return SDOUtil.isSet(this, property); 196 } 197 198 203 public void unset(Property property) 204 { 205 SDOUtil.unset(this, property); 206 } 207 208 213 public DataObject getContainer() 214 { 215 return SDOUtil.getContainer(this); 216 } 217 218 223 public Property getContainmentProperty() 224 { 225 return SDOUtil.getContainmentProperty(this); 226 } 227 228 233 public DataGraph getDataGraph() 234 { 235 return SDOUtil.getDataGraph(this); 236 } 237 238 243 public Type getType() 244 { 245 return SDOUtil.getType(this); 246 } 247 248 253 public BigDecimal getBigDecimal(String path) 254 { 255 return SDOUtil.getBigDecimal(this, path); 256 } 257 258 263 public BigInteger getBigInteger(String path) 264 { 265 return SDOUtil.getBigInteger(this, path); 266 } 267 268 273 public boolean getBoolean(String path) 274 { 275 return SDOUtil.getBoolean(this, path); 276 } 277 278 283 public byte getByte(String path) 284 { 285 return SDOUtil.getByte(this, path); 286 } 287 288 293 public byte[] getBytes(String path) 294 { 295 return SDOUtil.getBytes(this, path); 296 } 297 298 303 public char getChar(String path) 304 { 305 return SDOUtil.getChar(this, path); 306 } 307 308 313 public DataObject getDataObject(String path) 314 { 315 return SDOUtil.getDataObject(this, path); 316 } 317 318 323 public Date getDate(String path) 324 { 325 return SDOUtil.getDate(this, path); 326 } 327 328 333 public double getDouble(String path) 334 { 335 return SDOUtil.getDouble(this, path); 336 } 337 338 343 public float getFloat(String path) 344 { 345 return SDOUtil.getFloat(this, path); 346 } 347 348 353 public int getInt(String path) 354 { 355 return SDOUtil.getInt(this, path); 356 } 357 358 363 public List getList(String path) 364 { 365 return SDOUtil.getList(this, path); 366 } 367 368 373 public long getLong(String path) 374 { 375 return SDOUtil.getLong(this, path); 376 } 377 378 383 public Sequence getSequence(String path) 384 { 385 return SDOUtil.getSequence(this, path); 386 } 387 388 393 public short getShort(String path) 394 { 395 return SDOUtil.getShort(this, path); 396 } 397 398 403 public String getString(String path) 404 { 405 return SDOUtil.getString(this, path); 406 } 407 408 413 public void setBigDecimal(String path, BigDecimal value) 414 { 415 SDOUtil.setBigDecimal(this, path, value); 416 } 417 418 423 public void setBigInteger(String path, BigInteger value) 424 { 425 SDOUtil.setBigInteger(this, path, value); 426 } 427 428 433 public void setBoolean(String path, boolean value) 434 { 435 SDOUtil.setBoolean(this, path, value); 436 } 437 438 443 public void setByte(String path, byte value) 444 { 445 SDOUtil.setByte(this, path, value); 446 } 447 448 453 public void setBytes(String path, byte[] value) 454 { 455 SDOUtil.setBytes(this, path, value); 456 } 457 458 463 public void setChar(String path, char value) 464 { 465 SDOUtil.setChar(this, path, value); 466 } 467 468 473 public void setDataObject(String path, DataObject value) 474 { 475 SDOUtil.setDataObject(this, path, value); 476 } 477 478 483 public void setDate(String path, Date value) 484 { 485 SDOUtil.setDate(this, path, value); 486 } 487 488 493 public void setDouble(String path, double value) 494 { 495 SDOUtil.setDouble(this, path, value); 496 } 497 498 503 public void setFloat(String path, float value) 504 { 505 SDOUtil.setFloat(this, path, value); 506 } 507 508 513 public void setInt(String path, int value) 514 { 515 SDOUtil.setInt(this, path, value); 516 } 517 518 523 public void setList(String path, List value) 524 { 525 SDOUtil.setList(this, path, value); 526 } 527 528 533 public void setLong(String path, long value) 534 { 535 SDOUtil.setLong(this, path, value); 536 } 537 538 543 public void setShort(String path, short value) 544 { 545 SDOUtil.setShort(this, path, value); 546 } 547 548 553 public void setString(String path, String value) 554 { 555 SDOUtil.setString(this, path, value); 556 } 557 558 563 public BigDecimal getBigDecimal(int propertyIndex) 564 { 565 return SDOUtil.getBigDecimal(this, propertyIndex); 566 } 567 568 573 public BigInteger getBigInteger(int propertyIndex) 574 { 575 return SDOUtil.getBigInteger(this, propertyIndex); 576 } 577 578 583 public boolean getBoolean(int propertyIndex) 584 { 585 return SDOUtil.getBoolean(this, propertyIndex); 586 } 587 588 593 public byte getByte(int propertyIndex) 594 { 595 return SDOUtil.getByte(this, propertyIndex); 596 } 597 598 603 public byte[] getBytes(int propertyIndex) 604 { 605 return SDOUtil.getBytes(this, propertyIndex); 606 } 607 608 613 public char getChar(int propertyIndex) 614 { 615 return SDOUtil.getChar(this, propertyIndex); 616 } 617 618 623 public DataObject getDataObject(int propertyIndex) 624 { 625 return SDOUtil.getDataObject(this, propertyIndex); 626 } 627 628 633 public Date getDate(int propertyIndex) 634 { 635 return SDOUtil.getDate(this, propertyIndex); 636 } 637 638 643 public double getDouble(int propertyIndex) 644 { 645 return SDOUtil.getDouble(this, propertyIndex); 646 } 647 648 653 public float getFloat(int propertyIndex) 654 { 655 return SDOUtil.getFloat(this, propertyIndex); 656 } 657 658 663 public int getInt(int propertyIndex) 664 { 665 return SDOUtil.getInt(this, propertyIndex); 666 } 667 668 673 public List getList(int propertyIndex) 674 { 675 return SDOUtil.getList(this, propertyIndex); 676 } 677 678 683 public long getLong(int propertyIndex) 684 { 685 return SDOUtil.getLong(this, propertyIndex); 686 } 687 688 693 public Sequence getSequence(int propertyIndex) 694 { 695 return SDOUtil.getSequence(this, propertyIndex); 696 } 697 698 703 public short getShort(int propertyIndex) 704 { 705 return SDOUtil.getShort(this, propertyIndex); 706 } 707 708 713 public String getString(int propertyIndex) 714 { 715 return SDOUtil.getString(this, propertyIndex); 716 } 717 718 723 public void setBigDecimal(int propertyIndex, BigDecimal value) 724 { 725 SDOUtil.setBigDecimal(this, propertyIndex, value); 726 } 727 728 733 public void setBigInteger(int propertyIndex, BigInteger value) 734 { 735 SDOUtil.setBigInteger(this, propertyIndex, value); 736 } 737 738 743 public void setBoolean(int propertyIndex, boolean value) 744 { 745 SDOUtil.setBoolean(this, propertyIndex, value); 746 } 747 748 753 public void setByte(int propertyIndex, byte value) 754 { 755 SDOUtil.setByte(this, propertyIndex, value); 756 } 757 758 763 public void setBytes(int propertyIndex, byte[] value) 764 { 765 SDOUtil.setBytes(this, propertyIndex, value); 766 } 767 768 773 public void setChar(int propertyIndex, char value) 774 { 775 SDOUtil.setChar(this, propertyIndex, value); 776 } 777 778 783 public void setDataObject(int propertyIndex, DataObject value) 784 { 785 SDOUtil.setDataObject(this, propertyIndex, value); 786 } 787 788 793 public void setDate(int propertyIndex, Date value) 794 { 795 SDOUtil.setDate(this, propertyIndex, value); 796 } 797 798 803 public void setDouble(int propertyIndex, double value) 804 { 805 SDOUtil.setDouble(this, propertyIndex, value); 806 } 807 808 813 public void setFloat(int propertyIndex, float value) 814 { 815 SDOUtil.setFloat(this, propertyIndex, value); 816 } 817 818 823 public void setInt(int propertyIndex, int value) 824 { 825 SDOUtil.setInt(this, propertyIndex, value); 826 } 827 828 833 public void setList(int propertyIndex, List value) 834 { 835 SDOUtil.setList(this, propertyIndex, value); 836 } 837 838 843 public void setLong(int propertyIndex, long value) 844 { 845 SDOUtil.setLong(this, propertyIndex, value); 846 } 847 848 853 public void setShort(int propertyIndex, short value) 854 { 855 SDOUtil.setShort(this, propertyIndex, value); 856 } 857 858 863 public void setString(int propertyIndex, String value) 864 { 865 SDOUtil.setString(this, propertyIndex, value); 866 } 867 868 873 public BigDecimal getBigDecimal(Property property) 874 { 875 return SDOUtil.getBigDecimal(this, property); 876 } 877 878 883 public BigInteger getBigInteger(Property property) 884 { 885 return SDOUtil.getBigInteger(this, property); 886 } 887 888 893 public boolean getBoolean(Property property) 894 { 895 return SDOUtil.getBoolean(this, property); 896 } 897 898 903 public byte getByte(Property property) 904 { 905 return SDOUtil.getByte(this, property); 906 } 907 908 913 public byte[] getBytes(Property property) 914 { 915 return SDOUtil.getBytes(this, property); 916 } 917 918 923 public char getChar(Property property) 924 { 925 return SDOUtil.getChar(this, property); 926 } 927 928 933 public DataObject getDataObject(Property property) 934 { 935 return SDOUtil.getDataObject(this, property); 936 } 937 938 943 public Date getDate(Property property) 944 { 945 return SDOUtil.getDate(this, property); 946 } 947 948 953 public double getDouble(Property property) 954 { 955 return SDOUtil.getDouble(this, property); 956 } 957 958 963 public float getFloat(Property property) 964 { 965 return SDOUtil.getFloat(this, property); 966 } 967 968 973 public int getInt(Property property) 974 { 975 return SDOUtil.getInt(this, property); 976 } 977 978 983 public List getList(Property property) 984 { 985 return SDOUtil.getList(this, property); 986 } 987 988 993 public long getLong(Property property) 994 { 995 return SDOUtil.getLong(this, property); 996 } 997 998 1003 public Sequence getSequence(Property property) 1004 { 1005 return SDOUtil.getSequence(this, property); 1006 } 1007 1008 1013 public short getShort(Property property) 1014 { 1015 return SDOUtil.getShort(this, property); 1016 } 1017 1018 1023 public String getString(Property property) 1024 { 1025 return SDOUtil.getString(this, property); 1026 } 1027 1028 1033 public void setBigDecimal(Property property, BigDecimal value) 1034 { 1035 SDOUtil.setBigDecimal(this, property, value); 1036 } 1037 1038 1043 public void setBigInteger(Property property, BigInteger value) 1044 { 1045 SDOUtil.setBigInteger(this, property, value); 1046 } 1047 1048 1053 public void setBoolean(Property property, boolean value) 1054 { 1055 SDOUtil.setBoolean(this, property, value); 1056 } 1057 1058 1063 public void setByte(Property property, byte value) 1064 { 1065 SDOUtil.setByte(this, property, value); 1066 } 1067 1068 1073 public void setBytes(Property property, byte[] value) 1074 { 1075 SDOUtil.setBytes(this, property, value); 1076 } 1077 1078 1083 public void setChar(Property property, char value) 1084 { 1085 SDOUtil.setChar(this, property, value); 1086 } 1087 1088 1093 public void setDataObject(Property property, DataObject value) 1094 { 1095 SDOUtil.setDataObject(this, property, value); 1096 } 1097 1098 1103 public void setDate(Property property, Date value) 1104 { 1105 SDOUtil.setDate(this, property, value); 1106 } 1107 1108 1113 public void setDouble(Property property, double value) 1114 { 1115 SDOUtil.setDouble(this, property, value); 1116 } 1117 1118 1123 public void setFloat(Property property, float value) 1124 { 1125 SDOUtil.setFloat(this, property, value); 1126 } 1127 1128 1133 public void setInt(Property property, int value) 1134 { 1135 SDOUtil.setInt(this, property, value); 1136 } 1137 1138 1143 public void setList(Property property, List value) 1144 { 1145 SDOUtil.setList(this, property, value); 1146 } 1147 1148 1153 public void setLong(Property property, long value) 1154 { 1155 SDOUtil.setLong(this, property, value); 1156 } 1157 1158 1163 public void setShort(Property property, short value) 1164 { 1165 SDOUtil.setShort(this, property, value); 1166 } 1167 1168 1173 public void setString(Property property, String value) 1174 { 1175 SDOUtil.setString(this, property, value); 1176 } 1177 1178 1183 public DataObject createDataObject(String propertyName) 1184 { 1185 return SDOUtil.createDataObject(this, propertyName); 1186 } 1187 1188 1193 public DataObject createDataObject(int propertyIndex) 1194 { 1195 return SDOUtil.createDataObject(this, propertyIndex); 1196 } 1197 1198 1203 public DataObject createDataObject(Property property) 1204 { 1205 return SDOUtil.createDataObject(this, property); 1206 } 1207 1208 1213 public DataObject createDataObject(String propertyName, String namespaceURI, String typeName) 1214 { 1215 return SDOUtil.createDataObject(this, propertyName, namespaceURI, typeName); 1216 } 1217 1218 1223 public DataObject createDataObject(int propertyIndex, String namespaceURI, String typeName) 1224 { 1225 return SDOUtil.createDataObject(this, propertyIndex, namespaceURI, typeName); 1226 } 1227 1228 1233 public DataObject createDataObject(Property property, Type type) 1234 { 1235 return SDOUtil.createDataObject(this, property, type); 1236 } 1237 1238 1243 public void delete() 1244 { 1245 SDOUtil.delete(this); 1246 } 1247 1248 1253 public Object writeReplace() throws ObjectStreamException 1254 { 1255 return SDOUtil.writeReplace(this); 1256 } 1257 1258 1263 public List getInstanceProperties() 1264 { 1265 return SDOUtil.getInstanceProperties(this); 1266 } 1267 1268} | Popular Tags |