Skip to content

Commit 1c492bd

Browse files
committed
Changes in copyright headers
1 parent 454433f commit 1c492bd

File tree

4 files changed

+57
-35
lines changed

4 files changed

+57
-35
lines changed

hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/TimesTenDialect.java

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
import static org.hibernate.query.sqm.produce.function.FunctionParameterType.STRING;
6969

7070
/**
71-
* A SQL dialect for TimesTen
71+
* A SQL dialect for Oracle TimesTen
7272
* <p>
7373
* Known limitations:
7474
* joined-subclass support because of no CASE support in TimesTen
@@ -96,8 +96,12 @@ public TimesTenDialect(DialectResolutionInfo info) {
9696
* Licensed under the Universal Permissive License v 1.0 as shown
9797
* at http://oss.oracle.com/licenses/upl
9898
*
99-
* - Added more datatypes support. ( TIMESTAMP, BLOB, CLOB, NCLOB)
100-
*
99+
* - Added more datatypes into columnType():
100+
* BIT, CHAR, VARCHAR, LONGVARCHAR, BINARY, VARBINARY
101+
* LONGVARBINARY, BINARY_FLOAT, BINARY_DOUBLE, TIMESTAMP,
102+
* BLOB, CLOB, NCLOB
103+
*
104+
* @Author: Carlos Blanco
101105
*/
102106
@Override
103107
protected String columnType(int sqlTypeCode) {
@@ -201,8 +205,16 @@ public int getDefaultDecimalPrecision() {
201205
* Licensed under the Universal Permissive License v 1.0 as shown
202206
* at http://oss.oracle.com/licenses/upl
203207
*
204-
* - Added more SQL functions support.
205-
*
208+
* - Added more SQL functions support into initializeFunctionRegistry():
209+
* lower, upper, rtrim, ltrim, length, to_char, chr, instr, instrb,
210+
* lpad, rpad, substr, substrb, substring, str, soundex, replace,
211+
* to_date, sysdate, getdate, current_date, current_time, current_timestamp,
212+
* to_timestamp, add_months, months_between, abs, acos, asin, atan, atan2,
213+
* ceil, cos, cosh, exp, ln, sin, sign, sinh, mod, round, trunc, tan, tanh,
214+
* floor, power, bitnot, bitor, bitxor, nvl, user, rowid, uid, rownum,
215+
* vsize, SESSION_USER, SYSTEM_USER, CURRENT_USER
216+
*
217+
* @Author: Carlos Blanco
206218
*/
207219
@Override
208220
public void initializeFunctionRegistry(FunctionContributions functionContributions) {
@@ -504,6 +516,7 @@ public RowLockStrategy getWriteRowLockStrategy() {
504516
*
505517
* - Updated the custom definition for 'getForUpdateString()'
506518
*
519+
* @Author: Carlos Blanco
507520
*/
508521
@Override
509522
public String getForUpdateString() {
@@ -695,6 +708,7 @@ public String getSelectClauseNullString(int sqlType, TypeConfiguration typeConfi
695708
* - Added a custom definition for 'getDual()'
696709
* - Added a custom definition for 'getFromDualForSelectOnly()'
697710
*
711+
* @Author: Carlos Blanco
698712
*/
699713

700714
@Override

hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/TimesTenSqlAstTranslator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ protected boolean supportsRowValueConstructorSyntaxInQuantifiedPredicates() {
153153
*
154154
* - Added a custom definition for 'renderRowsToClause()'.
155155
*
156+
* @Author: Carlos Blanco
156157
*/
157158
@Override
158159
protected void renderRowsToClause(Expression offsetClauseExpression, Expression fetchClauseExpression) {

hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/pagination/TimesTenLimitHandler.java

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,32 @@
1414
* A {@link LimitHandler} for TimesTen, which uses {@code ROWS n},
1515
* but at the start of the query instead of at the end.
1616
*/
17+
18+
/*
19+
* Copyright (c) 2025, Oracle and/or its affiliates.
20+
* Licensed under the Universal Permissive License v 1.0 as shown
21+
* at http://oss.oracle.com/licenses/upl
22+
*
23+
* - The class now extends 'AbstractLimitHandler'
24+
* - Removed a custom definition for 'insert()'
25+
* - Added a custom definition for 'supportsLimit()'
26+
* - Added a custom definition for 'supportsOffset()'
27+
* - Added a custom definition for 'supportsLimitOffset()'
28+
* - Added a custom definition for 'supportsVariableLimit()'
29+
* - Added a custom definition for 'convertToFirstRowValue(int zeroBasedFirstResult)'
30+
* - Added a custom definition for 'useMaxForLimit()'
31+
* - Added a custom definition for 'limitClause(boolean hasFirstRow)'
32+
*
33+
* @Author: Carlos Blanco
34+
*
35+
*/
1736
public class TimesTenLimitHandler extends AbstractLimitHandler {
1837

1938
public static final TimesTenLimitHandler INSTANCE = new TimesTenLimitHandler();
2039

2140
public TimesTenLimitHandler(){
2241
}
2342

24-
/*
25-
* Copyright (c) 2025, Oracle and/or its affiliates.
26-
* Licensed under the Universal Permissive License v 1.0 as shown
27-
* at http://oss.oracle.com/licenses/upl
28-
*
29-
* - The class now extends 'AbstractLimitHandler'
30-
* - Removed a custom definition for 'insert()'
31-
* - Added a custom definition for 'supportsLimit()'
32-
* - Added a custom definition for 'supportsOffset()'
33-
* - Added a custom definition for 'supportsLimitOffset()'
34-
* - Added a custom definition for 'supportsVariableLimit()'
35-
* - Added a custom definition for 'convertToFirstRowValue(int zeroBasedFirstResult)'
36-
* - Added a custom definition for 'useMaxForLimit()'
37-
* - Added a custom definition for 'limitClause(boolean hasFirstRow)'
38-
*
39-
*/
4043
@Override
4144
public boolean supportsLimit() {
4245
return true;

hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/sequence/TimesTenSequenceSupport.java

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,28 @@
1313
*
1414
* @author Gavin King
1515
*/
16+
17+
/*
18+
* Copyright (c) 2025, Oracle and/or its affiliates.
19+
* Licensed under the Universal Permissive License v 1.0 as shown
20+
* at http://oss.oracle.com/licenses/upl
21+
*
22+
* - The Class now implements 'SequenceSupport'
23+
* - Added a custom definition for 'supportsSequences()'
24+
* - Added a custom definition for 'supportsPooledSequences()'
25+
* - Added a custom definition for 'getSelectSequenceNextValString(String sequenceName)'
26+
* - Added a custom definition for 'getSequenceNextValString(String sequenceName)'
27+
* - Added a custom definition for 'getCreateSequenceString(String sequenceName)'
28+
* - Added a custom definition for 'getDropSequenceString(String sequenceName)'
29+
*
30+
* @Author: Carlos Blanco
31+
*
32+
*/
1633
public final class TimesTenSequenceSupport implements SequenceSupport {
1734

1835
public static final SequenceSupport INSTANCE = new TimesTenSequenceSupport();
1936

20-
/*
21-
* Copyright (c) 2025, Oracle and/or its affiliates.
22-
* Licensed under the Universal Permissive License v 1.0 as shown
23-
* at http://oss.oracle.com/licenses/upl
24-
*
25-
* - The Class now implements 'SequenceSupport'
26-
* - Added a custom definition for 'supportsSequences()'
27-
* - Added a custom definition for 'supportsPooledSequences()'
28-
* - Added a custom definition for 'getSelectSequenceNextValString(String sequenceName)'
29-
* - Added a custom definition for 'getSequenceNextValString(String sequenceName)'
30-
* - Added a custom definition for 'getCreateSequenceString(String sequenceName)'
31-
* - Added a custom definition for 'getDropSequenceString(String sequenceName)'
32-
*
33-
*/
37+
3438

3539
@Override
3640
public boolean supportsSequences() {

0 commit comments

Comments
 (0)