public class MosaicTilesDaoJdbc extends java.lang.Object implements MosaicTilesDao
MosaicTile
s.Modifier and Type | Class and Description |
---|---|
protected class |
MosaicTilesDaoJdbc.MosaicTileDelete
MosaicTile Delete Object. |
protected class |
MosaicTilesDaoJdbc.MosaicTileInsert
MosaicTile Insert Object. |
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
MosaicTilesDaoJdbc() |
Modifier and Type | Method and Description |
---|---|
void |
deleteMosaicTiles(int mid)
Delete the
MosaicTile s for the Mosaic specified by this Mosaic ID. |
java.util.List<MosaicTile> |
getMosaicTiles(int mid)
Get the List of
MosaicTile s for the Mosaic specified by this Mosaic ID. |
int |
getTileCount(int mid)
Return the number of tiles we have stored for this mosaic
|
void |
setDataSource(javax.sql.DataSource ds)
Set the reference to the JDBC datasource.
|
void |
storeMosaicTile(MosaicTile tile)
Store this
MosaicTile in the database. |
public void setDataSource(javax.sql.DataSource ds)
ds
- The datasource as configured by Spring.public void deleteMosaicTiles(int mid)
MosaicTilesDao
MosaicTile
s for the Mosaic specified by this Mosaic ID.deleteMosaicTiles
in interface MosaicTilesDao
mid
- The Mosaic ID to delete.public java.util.List<MosaicTile> getMosaicTiles(int mid)
MosaicTilesDao
MosaicTile
s for the Mosaic specified by this Mosaic ID.getMosaicTiles
in interface MosaicTilesDao
mid
- The Mosaic ID to query.public int getTileCount(int mid)
MosaicTilesDao
getTileCount
in interface MosaicTilesDao
mid
- The mosaicIdpublic void storeMosaicTile(MosaicTile tile)
MosaicTilesDao
MosaicTile
in the database.storeMosaicTile
in interface MosaicTilesDao
tile
- The MosaicTile to store.