From 1179079fb371ae8285319ae1e596ddc305599337 Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Wed, 17 Jan 2007 21:05:39 +0000 Subject: [PATCH] [ 1638040 ] 2pack pk_name do not nesseary in detail and change to Name --- .../org/compiere/model/X_AD_Package_Exp.java | 22 +++++++++---------- .../model/X_AD_Package_Exp_Common.java | 20 ++++++++--------- .../model/X_AD_Package_Exp_Detail.java | 20 +---------------- 3 files changed, 22 insertions(+), 40 deletions(-) diff --git a/dbPort/src/org/compiere/model/X_AD_Package_Exp.java b/dbPort/src/org/compiere/model/X_AD_Package_Exp.java index 593819454a..e542c9ac2d 100644 --- a/dbPort/src/org/compiere/model/X_AD_Package_Exp.java +++ b/dbPort/src/org/compiere/model/X_AD_Package_Exp.java @@ -44,7 +44,7 @@ setDescription (null); setEMail (null); setFile_Directory (null); setInstructions (null); -setPK_Name (null); +setName (null); setPK_Version (null); setProcessing (false); setReleaseNo (null); @@ -216,23 +216,23 @@ public String getInstructions() { return (String)get_Value("Instructions"); } -/** Set PK_Name. -@param PK_Name Name of Package */ -public void setPK_Name (String PK_Name) +/** Set Name. +@param Name Name of Package */ +public void setName (String Name) { -if (PK_Name == null) throw new IllegalArgumentException ("PK_Name is mandatory."); -if (PK_Name.length() > 60) +if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); +if (Name.length() > 60) { log.warning("Length > 60 - truncated"); -PK_Name = PK_Name.substring(0,59); +Name = Name.substring(0,59); } -set_Value ("PK_Name", PK_Name); +set_Value ("Name", Name); } -/** Get PK_Name. +/** Get Name. @return Name of Package */ -public String getPK_Name() +public String getName() { -return (String)get_Value("PK_Name"); +return (String)get_Value("Name"); } /** Set PK_Version. @param PK_Version Package Version */ diff --git a/dbPort/src/org/compiere/model/X_AD_Package_Exp_Common.java b/dbPort/src/org/compiere/model/X_AD_Package_Exp_Common.java index 89d18993a2..216d4ea7c0 100644 --- a/dbPort/src/org/compiere/model/X_AD_Package_Exp_Common.java +++ b/dbPort/src/org/compiere/model/X_AD_Package_Exp_Common.java @@ -403,22 +403,22 @@ public String getName2() { return (String)get_Value("Name2"); } -/** Set PK_Name. -@param PK_Name PK_Name */ -public void setPK_Name (String PK_Name) +/** Set Name. +@param Name Name */ +public void setName (String Name) { -if (PK_Name != null && PK_Name.length() > 60) +if (Name != null && Name.length() > 60) { log.warning("Length > 60 - truncated"); -PK_Name = PK_Name.substring(0,59); +Name = Name.substring(0,59); } -set_Value ("PK_Name", PK_Name); +set_Value ("Name", Name); } -/** Get PK_Name. -@return PK_Name */ -public String getPK_Name() +/** Get Name. +@return Name */ +public String getName() { -return (String)get_Value("PK_Name"); +return (String)get_Value("Name"); } /** Set Processed. @param Processed The document has been processed */ diff --git a/dbPort/src/org/compiere/model/X_AD_Package_Exp_Detail.java b/dbPort/src/org/compiere/model/X_AD_Package_Exp_Detail.java index dd13b71219..034eb0346f 100644 --- a/dbPort/src/org/compiere/model/X_AD_Package_Exp_Detail.java +++ b/dbPort/src/org/compiere/model/X_AD_Package_Exp_Detail.java @@ -42,7 +42,6 @@ super (ctx, AD_Package_Exp_Detail_ID, trxName); setAD_Package_Exp_Detail_ID (0); setAD_Package_Exp_ID (0); setDescription (null); -setPK_Name (null); // @SQL=SELECT PK_Name FROM AD_Package_Exp_Detail WHERE AD_Package_Exp_ID=@AD_Package_Exp_ID@ setProcessing (false); setType (null); } @@ -478,24 +477,7 @@ public String getName2() { return (String)get_Value("Name2"); } -/** Set PK_Name. -@param PK_Name Name of package */ -public void setPK_Name (String PK_Name) -{ -if (PK_Name == null) throw new IllegalArgumentException ("PK_Name is mandatory."); -if (PK_Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -PK_Name = PK_Name.substring(0,59); -} -set_Value ("PK_Name", PK_Name); -} -/** Get PK_Name. -@return Name of package */ -public String getPK_Name() -{ -return (String)get_Value("PK_Name"); -} + /** Set Processed. @param Processed Processed */ public void setProcessed (boolean Processed)