basecatalogitem.java
来自「Sample Hibernate Shopping Cart Applicati」· Java 代码 · 共 70 行
JAVA
70 行
/*
* @(#)BaseCatalogItem.java $LastChangedRevision$ $LastChangedDate$
* Created on February 10, 2005, 8:33 PM
*
* Copyright (c) 2005, Daniel Watrous
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are governed by the license found in
* the following places:
* license.txt included with this distribution, or
* http://www.simplecart.org/license.html
*
*/
package org.simplecart.shopcart.catalog;
/**
*
* @version $LastChangedRevision$ $LastChangedDate$
* @author Daniel Watrous
*/
public abstract class BaseCatalogItem implements CatalogItem {
private Long id;
private SearchUtility searchDetails;
private String name;
private String description;
private boolean consumerVisible;
/**
* Default no args constructor
*/
public BaseCatalogItem() {
}
public Long getId() {
return id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public SearchUtility getSearchDetails() {
return searchDetails;
}
public void setSearchDetails(SearchUtility searchDetails) {
this.searchDetails = searchDetails;
}
public void setConsumerVisible(boolean consumerVisible) {
this.consumerVisible = consumerVisible;
}
// below are CatalogItem method(s)
public boolean isConsumerVisible() {
return consumerVisible;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?