Methods Summary |
---|
public void | addColumn(Column column)
if ( !columns.contains( column ) ) columns.add( column );
|
public void | addColumns(java.util.Iterator columnIterator)
while ( columnIterator.hasNext() ) {
Selectable col = (Selectable) columnIterator.next();
if ( !col.isFormula() ) addColumn( (Column) col );
}
|
public java.util.Iterator | columnIterator()
return columns.iterator();
|
public boolean | containsColumn(Column column)
return columns.contains( column );
|
public Column | getColumn(int i)
return (Column) columns.get( i );
|
public java.util.Iterator | getColumnIterator()
return columns.iterator();
|
public int | getColumnSpan()
return columns.size();
|
public java.util.List | getColumns()
return columns;
|
public java.lang.String | getName()
return name;
|
public Table | getTable()
return table;
|
public boolean | isGenerated(org.hibernate.dialect.Dialect dialect)
return true;
|
public void | setName(java.lang.String name)
this.name = name;
|
public void | setTable(Table table)
this.table = table;
|
public abstract java.lang.String | sqlConstraintString(org.hibernate.dialect.Dialect d, java.lang.String constraintName, java.lang.String defaultCatalog, java.lang.String defaultSchema)
|
public java.lang.String | sqlCreateString(org.hibernate.dialect.Dialect dialect, org.hibernate.engine.Mapping p, java.lang.String defaultCatalog, java.lang.String defaultSchema)
if ( isGenerated( dialect ) ) {
String constraintString = sqlConstraintString( dialect, getName(), defaultCatalog, defaultSchema );
StringBuffer buf = new StringBuffer( "alter table " )
.append( getTable().getQualifiedName( dialect, defaultCatalog, defaultSchema ) )
.append( constraintString );
return buf.toString();
}
else {
return null;
}
|
public java.lang.String | sqlDropString(org.hibernate.dialect.Dialect dialect, java.lang.String defaultCatalog, java.lang.String defaultSchema)
if ( isGenerated( dialect ) ) {
return "alter table " + getTable()
.getQualifiedName( dialect, defaultCatalog, defaultSchema ) + " drop constraint " + getName();
}
else {
return null;
}
|
public java.lang.String | toString()
return getClass().getName() + '(" + getTable().getName() + getColumns() + ") as " + name;
|