home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / EODEV.Z / Member.plist < prev    next >
Encoding:
Text File  |  1996-08-24  |  4.8 KB  |  173 lines

  1. {
  2.     attributes = (
  3.         {
  4.             allowsNull = Y; 
  5.             columnName = CARD_NUMBER; 
  6.             externalType = VARCHAR2; 
  7.             name = cardNumber; 
  8.             valueClassName = NSString; 
  9.             width = 25; 
  10.         }, 
  11.         {
  12.             allowsNull = Y; 
  13.             columnName = CARD_TYPE; 
  14.             externalType = VARCHAR2; 
  15.             name = cardType; 
  16.             valueClassName = NSString; 
  17.             width = 20; 
  18.         }, 
  19.         {
  20.             columnName = CITY; 
  21.             externalType = VARCHAR2; 
  22.             name = city; 
  23.             valueClassName = NSString; 
  24.             width = 20; 
  25.         }, 
  26.         {
  27.             allowsNull = Y; 
  28.             columnName = CUSTOMER_ID; 
  29.             externalType = NUMBER; 
  30.             name = customerID; 
  31.             precision = 9; 
  32.             valueClassName = NSNumber; 
  33.             valueType = i; 
  34.         }, 
  35.         {
  36.             definition = toCustomer.firstName; 
  37.             externalType = VARCHAR2; 
  38.             name = firstName; 
  39.             valueClassName = NSString; 
  40.             width = 20; 
  41.         }, 
  42.         {
  43.             definition = toCustomer.lastName; 
  44.             externalType = VARCHAR2; 
  45.             name = lastName; 
  46.             valueClassName = NSString; 
  47.             width = 30; 
  48.         }, 
  49.         {
  50.             allowsNull = Y; 
  51.             columnName = MEMBER_SINCE; 
  52.             externalType = DATE; 
  53.             name = memberSince; 
  54.             valueClassName = NSCalendarDate; 
  55.         }, 
  56.         {
  57.             allowsNull = Y; 
  58.             columnName = PHONE; 
  59.             externalType = VARCHAR2; 
  60.             name = phone; 
  61.             valueClassName = NSString; 
  62.             width = 10; 
  63.         }, 
  64.         {
  65.             allowsNull = Y; 
  66.             columnName = STATE; 
  67.             externalType = CHAR; 
  68.             name = state; 
  69.             valueClassName = NSString; 
  70.             width = 2; 
  71.         }, 
  72.         {
  73.             allowsNull = Y; 
  74.             columnName = STREET_ADDRESS; 
  75.             externalType = VARCHAR2; 
  76.             name = streetAddress; 
  77.             valueClassName = NSString; 
  78.             width = 50; 
  79.         }, 
  80.         {
  81.             allowsNull = Y; 
  82.             columnName = ZIP; 
  83.             externalType = VARCHAR2; 
  84.             name = zip; 
  85.             valueClassName = NSString; 
  86.             width = 10; 
  87.         }
  88.     ); 
  89.     attributesUsedForLocking = (
  90.         customerID, 
  91.         cardNumber, 
  92.         cardType, 
  93.         streetAddress, 
  94.         city, 
  95.         state, 
  96.         zip, 
  97.         phone, 
  98.         memberSince, 
  99.         firstName, 
  100.         lastName
  101.     ); 
  102.     className = Member; 
  103.     classProperties = (
  104.         city, 
  105.         memberSince, 
  106.         phone, 
  107.         state, 
  108.         streetAddress, 
  109.         zip, 
  110.         rentals, 
  111.         firstName, 
  112.         lastName, 
  113.         customerID, 
  114.         creditCard, 
  115.         guests
  116.     ); 
  117.     externalName = MEMBER; 
  118.     maxNumberOfInstancesToBatchFetch = 20; 
  119.     name = Member; 
  120.     parent = Customer; 
  121.     primaryKeyAttributes = (customerID); 
  122.     relationships = (
  123.         {
  124.             deleteRule = EODeleteRuleCascade; 
  125.             destination = CreditCard; 
  126.             isToMany = N; 
  127.             joinSemantic = EOInnerJoin; 
  128.             joins = (
  129.                 {destinationAttribute = cardNumber; sourceAttribute = cardNumber; }, 
  130.                 {destinationAttribute = cardType; sourceAttribute = cardType; }
  131.             ); 
  132.             name = creditCard; 
  133.             ownsDestination = Y; 
  134.         }, 
  135.         {
  136.             deleteRule = EODeleteRuleCascade; 
  137.             destination = Guest; 
  138.             isToMany = Y; 
  139.             joinSemantic = EOInnerJoin; 
  140.             joins = ({destinationAttribute = memberID; sourceAttribute = customerID; }); 
  141.             name = guests; 
  142.             ownsDestination = Y; 
  143.         }, 
  144.         {
  145.             destination = Member; 
  146.             isToMany = N; 
  147.             joinSemantic = EOInnerJoin; 
  148.             joins = ({destinationAttribute = customerID; sourceAttribute = customerID; }); 
  149.             name = member; 
  150.         }, 
  151.         {
  152.             deleteRule = EODeleteRuleDeny; 
  153.             destination = Rental; 
  154.             isToMany = Y; 
  155.             joinSemantic = EOInnerJoin; 
  156.             joins = ({destinationAttribute = customerID; sourceAttribute = customerID; }); 
  157.             name = rentals; 
  158.             numberOfToManyFaultsToBatchFetch = 5; 
  159.         }, 
  160.         {
  161.             deleteRule = EODeleteRuleCascade; 
  162.             destination = Customer; 
  163.             isToMany = N; 
  164.             joinSemantic = EOInnerJoin; 
  165.             joins = ({destinationAttribute = customerID; sourceAttribute = customerID; }); 
  166.             name = toCustomer; 
  167.             ownsDestination = Y; 
  168.             propagatesPrimaryKey = Y; 
  169.         }, 
  170.         {definition = rentals.fees; joinSemantic = EOInnerJoin; name = unpaidFees; }
  171.     ); 
  172. }
  173.