// Copyright 2004-2014 Jim Voris
//
// Licensed 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 com.qumasoft.server.datamodel;
import java.util.Date;
/**
* The directory history db model class.
* @author Jim Voris
*/
public class DirectoryHistory {
/*
* The SQL snippet used to create the Directory History table:
* ID INT GENERATED ALWAYS AS IDENTITY CONSTRAINT DIRECTORY_HISTORY_PK PRIMARY KEY, DIRECTORY_ID INT NOT NULL,
* ROOT_DIRECTORY_ID INT NOT NULL, PARENT_DIRECTORY_ID INT,BRANCH_ID INT NOT NULL, APPENDED_PATH VARCHAR(2048) NOT NULL,
* INSERT_DATE TIMESTAMP NOT NULL, UPDATE_DATE TIMESTAMP NOT NULL, DELETED_FLAG BOOLEAN NOT NULL);
*/
private Integer id;
private Integer directoryId;
private Integer rootDirectoryId;
private Integer parentDirectoryId;
private Integer branchId;
private String appendedPath;
private Date insertDate;
private Date updateDate;
private boolean deletedFlag;
/**
* Get the id (primary key).
* @return the id (primary key).
*/
public Integer getId() {
return id;
}
/**
* Set the id (primary key).
* @param pk the id (primary key).
*/
public void setId(Integer pk) {
this.id = pk;
}
/**
* Get the directory id.
* @return the directory id.
*/
public Integer getDirectoryId() {
return directoryId;
}
/**
* Set the directory id.
* @param dirId the directory id.
*/
public void setDirectoryId(Integer dirId) {
this.directoryId = dirId;
}
/**
* Get the branch id.
* @return the branch id.
*/
public Integer getBranchId() {
return branchId;
}
/**
* Set the branch id.
* @param bId the branch id.
*/
public void setBranchId(Integer bId) {
this.branchId = bId;
}
/**
* Get the appended path.
* @return the appended path.
*/
public String getAppendedPath() {
return appendedPath;
}
/**
* Set the appended path.
* @param path the appended path.
*/
public void setAppendedPath(String path) {
this.appendedPath = path;
}
/**
* Get the insert date.
* @return the insert date.
*/
public Date getInsertDate() {
return insertDate;
}
/**
* Set the insert date.
* @param iDate the insert date.
*/
public void setInsertDate(Date iDate) {
this.insertDate = iDate;
}
/**
* Get the update date.
* @return the update date.
*/
public Date getUpdateDate() {
return updateDate;
}
/**
* Set the update date.
* @param uDate the update date.
*/
public void setUpdateDate(Date uDate) {
this.updateDate = uDate;
}
/**
* Get the deleted flag.
* @return the deleted flag.
*/
public boolean isDeletedFlag() {
return deletedFlag;
}
/**
* Set the deleted flag.
* @param flag the deleted flag.
*/
public void setDeletedFlag(boolean flag) {
this.deletedFlag = flag;
}
/**
* Get the root directory id.
* @return the root directory id.
*/
public Integer getRootDirectoryId() {
return rootDirectoryId;
}
/**
* Set the root directory id.
* @param rootDirId the root directory id.
*/
public void setRootDirectoryId(Integer rootDirId) {
this.rootDirectoryId = rootDirId;
}
/**
* Get the parent directory id.
* @return the parent directory id.
*/
public Integer getParentDirectoryId() {
return parentDirectoryId;
}
/**
* Set the parent directory id.
* @param parentDirId the parent directory id.
*/
public void setParentDirectoryId(Integer parentDirId) {
this.parentDirectoryId = parentDirId;
}
}