001
014
015 package com.liferay.portal.upgrade.v7_0_0;
016
017 import com.liferay.portal.kernel.dao.jdbc.DataAccess;
018 import com.liferay.portal.kernel.upgrade.UpgradeProcess;
019 import com.liferay.portal.model.ReleaseConstants;
020
021 import java.sql.Connection;
022 import java.sql.PreparedStatement;
023 import java.sql.ResultSet;
024 import java.sql.Timestamp;
025
026
029 public class UpgradeModules extends UpgradeProcess {
030
031 @Override
032 protected void doUpgrade() throws Exception {
033 Connection con = null;
034 PreparedStatement ps = null;
035 ResultSet rs = null;
036
037 try {
038 con = DataAccess.getUpgradeOptimizedConnection();
039
040 ps = con.prepareStatement(
041 "insert into Release_ values (?, ?, ?, ?, ?, ?, ?, ?, ?, " +
042 "?, ?)");
043
044 Timestamp timestamp = new Timestamp(System.currentTimeMillis());
045
046 for (String bundleSymbolicName : _bundleSymbolicNames) {
047 ps.setLong(1, increment());
048 ps.setTimestamp(2, timestamp);
049 ps.setTimestamp(3, timestamp);
050 ps.setString(4, bundleSymbolicName);
051 ps.setInt(5, 001);
052 ps.setTimestamp(6, timestamp);
053 ps.setInt(7, 1);
054 ps.setInt(8, 0);
055 ps.setString(9, ReleaseConstants.TEST_STRING);
056 ps.setString(10, "0.0.1");
057 ps.setLong(11, 0);
058
059 ps.addBatch();
060 }
061
062 ps.executeBatch();
063 }
064 finally {
065 DataAccess.cleanUp(con, ps, rs);
066 }
067 }
068
069 private static final String[] _bundleSymbolicNames = new String[] {
070 "com.liferay.amazon.rankings.web", "com.liferay.announcements.web",
071 "com.liferay.asset.browser.web",
072 "com.liferay.asset.categories.admin.web",
073 "com.liferay.asset.categories.navigation.web",
074 "com.liferay.asset.publisher.web", "com.liferay.asset.tags.admin.web",
075 "com.liferay.asset.tags.compiler.web",
076 "com.liferay.asset.tags.navigation.web",
077 "com.liferay.blogs.recent.bloggers.web", "com.liferay.blogs.web",
078 "com.liferay.bookmarks.service", "com.liferay.bookmarks.web",
079 "com.liferay.calendar.service", "com.liferay.calendar.web",
080 "com.liferay.comment.page.comments.web",
081 "com.liferay.currency.converter.web", "com.liferay.dictionary.web",
082 "com.liferay.document.library.web",
083 "com.liferay.dynamic.data.lists.service",
084 "com.liferay.dynamic.data.lists.web",
085 "com.liferay.dynamic.data.mapping.service", "com.liferay.expando.web",
086 "com.liferay.exportimport.web", "com.liferay.flags.page.flags.web",
087 "com.liferay.hello.velocity.web", "com.liferay.iframe.web",
088 "com.liferay.invitation.web", "com.liferay.item.selector.web",
089 "com.liferay.journal.content.search.web",
090 "com.liferay.journal.content.web", "com.liferay.journal.service",
091 "com.liferay.journal.web", "com.liferay.layout.admin.web",
092 "com.liferay.layout.prototype.web",
093 "com.liferay.layout.set.prototype.web",
094 "com.liferay.loan.calculator.web", "com.liferay.marketplace.service",
095 "com.liferay.message.boards.web", "com.liferay.microblogs.service",
096 "com.liferay.microblogs.web", "com.liferay.mobile.device.rules.web",
097 "com.liferay.my.account.web", "com.liferay.nested.portlets.web",
098 "com.liferay.network.utilities.web",
099 "com.liferay.password.generator.web",
100 "com.liferay.password.policies.admin.web",
101 "com.liferay.plugins.admin.web", "com.liferay.polls.service",
102 "com.liferay.portal.instances.web", "com.liferay.portal.lock.service",
103 "com.liferay.portal.settings.web",
104 "com.liferay.portal.workflow.kaleo.service",
105 "com.liferay.portlet.configuration.web", "com.liferay.portlet.css.web",
106 "com.liferay.quick.note.web.uprade;",
107 "com.liferay.ratings.page.ratings.web", "com.liferay.roles.admin.web",
108 "com.liferay.rss.web", "com.liferay.search.web",
109 "com.liferay.shopping.service", "com.liferay.shopping.web",
110 "com.liferay.site.admin.web", "com.liferay.site.browser.web",
111 "com.liferay.site.memberships.web", "com.liferay.site.my.sites.web",
112 "com.liferay.site.navigation.breadcrumb.web",
113 "com.liferay.site.navigation.directory.web",
114 "com.liferay.site.navigation.language.web",
115 "com.liferay.site.navigation.menu.web",
116 "com.liferay.site.navigation.site.map.web",
117 "com.liferay.site.teams.web", "com.liferay.social.activities.web",
118 "com.liferay.social.activity.web",
119 "com.liferay.social.group.statistics.web",
120 "com.liferay.social.networking.service",
121 "com.liferay.social.requests.web",
122 "com.liferay.social.user.statistics.web", "com.liferay.staging.bar.web",
123 "com.liferay.translator.web", "com.liferay.trash.web",
124 "com.liferay.unit.converter.web", "com.liferay.user.groups.admin.web",
125 "com.liferay.users.admin.web", "com.liferay.web.proxy.web",
126 "com.liferay.wiki.service", "com.liferay.wiki.web",
127 "com.liferay.xsl.content.web"
128 };
129
130 }