|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujorm.orm.SqlDialect
org.ujorm.orm.dialect.PostgreSqlDialect
org.ujorm.orm.dialect.OracleDialect
public class OracleDialect
Oracle (www.oracle.com/) release 9.0
| Field Summary |
|---|
| Fields inherited from class org.ujorm.orm.SqlDialect |
|---|
COMMON_SEQ_TABLE_KEY, DEFAULT_SCHEMA_SYMBOL, ormHandler |
| Constructor Summary | |
|---|---|
OracleDialect()
|
|
| Method Summary | |
|---|---|
protected String |
getColumnType(MetaColumn column)
PostgreSql dialect uses a database type OID (instead of the BLBO). |
String |
getJdbcDriver()
Returns a JDBC driver class name. |
String |
getJdbcUrl()
Returns a default JDBC URL |
Appendable |
printAlterTableAddColumn(MetaColumn column,
Appendable out)
Print a SQL sript to add a new column to the table Sample: ALTER TABLE sa_myphone.ord_order ADD (NEW_COLUMN INT DEFAULT 777 NOT NULL); |
Appendable |
printColumnDeclaration_2(MetaColumn column,
String aName,
Appendable out)
Print a SQL to create column |
Appendable |
printCreateSchema(String schema,
Appendable out)
Print no schema |
Appendable |
printIndexCondition(MetaIndex index,
Appendable out)
No PARTIAL INDEX is supported. |
Appendable |
printInsert(List<? extends OrmUjo> bo,
int idxFrom,
int idxTo,
Appendable out)
Print an SQL INSERT statement. |
Appendable |
printNextSequence(String sequenceName,
MetaTable table,
Appendable out)
Create a SQL script for the NEXT SEQUENCE from a native database sequencer |
void |
printOffset(Query query,
Appendable out)
Print an OFFSET of the statement SELECT. |
protected Appendable |
printSelectTable(Query query,
boolean count,
Appendable out)
Print SQL database SELECT |
| Methods inherited from class org.ujorm.orm.dialect.PostgreSqlDialect |
|---|
printDelete, printIndex |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OracleDialect()
| Method Detail |
|---|
public String getJdbcUrl()
SqlDialect
getJdbcUrl in class PostgreSqlDialectpublic String getJdbcDriver()
SqlDialect
getJdbcDriver in class PostgreSqlDialect
public Appendable printCreateSchema(String schema,
Appendable out)
throws IOException
printCreateSchema in class PostgreSqlDialectIOException
protected Appendable printSelectTable(Query query,
boolean count,
Appendable out)
throws IOException
printSelectTable in class SqlDialectquery - The UJO querycount - only count of items is required;
IOException
public void printOffset(Query query,
Appendable out)
throws IOException
PostgreSqlDialect
printOffset in class PostgreSqlDialectIOExceptionprotected String getColumnType(MetaColumn column)
getColumnType in class PostgreSqlDialect
public Appendable printAlterTableAddColumn(MetaColumn column,
Appendable out)
throws IOException
printAlterTableAddColumn in class SqlDialectIOException
public Appendable printColumnDeclaration_2(MetaColumn column,
String aName,
Appendable out)
throws IOException
column - Database ColumnaName - The name parameter is not mandatory, the not null value means a foreign key.
IOException
public Appendable printIndexCondition(MetaIndex index,
Appendable out)
throws IOException
printIndexCondition in class PostgreSqlDialectIOException
public Appendable printInsert(List<? extends OrmUjo> bo,
int idxFrom,
int idxTo,
Appendable out)
throws IOException
SqlDialect
printInsert in class SqlDialectbo - Business object listidxFrom - Start index from listidxTo - Finished index from list (excluded)
IOExceptionSqlDialect.isMultiRowInsertSupported()
public Appendable printNextSequence(String sequenceName,
MetaTable table,
Appendable out)
throws IOException
printNextSequence in class SqlDialectIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||