13141516171819
private TableInfo table; private WhereBuilder where; private QualifierBuilder qualifiers = new QualifierBuilder(this); public UpdateBuilder(Class<?> entityClass) { this.table = new TableInfo(entityClass); }
2526272829303132333435
* entityClass becomes the current entity. * */ public SelectBuilder from(Class<?> entityClass) { if (rootTable == null) { rootTable = new TableInfo(entityClass); currentTable = rootTable; } else { join(entityClass); } tables.add(currentTable);
10111213141516
private final QualifierBuilder qualifier = new QualifierBuilder(this); private WhereBuilder where; public DeleteBuilder(Class<?> entityClass) { this.entityClass = entityClass; this.table = new TableInfo(entityClass); }
private final TableInfo table; private final List<ColumnInfo> columns = new ArrayList<ColumnInfo>(); public InsertBuilder(Class<?> entityClass) { this.table = new TableInfo(entityClass); }