public class TagService
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
Our CVS ID
|
protected java.util.List<Observation> |
observations
hold observations to tag
|
protected java.util.List<Product> |
products
hold products to tag
|
protected java.util.List<Tag> |
tags
hold tags to use
|
Constructor and Description |
---|
TagService() |
Modifier and Type | Method and Description |
---|---|
void |
addObservation(Observation observation)
Adds an observation to the list to be processed.
|
void |
addProduct(Product product)
Adds a product to the list to be processed.
|
void |
addTag(Tag tag)
Adds a tag to the list to be processed.
|
void |
delete()
Will delete specific tags for specific observations and products, including
all feature locations assigned to those tags.
|
void |
get()
Gets all tags for specific observations and products and adds them onto
the end of the list (you may want to clear first unless the Tagger is
already empty)
|
java.util.List<Observation> |
getObservations()
Get the observations.
|
java.util.List<Product> |
getProducts()
Get the products.
|
java.util.List<Tag> |
getTags()
Get the tags.
|
void |
init(java.sql.Connection conn)
Initialize with database connection
|
void |
print()
Will either print to standard out all tags for specific observations
and products or, if no observations or products are given, list all
observations and products with all of the tags that are given.
|
void |
tag()
If no observations or products have been added, this method will take
no action.
|
void |
track()
Update the Product_Status for tracking a product.
|
public static transient java.lang.String ID
protected java.util.List<Observation> observations
protected java.util.List<Product> products
protected java.util.List<Tag> tags
public void init(java.sql.Connection conn)
conn
- open database connectionpublic void addTag(Tag tag)
tag
- The tagpublic void addObservation(Observation observation)
observation
- The observationpublic void addProduct(Product product)
product
- The productpublic java.util.List<Observation> getObservations()
public java.util.List<Product> getProducts()
public java.util.List<Tag> getTags()
public void track() throws java.sql.SQLException
java.sql.SQLException
- The database could not be updatedpublic void tag() throws java.sql.SQLException
java.sql.SQLException
- Database could not be updated.public void delete() throws java.sql.SQLException
java.sql.SQLException
- Database could not be updated.public void print() throws java.sql.SQLException
java.sql.SQLException
- Query could not be completed.public void get() throws java.sql.SQLException
java.sql.SQLException
- Query could not be completed.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona