public class Product extends DBConnector
Modifier and Type | Field and Description |
---|---|
static String |
ALTERNATECOLUMN |
static String |
IDENTIFIERCOLUMN |
static String |
INSTREFCOLUMN |
static String |
INSTTITLECOLUMN |
static String |
INVESTREFCOLUMN |
static String |
INVESTTITLECOLUMN |
static org.apache.log4j.Logger |
logger |
static String |
NODEREFCOLUMN |
static String |
NODETITLECOLUMN |
static String |
TITLECOLUMN |
static String |
TYPECOLUMN |
static String |
VERSIONCOLUMN |
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() |
String |
getInstRef() |
String |
getInstTitle() |
String |
getInveRef() |
String |
getInveTitle() |
String |
getNodeRef() |
String |
getNodeTitle() |
Product |
getProduct(String idf,
String ver) |
List<Product> |
getProducts(String type)
Product Query - Query the product table for a list of products by type.
|
List<Product> |
getProductsAssociatedDeliveriesOrderByTitle(String instRef,
String investRef)
Product Delivery Query - Query the product, delivery and *_reference tables for a list of products that have associated deliveries.
|
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 |
setInstRef(String instRef) |
void |
setInstTitle(String instTitle) |
void |
setInveRef(String inveRef) |
void |
setInveTitle(String inveTitle) |
void |
setNodeRef(String nodeRef) |
void |
setNodeTitle(String nodeTitle) |
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 IDENTIFIERCOLUMN
public static final String VERSIONCOLUMN
public static final String TITLECOLUMN
public static final String TYPECOLUMN
public static final String ALTERNATECOLUMN
public static final String INVESTREFCOLUMN
public static final String INVESTTITLECOLUMN
public static final String INSTREFCOLUMN
public static final String INSTTITLECOLUMN
public static final String NODEREFCOLUMN
public static final String NODETITLECOLUMN
public Product() throws ClassNotFoundException, SQLException
ClassNotFoundException
SQLException
public String getInstRef()
public void setInstRef(String instRef)
instRef,
- the instRef to setpublic String getInstTitle()
public void setInstTitle(String instTitle)
instTitle,
- the instTitle to setpublic String getInveRef()
public void setInveRef(String inveRef)
inveRef,
- the inveRef to setpublic String getInveTitle()
public void setInveTitle(String inveTitle)
inveTitle,
- the inveTitle to setpublic String getNodeRef()
public void setNodeRef(String nodeRef)
nodeRef,
- the nodeRef to setpublic String getNodeTitle()
public void setNodeTitle(String nodeTitle)
nodeTitle,
- the nodeTitle to setpublic 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 List<Product> getProductsAssociatedDeliveriesOrderByTitle(String instRef, String investRef)
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–2018 Planetary Data System. All rights reserved.