/** * Convert type for JDBC reads. Same as convertToType, but supports non-standard SQL conversions * supported by JDBC */ public Object convertToTypeJDBC(SessionInterface session, Object a, Type otherType) { if (otherType.isLobType()) { throw Error.error(ErrorCode.X_42561); } return convertToType(session, a, otherType); }
public Constraint( HsqlNameManager.HsqlName paramHsqlName, Table paramTable, Index paramIndex, int paramInt) { this.name = paramHsqlName; this.constType = paramInt; this.core = new ConstraintCore(); this.core.mainTable = paramTable; this.core.mainIndex = paramIndex; this.core.mainCols = paramIndex.getColumns(); for (int i = 0; i < this.core.mainCols.length; i++) { Type localType = paramTable.getColumn(this.core.mainCols[i]).getDataType(); if (localType.isLobType()) throw Error.error(5534); } }
void setColumnsIndexes(Table paramTable) { int i; Type localType; if (this.constType == 0) { if (this.mainColSet == null) { this.core.mainCols = this.core.mainTable.getPrimaryKey(); if (this.core.mainCols == null) throw Error.error(5581); } else if (this.core.mainCols == null) { this.core.mainCols = this.core.mainTable.getColumnIndexes(this.mainColSet); } if (this.core.refCols == null) this.core.refCols = paramTable.getColumnIndexes(this.refColSet); for (i = 0; i < this.core.refCols.length; i++) { localType = paramTable.getColumn(this.core.refCols[i]).getDataType(); if (localType.isLobType()) throw Error.error(5534); } } else if (this.mainColSet != null) { this.core.mainCols = paramTable.getColumnIndexes(this.mainColSet); for (i = 0; i < this.core.mainCols.length; i++) { localType = paramTable.getColumn(this.core.mainCols[i]).getDataType(); if (localType.isLobType()) throw Error.error(5534); } } }