T - Classe a partir da qual serão gerados os seedsID - Identificador da classepublic abstract class AbstractSeed<T extends GumgaIdable<ID>,ID extends Serializable> extends Object implements AppSeed
| Constructor and Description |
|---|
AbstractSeed() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
createObject(String[] args)
Cria objeto que será salvo
|
void |
loadSeed()
Método responsável por popular uma tabela do banco de dados de acordo com a Classe T
|
abstract String |
pathFile() |
abstract GumgaService<T,ID> |
service()
Método abstrato que retorna o service utilizado para gerenciamento dos seeds
|
@Transactional
public void loadSeed()
throws IOException
loadSeed in interface AppSeedIOExceptionpublic abstract GumgaService<T,ID> service()
public abstract T createObject(String[] args)
args - argumentospublic abstract String pathFile()
Copyright © 2018 Gumga. All rights reserved.