
sf.jooq.JooqSchema Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sorm Show documentation
Show all versions of sorm Show documentation
java jpa tool for spring
The newest version!
package sf.jooq;
import org.jooq.Catalog;
import org.jooq.Name;
import org.jooq.Sequence;
import org.jooq.Table;
import org.jooq.UDT;
import org.jooq.impl.SchemaImpl;
import sf.jooq.tables.JooqTable;
import sf.spring.util.LinkedCaseInsensitiveMap;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* schema对应的表
*/
public class JooqSchema extends SchemaImpl {
private Map tableMap = new LinkedCaseInsensitiveMap<>();
public JooqSchema(String name) {
super(name);
}
public JooqSchema(String name, Catalog catalog) {
super(name, catalog);
}
public JooqSchema(Name name) {
super(name);
}
public JooqSchema(Name name, Catalog catalog) {
super(name, catalog);
}
public void addTables(JooqTable table) {
tableMap.put(table.getName(), table);
}
@Override
public List> getTables() {
List> tables = new ArrayList<>();
for (Map.Entry entry : tableMap.entrySet()) {
tables.add(entry.getValue());
}
return tables;
}
@Override
public List> getUDTs() {
//TODO
return super.getUDTs();
}
@Override
public List> getSequences() {
//TODO
return super.getSequences();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy