/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.portal.upgrade.v6_1_0.util; import java.sql.Types; /** * @author Brian Wing Shun Chan * @generated */ public class LockTable { public static final String TABLE_NAME = "Lock_"; public static final Object[][] TABLE_COLUMNS = { {"uuid_", Types.VARCHAR}, {"lockId", Types.BIGINT}, {"companyId", Types.BIGINT}, {"userId", Types.BIGINT}, {"userName", Types.VARCHAR}, {"createDate", Types.TIMESTAMP}, {"className", Types.VARCHAR}, {"key_", Types.VARCHAR}, {"owner", Types.VARCHAR}, {"inheritable", Types.BOOLEAN}, {"expirationDate", Types.TIMESTAMP} }; public static final String TABLE_SQL_CREATE = "create table Lock_ (uuid_ VARCHAR(75) null,lockId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,className VARCHAR(75) null,key_ VARCHAR(200) null,owner VARCHAR(255) null,inheritable BOOLEAN,expirationDate DATE null)"; public static final String TABLE_SQL_DROP = "drop table Lock_"; public static final String[] TABLE_SQL_ADD_INDEXES = { "create index IX_228562AD on Lock_ (className, key_)", "create unique index IX_DD635956 on Lock_ (className, key_, owner)", "create index IX_E3F1286B on Lock_ (expirationDate)", "create index IX_13C5CD3A on Lock_ (uuid_)" }; }