// Path: src/org/uminho/gsd/benchmarks/interfaces/Entity.java
// public interface Entity {
// 
//     public String getKeyName();
// 
//     public TreeMap<String, Object> getValuesToInsert();
// 
// }


import java.util.TreeMap;
import org.uminho.gsd.benchmarks.interfaces.Entity;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
/*
 * *********************************************************************
 * Copyright (c) 2010 Pedro Gomes and Universidade do Minho.
 * All rights reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * ********************************************************************
 */

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.uminho.gsd.benchmarks.TPCW_CassandraOM.entities;





@PersistenceCapable(detachable = "true")
public class ShoppingCartLine implements Entity {

    @PrimaryKey
    String ShoppingCartLineID;

    String ShoppingCartID;
    @Persistent(defaultFetchGroup = "true")
    Item book;
    int qty;


    float SCL_COST;// The cost of the item in the CART
    float SCL_SRP;// The list price for the item in the CART
    String SCL_TITLE;// The title of the item in the CART
    String SCL_BACKING;// The backing of the item in the CART

    public ShoppingCartLine(String ShoppingCartID, Item book, int qty) {

        this.ShoppingCartLineID = ShoppingCartID + book.getI_id();
        this.ShoppingCartID = ShoppingCartID;
        this.book = book;


        this.qty = qty;
    }

    public String getShoppingCartID() {
        return ShoppingCartID;
    }

    public Item getBook() {
// Path: src/org/uminho/gsd/benchmarks/interfaces/Entity.java
// public interface Entity {
// 
//     public String getKeyName();
// 
//     public TreeMap<String, Object> getValuesToInsert();
// 
// }


// Path: TPCW_DOCM_Implementation/src/org/uminho/gsd/benchmarks/TPCW_CassandraOM/entities/ShoppingCartLine.java
import java.util.TreeMap;
import org.uminho.gsd.benchmarks.interfaces.Entity;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/*
 * *********************************************************************
 * Copyright (c) 2010 Pedro Gomes and Universidade do Minho.
 * All rights reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * ********************************************************************
 */

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.uminho.gsd.benchmarks.TPCW_CassandraOM.entities;





@PersistenceCapable(detachable = "true")
public class ShoppingCartLine implements Entity {

    @PrimaryKey
    String ShoppingCartLineID;

    String ShoppingCartID;
    @Persistent(defaultFetchGroup = "true")
    Item book;
    int qty;


    float SCL_COST;// The cost of the item in the CART
    float SCL_SRP;// The list price for the item in the CART
    String SCL_TITLE;// The title of the item in the CART
    String SCL_BACKING;// The backing of the item in the CART

    public ShoppingCartLine(String ShoppingCartID, Item book, int qty) {

        this.ShoppingCartLineID = ShoppingCartID + book.getI_id();
        this.ShoppingCartID = ShoppingCartID;
        this.book = book;


        this.qty = qty;
    }

    public String getShoppingCartID() {
        return ShoppingCartID;
    }

    public Item getBook() {
        return book;