|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.dmi.ProductVersion
Field Summary | |
static String |
versionId
|
Constructor Summary | |
ProductVersion()
Constructs a new ProductVersion |
|
ProductVersion(BigDecimal versionID,
Product p)
Constructs a new ProductVersion for Product p with the ID, versionID |
|
ProductVersion(String sName,
Product p)
Constructs a new ProductVersion for Product p with the name, sName |
Method Summary | |
static ProductVersion |
createProductVersion(Product p,
String sName,
String sInstallFile,
String sDesc)
Creates and returns a new Product Version for p. |
Date |
getCreationDate()
returns the date this version was installed |
String |
getDesc()
returns the ID of this version |
BigDecimal |
getID()
returns the ID of this version |
String |
getInstallErrors()
returns the ID of this version |
String |
getInstallFileName()
returns the install file of this version's data model |
BigDecimal |
getLatestProductVersionID()
Returns the ID for the Product Version that is current for this's Product. |
String |
getName()
returns the name of this version |
ProductVersion |
getPreviousVersion()
Returns the previous version of this product which was installed. |
Product |
getProduct()
returns the Product for which this is a version |
void |
save()
Saves this product version's information to the database. |
void |
setDescription(String sDesc)
sets the description of this version to sDesc |
void |
setName(String sName)
sets this' name to sName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
Constructor Detail |
public ProductVersion()
public ProductVersion(BigDecimal versionID, Product p) throws SQLException
p
- the Product for which to create a ProductVersion
throws
- a SQLException if there was a database error or if there is no
product version with ID, versionID
SQLException
public ProductVersion(String sName, Product p) throws SQLException
p
- the Product for which to create a ProductVersionsName
- the name of the product version to instantiate
throws
- a SQLException if there was a database error or if there is no
product version with name, sName
SQLException
Method Detail |
public static ProductVersion createProductVersion(Product p, String sName, String sInstallFile, String sDesc) throws SQLException, IllegalStateException
p
- the Product for which to create a new versionsName
- the name of the versionsInstallFile
- location of the SQLPlus-compatible file from which to install the product's data modelsDesc
- description of this version
SQLException
IllegalStateException
public Product getProduct()
public BigDecimal getID()
public String getName()
public void setName(String sName)
public Date getCreationDate()
public String getInstallFileName()
public String getInstallErrors()
public String getDesc()
public void setDescription(String sDesc)
sDesc
- the description of this versionpublic ProductVersion getPreviousVersion() throws SQLException
SQLException
public BigDecimal getLatestProductVersionID() throws SQLException
SQLException
public void save() throws SQLException, IllegalStateException
throws
- an IllegalStateException if this product version was created
with a default constructor and consequently does not have a Product
SQLException
IllegalStateException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |