You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DataSourceDbo.java 802B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package com.rthoni.intellij.codefromds.dbo.template;
  2. import java.util.List;
  3. import java.util.Vector;
  4. /**
  5. * Created by robin on 11/18/16.
  6. */
  7. public class DataSourceDbo {
  8. private String _name;
  9. private List<TableDataSourceDbo> _tables = new Vector<>();
  10. public String getName() {
  11. return _name;
  12. }
  13. public void setName(String name) {
  14. _name = name;
  15. }
  16. public List<TableDataSourceDbo> getTables() {
  17. return _tables;
  18. }
  19. public void addTable(TableDataSourceDbo table) {
  20. _tables.add(table);
  21. }
  22. public TableDataSourceDbo findTable(String name)
  23. {
  24. for (TableDataSourceDbo table : _tables) {
  25. if (table.getName().equals(name)) {
  26. return table;
  27. }
  28. }
  29. return null;
  30. }
  31. }