1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.model;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.annotation.AutoEscape;
19  import com.liferay.portal.service.ServiceContext;
20  
21  import com.liferay.portlet.expando.model.ExpandoBridge;
22  
23  import java.io.Serializable;
24  
25  import java.util.Date;
26  
27  /**
28   * <a href="LockModel.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This interface is a model that represents the Lock_ table in the
37   * database.
38   * </p>
39   *
40   * @author    Brian Wing Shun Chan
41   * @see       Lock
42   * @see       com.liferay.portal.model.impl.LockImpl
43   * @see       com.liferay.portal.model.impl.LockModelImpl
44   * @generated
45   */
46  public interface LockModel extends BaseModel<Lock> {
47      public long getPrimaryKey();
48  
49      public void setPrimaryKey(long pk);
50  
51      @AutoEscape
52      public String getUuid();
53  
54      public void setUuid(String uuid);
55  
56      public long getLockId();
57  
58      public void setLockId(long lockId);
59  
60      public long getCompanyId();
61  
62      public void setCompanyId(long companyId);
63  
64      public long getUserId();
65  
66      public void setUserId(long userId);
67  
68      public String getUserUuid() throws SystemException;
69  
70      public void setUserUuid(String userUuid);
71  
72      @AutoEscape
73      public String getUserName();
74  
75      public void setUserName(String userName);
76  
77      public Date getCreateDate();
78  
79      public void setCreateDate(Date createDate);
80  
81      @AutoEscape
82      public String getClassName();
83  
84      public void setClassName(String className);
85  
86      @AutoEscape
87      public String getKey();
88  
89      public void setKey(String key);
90  
91      @AutoEscape
92      public String getOwner();
93  
94      public void setOwner(String owner);
95  
96      public boolean getInheritable();
97  
98      public boolean isInheritable();
99  
100     public void setInheritable(boolean inheritable);
101 
102     public Date getExpirationDate();
103 
104     public void setExpirationDate(Date expirationDate);
105 
106     public boolean isNew();
107 
108     public boolean setNew(boolean n);
109 
110     public boolean isCachedModel();
111 
112     public void setCachedModel(boolean cachedModel);
113 
114     public boolean isEscapedModel();
115 
116     public void setEscapedModel(boolean escapedModel);
117 
118     public Serializable getPrimaryKeyObj();
119 
120     public ExpandoBridge getExpandoBridge();
121 
122     public void setExpandoBridgeAttributes(ServiceContext serviceContext);
123 
124     public Object clone();
125 
126     public int compareTo(Lock lock);
127 
128     public int hashCode();
129 
130     public Lock toEscapedModel();
131 
132     public String toString();
133 
134     public String toXmlString();
135 }