/*******************************************************************************
* Copyright © 2011, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*
*******************************************************************************/
package eglx.persistence.sql;
import org.eclipse.edt.javart.ByteStorage;
import org.eclipse.edt.javart.Program;
import org.eclipse.edt.runtime.java.eglx.lang.EInt;
import org.eclipse.edt.runtime.java.eglx.lang.EString;
public class SQLException extends eglx.lang.AnyException {
private static final long serialVersionUID = 10L;
public String SQLState;
public Integer ErrorCode;
public SQLException nextException;
public SQLException() {
super();
ezeInitialize();
}
public void ezeCopy(Object source) {
ezeCopy((SQLException) source);
}
public void ezeCopy(eglx.lang.AnyValue source) {
this.SQLState = ((SQLException) source).SQLState;
this.ErrorCode = ((SQLException) source).ErrorCode;
}
public SQLException ezeNewValue(Object... args) {
return new SQLException();
}
public void ezeSetEmpty() {
SQLState = null;
ErrorCode = null;
}
public boolean isVariableDataLength() {
return false;
}
public void loadFromBuffer(ByteStorage buffer, Program program) {
}
public int sizeInBytes() {
return 0;
}
public void storeInBuffer(ByteStorage buffer) {
}
public void ezeInitialize() {
SQLState = null;
ErrorCode = null;
nextException = null;
}
public String getSQLState() {
return (SQLState);
}
public void setSQLState( String ezeValue ) {
this.SQLState = ezeValue;
}
public Integer getErrorCode() {
return (ErrorCode);
}
public void setErrorCode( Integer ezeValue ) {
this.ErrorCode = ezeValue;
}
public SQLException getNextException() {
return nextException;
}
public void setNextException(SQLException ex) {
this.nextException = ex;
}
}