|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.dmi.Product
Field Summary | |
static String |
versionId
|
Constructor Summary | |
Product()
Constructs a new Product |
|
Product(BigDecimal productID)
Constructs a new Product with the ID, productID |
|
Product(String sName)
Constructs a new Product with the name, sName |
Method Summary | |
static Product |
createProduct(String sName,
String sProdDesc,
String sInitVersionName,
String sInstallFile,
String sVersionDesc)
Creates and returns a new Product with initial version, sInitVersionName. |
Date |
getCreationDate()
Returns the date of this product was first installed |
ProductVersion |
getCurrentVersion()
Returns the current version of the product |
String |
getDesc()
Returns a description of this product |
BigDecimal |
getID()
Returns the ID of this product |
String |
getName()
Returns the name of this product |
static Product[] |
getProducts()
Returns all the products that are currently installed |
ProductVersion[] |
getVersions()
Returns a list of all the versions through which this product has been installed and upgraded |
void |
save()
Saves this product's information to the database. |
void |
setDescription(String sDesc)
Sets this product's description to sDesc |
void |
setName(String sName)
Sets this product's 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 Product()
public Product(BigDecimal productID) throws SQLException
productID
- the ID of the product to instantiate
throws
- a SQLException if there was a database error or if there is no
product with ID, productID
SQLException
public Product(String sName) throws SQLException
sName
- name of the product to instantiate
throws
- a SQLException if there was a database error or if there is no
product with name, sName
SQLException
Method Detail |
public static Product createProduct(String sName, String sProdDesc, String sInitVersionName, String sInstallFile, String sVersionDesc) throws SQLException
sName
- name of the productsProdDesc
- description of the productsInitVersionName
- initial version of the product being createdsInstallFile
- location of the SQLPlus-compatible file from which to install the product's data modelsVersionDesc
- description of the initial version of the product
SQLException
public ProductVersion getCurrentVersion() throws SQLException
SQLException
public ProductVersion[] getVersions() throws SQLException
SQLException
public BigDecimal getID()
public String getName()
public void setName(String sName)
sName
- the new name of the productpublic Date getCreationDate()
public String getDesc()
public void setDescription(String sDesc) throws IllegalStateException
IllegalStateException
public void save() throws SQLException
SQLException
public static Product[] getProducts() throws SQLException
SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |