Methods Summary |
---|
protected final java.util.Hashtable | buildFieldTypes()
final Hashtable<Class, FieldTypeDefinition> fieldTypeMapping = new Hashtable<Class, FieldTypeDefinition>();
fieldTypeMapping.put(Boolean.class, new FieldTypeDefinition("BIT", false));
fieldTypeMapping.put(Integer.class, new FieldTypeDefinition("INTEGER", false));
fieldTypeMapping.put(Long.class, new FieldTypeDefinition("BIGINT", false));
fieldTypeMapping.put(Float.class, new FieldTypeDefinition("REAL", false));
fieldTypeMapping.put(Double.class, new FieldTypeDefinition("DOUBLE", false));
fieldTypeMapping.put(Short.class, new FieldTypeDefinition("SMALLINT", false));
fieldTypeMapping.put(Byte.class, new FieldTypeDefinition("SMALLINT", false));
fieldTypeMapping.put(BigInteger.class, new FieldTypeDefinition("BIGINT", false));
fieldTypeMapping.put(BigDecimal.class, new FieldTypeDefinition("DOUBLE", false));
fieldTypeMapping.put(Number.class, new FieldTypeDefinition("DOUBLE", false));
fieldTypeMapping.put(String.class, new FieldTypeDefinition("VARCHAR"));
fieldTypeMapping.put(Character.class, new FieldTypeDefinition("CHAR"));
fieldTypeMapping.put(Byte[].class, new FieldTypeDefinition("LONG BINARY", false));
fieldTypeMapping.put(Character[].class, new FieldTypeDefinition("LONG VARCHAR", false));
fieldTypeMapping.put(byte[].class, new FieldTypeDefinition("LONG BINARY", false));
fieldTypeMapping.put(char[].class, new FieldTypeDefinition("LONG VARCHAR", false));
fieldTypeMapping.put(Blob.class, new FieldTypeDefinition("LONG BINARY", false));
fieldTypeMapping.put(Clob.class, new FieldTypeDefinition("LONG VARCHAR", false));
fieldTypeMapping.put(Date.class, new FieldTypeDefinition("DATE", false));
fieldTypeMapping.put(Time.class, new FieldTypeDefinition("TIME", false));
fieldTypeMapping.put(Timestamp.class, new FieldTypeDefinition("TIMESTAMP", false));
return fieldTypeMapping;
|
public final oracle.toplink.essentials.queryframework.ValueReadQuery | buildSelectQueryForNativeSequence()
return new ValueReadQuery("SELECT @@identity");
|
private static final oracle.toplink.essentials.expressions.ExpressionOperator | createCurrentDateOperator()
return ExpressionOperator.simpleFunctionNoParentheses(ExpressionOperator.CurrentDate, "CURRENT DATE");
|
private static final oracle.toplink.essentials.expressions.ExpressionOperator | createCurrentTimeOperator()
return ExpressionOperator.simpleFunctionNoParentheses(ExpressionOperator.CurrentTime, "CURRENT TIME");
|
private static final oracle.toplink.essentials.expressions.ExpressionOperator | createLocate2Operator()
return ExpressionOperator.simpleThreeArgumentFunction(ExpressionOperator.Locate2, "LOCATE");
|
private static final oracle.toplink.essentials.expressions.ExpressionOperator | createLocateOperator()
return ExpressionOperator.simpleTwoArgumentFunction(ExpressionOperator.Locate, "LOCATE");
|
protected final java.lang.String | getCreateTempTableSqlPrefix()
return "DECLARE TEMPORARY TABLE ";
|
public final int | getJDBCType(java.lang.Class javaType)
return javaType == ClassConstants.BLOB ? Types.LONGVARBINARY : javaType == ClassConstants.CLOB ? Types.LONGVARCHAR : super.getJDBCType(javaType);
|
public final int | getMaxFieldNameSize()
return 128;
|
public final oracle.toplink.essentials.internal.helper.DatabaseTable | getTempTableForTable(oracle.toplink.essentials.internal.helper.DatabaseTable table)
return new DatabaseTable("$" + table.getName(), table.getTableQualifier());
|
protected final void | initializePlatformOperators()
super.initializePlatformOperators();
this.addOperator(SQLAnyWherePlatform.createLocateOperator());
this.addOperator(SQLAnyWherePlatform.createLocate2Operator());
this.addOperator(SQLAnyWherePlatform.createCurrentDateOperator());
this.addOperator(SQLAnyWherePlatform.createCurrentTimeOperator());
this.addOperator(ExpressionOperator.charLength());
|
public final boolean | isSQLAnywhere()
return true;
|
public final void | printFieldIdentityClause(java.io.Writer writer)
try {
writer.write(" DEFAULT AUTOINCREMENT");
} catch (final IOException ioException) {
throw ValidationException.fileError(ioException);
}
|
public final void | printFieldNullClause(java.io.Writer writer)
try {
writer.write(" NULL");
} catch (final IOException ioException) {
throw ValidationException.fileError(ioException);
}
|
public final boolean | shouldNativeSequenceAcquireValueAfterInsert()
return true;
|
public final boolean | supportsLocalTempTables()
return true;
|
public final boolean | supportsNativeSequenceNumbers()
return true;
|
public final boolean | supportsStoredFunctions()
return true;
|