001    /**
002     * Copyright (c) 2000-2010 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.model;
016    
017    import com.liferay.portal.kernel.annotation.AutoEscape;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.service.ServiceContext;
020    
021    import com.liferay.portlet.expando.model.ExpandoBridge;
022    
023    import java.io.Serializable;
024    
025    import java.util.Date;
026    
027    /**
028     * <p>
029     * This interface is a model that represents the Lock_ table in the
030     * database.
031     * </p>
032     *
033     * @author    Brian Wing Shun Chan
034     * @see       Lock
035     * @see       com.liferay.portal.model.impl.LockImpl
036     * @see       com.liferay.portal.model.impl.LockModelImpl
037     * @generated
038     */
039    public interface LockModel extends BaseModel<Lock> {
040            public long getPrimaryKey();
041    
042            public void setPrimaryKey(long pk);
043    
044            @AutoEscape
045            public String getUuid();
046    
047            public void setUuid(String uuid);
048    
049            public long getLockId();
050    
051            public void setLockId(long lockId);
052    
053            public long getCompanyId();
054    
055            public void setCompanyId(long companyId);
056    
057            public long getUserId();
058    
059            public void setUserId(long userId);
060    
061            public String getUserUuid() throws SystemException;
062    
063            public void setUserUuid(String userUuid);
064    
065            @AutoEscape
066            public String getUserName();
067    
068            public void setUserName(String userName);
069    
070            public Date getCreateDate();
071    
072            public void setCreateDate(Date createDate);
073    
074            @AutoEscape
075            public String getClassName();
076    
077            public void setClassName(String className);
078    
079            @AutoEscape
080            public String getKey();
081    
082            public void setKey(String key);
083    
084            @AutoEscape
085            public String getOwner();
086    
087            public void setOwner(String owner);
088    
089            public boolean getInheritable();
090    
091            public boolean isInheritable();
092    
093            public void setInheritable(boolean inheritable);
094    
095            public Date getExpirationDate();
096    
097            public void setExpirationDate(Date expirationDate);
098    
099            public Lock toEscapedModel();
100    
101            public boolean isNew();
102    
103            public void setNew(boolean n);
104    
105            public boolean isCachedModel();
106    
107            public void setCachedModel(boolean cachedModel);
108    
109            public boolean isEscapedModel();
110    
111            public void setEscapedModel(boolean escapedModel);
112    
113            public Serializable getPrimaryKeyObj();
114    
115            public ExpandoBridge getExpandoBridge();
116    
117            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
118    
119            public Object clone();
120    
121            public int compareTo(Lock lock);
122    
123            public int hashCode();
124    
125            public String toString();
126    
127            public String toXmlString();
128    }