32 lines
788 B
Java
32 lines
788 B
Java
package de.vanitasvitae.fasel.db.databases;
|
|
|
|
import java.sql.SQLException;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
|
|
import com.j256.ormlite.dao.DaoManager;
|
|
import de.vanitasvitae.fasel.db.AbstractDatabase;
|
|
import de.vanitasvitae.fasel.db.dao.impl.AvatarDaoImpl;
|
|
import de.vanitasvitae.fasel.db.entity.Avatar;
|
|
|
|
public class AvatarDatabase extends AbstractDatabase {
|
|
|
|
public AvatarDatabase() throws SQLException {
|
|
super();
|
|
}
|
|
|
|
@Override
|
|
protected List<Class<?>> getTables() {
|
|
return Arrays.asList(Avatar.class);
|
|
}
|
|
|
|
@Override
|
|
protected String getDatabaseName() {
|
|
return "avatars";
|
|
}
|
|
|
|
public AvatarDaoImpl getAvatarDao() throws SQLException {
|
|
return DaoManager.createDao(getConnectionSource(), Avatar.class);
|
|
}
|
|
}
|