Skip to content

Commit abf29fd

Browse files
committed
HHH-19956: Add InterSystemsIRISIdentityColumnSupport.java
1 parent 00f5855 commit abf29fd

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
* Copyright Red Hat Inc. and Hibernate Authors
4+
*/
5+
package org.hibernate.community.dialect.identity;
6+
7+
import org.hibernate.MappingException;
8+
import org.hibernate.dialect.identity.IdentityColumnSupportImpl;
9+
10+
public class InterSystemsIRISIdentityColumnSupport extends IdentityColumnSupportImpl {
11+
12+
@Override
13+
public boolean supportsIdentityColumns() {
14+
return true;
15+
}
16+
17+
@Override
18+
public boolean hasDataTypeInIdentityColumn() {
19+
return true;
20+
}
21+
22+
@Override
23+
public String getIdentityColumnString(int type) throws MappingException {
24+
return "IDENTITY";
25+
}
26+
27+
@Override
28+
public String getIdentitySelectString(String table, String column, int type) {
29+
return "SELECT LAST_IDENTITY() FROM %TSQL_sys.snf";
30+
}
31+
32+
@Override
33+
public String getIdentityInsertString() {
34+
return null;
35+
}
36+
37+
@Override
38+
public boolean supportsInsertSelectIdentity() {
39+
return false;
40+
}
41+
42+
}

0 commit comments

Comments
 (0)