12345678910111213141516171819202122232425262728293031323334353637383940 |
- package com.rthoni.intellij.codefromds.dbo.template;
-
- import java.util.List;
- import java.util.Vector;
-
- /**
- * Created by robin on 11/18/16.
- */
- public class DataSourceDbo {
-
- private String _name;
-
- private List<TableDataSourceDbo> _tables = new Vector<>();
-
- public String getName() {
- return _name;
- }
-
- public void setName(String name) {
- _name = name;
- }
-
- public List<TableDataSourceDbo> getTables() {
- return _tables;
- }
-
- public void addTable(TableDataSourceDbo table) {
- _tables.add(table);
- }
-
- public TableDataSourceDbo findTable(String name)
- {
- for (TableDataSourceDbo table : _tables) {
- if (table.getName().equals(name)) {
- return table;
- }
- }
- return null;
- }
- }
|