Skip to Main Content
Component- Oriented Development and Assembly
book

Component- Oriented Development and Assembly

by Piram Manickam, S. Sangeetha, S. V. Subrahmanya
December 2013
Intermediate to advanced content levelIntermediate to advanced
298 pages
7h 27m
English
Auerbach Publications
Content preview from Component- Oriented Development and Assembly
172
ComPonent-oriented develoPment and assemblY
List<Table> tables;
public List<Table> getTables() {
return tables;
}
@Autowired
public TableService(TableConfigDAO tableConfigDAO) {
this.tableConfigDAO = tableConfigDAO;
this.tables = new ArrayList<Table>();
tableConfig = this.tableConfigDAO.
findTableConfig();
if (tableConfig = = null) {
tableConfig = new TableConfig();
tableConfig.setNoOfTables(10);
this.tableConfigDAO.create(tableConfig);
}
for (int tableNo = 1; tableNo < = tableConfig.
getNoOfTables(); tableNo++) {
Table table = new Table(tableNo);
tables.add(table);
}
}
public int getNoOfTables() {
return tableConfig.getNoOfTables();
}
public List<Table> getOccupiedTables() {
//business logic
}
public List<Table> getEmptyTables() ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Large-Scale, Component-Based Development

Large-Scale, Component-Based Development

Alan W. Brown

Publisher Resources

ISBN: 9781466580992