[Cayambe-development] CVS: core/src/org/cayambe/core CategoryVO.java,1.11,1.12 CayambeTreeNode.java,
Status: Pre-Alpha
Brought to you by:
jlward4
|
From: Jon R. <jon...@us...> - 2002-05-22 20:45:44
|
Update of /cvsroot/cayambe/core/src/org/cayambe/core
In directory usw-pr-cvs1:/tmp/cvs-serv8240/src/org/cayambe/core
Modified Files:
CategoryVO.java CayambeTreeNode.java ProductVO.java
Log Message:
Fixed problems with admin. Made VO's Serializable. Debug linkage error. Jboss needs mysql.jar in classpath at startup.
Index: CategoryVO.java
===================================================================
RCS file: /cvsroot/cayambe/core/src/org/cayambe/core/CategoryVO.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** CategoryVO.java 16 May 2002 20:23:37 -0000 1.11
--- CategoryVO.java 22 May 2002 20:45:41 -0000 1.12
***************
*** 137,141 ****
sb.append("\nCategoryVO {");
sb.append("\n\tId: " + id);
! sb.append("\n\tName: " + name);
sb.append("\n}");
return sb.toString();
--- 137,143 ----
sb.append("\nCategoryVO {");
sb.append("\n\tId: " + id);
! sb.append("\n\tParent Id: " + parentId);
! sb.append("\n\tName: " + name);
! sb.append("\n\tHeader: " + header);
sb.append("\n}");
return sb.toString();
Index: CayambeTreeNode.java
===================================================================
RCS file: /cvsroot/cayambe/core/src/org/cayambe/core/CayambeTreeNode.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CayambeTreeNode.java 21 Oct 2001 08:12:51 -0000 1.1
--- CayambeTreeNode.java 22 May 2002 20:45:41 -0000 1.2
***************
*** 29,32 ****
! }
!
--- 29,31 ----
! }
\ No newline at end of file
Index: ProductVO.java
===================================================================
RCS file: /cvsroot/cayambe/core/src/org/cayambe/core/ProductVO.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** ProductVO.java 7 May 2002 20:08:10 -0000 1.15
--- ProductVO.java 22 May 2002 20:45:41 -0000 1.16
***************
*** 2,12 ****
import java.io.Serializable;
! import org.cayambe.util.DollarFormat;
! //import org.cayambe.web.action.ProductActionForm;
public class ProductVO implements Serializable
{
!
! DollarFormat df = new DollarFormat();
private String productId = "0";
--- 2,15 ----
import java.io.Serializable;
! import java.text.NumberFormat;
! import java.util.Locale;
! //import org.cayambe.util.CayambeProperties;
public class ProductVO implements Serializable
{
!
! public ProductVO ()
! {
! }
private String productId = "0";
***************
*** 31,37 ****
public double getPrice() { return (this.price); }
! public void setPrice(double _price) { this.price = _price; }
! public String getDollarPrice() { return (df.getDollarFormat(price)); }
!
public String getImage() { return (this.image); }
--- 34,42 ----
public double getPrice() { return (this.price); }
! public void setPrice(double _price) { this.price = _price; }
! public String getDollarPrice() {
! NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.US);
! return (nf.format(price));
! }
public String getImage() { return (this.image); }
***************
*** 43,47 ****
public double getSalePrice() { return (this.salePrice); }
public void setSalePrice(double _salePrice) { this.salePrice = _salePrice; }
! public String getDollarSalePrice() { return (df.getDollarFormat(salePrice)); }
public boolean isOnSale() { return onSale; }
--- 48,55 ----
public double getSalePrice() { return (this.salePrice); }
public void setSalePrice(double _salePrice) { this.salePrice = _salePrice; }
! public String getDollarSalePrice() {
! NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.US);
! return (nf.format(salePrice));
! }
public boolean isOnSale() { return onSale; }
***************
*** 84,86 ****
}
! }
--- 92,95 ----
}
!
! }
\ No newline at end of file
|