|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.translator.ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
org.teiid.translator.jdbc.JDBCExecutionFactory
org.teiid.translator.jdbc.sybase.SybaseExecutionFactory
@Translator(name="sybase") public class SybaseExecutionFactory
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.teiid.translator.jdbc.JDBCExecutionFactory |
---|
JDBCExecutionFactory.NullOrder |
Nested classes/interfaces inherited from class org.teiid.translator.ExecutionFactory |
---|
ExecutionFactory.SupportedJoinCriteria |
Field Summary |
---|
Fields inherited from class org.teiid.translator.jdbc.JDBCExecutionFactory |
---|
DEFAULT_MAX_IN_CRITERIA, DEFAULT_TIME_ZONE |
Fields inherited from class org.teiid.translator.ExecutionFactory |
---|
DEFAULT_MAX_FROM_GROUPS, DEFAULT_MAX_IN_CRITERIA_SIZE |
Constructor Summary | |
---|---|
SybaseExecutionFactory()
|
Method Summary | |
---|---|
protected java.util.List<java.lang.Object> |
convertDateToString(Function function)
|
protected java.util.List<?> |
convertTimestampToString(Function function)
Written to only support version 15 |
int |
getMaxFromGroups()
The number of groups supported in the from clause. |
int |
getMaxInCriteriaSize()
Get the integer value representing the number of values allowed in an IN criteria in the WHERE clause of a query |
java.util.List<java.lang.String> |
getSupportedFunctions()
Get list of all supported function names. |
int |
getTimestampNanoPrecision()
Return the precision of timestamp literals. |
boolean |
hasTimeType()
Return false to indicate that time support should be emulated with timestamps. |
void |
start()
Initialize the connector with supplied configuration |
boolean |
supportsFunctionsInGroupBy()
Support indicates that the connector supports functions in GROUP BY, such as: SELECT dayofmonth(theDate), COUNT(*) FROM table GROUP BY dayofmonth(theDate) |
boolean |
supportsInlineViews()
Support indicates connector can accept inline views (subqueries in the FROM clause). |
java.util.List<?> |
translateCommand(Command command,
ExecutionContext context)
SetQueries don't have a concept of TOP, an inline view is needed. |
java.util.List<?> |
translateLimit(Limit limit,
ExecutionContext context)
Return a List of translated parts ( LanguageObject s and Objects), or null
if to rely on the default translation. |
boolean |
useAsInGroupAlias()
Indicates whether group alias should be of the form "...FROM groupA AS X" or "...FROM groupA X". |
boolean |
useSelectLimit()
Returns whether the limit clause is applied to the select clause. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SybaseExecutionFactory()
Method Detail |
---|
public void start() throws TranslatorException
ExecutionFactory
start
in class JDBCExecutionFactory
TranslatorException
protected java.util.List<java.lang.Object> convertDateToString(Function function)
protected java.util.List<?> convertTimestampToString(Function function)
function
-
public boolean useAsInGroupAlias()
JDBCExecutionFactory
useAsInGroupAlias
in class JDBCExecutionFactory
public boolean hasTimeType()
JDBCExecutionFactory
hasTimeType
in class JDBCExecutionFactory
public int getTimestampNanoPrecision()
JDBCExecutionFactory
getTimestampNanoPrecision
in class JDBCExecutionFactory
public java.util.List<?> translateCommand(Command command, ExecutionContext context)
translateCommand
in class JDBCExecutionFactory
public java.util.List<?> translateLimit(Limit limit, ExecutionContext context)
JDBCExecutionFactory
LanguageObject
s and Objects), or null
if to rely on the default translation.
translateLimit
in class JDBCExecutionFactory
public boolean useSelectLimit()
JDBCExecutionFactory
useSelectLimit
in class JDBCExecutionFactory
public int getMaxInCriteriaSize()
ExecutionFactory
getMaxInCriteriaSize
in class JDBCExecutionFactory
public java.util.List<java.lang.String> getSupportedFunctions()
ExecutionFactory
getSupportedFunctions
in class JDBCExecutionFactory
public boolean supportsInlineViews()
ExecutionFactory
supportsInlineViews
in class JDBCExecutionFactory
public boolean supportsFunctionsInGroupBy()
ExecutionFactory
Support indicates that the connector supports functions in GROUP BY, such as:
SELECT dayofmonth(theDate), COUNT(*) FROM table GROUP BY dayofmonth(theDate)
supportsFunctionsInGroupBy
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public int getMaxFromGroups()
ExecutionFactory
getMaxFromGroups
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |