[ 
https://issues.apache.org/jira/browse/OFBIZ-3870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892239#action_12892239
 ] 

Deyan commented on OFBIZ-3870:
------------------------------

No need to add an attribute of the datasource element in entityengine.xml as 
this info is provided by jdbc. 

SQLProcessor:116
this._sqlStateType = connection.getMetaData().getSQLStateType();

Also it seems like x/open and sql:2003 states are compatible:

http://ieeexplore.ieee.org/Xplore/login.jsp?url=http://ieeexplore.ieee.org/iel2/330/3600/00128794.pdf%3Farnumber%3D128794&authDecision=-203

The SQL (structured query language) Access Group, an open industry consortium 
that includes many major SQL database vendors and a number of database tool 
developers, is developing a common embedded SQL language interface for 
client-server interoperability in OSI (open systems interconnection) 
environments. This specification covers most of the features in the current 
ANSI/ISO SQL standard, includes some new features from the proposed SQL2 
standard, and maintains upward compatibility with X/Open applications. As part 
of this development process, SQL Access has seen the need for enhancements to 
SQL for remote access and has contributed to the ANSI and ISO standardization 
efforts. X/Open is a member of the SQL Access Group and enjoys an excellent 
working relationship in extending the X-Open specification to include SQL 
Access Group requirements

> Extend GenericEntityExceptions and provide subclasses for different types of 
> database errors
> --------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-3870
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3870
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Deyan
>            Assignee: Adam Heath
>         Attachments: GenericEntityException_SQLState.patch, 
> GenericEntityException_SQLState_v2.patch
>
>
> Currently EntityEngine provides only GenericDuplicateKeyException which is 
> never used. 
> It is needed for development purposes to create more detailed exceptions 
> level which allows developers to better handle 
> database errors and warnings and help distinguish between recoverable and 
> not-recoverable errors. 
> This improvement provides the following classes: 
> GenericIntegrityConstraintViolationException -> GenericEntityException
> GenericRestrictViolationException -> 
> GenericIntegrityConstraintViolationException
> GenericNotNullViolationException -> 
> GenericIntegrityConstraintViolationException
> GenericGoreignKeyViolationException -> 
> GenericIntegrityConstraintViolationException
> GenericDuplicateKeyException -> GenericIntegrityConstraintViolationException 
> ( modified superclass )
> GEnericCheckViolationException -> GenericIntegrityConstraintViolationException

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to