[ 1638040 ] 2pack pk_name do not nesseary in detail and change to Name

This commit is contained in:
vpj-cd 2007-01-17 21:05:39 +00:00
parent 07a1cd80dc
commit 1179079fb3
3 changed files with 22 additions and 40 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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)