]> git.argeo.org Git - gpl/argeo-slc.git/blob - SimpleJdbcDatabase.java
4f15209552dcce8c21833e7462ccac9c40e39eec
[gpl/argeo-slc.git] / SimpleJdbcDatabase.java
1 package org.argeo.slc.support.deploy.db;
2
3 import javax.sql.DataSource;
4
5 import org.argeo.slc.build.Distribution;
6 import org.argeo.slc.deploy.DeployedSystem;
7 import org.argeo.slc.deploy.DeploymentData;
8 import org.argeo.slc.deploy.TargetData;
9
10 public class SimpleJdbcDatabase implements DeployedSystem, JdbcAware {
11 private DataSource dataSource;
12
13 public String getDeployedSystemId() {
14 return dataSource.toString();
15 }
16
17 public DataSource getDataSource() {
18 return dataSource;
19 }
20
21 public void setDataSource(DataSource dataSource) {
22 this.dataSource = dataSource;
23 }
24
25 @Override
26 public Distribution getDistribution() {
27 throw new UnsupportedOperationException();
28 }
29
30 @Override
31 public DeploymentData getDeploymentData() {
32 throw new UnsupportedOperationException();
33 }
34
35 @Override
36 public TargetData getTargetData() {
37 throw new UnsupportedOperationException();
38 }
39 }