001: /*
002: * Copyright 2006-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.opensource.org/licenses/ecl1.php
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016:
017: package org.kuali.core.bo;
018:
019: import java.sql.Timestamp;
020: import java.util.LinkedHashMap;
021:
022: /**
023: *
024: */
025: public class ConcurrentLock extends PersistableBusinessObjectBase {
026:
027: private String transactionSemaphoreTypeCode;
028: private String transactionSemaphoreId;
029: private String personUniversalIdentifier;
030: private Timestamp transactionLocktimeTimestamp;
031:
032: private LockTypeDescription lockTypeDescription;
033:
034: /**
035: * Default constructor.
036: */
037: public ConcurrentLock() {
038:
039: }
040:
041: /**
042: * Gets the transactionSemaphoreTypeCode attribute.
043: *
044: * @return Returns the transactionSemaphoreTypeCode
045: *
046: */
047: public String getTransactionSemaphoreTypeCode() {
048: return transactionSemaphoreTypeCode;
049: }
050:
051: /**
052: * Sets the transactionSemaphoreTypeCode attribute.
053: *
054: * @param transactionSemaphoreTypeCode The transactionSemaphoreTypeCode to set.
055: *
056: */
057: public void setTransactionSemaphoreTypeCode(
058: String transactionSemaphoreTypeCode) {
059: this .transactionSemaphoreTypeCode = transactionSemaphoreTypeCode;
060: }
061:
062: /**
063: * Gets the transactionSemaphoreId attribute.
064: *
065: * @return Returns the transactionSemaphoreId
066: *
067: */
068: public String getTransactionSemaphoreId() {
069: return transactionSemaphoreId;
070: }
071:
072: /**
073: * Sets the transactionSemaphoreId attribute.
074: *
075: * @param transactionSemaphoreId The transactionSemaphoreId to set.
076: *
077: */
078: public void setTransactionSemaphoreId(String transactionSemaphoreId) {
079: this .transactionSemaphoreId = transactionSemaphoreId;
080: }
081:
082: /**
083: * Gets the personUniversalIdentifier attribute.
084: *
085: * @return Returns the personUniversalIdentifier
086: *
087: */
088: public String getPersonUniversalIdentifier() {
089: return personUniversalIdentifier;
090: }
091:
092: /**
093: * Sets the personUniversalIdentifier attribute.
094: *
095: * @param personUniversalIdentifier The personUniversalIdentifier to set.
096: *
097: */
098: public void setPersonUniversalIdentifier(
099: String personUniversalIdentifier) {
100: this .personUniversalIdentifier = personUniversalIdentifier;
101: }
102:
103: /**
104: * Gets the transactionLocktimeTimestamp attribute.
105: *
106: * @return Returns the transactionLocktimeTimestamp
107: *
108: */
109: public Timestamp getTransactionLocktimeTimestamp() {
110: return transactionLocktimeTimestamp;
111: }
112:
113: /**
114: * Sets the transactionLocktimeTimestamp attribute.
115: *
116: * @param transactionLocktimeTimestamp The transactionLocktimeTimestamp to set.
117: *
118: */
119: public void setTransactionLocktimeTimestamp(
120: Timestamp transactionLocktimeTimestamp) {
121: this .transactionLocktimeTimestamp = transactionLocktimeTimestamp;
122: }
123:
124: /**
125: * Gets the lockTypeDescription attribute.
126: * @return Returns the lockTypeDescription.
127: */
128: public LockTypeDescription getLockTypeDescription() {
129: return lockTypeDescription;
130: }
131:
132: /**
133: * Sets the lockTypeDescription attribute value.
134: * @param lockTypeDescription The lockTypeDescription to set.
135: * @deprecated
136: */
137: public void setLockTypeDescription(
138: LockTypeDescription lockTypeDescription) {
139: this .lockTypeDescription = lockTypeDescription;
140: }
141:
142: /**
143: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
144: */
145: protected LinkedHashMap toStringMapper() {
146: LinkedHashMap m = new LinkedHashMap();
147: m.put("transactionSemaphoreTypeCode",
148: this .transactionSemaphoreTypeCode);
149: m.put("transactionSemaphoreId", this.transactionSemaphoreId);
150: return m;
151: }
152: }
|