com.infoteria.asteria.sqlbuilder.model
Class SQLBuilder
java.lang.Object
|
+--com.infoteria.asteria.sqlbuilder.model.SQLBuilder
- All Implemented Interfaces:
- Cloneable
- public class SQLBuilder
- extends Object
- implements Cloneable
SQLBuilderのモデルです。
SQLBuilder
public SQLBuilder()
SQLBuilder
public SQLBuilder(SQLOption option)
isDistinct
public boolean isDistinct()
setDistinct
public void setDistinct(boolean b)
getParams
public Table getParams()
getCondition
public CompoundCondition getCondition()
getOption
public SQLOption getOption()
addTable
public void addTable(Table table)
removeTable
public void removeTable(Table table)
getTableCount
public int getTableCount()
getTable
public Table getTable(int idx)
getTableByName
public Table getTableByName(String cname)
getTableByName
public Table getTableByName(String schema,
String name)
getTableById
public Table getTableById(String id)
indexOfTable
public int indexOfTable(Table table)
refreshTable
public void refreshTable(Table newTable)
getSelect
public ColumnList getSelect()
getOrderBy
public ColumnList getOrderBy()
getGroupBy
public ColumnList getGroupBy()
addSQLBuilderListener
public void addSQLBuilderListener(com.infoteria.asteria.sqlbuilder.event.SQLBuilderListener l)
removeSQLBuilderListener
public void removeSQLBuilderListener(com.infoteria.asteria.sqlbuilder.event.SQLBuilderListener l)
getRelationCount
public int getRelationCount()
getRelation
public Relation getRelation(int idx)
getRelation
public Relation getRelation(Table table1,
Table table2)
getRelation
public Relation getRelation(Table table1,
Table table2,
boolean bCreate)
getRelation
public Relation getRelation(Column col1,
Column col2)
clone
public Object clone()
- Overrides:
clone
in class Object
setDefaultSchema
public void setDefaultSchema(String schema)
getAggregateColumn
public GroupByColumn getAggregateColumn(Column col)