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のモデルです。


Constructor Summary
SQLBuilder()
           
SQLBuilder(SQLOption option)
           
 
Method Summary
 void addSQLBuilderListener(com.infoteria.asteria.sqlbuilder.event.SQLBuilderListener l)
           
 void addTable(Table table)
           
 Object clone()
           
 GroupByColumn getAggregateColumn(Column col)
           
 CompoundCondition getCondition()
           
 ColumnList getGroupBy()
           
 SQLOption getOption()
           
 ColumnList getOrderBy()
           
 Table getParams()
           
 Relation getRelation(Column col1, Column col2)
           
 Relation getRelation(int idx)
           
 Relation getRelation(Table table1, Table table2)
           
 Relation getRelation(Table table1, Table table2, boolean bCreate)
           
 int getRelationCount()
           
 ColumnList getSelect()
           
 Table getTable(int idx)
           
 Table getTableById(String id)
           
 Table getTableByName(String cname)
           
 Table getTableByName(String schema, String name)
           
 int getTableCount()
           
 int indexOfTable(Table table)
           
 boolean isDistinct()
           
 void refreshTable(Table newTable)
           
 void removeSQLBuilderListener(com.infoteria.asteria.sqlbuilder.event.SQLBuilderListener l)
           
 void removeTable(Table table)
           
 void setDefaultSchema(String schema)
           
 void setDistinct(boolean b)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLBuilder

public SQLBuilder()

SQLBuilder

public SQLBuilder(SQLOption option)
Method Detail

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)