|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.storage.sql.jdbc.dialect.Dialect org.nuxeo.ecm.core.storage.sql.jdbc.dialect.DialectDerby
public class DialectDerby
Derby-specific dialect.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.nuxeo.ecm.core.storage.sql.jdbc.dialect.Dialect |
---|
Dialect.FulltextMatchInfo, Dialect.FulltextQuery, Dialect.FulltextQueryAnalyzer, Dialect.JDBCInfo |
Field Summary |
---|
Fields inherited from class org.nuxeo.ecm.core.storage.sql.jdbc.dialect.Dialect |
---|
ARRAY_SEP |
Constructor Summary | |
---|---|
DialectDerby(DatabaseMetaData metadata,
BinaryManager binaryManager,
RepositoryDescriptor repositoryDescriptor)
|
Method Summary | |
---|---|
boolean |
doesUpdateFromRepeatSelf()
When doing an UPDATE t SET ... |
String |
getClobCast(boolean inOrderBy)
When using a CLOB field in an expression, is some casting required and with what pattern? |
String |
getCreateFulltextIndexSql(String indexName,
String quotedIndexName,
Table table,
List<Column> columns,
Model model)
Gets a CREATE INDEX statement for a fulltext index. |
String |
getDialectFulltextQuery(String query)
Get the dialect-specific version of a fulltext query. |
Serializable |
getFromResultSet(ResultSet rs,
int index,
Column column)
|
int |
getFulltextIndexedColumns()
Specifies what columns of the fulltext table have to be indexed. |
Dialect.FulltextMatchInfo |
getFulltextScoredMatchInfo(String fulltextQuery,
String indexName,
int nthMatch,
Column mainColumn,
Model model,
Database database)
Gets the SQL information needed to do a a fulltext match, either with a direct expression in the WHERE clause, or using a join with an additional table. |
String |
getInTreeSql(String idColumnName)
Gets the expression to use to check tree membership. |
Dialect.JDBCInfo |
getJDBCTypeAndString(ColumnType type)
Gets the JDBC type and string from Nuxeo's type abstraction. |
boolean |
getMaterializeFulltextSyntheticColumn()
Does the fulltext synthetic column have to be materialized. |
String |
getPagingClause(long limit,
long offset)
Gets paging clause to be appended at the end of select statement |
String |
getSecurityCheckSql(String idColumnName)
Gets the expression to use to check security. |
String |
getSQLStatementsFilename()
Gets the name of the file containing the SQL statements. |
Map<String,Serializable> |
getSQLStatementsProperties(Model model,
Database database)
Gets the properties to use with the SQL statements. |
String |
getTestSQLStatementsFilename()
|
boolean |
isAllowedConversion(int expected,
int actual,
String actualName,
int actualSize)
Check mismatches between expected and actual JDBC types read from database introspection. |
boolean |
needsAliasForDerivedTable()
Whether a derived table (subselect in a FROM statement) needs an alias. |
void |
setToPreparedStatement(PreparedStatement ps,
int index,
Serializable value,
Column column)
|
boolean |
supportsPaging()
Indicates if dialect supports paging |
boolean |
supportsUpdateFrom()
Does the dialect support UPDATE t SET ... |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DialectDerby(DatabaseMetaData metadata, BinaryManager binaryManager, RepositoryDescriptor repositoryDescriptor) throws StorageException
StorageException
Method Detail |
---|
public Dialect.JDBCInfo getJDBCTypeAndString(ColumnType type)
Dialect
getJDBCTypeAndString
in class Dialect
public boolean isAllowedConversion(int expected, int actual, String actualName, int actualSize)
Dialect
isAllowedConversion
in class Dialect
public void setToPreparedStatement(PreparedStatement ps, int index, Serializable value, Column column) throws SQLException
setToPreparedStatement
in class Dialect
SQLException
public Serializable getFromResultSet(ResultSet rs, int index, Column column) throws SQLException
getFromResultSet
in class Dialect
SQLException
public int getFulltextIndexedColumns()
Dialect
getFulltextIndexedColumns
in class Dialect
public boolean getMaterializeFulltextSyntheticColumn()
Dialect
getMaterializeFulltextSyntheticColumn
in class Dialect
public String getCreateFulltextIndexSql(String indexName, String quotedIndexName, Table table, List<Column> columns, Model model)
Dialect
getCreateFulltextIndexSql
in class Dialect
public String getDialectFulltextQuery(String query)
Dialect
getDialectFulltextQuery
in class Dialect
query
- the CMIS-syntax-based fulltext query string
public Dialect.FulltextMatchInfo getFulltextScoredMatchInfo(String fulltextQuery, String indexName, int nthMatch, Column mainColumn, Model model, Database database)
Dialect
getFulltextScoredMatchInfo
in class Dialect
public boolean supportsUpdateFrom()
Dialect
supportsUpdateFrom
in class Dialect
public boolean doesUpdateFromRepeatSelf()
Dialect
doesUpdateFromRepeatSelf
in class Dialect
public boolean needsAliasForDerivedTable()
Dialect
needsAliasForDerivedTable
in class Dialect
public String getClobCast(boolean inOrderBy)
Dialect
Needed for Derby and H2.
getClobCast
in class Dialect
inOrderBy
- true
if the expression is for an ORDER BY column
null
if no cast is
requiredpublic String getSecurityCheckSql(String idColumnName)
Dialect
getSecurityCheckSql
in class Dialect
idColumnName
- the quoted name of the id column to use
public String getInTreeSql(String idColumnName)
Dialect
getInTreeSql
in class Dialect
idColumnName
- the quoted name of the id column to use
public String getSQLStatementsFilename()
Dialect
getSQLStatementsFilename
in class Dialect
public String getTestSQLStatementsFilename()
getTestSQLStatementsFilename
in class Dialect
public Map<String,Serializable> getSQLStatementsProperties(Model model, Database database)
Dialect
getSQLStatementsProperties
in class Dialect
public boolean supportsPaging()
Dialect
supportsPaging
in class Dialect
public String getPagingClause(long limit, long offset)
Dialect
getPagingClause
in class Dialect
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |