|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujorm.orm.SqlDialectEx
public class SqlDialectEx
Extended SQL dialect class.
| Field Summary | |
|---|---|
protected SqlDialect |
dialect
The main dialect |
| Constructor Summary | |
|---|---|
SqlDialectEx(SqlDialect dialect)
Constructor |
|
| Method Summary | |
|---|---|
String |
buildConstraintName(MetaColumn column,
MetaTable table)
SQL Name Provider |
String |
buildPrimaryKeyOverColumn(MetaTable table,
List<MetaColumn> columns)
|
protected SqlNameProvider |
getNameProvider()
Returns a name provider |
Appendable |
printDropIndex(MetaIndex index,
Appendable out)
Print an DROP INDEX for the parameter column. |
Appendable |
printPrimaryKey(MetaColumn column,
StringBuilder sql)
|
protected void |
printPrimaryKeyConstraint(MetaTable table,
List<MetaColumn> columns,
Appendable out)
Prints primary key constraint |
Appendable |
printSequenceListAllId(UjoSequencer sequence,
Appendable out)
Print SQL LIST ALL SEQUENCE IDs. |
Appendable |
printSequenceNextValueWithValues(UjoSequencer sequence,
long seq,
Appendable out)
Print the next Sequence value |
Appendable |
printUniqueConstraint(List<MetaColumn> columns,
StringBuilder out)
Print Unique Constraint |
Appendable |
printUniqueConstraint(StringBuilder out,
MetaColumn... columns)
printUniqueConstraint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final SqlDialect dialect
| Constructor Detail |
|---|
public SqlDialectEx(SqlDialect dialect)
| Method Detail |
|---|
public Appendable printDropIndex(MetaIndex index,
Appendable out)
throws IOException
IOException
public Appendable printPrimaryKey(MetaColumn column,
StringBuilder sql)
throws Exception
Exception
public String buildConstraintName(MetaColumn column,
MetaTable table)
public String buildPrimaryKeyOverColumn(MetaTable table,
List<MetaColumn> columns)
throws IOException
IOException
public Appendable printUniqueConstraint(List<MetaColumn> columns,
StringBuilder out)
throws IOException
IOException
public Appendable printUniqueConstraint(StringBuilder out,
MetaColumn... columns)
throws IOException
IOException
protected void printPrimaryKeyConstraint(MetaTable table,
List<MetaColumn> columns,
Appendable out)
throws IOException
IOException
public Appendable printSequenceNextValueWithValues(UjoSequencer sequence,
long seq,
Appendable out)
throws IOException
IOException
public Appendable printSequenceListAllId(UjoSequencer sequence,
Appendable out)
throws IOException
IOException
protected final SqlNameProvider getNameProvider()
throws IllegalStateException
IllegalStateException - A problem during creating an instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||