ejb.interface-method if (orderItems == null) orderItems = new java.util.ArrayList(); orderItems.add(orderItem);
if (orderItems == null) orderItems = new java.util.ArrayList(); orderItems.add(orderItem);
ejb.interface-method double total = 0; Iterator it = getOrderItems( ).iterator( ); while ( it.hasNext( ) ) { total += ( ( OrderItem ) it.next( ) ).calculateSubTotal( ); } return total;
double total = 0; Iterator it = getOrderItems( ).iterator( ); while ( it.hasNext( ) ) { total += ( ( OrderItem ) it.next( ) ).calculateSubTotal( ); } return total;
ejb.interface-method setStatus( status );
setStatus( status );
ejb.persistence column-name="city" jdbc-type="VARCHAR" sql-type="varchar(25)" return city;
return city;
ejb.persistence column-name="country" jdbc-type="VARCHAR" sql-type="varchar(3)" return country;
return country;
ejb.persistence column-name="creditCardExpiryDate" jdbc-type="VARCHAR" sql-type="varchar(10)" return creditCardExpiryDate;
return creditCardExpiryDate;
ejb.persistence column-name="creditCardNumber" jdbc-type="VARCHAR" sql-type="varchar(25)" return creditCardNumber;
return creditCardNumber;
ejb.persistence column-name="creditCardType" jdbc-type="VARCHAR" sql-type="varchar(25)" return creditCardType;
return creditCardType;
ejb.interface-methodejb.relation name="order-customer" role-name="order-belongs_to-customer" target-ejb="Customer" target-role-name="customer-has-orders" target=multiple="yes"jboss.relation fk-column="customer_fk" related-pk-field="userId"weblogic.column-map foreign-key-column="customer_fk" return customer;
return customer;
ejb.persistence column-name="orderDate" return orderDate;
return orderDate;
ejb.interface-methodejb.relation name="order-orderItem" role-name="order-has-orderItems" target-ejb="OrderItem" target-role-name="orderItem-belongs_to-order" target-cascade-delete="yes"jboss.target-relation fk-column="order_fk" related-pk-field="orderUId" fk-contraint="${db.foreign.key}weblogic.target-column-map foreign-key-column="order_fk" return orderItems;
return orderItems;
ejb.pk-fieldejb.persistence column-name="orderUId"ejb.interface-methodejb.transaction type="Supports" return orderUid;
return orderUid;
ejb.persistence column-name="state" jdbc-type="VARCHAR" sql-type="varchar(3)" return state;
return state;
ejb.persistence column-name="status" jdbc-type="VARCHAR" sql-type="varchar(25)" return status;
return status;
ejb.persistence column-name="street1" jdbc-type="VARCHAR" sql-type="varchar(50)" return street1;
return street1;
ejb.persistence column-name="street2" jdbc-type="VARCHAR" sql-type="varchar(50)" return street2;
return street2;
ejb.persistence column-name="zipcode" jdbc-type="VARCHAR" sql-type="varchar(10)" return zipcode;
return zipcode;
this.city = city;
this.country = country;
this.creditCardExpiryDate = creditCardExpiryDate;
this.creditCardNumber = creditCardNumber;
this.creditCardType = creditCardType;
ejb.interface-method this.customer = customer;
this.customer = customer;
this.orderDate = orderDate;
this.orderItems = orderItems;
this.orderUid = orderUId;
this.state = state;
this.status = status;
this.street1 = street1;
this.street2 = street2;
this.zipcode = zipcode;