1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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.model;
24  
25  import com.liferay.portal.SystemException;
26  import com.liferay.portal.service.ServiceContext;
27  
28  import com.liferay.portlet.expando.model.ExpandoBridge;
29  
30  import java.io.Serializable;
31  
32  import java.util.Date;
33  
34  /**
35   * <a href="LockModel.java.html"><b><i>View Source</i></b></a>
36   *
37   * <p>
38   * ServiceBuilder generated this class. Modifications in this class will be
39   * overwritten the next time is generated.
40   * </p>
41   *
42   * <p>
43   * This interface is a model that represents the Lock_ table in the
44   * database.
45   * </p>
46   *
47   * @author    Brian Wing Shun Chan
48   * @see       Lock
49   * @see       com.liferay.portal.model.impl.LockImpl
50   * @see       com.liferay.portal.model.impl.LockModelImpl
51   * @generated
52   */
53  public interface LockModel extends BaseModel<Lock> {
54      public long getPrimaryKey();
55  
56      public void setPrimaryKey(long pk);
57  
58      public String getUuid();
59  
60      public void setUuid(String uuid);
61  
62      public long getLockId();
63  
64      public void setLockId(long lockId);
65  
66      public long getCompanyId();
67  
68      public void setCompanyId(long companyId);
69  
70      public long getUserId();
71  
72      public void setUserId(long userId);
73  
74      public String getUserUuid() throws SystemException;
75  
76      public void setUserUuid(String userUuid);
77  
78      public String getUserName();
79  
80      public void setUserName(String userName);
81  
82      public Date getCreateDate();
83  
84      public void setCreateDate(Date createDate);
85  
86      public String getClassName();
87  
88      public void setClassName(String className);
89  
90      public String getKey();
91  
92      public void setKey(String key);
93  
94      public String getOwner();
95  
96      public void setOwner(String owner);
97  
98      public boolean getInheritable();
99  
100     public boolean isInheritable();
101 
102     public void setInheritable(boolean inheritable);
103 
104     public Date getExpirationDate();
105 
106     public void setExpirationDate(Date expirationDate);
107 
108     public Lock toEscapedModel();
109 
110     public boolean isNew();
111 
112     public boolean setNew(boolean n);
113 
114     public boolean isCachedModel();
115 
116     public void setCachedModel(boolean cachedModel);
117 
118     public boolean isEscapedModel();
119 
120     public void setEscapedModel(boolean escapedModel);
121 
122     public Serializable getPrimaryKeyObj();
123 
124     public ExpandoBridge getExpandoBridge();
125 
126     public void setExpandoBridgeAttributes(ServiceContext serviceContext);
127 
128     public Object clone();
129 
130     public int compareTo(Lock lock);
131 
132     public int hashCode();
133 
134     public String toString();
135 
136     public String toXmlString();
137 }