protected boolean isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData, Table table, Index index)
protected boolean isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData, Table table, Index index) throws SQLException
    protected boolean isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData, Table table, Index index)    {        // Sybase defines a unique index "<table name>_<integer numer>" for primary keys    	if (index.isUnique() && (index.getName() != null))    	{	    	int underscorePos = index.getName().lastIndexOf('_');		    	if (underscorePos > 0)	    	{	    		String tableName = index.getName().substring(0, underscorePos);	    		String id        = index.getName().substring(underscorePos + 1);		    		if (table.getName().startsWith(tableName))	    		{		    		try		    		{		    			Long.parseLong(id);		    			return true;		    		}		    		catch (NumberFormatException ex)		    		{		    			// we ignore it		    		}	    		}	    	}    	}    	return false;    }