public class MosaicVectorsDaoJdbc extends java.lang.Object implements MosaicVectorsDao
MosaicVector
s.Modifier and Type | Class and Description |
---|---|
protected class |
MosaicVectorsDaoJdbc.MosaicVectorInsert
MosaicVector Insert Object. |
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
MosaicVectorsDaoJdbc() |
Modifier and Type | Method and Description |
---|---|
MosaicVector |
getMosaicVector(java.lang.String pic)
Fetch the
MosaicVector for the Pic specified by this picName |
java.util.List<MosaicVector> |
getMosaicVectors(java.util.List<Pic> picList)
Get the List of
MosaicVector s that matches this picList, which probably came from a mosaic Set. |
void |
setDataSource(javax.sql.DataSource ds)
Set the reference to the JDBC datasource.
|
void |
updateMosaicVector(MosaicVector mv)
Store this
MosaicVector in the database. |
public void setDataSource(javax.sql.DataSource ds)
ds
- The datasource as configured by Spring.public MosaicVector getMosaicVector(java.lang.String pic)
MosaicVectorsDao
MosaicVector
for the Pic specified by this picNamegetMosaicVector
in interface MosaicVectorsDao
pic
- The name of the Pic to query.public void updateMosaicVector(MosaicVector mv)
MosaicVectorsDao
MosaicVector
in the database.updateMosaicVector
in interface MosaicVectorsDao
mv
- The MosaicVector to store.public java.util.List<MosaicVector> getMosaicVectors(java.util.List<Pic> picList)
MosaicVectorsDao
MosaicVector
s that matches this picList, which probably came from a mosaic Set.getMosaicVectors
in interface MosaicVectorsDao
picList
- The List of Pics to queryMosaicVector
s. The List may be empty, but not null.