@Test public void testCreateSqlBlockContext() throws Exception { SqlBlockContext context = dialect.createSqlBlockContext(); context.addKeyword("create"); context.addKeyword("or"); context.addKeyword("replace"); context.addKeyword("procedure"); assertTrue(context.isInSqlBlock()); context = dialect.createSqlBlockContext(); context.addKeyword("drop"); assertFalse(context.isInSqlBlock()); context = dialect.createSqlBlockContext(); context.addKeyword("begin"); assertTrue(context.isInSqlBlock()); }
@Override public SqlBlockContext createSqlBlockContext() { return new OracleSqlBlockContext(); }
OracleGenDialect extends StandardGenDialect { @Override public SqlBlockContext createSqlBlockContext() { return new OracleSqlBlockContext(); } }
OracleGenDialect extends StandardGenDialect { @Override public SqlBlockContext createSqlBlockContext() { return new OracleSqlBlockContext(); } OracleGenDialect(); }
OracleGenDialect extends StandardGenDialect { @Override public SqlBlockContext createSqlBlockContext() { return new OracleSqlBlockContext(); } OracleGenDialect(); boolean isUseOracleDate(); void setUseOracleDate(boolean useOracleDate); @Override String getName(); @Override GenerationType getDefaultGenerationType(); @Override boolean supportsSequence(); @Override boolean supportsGetIndexInfo(String catalogName, String schemaName,
            String tableName); @Override String getSequenceDefinitionFragment(String dataType,
            long initialValue, int allocationSize); @Override String getSqlBlockDelimiter(); @Override boolean isTableNotFound(Throwable throwable); @Override boolean isColumnNotFound(Throwable throwable); @Override boolean isSequenceNotFound(Throwable throwable); @Override ColumnType getColumnType(String typeName, int sqlType); @Override SqlBlockContext createSqlBlockContext(); @Override String getSequenceNextValString(String sequenceName,
            int allocationSize); @Override boolean supportsCommentInCreateTable(); @Override boolean supportsCommentOn(); @Override boolean isJdbcCommentAvailable(); @Override String getTableComment(Connection connection, String catalogName,
            String schemaName, String tableName); @Override Map<String, String> getColumnCommentMap(Connection connection,
            String catalogName, String schemaName, String tableName); @Override boolean supportsReferentialUpdateRule(); @Override SqlType getSqlType(ValueTypeProvider valueTypeProvider,
            PropertyMeta propertyMeta); }
OracleGenDialect extends StandardGenDialect { @Override public SqlBlockContext createSqlBlockContext() { return new OracleSqlBlockContext(); } OracleGenDialect(); boolean isUseOracleDate(); void setUseOracleDate(boolean useOracleDate); @Override String getName(); @Override GenerationType getDefaultGenerationType(); @Override boolean supportsSequence(); @Override boolean supportsGetIndexInfo(String catalogName, String schemaName,
            String tableName); @Override String getSequenceDefinitionFragment(String dataType,
            long initialValue, int allocationSize); @Override String getSqlBlockDelimiter(); @Override boolean isTableNotFound(Throwable throwable); @Override boolean isColumnNotFound(Throwable throwable); @Override boolean isSequenceNotFound(Throwable throwable); @Override ColumnType getColumnType(String typeName, int sqlType); @Override SqlBlockContext createSqlBlockContext(); @Override String getSequenceNextValString(String sequenceName,
            int allocationSize); @Override boolean supportsCommentInCreateTable(); @Override boolean supportsCommentOn(); @Override boolean isJdbcCommentAvailable(); @Override String getTableComment(Connection connection, String catalogName,
            String schemaName, String tableName); @Override Map<String, String> getColumnCommentMap(Connection connection,
            String catalogName, String schemaName, String tableName); @Override boolean supportsReferentialUpdateRule(); @Override SqlType getSqlType(ValueTypeProvider valueTypeProvider,
            PropertyMeta propertyMeta);  }