public class MosaicsDaoJdbc extends java.lang.Object implements MosaicsDao
Mosaic
s.Modifier and Type | Class and Description |
---|---|
protected class |
MosaicsDaoJdbc.MosaicConfigsDelete
MetaSet Delete Object. |
protected class |
MosaicsDaoJdbc.MosaicConfigsInsert
MosaicConfigs Insert Object. |
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
MosaicsDaoJdbc() |
Modifier and Type | Method and Description |
---|---|
void |
deleteMosaic(int mid)
Delete the
Mosaic from the database that has this Mosaic ID. |
Mosaic |
getMosaic(int mid)
Get a Mosaic from the database based on this Mosaic ID.
|
Mosaic |
getMosaic(java.lang.String masterPic,
java.lang.String engine,
int sid,
int tileHeight)
Find the
Mosaic in the database that matches these parameters. |
int |
getMosaicCount()
Get the number of Virgins in the database
|
java.util.List<Mosaic> |
getMosaics()
Get a List of all of the
Mosaic s in the database. |
void |
setDataSource(javax.sql.DataSource ds)
Set the reference to the JDBC datasource.
|
void |
storeMosaic(Mosaic mosaic)
Store this
Mosaic in the database. |
public void setDataSource(javax.sql.DataSource ds)
ds
- The datasource as configured by Spring.public Mosaic getMosaic(int mid)
MosaicsDao
getMosaic
in interface MosaicsDao
mid
- The Mosaic ID to query.public Mosaic getMosaic(java.lang.String masterPic, java.lang.String engine, int sid, int tileHeight)
MosaicsDao
Mosaic
in the database that matches these parameters.getMosaic
in interface MosaicsDao
public java.util.List<Mosaic> getMosaics()
MosaicsDao
Mosaic
s in the database.getMosaics
in interface MosaicsDao
public void deleteMosaic(int mid)
MosaicsDao
Mosaic
from the database that has this Mosaic ID.deleteMosaic
in interface MosaicsDao
mid
- The Mosaic ID to delete.public void storeMosaic(Mosaic mosaic)
MosaicsDao
Mosaic
in the database.storeMosaic
in interface MosaicsDao
mosaic
- The Mosaic to store.public int getMosaicCount()