public class Product extends DBConnector
Modifier and Type | Field and Description |
---|---|
static String |
ALTERNATECOLUME |
static String |
IDENTIFIERCOLUME |
static org.apache.log4j.Logger |
logger |
static String |
TITLECOLUME |
static String |
TYPECOLUME |
static String |
VERSIONCOLUME |
ARCHIVE_STATUS_TABLE_NAME, CERTIFICATION_STATUS_TABLE_NAME, ISO_BASIC, NSSDCA_STATUS_TABLE_NAME
Constructor and Description |
---|
Product() |
Modifier and Type | Method and Description |
---|---|
String |
getAlternate() |
String |
getIdentifier() |
Product |
getProduct(String idf,
String ver) |
List<Product> |
getProducts(String type) |
List<Product> |
getProductsOrderByTitle() |
String |
getTitle() |
String |
getType() |
String |
getVersion() |
void |
insertProduct(String logicalIdentifier,
String versionId,
String title,
String type,
String alternateId) |
void |
setAlternate(String alternate) |
void |
setIdentifier(String identifier) |
void |
setTitle(String title) |
void |
setType(String type) |
void |
setVersion(String version) |
void |
updateProduct(String logicalIdentifier,
String versionId,
String title,
String type,
String alternateId) |
getConnection
public static org.apache.log4j.Logger logger
public static final String IDENTIFIERCOLUME
public static final String VERSIONCOLUME
public static final String TITLECOLUME
public static final String TYPECOLUME
public static final String ALTERNATECOLUME
public Product() throws ClassNotFoundException, SQLException
ClassNotFoundException
SQLException
public String getIdentifier()
public void setIdentifier(String identifier)
identifier
- public String getVersion()
public void setVersion(String version)
version
- public String getTitle()
public void setTitle(String title)
title
- public String getType()
public void setType(String type)
type
- public String getAlternate()
public void setAlternate(String alternate)
alternate
- public List<Product> getProducts(String type)
type
- (can be null)public List<Product> getProductsOrderByTitle()
public Product getProduct(String idf, String ver)
logical
- identifierversion
- public void insertProduct(String logicalIdentifier, String versionId, String title, String type, String alternateId)
logicalIdentifier
- versionId
- title
- type
- alternateId
- Copyright © 2010–2017 Planetary Data System. All rights reserved.