Fixes now that compiling can happen (sort of).

This commit is contained in:
Ray J. Greenwell
2024-11-14 09:20:33 -08:00
parent 5708f9318e
commit 1c7f83adb8
7 changed files with 7 additions and 7 deletions
@@ -659,7 +659,7 @@ public class DepotMarshaller<T extends PersistentRecord> implements QueryMarshal
}
try {
int nextValue = vg.nextGeneratedValue(conn, liaison, stmt);
long nextValue = vg.nextGeneratedValue(conn, liaison, stmt);
field.set(po, nextValue);
} catch (Exception e) {
@@ -111,7 +111,7 @@ public class TableValueGenerator extends ValueGenerator
", column=" + _valueColumnName + "]");
}
// fetch the next available value
int val = rs.getLong(1);
long val = rs.getLong(1);
// claim this value locklessly
writeStatement.setLong(1, val + _allocationSize);
@@ -213,7 +213,7 @@ public abstract class BaseLiaison implements DatabaseLiaison
// from DatabaseLiaison
public abstract void createGenerator (Connection conn, String tableName, String columnName,
int initialValue)
long initialValue)
throws SQLException;
// from DatabaseLiaison
@@ -63,7 +63,7 @@ public interface DatabaseLiaison
* should have no negative effect like resetting it).
*/
public void createGenerator (Connection conn, String tableName, String columnName,
int initialValue)
long initialValue)
throws SQLException;
/**
@@ -33,7 +33,7 @@ public class DefaultLiaison extends BaseLiaison
}
@Override // from DatabaseLiaison
public void createGenerator (Connection conn, String tableName, String columnName, int initValue)
public void createGenerator (Connection conn, String tableName, String columnName, long initValue)
throws SQLException
{
// nothing doing
@@ -49,7 +49,7 @@ public class HsqldbLiaison extends BaseLiaison
@Override // from DatabaseLiaison
public void createGenerator (Connection conn, String tableName,
String columnName, int initValue)
String columnName, long initValue)
throws SQLException
{
if (initValue == 1) {
@@ -36,7 +36,7 @@ public class MySQLLiaison extends BaseLiaison
}
@Override // from DatabaseLiaison
public void createGenerator (Connection conn, String tableName, String columnName, int initValue)
public void createGenerator (Connection conn, String tableName, String columnName, long initValue)
throws SQLException
{
// TODO: is there any way we can set the initial AUTO_INCREMENT value?