001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.upgrade.v7_0_0.util;
016    
017    import java.sql.Types;
018    
019    import java.util.HashMap;
020    import java.util.Map;
021    
022    /**
023     * @author        Brian Wing Shun Chan
024     * @generated
025     */
026    public class AssetEntryTable {
027    
028            public static final String TABLE_NAME = "AssetEntry";
029    
030            public static final Object[][] TABLE_COLUMNS = {
031                    {"entryId", Types.BIGINT},
032                    {"groupId", Types.BIGINT},
033                    {"companyId", Types.BIGINT},
034                    {"userId", Types.BIGINT},
035                    {"userName", Types.VARCHAR},
036                    {"createDate", Types.TIMESTAMP},
037                    {"modifiedDate", Types.TIMESTAMP},
038                    {"classNameId", Types.BIGINT},
039                    {"classPK", Types.BIGINT},
040                    {"classUuid", Types.VARCHAR},
041                    {"classTypeId", Types.BIGINT},
042                    {"listable", Types.BOOLEAN},
043                    {"visible", Types.BOOLEAN},
044                    {"startDate", Types.TIMESTAMP},
045                    {"endDate", Types.TIMESTAMP},
046                    {"publishDate", Types.TIMESTAMP},
047                    {"expirationDate", Types.TIMESTAMP},
048                    {"mimeType", Types.VARCHAR},
049                    {"title", Types.VARCHAR},
050                    {"description", Types.CLOB},
051                    {"summary", Types.CLOB},
052                    {"url", Types.VARCHAR},
053                    {"layoutUuid", Types.VARCHAR},
054                    {"height", Types.INTEGER},
055                    {"width", Types.INTEGER},
056                    {"priority", Types.DOUBLE},
057                    {"viewCount", Types.INTEGER}
058            };
059    
060            public static final Map<String, Integer> TABLE_COLUMNS_MAP = new HashMap<String, Integer>();
061    
062    static {
063    TABLE_COLUMNS_MAP.put("entryId", Types.BIGINT);
064    
065    TABLE_COLUMNS_MAP.put("groupId", Types.BIGINT);
066    
067    TABLE_COLUMNS_MAP.put("companyId", Types.BIGINT);
068    
069    TABLE_COLUMNS_MAP.put("userId", Types.BIGINT);
070    
071    TABLE_COLUMNS_MAP.put("userName", Types.VARCHAR);
072    
073    TABLE_COLUMNS_MAP.put("createDate", Types.TIMESTAMP);
074    
075    TABLE_COLUMNS_MAP.put("modifiedDate", Types.TIMESTAMP);
076    
077    TABLE_COLUMNS_MAP.put("classNameId", Types.BIGINT);
078    
079    TABLE_COLUMNS_MAP.put("classPK", Types.BIGINT);
080    
081    TABLE_COLUMNS_MAP.put("classUuid", Types.VARCHAR);
082    
083    TABLE_COLUMNS_MAP.put("classTypeId", Types.BIGINT);
084    
085    TABLE_COLUMNS_MAP.put("listable", Types.BOOLEAN);
086    
087    TABLE_COLUMNS_MAP.put("visible", Types.BOOLEAN);
088    
089    TABLE_COLUMNS_MAP.put("startDate", Types.TIMESTAMP);
090    
091    TABLE_COLUMNS_MAP.put("endDate", Types.TIMESTAMP);
092    
093    TABLE_COLUMNS_MAP.put("publishDate", Types.TIMESTAMP);
094    
095    TABLE_COLUMNS_MAP.put("expirationDate", Types.TIMESTAMP);
096    
097    TABLE_COLUMNS_MAP.put("mimeType", Types.VARCHAR);
098    
099    TABLE_COLUMNS_MAP.put("title", Types.VARCHAR);
100    
101    TABLE_COLUMNS_MAP.put("description", Types.CLOB);
102    
103    TABLE_COLUMNS_MAP.put("summary", Types.CLOB);
104    
105    TABLE_COLUMNS_MAP.put("url", Types.VARCHAR);
106    
107    TABLE_COLUMNS_MAP.put("layoutUuid", Types.VARCHAR);
108    
109    TABLE_COLUMNS_MAP.put("height", Types.INTEGER);
110    
111    TABLE_COLUMNS_MAP.put("width", Types.INTEGER);
112    
113    TABLE_COLUMNS_MAP.put("priority", Types.DOUBLE);
114    
115    TABLE_COLUMNS_MAP.put("viewCount", Types.INTEGER);
116    
117    }
118            public static final String TABLE_SQL_CREATE = "create table AssetEntry (entryId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,classNameId LONG,classPK LONG,classUuid VARCHAR(75) null,classTypeId LONG,listable BOOLEAN,visible BOOLEAN,startDate DATE null,endDate DATE null,publishDate DATE null,expirationDate DATE null,mimeType VARCHAR(75) null,title STRING null,description TEXT null,summary TEXT null,url STRING null,layoutUuid VARCHAR(75) null,height INTEGER,width INTEGER,priority DOUBLE,viewCount INTEGER)";
119    
120            public static final String TABLE_SQL_DROP = "drop table AssetEntry";
121    
122            public static final String[] TABLE_SQL_ADD_INDEXES = {
123                    "create unique index IX_1E9D371D on AssetEntry (classNameId, classPK)",
124                    "create index IX_7306C60 on AssetEntry (companyId)",
125                    "create index IX_75D42FF9 on AssetEntry (expirationDate)",
126                    "create index IX_1EBA6821 on AssetEntry (groupId, classUuid[$COLUMN_LENGTH:75$])",
127                    "create index IX_FEC4A201 on AssetEntry (layoutUuid[$COLUMN_LENGTH:75$])",
128                    "create index IX_2E4E3885 on AssetEntry (publishDate)",
129                    "create index IX_9029E15A on AssetEntry (visible)"
130            };
131    
132    }