public static EISException resourceException(Exception resourceException, EISAccessor accessor, AbstractSession session) { EISException exception = new EISException(resourceException); exception.setErrorCode(RESOURCE_EXCEPTION); exception.setInternalException(resourceException); exception.setAccessor(accessor); exception.setSession(session); return exception; }
public static EISException invalidInteractionSpecType() { return EISException.createException(new Object[] { }, INVALID_INTERACTION_SPEC_TYPE); }
public static EISException invalidAQInteractionSpecType() { return EISException.createResourceException(new Object[] { }, INVALID_AQ_INTERACTION_SPEC_TYPE); }
public static EISException createException(Exception ex) { EISException exception = new EISException(ex); exception.setErrorCode(EIS_EXCEPTION); return exception; }
public static EISException resourceException(ResourceException resourceException, Call call, EISAccessor accessor, AbstractSession session) { EISException exception = resourceException(resourceException, accessor, session); exception.setCall(call); return exception; }
public static EISException createResourceException(Object[] args, int errorCode) { ResourceException resourceException = new ResourceException(ExceptionMessageGenerator.buildMessage(EISException.class, errorCode, args)); EISException exception = new EISException(resourceException); exception.setErrorCode(RESOURCE_EXCEPTION); exception.setInternalException(resourceException); return exception; }
public static EISException resourceException(ResourceException resourceException, EISAccessor accessor, AbstractSession session) { return resourceException((Exception)resourceException, accessor, session); }
throw new EISException(cantFind); throw new EISException(error);
/** * INTERNAL: * Required for interface, but never used, for JDBC. */ public java.sql.Connection connect(Properties properties, Session session) { throw EISException.incorrectLoginInstanceProvided(EISLogin.class); }
public EISException(Exception exception, String message) { this(message); setInternalException(exception); }
/** * INTERNAL: * Initialize the mapping. */ @Override public void initialize(AbstractSession session) throws DescriptorException { super.initialize(session); if ((this.getForeignKeyGroupingElement() == null) && (this.getSourceForeignKeysToTargetKeys().size() > 1)) { throw EISException.groupingElementRequired(); } if (this.getForeignKeyGroupingElement() != null) { DatabaseField field = this.getDescriptor().buildField(this.getForeignKeyGroupingElement()); setForeignKeyGroupingElement(field); } this.initializeSourceForeignKeysToTargetKeys(); if (shouldInitializeSelectionCriteria()) { initializeSelectionCriteria(session); } this.initializeDeleteAllQuery(); }
public static EISException createException(Exception ex) { EISException exception = new EISException(ex); exception.setErrorCode(EIS_EXCEPTION); return exception; }
public static EISException createResourceException(Object[] args, int errorCode) { ResourceException resourceException = new ResourceException(ExceptionMessageGenerator.buildMessage(EISException.class, errorCode, args)); EISException exception = new EISException(resourceException); exception.setErrorCode(RESOURCE_EXCEPTION); exception.setInternalException(resourceException); return exception; }
public static EISException resourceException(ResourceException resourceException, EISAccessor accessor, AbstractSession session) { return resourceException((Exception)resourceException, accessor, session); }
throw new EISException(cantFind); throw new EISException(error);
public static EISException resourceException(ResourceException resourceException, Call call, EISAccessor accessor, AbstractSession session) { EISException exception = resourceException(resourceException, accessor, session); exception.setCall(call); return exception; }
/** * INTERNAL: * Required for interface, but never used, for JDBC. */ public java.sql.Connection connect(Properties properties, Session session) { throw EISException.incorrectLoginInstanceProvided(EISLogin.class); }
public EISException(Exception exception, String message) { this(message); setInternalException(exception); }
/** * INTERNAL: * Initialize the mapping. */ @Override public void initialize(AbstractSession session) throws DescriptorException { super.initialize(session); if ((this.getForeignKeyGroupingElement() == null) && (this.getSourceForeignKeysToTargetKeys().size() > 1)) { throw EISException.groupingElementRequired(); } if (this.getForeignKeyGroupingElement() != null) { DatabaseField field = this.getDescriptor().buildField(this.getForeignKeyGroupingElement()); setForeignKeyGroupingElement(field); } this.initializeSourceForeignKeysToTargetKeys(); if (shouldInitializeSelectionCriteria()) { initializeSelectionCriteria(session); } this.initializeDeleteAllQuery(); }
public static EISException resourceException(Exception resourceException, EISAccessor accessor, AbstractSession session) { EISException exception = new EISException(resourceException); exception.setErrorCode(RESOURCE_EXCEPTION); exception.setInternalException(resourceException); exception.setAccessor(accessor); exception.setSession(session); return exception; }