XNameContainer xNameCont = (XNameContainer) UnoRuntime.queryInterface(XNameContainer.class, xQueryDefs);
ConnectionTools.getObjectNames().checkNameForCreate(com.sun.star.sdb.CommandType.QUERY,_QueryName);
xNameCont.insertByName(_QueryName, oQuery);
return true;
} catch( WrappedTargetException exception ) {
SQLException sqlError = null;
try { sqlError = (SQLException)exception.TargetException; }
catch( ClassCastException castError ) { }
if ( sqlError != null ) {
callSQLErrorMessageDialog( sqlError, null );