1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.upgrade.v4_3_0.util;
24  
25  import java.sql.Types;
26  
27  /**
28   * <a href="ShoppingOrderTable.java.html"><b><i>View Source</i></b></a>
29   *
30   * @author Brian Wing Shun Chan
31   */
32  public class ShoppingOrderTable {
33  
34      public static String TABLE_NAME = "ShoppingOrder";
35  
36      public static Object[][] TABLE_COLUMNS = {
37          {"orderId", new Integer(Types.BIGINT)},
38          {"groupId", new Integer(Types.BIGINT)},
39          {"companyId", new Integer(Types.BIGINT)},
40          {"userId", new Integer(Types.BIGINT)},
41          {"userName", new Integer(Types.VARCHAR)},
42          {"createDate", new Integer(Types.TIMESTAMP)},
43          {"modifiedDate", new Integer(Types.TIMESTAMP)},
44          {"number_", new Integer(Types.VARCHAR)},
45          {"tax", new Integer(Types.DOUBLE)},
46          {"shipping", new Integer(Types.DOUBLE)},
47          {"altShipping", new Integer(Types.VARCHAR)},
48          {"requiresShipping", new Integer(Types.BOOLEAN)},
49          {"insure", new Integer(Types.BOOLEAN)},
50          {"insurance", new Integer(Types.DOUBLE)},
51          {"couponCodes", new Integer(Types.VARCHAR)},
52          {"couponDiscount", new Integer(Types.DOUBLE)},
53          {"billingFirstName", new Integer(Types.VARCHAR)},
54          {"billingLastName", new Integer(Types.VARCHAR)},
55          {"billingEmailAddress", new Integer(Types.VARCHAR)},
56          {"billingCompany", new Integer(Types.VARCHAR)},
57          {"billingStreet", new Integer(Types.VARCHAR)},
58          {"billingCity", new Integer(Types.VARCHAR)},
59          {"billingState", new Integer(Types.VARCHAR)},
60          {"billingZip", new Integer(Types.VARCHAR)},
61          {"billingCountry", new Integer(Types.VARCHAR)},
62          {"billingPhone", new Integer(Types.VARCHAR)},
63          {"shipToBilling", new Integer(Types.BOOLEAN)},
64          {"shippingFirstName", new Integer(Types.VARCHAR)},
65          {"shippingLastName", new Integer(Types.VARCHAR)},
66          {"shippingEmailAddress", new Integer(Types.VARCHAR)},
67          {"shippingCompany", new Integer(Types.VARCHAR)},
68          {"shippingStreet", new Integer(Types.VARCHAR)},
69          {"shippingCity", new Integer(Types.VARCHAR)},
70          {"shippingState", new Integer(Types.VARCHAR)},
71          {"shippingZip", new Integer(Types.VARCHAR)},
72          {"shippingCountry", new Integer(Types.VARCHAR)},
73          {"shippingPhone", new Integer(Types.VARCHAR)},
74          {"ccName", new Integer(Types.VARCHAR)},
75          {"ccType", new Integer(Types.VARCHAR)},
76          {"ccNumber", new Integer(Types.VARCHAR)},
77          {"ccExpMonth", new Integer(Types.INTEGER)},
78          {"ccExpYear", new Integer(Types.INTEGER)},
79          {"ccVerNumber", new Integer(Types.VARCHAR)},
80          {"comments", new Integer(Types.VARCHAR)},
81          {"ppTxnId", new Integer(Types.VARCHAR)},
82          {"ppPaymentStatus", new Integer(Types.VARCHAR)},
83          {"ppPaymentGross", new Integer(Types.DOUBLE)},
84          {"ppReceiverEmail", new Integer(Types.VARCHAR)},
85          {"ppPayerEmail", new Integer(Types.VARCHAR)},
86          {"sendOrderEmail", new Integer(Types.BOOLEAN)},
87          {"sendShippingEmail", new Integer(Types.BOOLEAN)}
88      };
89  
90      public static String TABLE_SQL_CREATE = "create table ShoppingOrder (orderId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,number_ VARCHAR(75) null,tax DOUBLE,shipping DOUBLE,altShipping VARCHAR(75) null,requiresShipping BOOLEAN,insure BOOLEAN,insurance DOUBLE,couponCodes VARCHAR(75) null,couponDiscount DOUBLE,billingFirstName VARCHAR(75) null,billingLastName VARCHAR(75) null,billingEmailAddress VARCHAR(75) null,billingCompany VARCHAR(75) null,billingStreet VARCHAR(75) null,billingCity VARCHAR(75) null,billingState VARCHAR(75) null,billingZip VARCHAR(75) null,billingCountry VARCHAR(75) null,billingPhone VARCHAR(75) null,shipToBilling BOOLEAN,shippingFirstName VARCHAR(75) null,shippingLastName VARCHAR(75) null,shippingEmailAddress VARCHAR(75) null,shippingCompany VARCHAR(75) null,shippingStreet VARCHAR(75) null,shippingCity VARCHAR(75) null,shippingState VARCHAR(75) null,shippingZip VARCHAR(75) null,shippingCountry VARCHAR(75) null,shippingPhone VARCHAR(75) null,ccName VARCHAR(75) null,ccType VARCHAR(75) null,ccNumber VARCHAR(75) null,ccExpMonth INTEGER,ccExpYear INTEGER,ccVerNumber VARCHAR(75) null,comments STRING null,ppTxnId VARCHAR(75) null,ppPaymentStatus VARCHAR(75) null,ppPaymentGross DOUBLE,ppReceiverEmail VARCHAR(75) null,ppPayerEmail VARCHAR(75) null,sendOrderEmail BOOLEAN,sendShippingEmail BOOLEAN)";
91  
92      public static String TABLE_SQL_DROP = "drop table ShoppingOrder";
93  
94  }