org.jasig.schedassist.impl.owner.PersistenceScheduleOwner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sched-assist-spi Show documentation
Show all versions of sched-assist-spi Show documentation
Scheduling Assistant Common Service Provider implementations.
/**
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a
* copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.jasig.schedassist.impl.owner;
/**
* This class represents only the fields that are persisted in the available database for a schedule owner.
*
* @author Nicholas Blair, [email protected]
* @version $Id: PersistenceScheduleOwner.java 2000 2010-04-23 17:33:02Z npblair $
*/
class PersistenceScheduleOwner {
private long id;
private String username;
private String calendarUniqueId;
/**
* @return the id
*/
public long getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(long id) {
this.id = id;
}
/**
* @return the username
*/
public String getUsername() {
return username;
}
/**
* @param username the username to set
*/
public void setUsername(String username) {
this.username = username;
}
/**
* @return the calendarUniqueId
*/
public String getCalendarUniqueId() {
return calendarUniqueId;
}
/**
* @param calendarUniqueId the calendarUniqueId to set
*/
public void setCalendarUniqueId(String calendarUniqueId) {
this.calendarUniqueId = calendarUniqueId;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("PersistenceScheduleOwner [calendarUniqueId=");
builder.append(calendarUniqueId);
builder.append(", id=");
builder.append(id);
builder.append(", username=");
builder.append(username);
builder.append("]");
return builder.toString();
}
}